/* Rottz Games public site, v3 layout (dark only).
   Visual design credit: agaelebe. Written for this project; shared by every public page via
   templates/site/layout.html. Page-specific sections are grouped further down. */

/* ---------- Fonts (self-hosted, SIL OFL: see /font/site/OFL-*.txt) ---------- */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/font/site/lexend-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/font/site/lexend-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/font/site/lexend-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/font/site/montserrat-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/font/site/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/font/site/montserrat-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/font/site/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/font/site/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Design tokens ---------- */
:root
{
    color-scheme: dark;

    --bg: #0a1020;
    --bg-grid: rgba(120, 160, 255, 0.055);
    --surface: #101a2e;
    --surface-2: #15213a;
    --surface-3: #1c2a48;
    --line: #22304e;
    --line-strong: #31436c;

    --ink: #eef2fb;
    --muted: #a5b1ca;
    --faint: #75829e;

    --brand: #3f9cff;
    --brand-strong: #6bb4ff;
    --brand-soft: rgba(63, 156, 255, 0.14);
    --brand-ink: #04101f;
    --live: #ff4f6d;
    --soon: #d8a630;

    --radius-s: 10px;
    --radius: 16px;
    --radius-l: 26px;
    --shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.75);

    --font-display: 'Lexend', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --wrap: 74rem;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body
{
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
        radial-gradient(60rem 40rem at 85% -10%, rgba(63, 156, 255, 0.16), transparent 70%);
    background-size: 48px 48px, 48px 48px, auto;
    color: var(--ink);
    font: 400 1rem/1.6 var(--font-body);
    overflow-x: hidden;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3
{
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1, .display
{
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 0.98;
}

h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-weight: 600; font-size: 1.1rem; }

p { margin: 0 0 1em; }

:focus-visible
{
    outline: 3px solid var(--brand-strong);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap
{
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.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;
}

.skip
{
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-s);
    background: var(--brand);
    color: var(--brand-ink);
    font-weight: 700;
    text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared components ---------- */
.eyebrow
{
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 1rem;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font: 600 0.72rem/1 var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 38rem; }

.btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 0.92rem/1 var(--font-display);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ink); color: var(--brand-ink); }
.btn-primary:hover { background: #fff; color: var(--brand-ink); }

.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-strong); color: var(--brand-ink); }

.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }

