:root {
    --deep: #021d11;
    --green: #064c2b;
    --green-2: #08713e;
    --gold: #d5aa31;
    --gold-light: #f1d879;
    --cream: #f8f1df;
    --cream-dark: #e9dfc3;
    --ink: #17281d;
    --white: #fffdf6;
    --shadow: 0 18px 42px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
        linear-gradient(rgba(2,29,17,.08), rgba(2,29,17,.08)),
        url("BACK_MARS_HYMNE_DAIMAN_V4.webp") center top / cover fixed no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(241,216,121,.28);
    border-radius: 18px;
}

.page-shell {
    /* Kira-kira 2/3 layar, dengan ruang lega kiri-kanan */
    width: min(820px, 66.666vw);
    min-width: 620px;
    margin: 42px auto 34px;
}

/* HEADER */
.header {
    min-height: 100px;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    gap: 18px;
    padding: 12px 20px;
    background:
        radial-gradient(circle at 50% 100%, rgba(213,170,49,.17), transparent 42%),
        linear-gradient(135deg, #075a33, #032b19 62%, #075a33);
    border: 1px solid var(--gold);
    border-radius: 24px 24px 10px 10px;
    box-shadow: var(--shadow);
}

.nav-card {
    min-height: 67px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff4be;
    text-decoration: none;
    font: bold 11px/1 Georgia, serif;
    letter-spacing: 1px;
    background: linear-gradient(145deg, #087143, #03331e);
    border: 1px solid var(--gold);
    border-radius: 14px;
    transition: .2s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.nav-symbol {
    color: var(--gold-light);
    font: 29px/1 Arial, sans-serif;
}

.brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    color: white;
    white-space: nowrap;
}

.brand-title {
    color: #f2c735;
    font: 800 clamp(36px, 4vw, 58px)/1 Georgia, serif;
    letter-spacing: 1px;
    text-shadow: 2px 3px rgba(0,0,0,.25);
}

.brand-subtitle {
    font-size: clamp(16px, 2vw, 25px);
}

/* MAIN */
.content {
    margin-top: 18px;
    padding: 30px 34px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,.98), transparent 45%),
        linear-gradient(135deg, rgba(250,245,231,.985), rgba(236,226,199,.985));
    border: 1px solid var(--gold);
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.title-area {
    text-align: center;
    margin-bottom: 26px;
}

.tiny-ornament {
    color: var(--gold);
    font-size: 17px;
}

.title-area h1 {
    margin: 2px 0 8px;
    font-size: clamp(43px, 5.2vw, 68px);
    line-height: .95;
    font-weight: 400;
    color: var(--green);
}

.title-area h1 span { font-style: italic; }
.title-area h1 strong { color: #d7a923; }

.subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #657567;
    font-size: 9px;
    letter-spacing: 3px;
}

.subtitle-line i {
    width: min(115px, 14vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.subtitle-line i:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* CARDS */
.songs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.song-card {
    overflow: hidden;
    background: linear-gradient(150deg, #075d35, #032e1b 68%, #07512e);
    border: 1px solid var(--gold);
    border-radius: 23px 23px 15px 15px;
    box-shadow: 0 12px 25px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.song-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 31px rgba(0,0,0,.28);
}

.song-head {
    min-height: 158px;
    padding: 17px 10px 14px;
    text-align: center;
    color: #fff0a8;
    background:
        radial-gradient(circle at 50% 100%, rgba(218,178,55,.25), transparent 40%),
        linear-gradient(160deg, #087344, #03321e);
    border-bottom: 1px solid rgba(213,170,49,.65);
}

.crest {
    width: 49px;
    height: 49px;
    margin: 0 auto 7px;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font: 24px/1 Arial, sans-serif;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: rgba(0,0,0,.15);
}

.song-head h2,
.song-head h3,
.song-head p { margin: 0; }

.song-head h2 { font-size: 26px; }
.song-head h3 { margin-top: 2px; font-size: 17px; }
.song-head p {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 2px;
    opacity: .8;
}

.song-menu { padding: 10px; }

.menu-row {
    min-height: 52px;
    padding: 6px 9px;
    display: grid;
    grid-template-columns: 34px 1fr 17px;
    align-items: center;
    gap: 9px;
    color: #17261b;
    text-decoration: none;
    background: linear-gradient(90deg, #fffdf6, #f0e7d1);
    border-bottom: 1px solid rgba(128,105,50,.30);
    transition: .18s ease;
}

.menu-row:first-child { border-radius: 11px 11px 0 0; }
.menu-row:last-child { border-radius: 0 0 11px 11px; border-bottom: 0; }

.menu-row:not(.pending):hover {
    padding-left: 13px;
    background: #fffaf0;
}

.menu-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 8px;
    background: linear-gradient(145deg, #087344, #03331e);
    font: bold 14px/1 Arial, sans-serif;
}

.menu-row strong {
    color: #b48512;
    font: 26px/1 Arial, sans-serif;
}

.pending {
    opacity: .58;
    cursor: default;
}

/* FOOTER */
.footer {
    min-height: 64px;
    margin-top: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    color: #f2d984;
    background: linear-gradient(135deg, #07512f, #022719);
    border: 1px solid var(--gold);
    border-radius: 13px;
    box-shadow: var(--shadow);
}

.footer strong,
.footer small { display: block; }

.footer strong { font-size: 15px; }
.footer small { margin-top: 3px; font-size: 10px; opacity: .86; }

/* TABLET */
@media (max-width: 1000px) {
    .page-shell {
        width: min(760px, calc(100% - 80px));
        min-width: 0;
    }
}

/* HP */
@media (max-width: 620px) {
    body {
        background:
            linear-gradient(rgba(2,29,17,.10), rgba(2,29,17,.10)),
            url("BACK_MARS_HYMNE_DAIMAN_V4.webp") center top / auto 100% no-repeat fixed;
    }

    .page-shell {
        width: calc(100% - 20px);
        min-width: 0;
        margin: 10px auto 18px;
    }

    .header {
        min-height: 74px;
        grid-template-columns: 56px 1fr 56px;
        gap: 6px;
        padding: 7px;
        border-radius: 17px 17px 8px 8px;
    }

    .nav-card {
        min-height: 56px;
        border-radius: 11px;
        font-size: 7px;
        letter-spacing: .4px;
    }

    .nav-symbol { font-size: 24px; }

    .brand {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        line-height: 1;
    }

    .brand-title { font-size: 29px; }
    .brand-subtitle { font-size: 10px; }

    .content {
        margin-top: 9px;
        padding: 24px 10px 28px;
        border-radius: 19px;
    }

    .title-area { margin-bottom: 21px; }

    .title-area h1 {
        font-size: clamp(40px, 13.5vw, 55px);
    }

    .subtitle-line {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .songs {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .song-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .song-head {
        min-height: 141px;
        padding-top: 15px;
    }

    .crest {
        width: 43px;
        height: 43px;
        font-size: 21px;
    }

    .song-head h2 { font-size: 24px; }
    .song-head h3 { font-size: 16px; }

    .menu-row {
        min-height: 54px;
        padding: 7px 9px;
    }

    .footer {
        min-height: 61px;
        margin-top: 9px;
        padding: 10px;
        gap: 10px;
    }

    .footer strong { font-size: 13px; }
    .footer small { font-size: 9px; }
}
