@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Libre+Baskerville&display=swap');

/* --theme-- */

:root {
    --bg-dark: #191312;
    --panel: rgba(35,28,25,.82);
    --gold: #f6d08a;
    --gold-2: #d6b26e;
    --text: #ece6dc;
    --muted: #b8aa95;
    --border: #8f6a48;
    --shadow: rgba(0,0,0,.45);
}  /* ← FIXED: was missing */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    color: var(--text);
    font-family: 'Libre Baskerville', serif;
    background:
        linear-gradient(rgba(25,22,20,.65), rgba(25,22,20,.65)),
        url("https://i.imgur.com/pbunWjm.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}  /* ← FIXED: was missing */

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 6px rgba(255,220,170,0.5);
}


.lined-heading::before {
    left: 0;
    background: linear-gradient(to left, rgba(255,220,170,.8), rgba(255,220,170,0));
}

.lined-heading::after {
    right: 0;
    background: linear-gradient(to right, rgba(255,220,170,.8), rgba(255,220,170,0));
}

p {
    margin-top: 20px;
    line-height: 1.9;
    font-size: 13px;
}

strong { color: #ffd886; }

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,215,160,.35);
    transition: all .2s ease;
}

a:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.7);
    text-shadow: 0 0 8px rgba(255,215,160,.25);
}

/* --navigation bar-- */

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    position: relative;
    z-index: 1000;
    background: linear-gradient(
        to bottom,
        rgba(35,25,20,0.97) 0%,
        rgba(35,25,20,0.80) 40%,
        rgba(35,25,20,0.35) 70%,
        rgba(35,25,20,0.00) 100%
    );
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar a,
.dropbtn {
    display: block;
    padding: 18px;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    letter-spacing: 2px;
    color: #ecd7b0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: .25s ease;
    white-space: nowrap;
}

.navbar a:hover,
.dropbtn:hover {
    background: transparent;
    color: #fff;
    text-shadow:
        0 0 6px rgba(246,208,138,.6),
        0 0 14px rgba(246,208,138,.4);
}

/* --hamburg (mobile)-- */

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #ecd7b0;
    cursor: pointer;
    padding: 16px 12px;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

/* --dropdown-- */

.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(35,25,20,.97);
    border: 1px solid var(--border);
    box-shadow: 0 12px 25px rgba(0,0,0,.4);
    z-index: 1200;
}

.dropdown-content a {
    display: block;
    padding: 14px 18px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #ecd7b0;
    text-decoration: none;
    border-bottom: none;
    transition: .25s ease;
}

.dropdown-content a:hover {
    background: rgba(246,208,138,.08);
    color: #fff;
    text-shadow:
        0 0 6px rgba(246,208,138,.7),
        0 0 16px rgba(246,208,138,.45);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content { display: block; }
}

.dropdown.open .dropdown-content { display: block; }

/* --content box-- */

.content {
    width: min(900px, 92%);
    margin: 60px auto;
    padding: 50px;
    text-align: center;
    background: var(--panel);
    border: 1px solid rgba(141,104,67,.8);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 35px var(--shadow);
}

/* --titles-- */

.daybreak h1 {
    margin: 0;
    font-size: 100px;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #ffe6a3 0%, var(--gold) 40%, #caa25a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle h2 {
    margin: 1px 0 0;
    font-size: 18px;
    font-style: italic;
    font-weight: normal;
    color: #d7b98d;
    letter-spacing: 2px;
    opacity: .9;
    position: relative;
}

.subtitle h2::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: -20px;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 45px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(135deg, #ffe6a3, #f6d08a, #caa25a);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    letter-spacing: 3px;
    color: #e4c179;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(214,178,110,.35);
    padding-bottom: 8px;
    margin-bottom: 25px;
}

/* --tabs-- */

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tab {
    padding: 12px 18px;
    background: transparent;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: #d7c2a3;
    cursor: pointer;
    transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}

.tab:hover {
    color: var(--gold);
    transform: translateY(-1px);
    text-shadow:
        0 0 4px rgba(246,208,138,.55),
        0 0 10px rgba(214,178,110,.45),
        0 0 18px rgba(143,106,72,.35);
}

.tab.active {
    color: #ffe6b3;
    text-shadow:
        0 0 6px rgba(246,208,138,.75),
        0 0 14px rgba(214,178,110,.55),
        0 0 24px rgba(143,106,72,.4);
}  /* ← FIXED: was missing */

.tab-panel {
    display: none;
    font-size: 13px;
    line-height: 1.9;
    background: rgba(25,20,17,.75);
    border: 1px solid rgba(141,104,67,.35);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    animation: tabFade .3s ease;
}

.tab-panel.active { display: block; }

@keyframes tabFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --lists--  */