.badge
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font: 700 0.68rem/1 var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-live { background: rgba(255, 79, 109, 0.16); color: #ff8a9f; border: 1px solid rgba(255, 79, 109, 0.45); }
.badge-live::before
{
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(255, 79, 109, 0.6);
    animation: pulse 2s infinite;
}
.badge-soon { background: rgba(216, 166, 48, 0.16); color: #f1c862; border: 1px solid rgba(216, 166, 48, 0.45); }

@keyframes pulse
{
    0% { box-shadow: 0 0 0 0 rgba(255, 79, 109, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(255, 79, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 79, 109, 0); }
}

.panel
{
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
}

.section-head
{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.section-head h2 { margin: 0; text-transform: uppercase; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Header ---------- */
.site-header
{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 16, 32, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand
{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font: 800 1.05rem/1 var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand:hover { color: var(--ink); }

.nav-cta { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer
{
    margin-top: 4rem;
    border-top: 1px solid var(--line);
    background: rgba(8, 13, 26, 0.7);
    color: var(--muted);
    font-size: 0.88rem;
}

.foot
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    padding-block: 26px;
}

.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 9px; }
.foot-brand a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-brand a:hover { color: var(--brand-strong); }

.foot-note { margin: 0; flex: 1 1 16rem; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--brand-strong); text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound
{
    max-width: 40rem;
    margin: clamp(3rem, 10vw, 7rem) auto 0;
    padding: clamp(28px, 5vw, 48px);
    text-align: center;
}
.notfound .code
{
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brand);
    font: 800 clamp(4rem, 14vw, 7rem)/1 var(--font-display);
}
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.notfound p { color: var(--muted); }

/* ---------- Home: hero ---------- */
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }

.hero
{
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    padding-block: clamp(40px, 8vw, 96px) clamp(32px, 6vw, 72px);
}

.hero h1 { margin-bottom: 0.35em; }
.hero-amp { color: var(--brand); }
.hero-mark
{
    display: inline-block;
    margin-top: 0.12em;
    padding: 0.04em 0.22em 0.08em;
    background: var(--brand);
    color: var(--brand-ink);
    border-radius: 0.14em;
    transform: rotate(-2deg);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero .lede { margin-bottom: 1.8rem; }

/* The board: a framed grid with real game icons scattered on it. */
.hero-board
{
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-l);
    background:
        linear-gradient(rgba(120, 160, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, 0.09) 1px, transparent 1px),
        radial-gradient(circle at 50% 40%, rgba(63, 156, 255, 0.18), transparent 70%),
        var(--surface);
    background-size: 12.5% 12.5%, 12.5% 12.5%, auto, auto;
    box-shadow: var(--shadow);
}

.hero-tile
{
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: auto;
    border-radius: 22%;
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.8);
    transform: rotate(var(--r));
    animation: drift 7s ease-in-out infinite;
    animation-delay: var(--d);
}

.hero-tile-1 { --x: 6%;  --y: 7%;  --s: 31%; --r: -9deg; --d: 0s; }
.hero-tile-2 { --x: 55%; --y: 4%;  --s: 33%; --r: 7deg;  --d: -1.5s; }
.hero-tile-3 { --x: 36%; --y: 41%; --s: 27%; --r: -4deg; --d: -3s; }
.hero-tile-4 { --x: 5%;  --y: 55%; --s: 22%; --r: 8deg;  --d: -4.5s; }
.hero-tile-5 { --x: 72%; --y: 46%; --s: 22%; --r: 12deg; --d: -2s; }
.hero-tile-6 { --x: 38%; --y: 15%; --s: 16%; --r: 14deg; --d: -5.5s; }
.hero-tile-7 { --x: 80%; --y: 24%; --s: 14%; --r: -16deg; --d: -0.8s; }
.hero-tile-8 { --x: 22%; --y: 81%; --s: 13%; --r: -7deg; --d: -3.7s; }
.hero-tile-9 { --x: 62%; --y: 80%; --s: 13%; --r: 9deg;  --d: -6.2s; }

@keyframes drift
{
    0%, 100% { transform: rotate(var(--r)) translateY(0); }
    50% { transform: rotate(calc(var(--r) * -0.4)) translateY(-8px); }
}

/* ---------- Home: game grid ---------- */
.games-section { padding-top: 1rem; }

.game-grid
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 14px;
}

.game-card { min-width: 0; }

.game-link
{
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.game-link:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }

.game-icon
{
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.8);
}

.game-body { display: grid; gap: 4px; min-width: 0; }
.game-name { font: 700 1rem/1.25 var(--font-display); }
.game-tag
{
    color: var(--brand-strong);
    font: 600 0.72rem/1.3 var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.game-desc
{
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-badge { justify-self: start; margin-bottom: 2px; }

/* Featured first card: big icon, two columns and two rows wide on large screens. */
@media (min-width: 900px)
{
    .game-card-feature { grid-column: span 2; grid-row: span 2; }
    .game-card-feature .game-link
    {
        flex-direction: column;
        justify-content: flex-end;
        padding: 26px;
        background:
            radial-gradient(circle at 25% 20%, rgba(63, 156, 255, 0.22), transparent 60%),
            linear-gradient(180deg, var(--surface-2), var(--surface));
    }
    .game-card-feature .game-icon { width: 152px; height: 152px; border-radius: 34px; margin-bottom: auto; }
    .game-card-feature .game-name { font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; font-weight: 800; }
    .game-card-feature .game-desc { font-size: 0.98rem; -webkit-line-clamp: 4; }
}

/* ---------- Home: about ---------- */
.about { padding-top: 3.5rem; }

.about-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.about-text p { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

.contact-card { padding: 22px 24px; border-radius: var(--radius); }
.contact-card h3 { margin-bottom: 0.6em; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-card p { margin-bottom: 0.5em; color: var(--muted); }
.contact-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px)
{
    .hero { grid-template-columns: 1fr; }
    .hero-board { max-width: 420px; }
    .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Game page ---------- */
.game-hero
{
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

/* The game's own icon, blown up and blurred, as a coloured glow behind the header. */
.game-hero-backdrop
{
    position: absolute;
    inset: -20%;
    pointer-events: none;
    opacity: 0.38;
    filter: blur(70px) saturate(1.3);
}
.game-hero-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-backdrop::after
{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 32, 0.2), var(--bg) 92%);
}

.game-hero-inner { position: relative; padding-block: 28px clamp(36px, 6vw, 64px); }

.crumb
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(20px, 4vw, 36px);
    color: var(--muted);
    font: 600 0.88rem/1 var(--font-display);
    text-decoration: none;
}
.crumb:hover { color: var(--ink); }

.game-head
{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
}

.game-head-icon
{
    width: clamp(120px, 20vw, 220px);
    height: auto;
    border-radius: 24%;
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}

.game-head-text h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 0.3em; }

.game-head-tag
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--brand-strong);
    font: 600 0.8rem/1.3 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-head-desc { color: var(--ink); opacity: 0.9; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 40rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.store-btn
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 20px 8px 16px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--brand-ink);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); background: #fff; color: var(--brand-ink); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span:not(.sr-only) { display: grid; font: 700 1.05rem/1.1 var(--font-display); }
.store-btn small { font: 500 0.66rem/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }

