* { box-sizing: border-box; }

:root {
    color-scheme: dark;
    --site-bg: #0d1010;
    --site-panel: #171c1a;
    --site-panel-2: #202722;
    --site-border: #354138;
    --site-text: #f3f0df;
    --site-muted: #b8b9ad;
    --site-accent: #d7aa48;
    --site-accent-2: #72bd7b;
    --site-danger: #d96767;
    --site-width: 1120px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(114,189,123,.12), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(215,170,72,.10), transparent 30rem),
        var(--site-bg);
    color: var(--site-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}
a { color: #f0c768; }
a:hover { color: #ffe09a; }
img { max-width: 100%; }
button, input { font: inherit; }

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(13,16,16,.94);
    backdrop-filter: blur(14px);
}
.site-nav {
    width: min(var(--site-width), calc(100% - 28px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-brand {
    color: var(--site-text);
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
}
.site-brand span { color: var(--site-accent); }
.site-links {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}
.site-links a {
    border-radius: 8px;
    color: var(--site-muted);
    padding: 7px 10px;
    text-decoration: none;
    font-size: 14px;
}
.site-links a:hover,
.site-links a[aria-current="page"] {
    background: var(--site-panel-2);
    color: #fff;
}
.nav-play,
.primary-cta {
    border: 1px solid #e4bd68 !important;
    background: linear-gradient(180deg, #e1b653, #b77b22) !important;
    color: #161008 !important;
    font-weight: 800;
    text-decoration: none;
}
.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-discord img { width: 19px; height: 19px; }
.mobile-nav-toggle { display: none; }

.site-main {
    width: min(var(--site-width), calc(100% - 28px));
    margin: 0 auto;
}
.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 52px;
    padding: 72px 0 56px;
}
.eyebrow {
    color: var(--site-accent-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 9px 0 18px;
    font-family: Georgia, serif;
    font-size: clamp(45px, 7vw, 78px);
    line-height: .98;
}
.hero h1 span { color: var(--site-accent); }
.hero-copy {
    max-width: 720px;
    color: var(--site-muted);
    font-size: clamp(17px, 2.2vw, 21px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.primary-cta,
.secondary-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px 20px;
}
.secondary-cta {
    border: 1px solid var(--site-border);
    background: var(--site-panel);
    color: #fff;
    text-decoration: none;
}
.hero-board {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
}
.piece-orbit {
    width: min(440px, 90vw);
    aspect-ratio: 1;
    position: relative;
    border: 1px solid rgba(215,170,72,.22);
    border-radius: 50%;
    background: radial-gradient(circle, #202721 0 33%, #121615 34% 57%, transparent 58%);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.piece-orbit img {
    position: absolute;
    width: 112px;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,.5));
}
.piece-orbit .queen { left: 50%; top: 50%; width: 152px; transform: translate(-50%,-50%); }
.piece-orbit .spider { left: 8%; top: 12%; }
.piece-orbit .ant { right: 7%; top: 12%; }
.piece-orbit .beetle { left: 5%; bottom: 10%; }
.piece-orbit .hopper { right: 4%; bottom: 8%; }
.piece-orbit .leaf { left: 50%; bottom: -3%; width: 82px; transform: translateX(-50%); }

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid rgba(255,255,255,.06); }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section h2,
.content-page h1 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: clamp(31px, 5vw, 48px);
    line-height: 1.1;
}
.section-heading p,
.lead { color: var(--site-muted); font-size: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
    border: 1px solid var(--site-border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(32,39,34,.96), rgba(23,28,26,.96));
    padding: 22px;
}
.info-card h3 { margin: 0 0 8px; color: #fff; }
.info-card p { margin: 0; color: var(--site-muted); }
.piece-card { text-align: center; }
.piece-card img { width: 112px; height: 112px; object-fit: contain; }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding-top: 52px; }
.step::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    top: 16px;
    left: 20px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--site-accent);
    color: #171008;
    font-weight: 900;
}
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-chip {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-panel);
    padding: 14px 18px;
}
.stat-chip img { width: 34px; height: 34px; }
.stat-chip strong { display: block; font-size: 24px; line-height: 1; }
.stat-chip span { color: var(--site-muted); font-size: 13px; }
.content-ad {
    min-height: 90px;
    margin: 28px 0;
    overflow: hidden;
    border-radius: 10px;
}
.content-ad[hidden] { display: none; }

.content-page { max-width: 880px; padding: 68px 0 90px; }
.content-page h2 { margin-top: 42px; color: #fff; }
.content-page h3 { margin-top: 28px; }
.content-page p,
.content-page li { color: #d2d2c8; }
.content-page .notice {
    border-left: 4px solid var(--site-accent);
    background: var(--site-panel);
    padding: 14px 18px;
}
.content-page table { width: 100%; border-collapse: collapse; }
.content-page th,
.content-page td { border: 1px solid var(--site-border); padding: 10px; text-align: left; }
.faq details {
    margin: 12px 0;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-panel);
    padding: 14px 17px;
}
.faq summary { cursor: pointer; font-weight: 800; }

.site-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #0a0d0c;
}
.footer-inner {
    width: min(var(--site-width), calc(100% - 28px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding: 36px 0;
}
.footer-inner h3 { margin-top: 0; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: var(--site-muted); text-decoration: none; }
.footer-note { color: #858a83; font-size: 13px; }

@media (max-width: 860px) {
    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        border: 1px solid var(--site-border);
        border-radius: 8px;
        background: var(--site-panel);
        color: #fff;
        padding: 6px 10px;
    }
    .site-links {
        position: absolute;
        top: 64px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--site-border);
        border-radius: 12px;
        background: #121715;
        padding: 10px;
    }
    .site-links.open { display: flex; }
    .hero { grid-template-columns: 1fr; padding-top: 52px; }
    .hero-board { min-height: 380px; }
    .piece-orbit { width: min(370px, 92vw); }
    .card-grid,
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero { min-height: auto; gap: 24px; }
    .hero h1 { font-size: 49px; }
    .hero-board { min-height: 310px; }
    .piece-orbit { width: 300px; }
    .piece-orbit img { width: 78px; }
    .piece-orbit .queen { width: 108px; }
    .piece-orbit .leaf { width: 59px; }
    .card-grid,
    .steps,
    .footer-inner { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
}

.site-language-switch {
    display: inline-flex;
    gap: 0;
    overflow: hidden;
    border: 1px solid #555;
    border-radius: 8px;
    background: #1d1d1d;
}
.site-language-switch button {
    min-width: 46px;
    min-height: 30px;
    padding: 5px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.site-language-switch button + button {
    border-left: 1px solid #555;
}
.site-language-switch button:hover {
    color: #fff;
}
.site-language-switch button.active,
.site-language-switch button.language-active {
    background: var(--site-accent-2);
    color: #07140c;
}
@media (max-width: 860px) {
    .site-language-switch {
        width: max-content;
        margin: 2px 10px 5px;
    }
}
