.site-home {
    --ink: #eff0e8;
    --muted: #bfc7bb;
    --gold: #e7ba49;
    --green: #62a779;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: clip;
    color: var(--ink);
    background: #101713;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html, body { margin: 0; }
[hidden] { display: none !important; }
body.gallery-preview-open { overflow: hidden; }

body.no-scale article.content:has(> .site-home) { padding: 0 !important; }

.site-home *, .site-home *::before, .site-home *::after { box-sizing: border-box; }
.site-home a { color: inherit; text-decoration: none; }
.site-home button { cursor: pointer; }
.site-home a:focus-visible, .site-home button:focus-visible, .site-home input:focus-visible, .site-legal-dialog a:focus-visible { outline: 3px solid #f9d574; outline-offset: 3px; }
.site-home h2, .site-home h3, .site-legal-dialog h2 { letter-spacing: 0; }
.section-inner { width: min(100% - 64px, 1200px); margin: 0 auto; }

.site-nav {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 90px;
    padding: 14px max(32px, calc((100vw - 1200px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,.17);
    background: rgba(9, 18, 15, .66);
    backdrop-filter: blur(12px);
}
.site-nav-brand { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; color: #f5e0a1 !important; white-space: nowrap; }
.site-nav-brand img { width: 54px; height: 54px; object-fit: contain; }
.site-nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.site-nav nav a:hover, .site-footer a:hover { color: var(--gold); }
.nav-play { min-height: 40px; border: 1px solid var(--gold); padding: 8px 16px; background: transparent; color: var(--gold); font-weight: 750; white-space: nowrap; }
.nav-play:hover { background: var(--gold); color: #14170e; }

.site-hero {
    position: relative;
    min-height: min(760px, 84svh);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, #101713, rgba(6,16,11,.57) 55%, rgba(6,16,11,.7)), url('/img/field/background.png') center 38% / cover no-repeat;
}
.site-hero::after, .beta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(231,186,73,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(231,186,73,.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; width: min(100% - 64px, 1200px); margin: 90px auto 54px; text-align: center; }
.hero-logo { display: block; width: min(455px, 45vw); height: auto; margin: 0 auto; animation: hero-logo-float 3s ease-in-out infinite, hero-logo-glow 3s ease-in-out infinite; }
@keyframes hero-logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes hero-logo-glow { 0%, 100% { filter: drop-shadow(0 0 5px rgba(212,175,55,.75)) drop-shadow(0 0 14px rgba(255,215,0,.28)); } 50% { filter: drop-shadow(0 0 9px rgba(255,215,0,.92)) drop-shadow(0 0 25px rgba(255,215,0,.5)); } }
.hero-command { margin: 5px 0 12px; color: var(--gold); font-size: 26px; font-weight: 850; line-height: 1.2; }
.hero-origin { max-width: 650px; margin: 0 auto 10px; color: #f7e9c4; font-size: 17px; font-weight: 600; line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 5px #071009; }
.hero-copy { max-width: 540px; margin: 0 auto; color: #ecede5; font-size: 16px; line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 5px #071009; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.site-button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 22px; border: 1px solid transparent; font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; }
.site-button-primary { background: var(--gold); color: #182016 !important; }
.site-button-primary:hover:not(:disabled) { background: #f5cd64; }
.site-button-primary:disabled { opacity: .55; cursor: wait; }
.site-button-outline { border-color: rgba(238,240,229,.7); background: rgba(7,15,11,.38); color: #f4f4e8 !important; }
.site-button-outline:hover { border-color: var(--gold); color: var(--gold) !important; }
.hero-beta-cta {
    min-height: 62px;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 17px;
    border: 2px solid #fef8ad;
    background: #9cd02e;
    color: #102318 !important;
    text-align: left;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 25%), 0 0 24px rgb(58 140 1);
    transition: background-color .2s, box-shadow .2s, transform .2s;
}
    .hero-beta-cta:hover {
        background: var(--gold);
        box-shadow: 0 0 0 2px rgba(183,248,200,.4), 0 0 30px rgba(61,220,132,.55);
        transform: translateY(-2px);
    }
.hero-beta-cta svg { width: 24px; height: 24px; flex: none; }
.hero-beta-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.hero-beta-text strong { font-size: 15px; line-height: 1.2; }
.hero-beta-text small { color: #175a34; font-size: 11px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.hero-beta-arrow { margin-left: auto; font-size: 20px; }
.hero-scroll { position: absolute; z-index: 1; bottom: 24px; right: max(32px, calc((100vw - 1200px) / 2)); color: #dbe4d6 !important; font-size: 13px; font-weight: 700; }
.hero-scroll span { margin-left: 8px; color: var(--gold); }

.site-section { position: relative; scroll-margin-top: 22px; }
.platforms-section { padding: 40px 0; border-top: 1px solid #455b4a; border-bottom: 1px solid #455b4a; background: #111d1b; }
.platforms-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: center; gap: 36px; }
.platforms-heading .section-label { margin-bottom: 8px; }
.site-section.platforms-section h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.platforms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #476054; }
.platform-option { display: flex; align-items: center; min-width: 0; min-height: 92px; gap: 12px; padding: 15px 16px; border: 0; border-right: 1px solid #476054; background: transparent; color: #edf0e7 !important; font: inherit; text-align: left; }
.platform-option:last-child { border-right: 0; }
.platform-option svg { width: 32px; height: 32px; flex: none; color: var(--gold); }
.platform-option span:not(.platform-arrow) { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.platform-option strong { font-size: 15px; line-height: 1.15; }
.platform-option small { color: #90d5a2; font-size: 12px; font-weight: 800; line-height: 1.2; }
.platform-option-live:hover { background: #25392c; }
.platform-discord svg { color: #a9c3ef; }
.platform-android svg { color: #a6d995; }
.platform-arrow { margin-left: auto; color: var(--gold); font-size: 17px; }
.platform-option-disabled { color: #a7b1a9 !important; cursor: default; }
.platform-option-disabled svg { color: #9aa79d; opacity: .7; }
.platform-option-disabled small { color: #a7b1a9; }
.battle-section { padding: clamp(64px, 8vw, 108px) 0; background: #101713; }
.battle-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.battle-copy { min-width: 0; max-width: 540px; }
.battle-copy h2 { max-width: 540px; }
.battle-copy > p:not(.section-label) { max-width: 500px; }
.battle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.battle-actions .text-link { margin-top: 0; }
.battle-visual { position: relative; width: 100%; max-width: 680px; min-width: 0; margin: 0 0 0 auto; overflow: clip; isolation: isolate; }
.battle-visual img { display: block; width: 100%; height: auto; }
.battle-visual .battle-general { position: absolute; z-index: 1; right: 1%; bottom: 3%; width: min(41%, 260px); height: auto; opacity: 0; transform: translateX(105%); pointer-events: none; }
.battle-visual.is-in-view .battle-general { animation: battle-general-enter .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes battle-general-enter { from { opacity: 0; transform: translateX(105%); } to { opacity: 1; transform: translateX(0); } }
.battle-visual figcaption { padding-top: 12px; border-top: 1px solid #405344; color: #b9cbb6; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.section-label { margin: 0 0 20px; color: var(--green); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.site-section h2 { margin: 0 0 22px; max-width: 650px; color: #fff7db; font-size: clamp(32px, 3.8vw, 55px); line-height: 1.08; font-weight: 850; }
.site-section p:not(.section-label):not(.beta-note) { color: var(--muted); line-height: 1.65; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; margin-top: 16px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--gold) !important; font-weight: 800; }
.text-link:hover { gap: 24px; }
.board-feature { display: block; width: 100%; min-width: 0; padding: 19px; border: 1px solid #718569; background: #1c2a21; text-align: left; transition: border-color .2s, transform .2s; }
.board-feature:hover { border-color: var(--gold); transform: translateY(-3px); }
.board-label, .board-foot { display: flex; justify-content: space-between; align-items: center; color: #dbe5c9; font-size: 12px; font-weight: 850; }
.board-label { padding-bottom: 12px; }
.board-foot { padding-top: 13px; color: var(--gold); }
.showcase-board { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 9 / 8; border: 2px solid #b18d46; background: #334839; }
.showcase-cell { display: flex; align-items: center; justify-content: center; min-width: 0; border: 1px solid rgba(226, 214, 154, .28); background: rgba(226, 214, 154, .03); }
.showcase-cell:nth-child(even) { background: rgba(0,0,0,.11); }
.showcase-cell img { width: 80%; height: 80%; object-fit: contain; }
.showcase-cell.enemy-piece { background: #7b4e39; }
.showcase-cell.player-piece { background: #5b7747; }
.move-marker { width: 19%; aspect-ratio: 1; border-radius: 50%; background: #b5db6a; box-shadow: 0 0 12px #b5db6a; }

.pillars-section { padding: 44px 0 53px; border-top: 1px solid #344637; border-bottom: 1px solid #344637; background: #1a261d; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.pillars-grid > div { min-width: 0; padding: 10px 34px; border-left: 1px solid #405344; }
.pillars-grid > div:first-child { padding-left: 0; border-left: 0; }
.pillar-top { height: 86px; display: flex; align-items: center; margin-bottom: -20px; }
.pillar-icon { display: block; width: 140px; height: 84px; object-fit: contain; object-position: left center; }
.pillars-grid h3 { margin: 12px 0 7px; color: #f2edd7; font-size: 21px; font-weight: 800; }
.pillars-grid p { margin: 0; font-size: 15px !important; }

.gallery-section { padding: 88px 0 96px; border-top: 1px solid #344637; background: #151f1a; }
.gallery-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.gallery-header h2 { margin-bottom: 0; }
.gallery-tabs { display: inline-flex; flex: none; gap: 3px; padding: 4px; border: 1px solid #526653; background: #0c1711; }
.gallery-tabs button { min-width: 88px; min-height: 42px; padding: 8px 14px; border: 0; background: transparent; color: #c5d1bf; font: inherit; font-size: 14px; font-weight: 800; }
.gallery-tabs button:hover { background: #263b2b; color: #fff4d7; }
.gallery-tabs button[aria-pressed="true"] { background: var(--gold); color: #1a2417; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-grid-mobile { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.gallery-shot { min-width: 0; margin: 0; }
.gallery-frame { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #5d755e; border-radius: 6px; background-color: #223027; background-image: linear-gradient(rgba(202,224,176,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(202,224,176,.08) 1px, transparent 1px); background-size: 44px 44px; }
.gallery-grid:not(.gallery-grid-mobile) .gallery-frame { aspect-ratio: 3 / 2; }
.gallery-grid-mobile .gallery-frame { aspect-ratio: 9 / 16; }
.gallery-preview-trigger { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-preview-trigger:focus-visible { outline: 3px solid #f9d574; outline-offset: -3px; }
.gallery-placeholder-logo { width: min(52%, 150px); max-height: 38%; object-fit: contain; opacity: .65; }
.gallery-placeholder-label { position: absolute; bottom: 18px; left: 18px; right: 18px; color: #d6ddc8; font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase; }
.gallery-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; color: #dce5d5; font-size: 14px; }
.gallery-shot figcaption span { color: #8bd59e; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.gallery-shot figcaption strong { text-align: right; }

.gallery-preview { box-sizing: border-box; width: min(96vw, 1500px); height: min(92dvh, 1000px); max-width: none; max-height: none; padding: 18px; border: 1px solid #819879; background: #0b110e; color: #f2f3eb; box-shadow: 0 24px 70px rgba(0,0,0,.75); font-family: 'Segoe UI', Arial, sans-serif; }
.gallery-preview[open] { display: flex; flex-direction: column; }
.gallery-preview::backdrop { background: rgba(0,0,0,.88); }
.gallery-preview-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 12px; }
.gallery-preview-header span, .gallery-preview-count { color: #a7cbb0; font-size: 12px; font-weight: 800; }
.gallery-preview-header h2 { margin: 4px 0 0; color: #fff1cc; font-size: 21px; line-height: 1.2; }
.gallery-preview-close, .gallery-preview-nav { flex: none; display: grid; place-items: center; padding: 0; border: 1px solid #617767; background: #19251d; color: #f2f3eb; cursor: pointer; }
.gallery-preview-close:hover, .gallery-preview-nav:hover { border-color: #e7ba49; color: #ffe18a; }
.gallery-preview-close:focus-visible, .gallery-preview-nav:focus-visible { outline: 3px solid #f9d574; outline-offset: 3px; }
.gallery-preview-close { width: 42px; height: 42px; font-size: 29px; line-height: 1; }
.gallery-preview-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; flex: 1; min-height: 0; }
.gallery-preview-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-preview-nav { width: 44px; height: 64px; font-size: 36px; line-height: 1; }
.gallery-preview-count { display: block; padding-top: 10px; text-align: center; }

@media (max-width: 600px) {
    .gallery-preview { width: calc(100vw - 16px); height: fit-content; max-height: calc(100dvh - 24px); padding: 12px; }
    .gallery-preview-stage { position: relative; display: block; flex: none; }
    .gallery-preview-stage img { width: 100%; height: auto; max-height: calc(100dvh - 150px); }
    .gallery-preview-nav { position: absolute; top: 50%; z-index: 1; width: 38px; height: 50px; transform: translateY(-50%); background: rgba(25,37,29,.85); }
    #gallery-preview-previous { left: 0; }
    #gallery-preview-next { right: 0; }
}

.discord-section { padding: 83px 0; border-top: 1px solid #3b5348; border-bottom: 1px solid #3b5348; background-color: #1a2925; background-image: linear-gradient(rgba(167,203,185,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(167,203,185,.07) 1px, transparent 1px); background-size: 68px 68px; }
.discord-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.discord-heading { display: flex; align-items: center; gap: 20px; }
.discord-logo { width: 56px; height: 56px; flex: 0 0 56px; color: #9fb7dd; }
.discord-layout h2 { margin-bottom: 0; }
.discord-details > p { max-width: 500px; margin: 0; }
.discord-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.discord-activity { background: #9fb7dd; color: #12222c !important; }
.discord-activity:hover { background: #bfd0eb; }
.discord-pending { border-color: #607569; color: #c1cabe; cursor: default; }

.beta-section { padding: 100px 0 150px; overflow: clip; background: #222f25; }
.beta-section::before { opacity: .4; mask-image: linear-gradient(270deg, #000, transparent 70%); }
.beta-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(0px,0vw, 120px); }
.beta-copy { position: relative; }
.beta-copy h2, .beta-copy p { position: relative; z-index: 1; max-width: 520px; }
.beta-platform { display: inline-flex; align-items: center; gap: 10px; }
.beta-platform svg { width: 23px; height: 23px; flex: none; color: #3ddc84; }
.beta-note { position: relative; z-index: 1; color: #b9d4ba; font-size: 13px; }
.beta-character {
    position: absolute;
    z-index: 2;
    right: -77px;
    width: 278px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,.5));
    opacity: 0;
    transform: translateX(90px);
}
.beta-section.is-in-view .beta-character, .beta-section.is-in-view .beta-face { animation: beta-recruit-enter .85s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes beta-recruit-enter { from { opacity: 0; transform: translateX(var(--beta-enter-distance, 90px)); } to { opacity: 1; transform: translateX(0); } }
.beta-form-wrap { position: relative; min-width: 0; padding: 30px 155px 30px 30px; border: 1px solid #657965; background: rgba(8,18,12,.88); }
.beta-face { display: none; --beta-enter-distance: 16px; opacity: 0; transform: translateX(16px); }
.beta-form-heading { display: flex; align-items: center; gap: 9px; color: #b3dcae; font-size: 12px; font-weight: 850; }
.beta-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #82d68b; box-shadow: 0 0 11px #82d68b; }
.beta-form-wrap h3 { margin: 14px 0 24px; color: #fff4d7; font-size: 26px; font-weight: 800; }
.beta-form-wrap form { display: flex; flex-direction: column; gap: 12px; }
.beta-form-wrap form > label:first-child { color: #e7eddc; font-size: 13px; font-weight: 750; }
.beta-form-wrap input[type=email] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #839586; border-radius: 0; outline: 0; background: #152119; color: white; font-size: 16px; }
.beta-form-wrap input[type=email]:focus { border-color: var(--gold); }
.beta-consent { display: flex; align-items: flex-start; gap: 10px; margin: 7px 0; color: #d0d8cc; font-size: 13px; line-height: 1.5; }
.beta-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #d9b953; flex: none; }
.beta-consent a, .site-legal-dialog a { color: #f2cb69 !important; text-decoration: underline; }
.beta-feedback { margin: 0; color: #f1b5a8 !important; font-size: 14px !important; }
.beta-feedback.success { color: #b7edb9 !important; }
.beta-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legacy-section { padding: 92px 0; background: #131b16; }
.legacy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.legacy-layout p { margin-top: 0; }
.site-footer { border-top: 1px solid #344637; padding: 29px 0; background: #0a120d; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; font-size: 12px; font-weight: 750; }
.footer-inner > span { color: var(--gold); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 19px; color: #c7d0c0; }
.android-credit { width: min(100% - 64px, 1200px); margin: 16px auto 0; color: #9da99c; font-size: 11px; line-height: 1.45; }

.site-modal-backdrop { position: fixed; z-index: 20000; inset: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 18px; background: rgba(0,0,0,.78); }
.site-legal-dialog { width: min(100%, 510px); max-height: calc(100svh - 36px); overflow-y: auto; padding: 28px; border: 1px solid #a79856; background: #142019; color: #e9eee1; box-shadow: 0 20px 50px #0009; }
.site-legal-dialog h2 { margin: 0 0 13px; color: #fff0c3; font-size: 26px; }
.site-legal-dialog p { line-height: 1.6; }
.site-legal-dialog label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.site-legal-dialog label input { margin-top: 4px; accent-color: #e7ba49; }
.site-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.site-legal-dialog button:focus-visible { outline: 3px solid #ffe083; outline-offset: 3px; }
.site-legal-dialog .site-button-primary { transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.site-legal-dialog .site-button-primary:not(:disabled) { background: #ffe083; border-color: #fff1b5; color: #172017 !important; box-shadow: 0 0 0 2px rgba(255, 224, 131, .2), 0 0 22px rgba(255, 207, 78, .55); }
.site-legal-dialog .site-button-primary:hover:not(:disabled) { background: #fff0b5; box-shadow: 0 0 0 2px rgba(255, 224, 131, .3), 0 0 28px rgba(255, 207, 78, .75); transform: translateY(-2px); }
.site-legal-dialog #legal-confirm:disabled { background: #68726b; color: #edf1ec !important; border-color: #859086; opacity: 1; cursor: not-allowed; }

@media (max-width: 1000px) {
    .platforms-layout { grid-template-columns: 1fr; gap: 20px; }
    .beta-layout { grid-template-columns: 1fr; gap: 36px; }
    .beta-character { right: -12px; }
}

@media (max-width: 800px) {
    .site-nav { min-height: 75px; padding: 10px 24px; }
    .site-nav nav { gap: 14px; }
    .site-nav nav a { display: none; }
    .site-hero { min-height: min(760px, 86svh); }
    .hero-inner { margin-top: 84px; }
    .battle-layout, .beta-layout, .legacy-layout, .discord-layout { grid-template-columns: 1fr; gap: 40px; }
    .battle-visual { margin: 0 auto; }
    .gallery-header { align-items: flex-start; flex-direction: column; gap: 22px; }
    .beta-character { right: -12px; }
}

@media (max-width: 600px) {
    .section-inner, .hero-inner { width: min(100% - 36px, 460px); }
    .site-nav { padding: 8px 18px; min-height: 66px; }
    .site-nav-brand { font-size: 11px; }
    .site-nav-brand img { width: 41px; height: 41px; }
    .nav-play { font-size: 12px; padding: 6px 9px; }
    .site-hero { min-height: min(690px, 88svh); background-position: center, center, 55% center; }
    .hero-inner { margin: 98px auto 64px; }
    .hero-logo { width: min(74vw, 320px); }
    .hero-command { font-size: 19px; }
    .hero-origin { max-width: 365px; font-size: 13px; line-height: 1.4; }
    .hero-copy { font-size: 15px; max-width: 365px; }
    .hero-actions { gap: 9px; }
    .hero-actions .site-button { flex: 1 1 100%; }
    .hero-scroll { right: 18px; bottom: 19px; }
    .platforms-section { padding: 36px 0 42px; }
    .site-section.platforms-section h2 { font-size: 28px; }
    .platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .platform-option { min-height: 82px; gap: 9px; padding: 12px; }
    .platform-option:nth-child(2) { border-right: 0; }
    .platform-option:nth-child(-n + 2) { border-bottom: 1px solid #476054; }
    .platform-option svg { width: 27px; height: 27px; }
    .platform-option strong { font-size: 14px; }
    .platform-option small { font-size: 11px; }
    .platform-arrow { display: none; }
    .battle-section, .beta-section, .legacy-section, .discord-section, .gallery-section { padding: 65px 0; }
    .gallery-header { margin-bottom: 22px; }
    .gallery-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .gallery-tabs button { min-width: 0; }
    .gallery-grid, .gallery-grid-mobile { display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
    .gallery-shot { flex: 0 0 min(82vw, 320px); scroll-snap-align: start; }
    .gallery-grid-mobile .gallery-shot { flex-basis: min(64vw, 245px); }
    .battle-layout { gap: 30px; }
    .battle-visual { width: calc(100% + 24px); max-width: none; margin: 0 -12px; }
    .battle-visual .battle-general { right: 0; bottom: 2%; width: 34%; }
    .battle-actions { gap: 18px; margin-top: 24px; }
    .discord-layout { gap: 12px; }
    .discord-logo { width: 42px; height: 42px; flex-basis: 42px; }
    .discord-actions .site-button { width: 100%; }
    .site-section h2 { font-size: 32px; }
    .site-section p:not(.section-label):not(.beta-note) { font-size: 15px; }
    .pillars-section { padding: 15px 0; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillars-grid > div, .pillars-grid > div:first-child { padding: 21px 0; border-left: 0; border-bottom: 1px solid #405344; }
    .pillar-top { height: 72px; }
    .pillar-icon { width: 120px; height: 70px; }
    .pillars-grid > div:last-child { border-bottom: 0; }
    .beta-section { padding-bottom: 65px; }
    .beta-form-wrap { padding: 22px; }
    .beta-form-top { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: start; gap: 10px; }
    .beta-face { position: relative; display: block; width: 88px; height: 88px; overflow: hidden; border: 2px solid #a5a36d; border-radius: 50%; background: #354333; box-shadow: 0 0 0 4px rgba(181,188,139,.16), 0 10px 20px rgba(0,0,0,.45); }
    .beta-face img { position: absolute; display: block; width: 125px; max-width: none; height: auto; left: 50%; top: -13px; transform: translateX(-50%); }
    .beta-character { display: none; }
    .android-credit { width: min(100% - 36px, 460px); }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .site-dialog-actions { flex-direction: column-reverse; }
}

@media (max-width: 600px) and (max-height: 650px) {
    .site-hero { min-height: 88svh; }
    .hero-inner { margin: 70px auto 26px; }
    .hero-logo { width: min(59vw, 215px); }
    .hero-command { margin: 0 0 5px; font-size: 17px; }
    .hero-origin { margin-bottom: 5px; font-size: 12px; line-height: 1.3; }
    .hero-copy { font-size: 12px; line-height: 1.3; }
    .hero-actions { margin-top: 11px; gap: 6px; }
    .hero-actions .site-button { min-height: 40px; padding: 8px 12px; font-size: 13px; }
    .hero-actions .hero-beta-cta { min-height: 52px; padding: 6px 12px; }
    .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .battle-visual .battle-general { opacity: 1; transform: none; }
    .battle-visual.is-in-view .battle-general { animation: none; }
    .beta-character, .beta-face { opacity: 1; transform: none; }
    .beta-section.is-in-view .beta-character, .beta-section.is-in-view .beta-face { animation: none; }
    .board-feature, .text-link { transition: none; }
    .hero-logo { animation: none; filter: drop-shadow(0 0 10px rgba(212,175,55,.5)); }
    .hero-beta-cta { transition: none; }
    .hero-beta-cta:hover { transform: none; }
}