.store-note { margin-top: 1.25rem; color: #f1c862; font-weight: 600; }

.legal-links { padding-top: clamp(28px, 5vw, 48px); }

.legal-panels
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.legal-panel { padding: 22px; border-radius: var(--radius); }
.legal-panel h3
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.legal-panel h3 svg { width: 22px; height: 22px; color: var(--brand); flex: none; }

.lang-grid
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 8px;
}
.lang-grid a
{
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.88rem;
    text-decoration: none;
}
.lang-grid a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }

.lang-code
{
    flex: none;
    min-width: 2.6em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--muted);
    font: 600 0.68rem/1.4 var(--font-display);
    text-align: center;
}

.nolegal { color: var(--muted); }

@media (max-width: 860px)
{
    .legal-panels { grid-template-columns: 1fr; }
}

@media (max-width: 560px)
{
    .game-head { grid-template-columns: 1fr; }
    .game-head-icon { width: 120px; }
}

/* ---------- Legal documents (privacy / terms) ---------- */
.legal-doc { padding-top: 28px; }

.crumbs
{
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font: 600 0.85rem/1.4 var(--font-display);
}
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.doc-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.doc-title img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.doc-title h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.6rem); }
.doc-game
{
    margin: 0 0 4px;
    color: var(--brand-strong);
    font: 600 0.9rem/1.3 var(--font-display);
}

.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.doc-meta div
{
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.8rem;
}
.doc-meta dt { color: var(--muted); }
.doc-meta dd { margin: 0; font-weight: 700; }

.doc-tools
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.doc-switch
{
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
}
.doc-switch a
{
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--muted);
    font: 600 0.85rem/1.2 var(--font-display);
    text-decoration: none;
}
.doc-switch a:hover { color: var(--ink); }
.doc-switch a[aria-current] { background: var(--brand); color: var(--brand-ink); }

.lang-menu { position: relative; }
.lang-menu summary
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    font: 600 0.85rem/1 var(--font-display);
    text-transform: uppercase;
    list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::before { content: "🌐"; text-transform: none; }
.lang-menu summary::after { content: "▾"; color: var(--muted); }
.lang-menu ul
{
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: min(22rem, 90vw);
    max-height: 60vh;
    overflow: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}
.lang-menu a
{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.86rem;
    text-decoration: none;
}
.lang-menu a:hover { background: var(--brand-soft); }
.lang-menu a[aria-current] { background: var(--brand-soft); outline: 1px solid var(--brand); }

.fallback
{
    margin: 24px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(216, 166, 48, 0.5);
    border-radius: var(--radius-s);
    background: rgba(216, 166, 48, 0.1);
    color: #f1d58a;
    font-size: 0.92rem;
}

.doc-layout
{
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    padding-top: 32px;
}

