/* AXO Games
   One stylesheet for every page. Fonts are self-hosted (assets/fonts) so no
   request goes to Google when someone opens the site */

@font-face {
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('assets/fonts/cinzel-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/dmsans-latin.woff2') format('woff2');
}

:root {
    --bg: #151513;
    --bg-alt: #1a1917;
    --surface: #201f1c;
    --surface-2: #282622;
    --line: rgba(214, 196, 160, .13);
    --line-strong: rgba(214, 196, 160, .26);
    --text: #ece6da;
    --muted: #aba395;
    --faint: #7e776b;
    --accent: #c76b8a;
    --accent-hover: #d6829f;
    --accent-text: #e3a2b7;
    --accent-soft: rgba(199, 107, 138, .12);
    --gold: #c4a57a;
    --teal: #8bbcc1;
    --online: #7fc79a;
    --serif: 'Cinzel', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --max: 1140px;
    --radius: 6px;
    --ease: cubic-bezier(.2, .7, .25, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: .01em; line-height: 1.15; }
h3 { font-family: var(--sans); font-size: 18px; line-height: 1.35; letter-spacing: -.005em; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
::selection { background: rgba(199, 107, 138, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 3px; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
main { overflow-x: clip; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(21, 21, 19, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { background: rgba(18, 18, 16, .98); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.nav { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.brand {
    display: flex; align-items: center; gap: 11px; margin-right: auto;
    font: 600 14px var(--serif); letter-spacing: .14em; color: var(--text);
}
.brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line-strong); }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; color: #c4bcae; }
.nav-links a { position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.mobile-toggle {
    display: none; padding: 8px 12px; color: var(--text); background: none;
    border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 13px;
}

/* Buttons and links */
.button, .nav-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 5px;
    font-size: 14px; font-weight: 600; line-height: 1.2;
    cursor: pointer; white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.button.primary, .nav-cta { background: var(--accent); color: #fff; border-color: rgba(255, 255, 255, .1); }
.button.primary:hover, .nav-cta:hover { background: var(--accent-hover); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--accent); background: var(--accent-soft); }
.button:active, .nav-cta:active { transform: translateY(1px); }
.nav-cta { min-height: 40px; padding: 0 16px; font-size: 13px; }
.discord-icon { width: 17px; height: 17px; fill: currentColor; flex: none; }
.text-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent-text); font-size: 14px; font-weight: 600;
    transition: color .2s ease, gap .2s ease;
}
.text-link:hover { color: #f0c3d1; gap: 9px; }

/* Small labels */
.kicker {
    color: var(--gold); font-size: 12px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
}
.small-note { color: var(--muted); font-size: 14px; }

/* Home hero */
.hero {
    display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
    padding: 84px 0 88px;
}
.hero-eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(42px, 5.6vw, 68px); line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-copy { max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions.flush { margin-top: 0; }

/* Server address bar with live status */
.server-bar {
    display: inline-flex; align-items: stretch; max-width: 100%; margin-top: 30px;
    border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface);
    font-size: 14px; overflow: hidden;
}
.server-bar > * { display: flex; align-items: center; padding: 10px 14px; }
.server-bar .server-address { gap: 8px; font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.server-bar .server-address small { color: var(--faint); font-weight: 400; }
.server-bar button {
    border: 0; background: none; color: var(--accent-text); font-weight: 600; cursor: pointer;
    transition: background .2s ease;
}
.server-bar button:hover { background: var(--accent-soft); }
.server-status { gap: 8px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.server-status[data-state="online"] .status-dot { background: var(--online); box-shadow: 0 0 0 3px rgba(127, 199, 154, .18); }
.server-status[data-state="offline"] .status-dot { background: #c76b6b; }
.server-status[data-state="online"] strong { color: var(--text); }

/* Hero slideshow */
.hero-showcase { position: relative; min-width: 0; }
.showcase-frame {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.showcase-slides, .showcase-slide { position: absolute; inset: 0; margin: 0; }
.showcase-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.showcase-slide.is-active { opacity: 1; visibility: visible; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.showcase-slide.is-active img { transform: scale(1); }
.showcase-shade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 13, 12, .85));
}
.showcase-slide figcaption {
    position: absolute; z-index: 2; left: 24px; right: 120px; bottom: 22px;
    display: grid; gap: 2px; color: #f3ede2;
}
.showcase-slide figcaption strong { font: 600 20px/1.3 var(--sans); }
.showcase-slide figcaption span { color: #cfc6b8; font-size: 14px; }
.showcase-controls { position: absolute; z-index: 3; right: 18px; bottom: 22px; display: flex; align-items: center; gap: 10px; }
.showcase-arrow {
    width: 32px; height: 32px; display: grid; place-items: center; padding: 0 0 2px;
    border: 1px solid rgba(236, 230, 218, .35); border-radius: 50%;
    background: rgba(20, 19, 17, .55); color: #f0e8d8; font-size: 20px; line-height: 1; cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.showcase-arrow:hover { background: var(--accent); border-color: var(--accent); }
.showcase-dots { display: flex; gap: 6px; }
.showcase-dot {
    width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px;
    background: rgba(240, 232, 216, .45); cursor: pointer; transition: width .3s ease, background .3s ease;
}
.showcase-dot.is-active { width: 20px; background: var(--accent-text); }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg-alt); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-inner > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts-inner > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font: 600 26px/1.2 var(--serif); color: var(--text); }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt + .section { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-head h2 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { max-width: 430px; margin: 0; color: var(--muted); }

/* Grids and cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .info-panel, .price-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.card { display: flex; flex-direction: column; overflow: hidden; transition: border-color .25s ease, transform .3s var(--ease); }
.card:hover { border-color: var(--line-strong); }
a.card:hover, .card.is-link:hover { transform: translateY(-3px); border-color: rgba(199, 107, 138, .45); }
.card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-image .img-placeholder { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 24px 24px; }
.card-body h3 { margin: 6px 0 8px; font-size: 20px; }
.card-body p { flex: 1; color: var(--muted); font-size: 15px; }
.card-body .kicker { font-size: 11px; }
.card-body .button, .card-body .text-link { margin-top: 8px; }
.badge {
    display: inline-block; padding: 3px 8px; border-radius: 3px;
    background: rgba(127, 199, 154, .12); color: var(--online);
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.badge.muted { background: rgba(214, 196, 160, .08); color: var(--muted); }

/* Placeholder image box. Swap for a real <img> when you have one */
.img-placeholder, .coming-soon-visual {
    display: grid; place-items: center; text-align: center; padding: 18px;
    background:
        repeating-linear-gradient(135deg, rgba(214, 196, 160, .035) 0 10px, transparent 10px 20px),
        var(--surface-2);
    color: var(--faint); font-size: 13px; letter-spacing: .04em;
}
.img-placeholder { aspect-ratio: 16 / 9; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.img-placeholder.tall { aspect-ratio: 4 / 5; }
.coming-soon-visual span { display: none; }
/* Pictures added from the staff editor in place of a placeholder */
.swap-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.swap-photo.tall { aspect-ratio: 4 / 5; }

.info-panel { padding: 26px; }
.info-panel h3 { margin-bottom: 10px; }
.info-panel p { color: var(--muted); font-size: 15px; }
.info-line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.info-line:first-of-type { border-top: 0; }
.info-line span { color: var(--muted); }
.info-line strong { font-weight: 600; text-align: right; }
.copy-btn {
    margin-top: 12px; padding: 0; border: 0; background: none;
    color: var(--accent-text); font-weight: 600; font-size: 14px; cursor: pointer;
}
.copy-btn:hover { color: #f0c3d1; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col.center { align-items: center; }
.copy-block h2 { margin: 8px 0 18px; font-size: clamp(28px, 3.4vw, 38px); }
.copy-block p { color: var(--muted); }
.copy-block .text-link { margin-top: 6px; }

/* Socials */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.social-link {
    display: flex; flex-direction: column; gap: 2px; padding: 20px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s ease, background .2s ease;
}
.social-link strong { font-size: 16px; font-weight: 600; }
.social-link span { color: var(--muted); font-size: 14px; }
.social-link:hover { border-color: rgba(199, 107, 138, .45); background: var(--surface-2); }
.social-link:hover strong { color: var(--accent-text); }

.creator-note {
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    margin-top: 20px; padding: 24px 26px;
    border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
    background: var(--surface);
}
.creator-note h3 { margin-bottom: 6px; }
.creator-note p { color: var(--muted); font-size: 14px; max-width: 700px; }

/* Store feature */
.shop-feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.shop-feature-copy h2 { margin: 8px 0 16px; font-size: clamp(28px, 3.4vw, 38px); }
.shop-feature-copy p { color: var(--muted); max-width: 480px; }
.shop-feature-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.shop-feature-points li {
    padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 3px;
    color: #d5cab9; font-size: 13px;
}
.shop-feature-image {
    position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.shop-feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shop-feature-image:hover img { transform: scale(1.04); }

/* Callout */
.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 36px 40px; margin-top: 8px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.callout h2 { margin: 0 0 6px; font-size: clamp(24px, 2.8vw, 30px); }
.callout p { margin: 0; color: var(--muted); max-width: 620px; }
.callout .kicker { margin-bottom: 6px; }
.callout-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

/* Inner page hero */
.page-hero { padding: 72px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 12px 0 14px; font-size: clamp(36px, 5vw, 54px); }
.page-hero p { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; }
.breadcrumb { margin-bottom: 20px; color: var(--faint); font-size: 13px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Big image banner */
.game-feature {
    position: relative; display: flex; align-items: end; min-height: 380px; padding: 40px;
    overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.game-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 13, 12, .92), rgba(14, 13, 12, .1) 70%); }
.game-feature-content { position: relative; z-index: 1; max-width: 620px; }
.game-feature h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.game-feature p { margin: 0; color: #d5ccbe; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure {
    grid-column: span 2; margin: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.gallery figure.wide { grid-column: span 3; }
.gallery img { width: 100%; height: 220px; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure.wide img { height: 280px; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .img-placeholder { height: 220px; aspect-ratio: auto; border: 0; border-radius: 0; }
.two-col.spaced { margin-top: 48px; }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; }

/* Join steps */
.join-steps { margin: 4px 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.join-steps li { padding: 4px 0; }
.join-steps li::marker { color: var(--gold); font-weight: 600; }
.join-steps strong { color: var(--text); font-weight: 600; }

/* Accordions: update log and FAQ */
.update-list, .faq-list { display: grid; gap: 10px; }
.update-card, .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.update-card[open], .faq-item[open] { border-color: var(--line-strong); }
.update-card summary, .faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 18px 22px; list-style: none; cursor: pointer;
}
.update-card summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.update-card summary::after, .faq-item summary::after {
    content: '+'; flex: none; width: 18px; text-align: center;
    color: var(--accent-text); font-size: 20px; line-height: 1;
}
.update-card[open] summary::after, .faq-item[open] summary::after { content: '\2212'; }
.update-card summary > span { flex: 1; }
.update-card summary b { display: block; font-size: 16px; font-weight: 600; }
.update-card summary small { display: block; margin-top: 2px; color: var(--faint); font-size: 13px; }
.update-age { color: var(--teal); font-size: 13px; white-space: nowrap; }
.update-body, .faq-body { padding: 4px 22px 20px; color: var(--muted); font-size: 15px; }
.update-body ul { margin: 6px 0 0; padding-left: 18px; }
.update-body li { padding: 3px 0; }
.faq-item summary { font-weight: 600; font-size: 16px; }
.faq-body p { margin: 0 0 10px; }

/* Timeline */
.timeline { margin: 18px 0 0 5px; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -29px; top: 8px; width: 9px; height: 9px;
    background: var(--accent); border: 2px solid var(--surface); border-radius: 50%;
}
.timeline-item strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; }
.timeline-item span { display: block; color: var(--muted); font-size: 14px; }

/* Store */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { padding: 22px; }
.price-card.featured { border-color: rgba(199, 107, 138, .55); }
.coin-amount { margin: 0 0 4px; font: 600 24px var(--serif); }
.coin-price { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.price-card .button { width: 100%; }
.catalogue-empty {
    padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
    color: var(--muted); font-size: 14px;
}
.tebex-store-section { padding-top: 56px; }
.tebex-store-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.tebex-store-toolbar h2 { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); }
.tebex-store-filters { display: flex; gap: 10px; width: min(100%, 460px); }
.tebex-input {
    width: 50%; min-width: 0; min-height: 44px; padding: 0 12px;
    color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px;
    font: inherit; font-size: 14px;
}
.tebex-input:focus { outline: none; border-color: var(--accent); }
.tebex-input option { color: var(--text); background: var(--surface); }
.tebex-products { margin-top: 16px; }
.tebex-product-card { display: flex; flex-direction: column; min-height: 250px; padding: 0; overflow: hidden; }
.tebex-product-image { width: 100%; height: 160px; object-fit: contain; padding: 16px; background: var(--surface-2); }
.tebex-product-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; }
.tebex-product-name { margin: 0 0 8px; font-size: 18px; }
.tebex-product-description { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tebex-product-price { margin-bottom: 14px; color: var(--text); font-size: 16px; font-weight: 600; }
.tebex-product-content .button { width: 100%; margin-top: auto; }
.tebex-error { color: #f0b3bd; border-color: rgba(220, 110, 130, .45); background: rgba(220, 110, 130, .06); }
.store-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.store-steps li {
    list-style: none; counter-increment: step; padding: 22px 24px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--muted); font-size: 15px;
}
.store-steps li::before {
    content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px;
    color: var(--gold); font: 600 15px var(--serif);
}
.store-steps strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; font-weight: 600; }
.store-steps { margin: 0; padding: 0; }

/* Forms (feedback page, staff panel) */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { color: var(--text); font-size: 14px; font-weight: 600; }
.field-label small, .field-hint { color: var(--faint); font-weight: 400; font-size: 13px; }
.field-hint { justify-self: end; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea, .field select {
    width: 100%; padding: 11px 13px; color: var(--text); font: inherit; font-size: 15px;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 99px;
    color: var(--muted); font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.chip span:hover { color: var(--text); border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 28px; line-height: 1; color: #4a4640; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-form .button { width: 100%; margin-top: 4px; }
.feedback-form .button:disabled { opacity: .7; cursor: default; }
.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1.4em; }
.form-status[data-kind="ok"] { color: var(--online); }
.form-status[data-kind="error"] { color: #f0b3bd; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* "Edit this page" button, only shown to logged in staff */
.staff-edit {
    position: fixed; z-index: 45; left: 24px; bottom: 24px;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--accent); color: #fff; border-radius: 99px; font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4); transition: background .2s ease, transform .2s var(--ease);
}
.staff-edit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.nav-staff { color: var(--faint); font-size: 13px; font-weight: 500; transition: color .2s ease; }
.nav-staff:hover { color: var(--text); }
@media (max-width: 860px) { .nav-staff { display: none; } .nav-links .nav-staff-mobile { display: block; } }
.nav-links .nav-staff-mobile { display: none; color: var(--faint); }

/* Legal and rules pages */
.legal-notice {
    margin: 24px 0; padding: 15px 18px; font-size: 14px;
    border: 1px solid rgba(196, 165, 122, .4); border-radius: var(--radius);
    background: rgba(196, 165, 122, .07); color: #e2cfae;
}
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 52px 0 88px; }
.legal-nav {
    position: sticky; top: 96px; align-self: start; padding: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.legal-nav strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.legal-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--text); }
.legal-content { max-width: 760px; }
.legal-content h2 { margin: 36px 0 10px; font: 600 22px/1.3 var(--sans); }
.legal-content h3 { margin: 24px 0 8px; font-size: 17px; }
.legal-content p, .legal-content li { color: #c6beb0; font-size: 15px; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .updated { color: var(--faint); font-size: 13px; }
.placeholder { color: #e8c27a; font-weight: 600; }

/* Footer */
.site-footer { padding: 56px 0 28px; background: #10100e; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 36px; }
.footer-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; margin-bottom: 14px; border: 1px solid var(--line-strong); }
.footer-brand p { max-width: 260px; }
.footer-brand a { color: var(--accent-text); font-weight: 600; }
.footer-col strong { display: block; margin-bottom: 12px; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; margin: 7px 0; transition: color .2s ease; }
.footer-col a:hover, .footer-brand a:hover { color: var(--text); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px;
}

/* Back to top */
.back-to-top {
    position: fixed; z-index: 40; right: 24px; bottom: 24px; width: 44px; height: 44px;
    display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(32, 31, 28, .95); color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s var(--ease), border-color .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--accent); }

/* Scroll animations (set up in motion.js). Content stays visible if JS is off */
.motion-ready [data-reveal] {
    transition: opacity .8s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease);
}
.motion-ready [data-reveal]:not(.is-visible) { opacity: 0; }
.motion-ready [data-reveal="up"]:not(.is-visible) { transform: translateY(32px); }
.motion-ready [data-reveal="left"]:not(.is-visible) { transform: translateX(-48px); }
.motion-ready [data-reveal="right"]:not(.is-visible) { transform: translateX(48px); }
.motion-ready [data-reveal="zoom"]:not(.is-visible) { transform: scale(.94); }
.motion-ready [data-reveal="clip"] { opacity: 1 !important; clip-path: inset(0 0 0 0); }
.motion-ready [data-reveal="clip"]:not(.is-visible) { clip-path: inset(0 0 100% 0); }
.motion-ready [data-reveal="clip"] img { transition: transform 1.6s var(--ease); }
.motion-ready [data-reveal="clip"]:not(.is-visible) img { transform: scale(1.15); }

/* Home hero plays a short intro on load */
@keyframes intro-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes intro-frame { from { opacity: 0; transform: scale(.95) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes intro-header { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .site-header { animation: intro-header .6s var(--ease) both; }
    .hero > div:first-child > * { animation: intro-up .8s var(--ease) both; }
    .hero > div:first-child > :nth-child(1) { animation-delay: .1s; }
    .hero > div:first-child > :nth-child(2) { animation-delay: .2s; }
    .hero > div:first-child > :nth-child(3) { animation-delay: .32s; }
    .hero > div:first-child > :nth-child(4) { animation-delay: .44s; }
    .hero > div:first-child > :nth-child(5) { animation-delay: .56s; }
    .hero-showcase { animation: intro-frame 1.1s var(--ease) .25s both; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
    .motion-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
    .footer-top { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .socials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav { gap: 14px; }
    .nav-links {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 4px; padding: 14px 24px 20px;
        background: #171715; border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 0; font-size: 16px; }
    .nav-links a::after { display: none; }
    .nav-links a.active { color: var(--accent-text); }
    .mobile-toggle { display: block; }
    .nav-cta { display: none; }

    .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
    .facts-inner { grid-template-columns: repeat(2, 1fr); }
    .facts-inner > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .facts-inner > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .grid, .price-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .shop-feature { grid-template-columns: 1fr; gap: 32px; }
    .section-head { display: block; }
    .section-head p { margin-top: 12px; }
    .callout { flex-direction: column; align-items: flex-start; padding: 28px; }
    .store-steps { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; gap: 28px; }
    .legal-nav { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
    .legal-nav strong { grid-column: 1 / -1; }
    .tebex-store-toolbar { flex-direction: column; align-items: stretch; }
    .tebex-store-filters { width: 100%; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    body { font-size: 15px; }
    .section { padding: 64px 0; }
    .hero h1 { font-size: clamp(36px, 11vw, 48px); }
    .hero-copy, .page-hero p { font-size: 16px; }
    .server-bar { display: grid; grid-template-columns: 1fr auto; width: 100%; }
    .server-bar .server-status { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .server-bar .server-address { border-left: 0; }
    .showcase-slide figcaption { right: 24px; bottom: 64px; }
    .showcase-controls { left: 24px; right: auto; bottom: 20px; }
    .facts strong { font-size: 21px; }
    .facts-inner > div { padding: 20px 14px; }
    .grid, .grid.two, .price-grid, .socials { grid-template-columns: 1fr; }
    .creator-note { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery figure, .gallery figure.wide { grid-column: auto; }
    .gallery img, .gallery figure.wide img { height: 220px; }
    .game-feature { min-height: 300px; padding: 24px; }
    .callout { padding: 24px; }
    .callout-actions, .callout-actions .button, .callout > .button { width: 100%; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .legal-nav { grid-template-columns: 1fr 1fr; }
    .update-card summary { flex-wrap: wrap; padding: 16px; }
    .update-age { order: 3; width: 100%; }
    .update-body, .faq-body { padding: 4px 16px 18px; }
    .back-to-top { right: 16px; bottom: 16px; }
}