.guidelines ul        { margin: 20px 0; padding-left: 20px; }
.guidelines li        { margin: 14px 0; font-size: 13px; line-height: 1.7; }
.guidelines ul ul     { margin-top: 6px; padding-left: 20px; }
.guidelines ul ul li  { margin: 4px 0; }

/* --tables-- */

.skill-guide,
.stat-cost-guide,
.age-guide {
    margin: 28px 0;
    border: 1px solid rgba(255,220,170,.18);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25,20,17,.72), rgba(18,14,12,.72));
    box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.03);
    backdrop-filter: blur(6px);
}

.skill-guide h3,
.stat-cost-guide h3,
.age-guide h3 {
    margin: 0;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(255,215,160,.12), rgba(255,215,160,.04));
    color: var(--gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 1.2px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.skill-guide table,
.stat-cost-guide table,
.age-guide table {
    width: 100%;
    border-collapse: collapse;
}

.skill-guide th,
.stat-cost-guide th {
    text-align: center;
    padding: 12px 20px;
    background: rgba(255,255,255,.03);
    color: #f3e3c2;
    font-size: 13px;
    letter-spacing: .3px;
}

.age-guide th {
    text-align: left;
    padding: 12px 20px;
    background: rgba(255,255,255,.03);
    color: #f3e3c2;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
}

.skill-guide td,
.stat-cost-guide td,
.age-guide td {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 13.5px;
    color: rgba(240,230,215,.92);
}

.skill-guide td   { line-height: 1.6; }
.age-guide td     { vertical-align: top; line-height: 1.75; }

.skill-guide tr:hover td,
.stat-cost-guide tr:hover td,
.age-guide tr:hover td {
    background: rgba(255,215,160,.035);
    transition: background .2s ease;
}


.skill-guide td:nth-child(1)    { color: #ffd886; font-weight: bold; }
.stat-cost-guide td:nth-child(2) { color: #ffd886; font-weight: bold; }

.age-guide .note {
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 12.5px;
    color: rgba(203,189,166,.85);
    font-style: italic;
    background: rgba(0,0,0,.12);
}

/*  mobile (≤ 768px) */

@media (max-width: 768px) {

    body { background-attachment: scroll; }

    .navbar {
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        padding: 0 12px !important;
        background: linear-gradient(
            to bottom,
            rgba(35,25,20,0.92) 0%,
            rgba(35,25,20,0.00) 100%
        ) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        min-height: 56px !important;
    }

    .navbar:has(.nav-links.active) {
        background: rgba(35,25,20,0.97) !important;
    }

    .hamburger {
        display: block !important;
        order: 0;
    }

    .nav-links {
        display: none !important;
        order: 1;
        flex-direction: column !important;
        width: 100% !important;
        padding-bottom: 10px;
    }

    .nav-links.active { display: flex !important; }

    .navbar a,
    .dropbtn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 12px !important;
        font-size: 13px !important;
        white-space: normal !important;
    }

    .dropdown { width: 100% !important; }

    .dropdown-content {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: unset !important;
        background: rgba(35,25,20,0.97) !important;
        border: none !important;
        border-top: 1px solid rgba(141,104,67,.15) !important;
        box-shadow: none !important;
    }

    .dropdown.open .dropdown-content { display: block !important; }

    .dropdown-content a {
        text-align: center !important;
        padding: 12px 14px !important;
        font-size: 12px !important;
    }

    .contentc {
        width: 94%;
        margin: 24px auto;
        padding: 22px 16px;
    }

    .daybreak h1     { font-size: 42px; letter-spacing: 4px; }
    .page-title      { font-size: 26px; letter-spacing: 3px; }
    .subtitle h2     { font-size: 14px; letter-spacing: 1.5px; }
    .section-title   { font-size: 20px; letter-spacing: 2px; }

    .two-columns { flex-direction: column; gap: 24px; }
    .grid        { grid-template-columns: 1fr; }

    .tab       { font-size: 14px; letter-spacing: 1px; padding: 10px 12px; }
    .tab-panel { padding: 18px 14px; }

    .skill-guide,
    .stat-cost-guide,
    .age-guide {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .skill-guide table,
    .stat-cost-guide table,
    .age-guide table { min-width: 460px; }

    .skill-guide th, .skill-guide td,
    .stat-cost-guide th, .stat-cost-guide td,
    .age-guide th, .age-guide td {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .lined-heading { padding: 0 48px; }
    .lined-heading::before,
    .lined-heading::after { width: 38px; }
}

@media (max-width: 380px) {
    .daybreak h1 { font-size: 32px; letter-spacing: 2px; }
    .page-title  { font-size: 20px; letter-spacing: 2px; }
    .tab         { font-size: 12px; padding: 8px; }
    .content     { padding: 16px 12px; }
}