.toc[hidden] { display: none; }
.toc-desk { position: sticky; top: calc(var(--header-h) + 20px); }
.toc-title
{
    margin: 0 0 10px;
    color: var(--muted);
    font: 700 0.72rem/1 var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc-list a
{
    display: flex;
    gap: 10px;
    padding: 6px 10px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.35;
    text-decoration: none;
}
.toc-list a::before { content: attr(data-num); color: var(--faint); font: 600 0.72rem/1.6 var(--font-display); }
.toc-list a:hover { color: var(--ink); }
.toc-list a[aria-current] { border-left-color: var(--brand); color: var(--ink); background: var(--brand-soft); }

.toc-mobile { display: none; }
.toc-mobile summary
{
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: var(--surface);
    cursor: pointer;
    font: 600 0.9rem/1 var(--font-display);
}
.toc-mobile .toc-list { margin-top: 8px; }

.doc-text { max-width: 46rem; min-width: 0; }
.doc-section { padding-bottom: 8px; }
.doc-section:not(:has(h2)) { display: none; }
.doc-section + .doc-section { border-top: 1px solid var(--line); padding-top: 24px; }
.doc-text h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 0.6em; }
.doc-text p, .doc-text li { color: #d4dbea; line-height: 1.75; overflow-wrap: anywhere; }
.doc-text ul { padding-left: 1.3rem; }
.doc-text li { margin-bottom: 0.4em; }
.doc-text strong { color: var(--ink); }

@media (max-width: 900px)
{
    .doc-layout { grid-template-columns: 1fr; }
    .toc-desk { display: none; }
    .toc-mobile { display: block; }
}

/* ---------- Delete my data ---------- */
.delete-page
{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    padding-top: clamp(36px, 7vw, 80px);
}

.delete-intro h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

.explain
{
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: explain;
}
.explain li
{
    position: relative;
    padding: 18px 20px 18px 64px;
    border-radius: var(--radius);
    counter-increment: explain;
}
.explain li::before
{
    content: counter(explain);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--brand);
    color: var(--brand-ink);
    font: 800 0.95rem/1 var(--font-display);
}
.explain h2 { font-size: 1.05rem; margin-bottom: 0.3em; }
.explain p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.delete-card
{
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: clamp(22px, 4vw, 32px);
    border-color: var(--line-strong);
}
.delete-card h2 { text-transform: uppercase; font-weight: 800; }
.delete-scope { color: var(--muted); }

.steps
{
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.steps li
{
    padding-top: 10px;
    border-top: 4px solid var(--line-strong);
    color: var(--faint);
    font: 600 0.78rem/1.3 var(--font-display);
}
.steps li.done { border-top-color: var(--brand); color: var(--muted); }
.steps li.active { border-top-color: var(--brand); color: var(--ink); }

.msg
{
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: var(--radius-s);
    border-left: 4px solid;
    font-size: 0.92rem;
}
.msg-error { background: rgba(255, 79, 109, 0.12); border-color: var(--live); color: #ffb3c0; }
.msg-info { background: var(--brand-soft); border-color: var(--brand); color: #cfe4ff; }
.msg-done { background: rgba(52, 199, 120, 0.12); border-color: #34c778; color: #b9f2d2; font-weight: 700; }

.delete-form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 0.88rem/1.2 var(--font-display); }
.field input
{
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--ink);
    font: 500 1rem/1.3 var(--font-body);
}
.field input:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 1px; border-color: var(--brand); }
.hint { margin: 0; color: var(--muted); font-size: 0.82rem; }

.btn-block { width: 100%; min-height: 50px; font-size: 0.98rem; }
.btn-danger { background: var(--live); color: #fff; }
.btn-danger:hover { background: #ff6e86; color: #fff; }

@media (max-width: 860px)
{
    .delete-page { grid-template-columns: 1fr; }
    .delete-card { position: static; }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px)
{
    .brand span { font-size: 0.95rem; }
    .brand img { width: 34px; height: 34px; }
    .nav-cta { padding: 0 12px; font-size: 0.8rem; }
    .foot { flex-direction: column; align-items: flex-start; }
    .foot-note { flex: none; }
}

@media (prefers-reduced-motion: reduce)
{
    *, *::before, *::after
    {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
