/* Happy Nook website. Light theme only, in the game's palette: cream #fff8e6, warm brown #58371e, leaf green #6dbb3f.
   Be Vietnam Pro (SIL OFL 1.1, static/fonts/OFL.txt) is self-hosted. No inline styles anywhere (strict CSP). */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/be-vietnam-pro-vietnamese-400-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/be-vietnam-pro-latin-ext-400-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/be-vietnam-pro-latin-400-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/be-vietnam-pro-vietnamese-600-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/be-vietnam-pro-latin-ext-600-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/be-vietnam-pro-latin-600-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/be-vietnam-pro-vietnamese-700-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/be-vietnam-pro-latin-ext-700-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/be-vietnam-pro-latin-700-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/be-vietnam-pro-vietnamese-800-normal.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: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/be-vietnam-pro-latin-ext-800-normal.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/be-vietnam-pro-latin-800-normal.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; }

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #fff8e6; --bg-top: #fffdf5; --bg-alt: #fcefd2; --surface: #fffefb; --surface-soft: #fbf3e1;
  --line: #f0dfbb; --line-2: #dcc293; --input: #fbf2de;
  --ink: #3b230e;          /* headings */
  --text: #58371e;         /* warm brown, 9.6:1 on cream */
  --body: #6b4a2e;         /* 7.4:1 */
  --muted: #7a5636;        /* 6.2:1 */
  --dim: #846443;          /* 5.2:1 */
  --primary: #6dbb3f; --primary-dark: #4c8f26; --primary-text: #3a7419; --primary-soft: #e6f4d8;
  --primary-grad: linear-gradient(180deg, #5aa82e 0%, #3f7f1c 100%);
  --cta-grad: linear-gradient(180deg, #ffc23d 0%, #ff9d1c 100%); --cta-ink: #4a2300;
  --red: #c2410c; --red-soft: #fde4d6; --gold-soft: #fff1cc;
  --shadow: 0 10px 28px -14px rgba(88, 55, 30, .38); --shadow-lg: 0 24px 60px -24px rgba(88, 55, 30, .5);
  --radius: 24px; --radius-sm: 16px; --wrap: 1120px; --gutter: 24px; --header-h: 64px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* bilingual: html[data-lang] shows one language */
html[data-lang="vi"] [lang="en"], html[data-lang="en"] [lang="vi"] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.01em; margin: 0; font-weight: 800; color: var(--ink); }
p { margin: 0; }
b, strong { color: var(--ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); background: var(--primary-soft); padding: 4px 12px; border-radius: 999px; }
.muted { color: var(--body); }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.center { justify-content: center; }
.mt { margin-top: 28px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; text-decoration: none; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 245, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow); flex: none; }
.brand span { white-space: nowrap; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); margin-top: -2px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--primary-text); text-decoration: none; }
.lang { display: inline-flex; background: var(--input); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang a:hover { text-decoration: none; color: var(--ink); }
html[data-lang="vi"] .lang a[data-set-lang="vi"], html[data-lang="en"] .lang a[data-set-lang="en"] { background: var(--text); color: var(--bg); box-shadow: 0 4px 10px -4px rgba(88, 55, 30, .6); }

/* ------------------------------------------------------------------ buttons (pills) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--primary-text); font-weight: 700; font-size: 15px; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; background: var(--primary-soft); }
.btn.primary { background: var(--cta-grad); border-color: transparent; color: var(--cta-ink); box-shadow: 0 10px 24px -10px rgba(255, 157, 28, .75); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.danger { background: linear-gradient(180deg, #d9531c 0%, #b23a0a 100%); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { display: flex; width: 100%; overflow-wrap: anywhere; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--ink); border: 1px solid var(--ink);
  color: #fff; font-weight: 700; font-size: 17px; line-height: 1.1; box-shadow: var(--shadow); }
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; color: #f0dcc0; }
.store.soon { background: var(--surface); border-color: var(--line-2); color: var(--muted); box-shadow: none; cursor: default; }
.store.soon small { color: var(--dim); }
.store.soon:hover { transform: none; }
.store.soon svg { filter: grayscale(1); opacity: .7; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ hero: warm gradient with soft blobs, the logo on a disc */
.hero { position: relative; overflow: hidden; padding: 76px 0 72px; background: linear-gradient(180deg, var(--bg-top) 0%, #fbeccb 100%); }
.hero::before { content: ''; position: absolute; inset: -18% -8% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(109, 187, 63, .26), rgba(109, 187, 63, 0) 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto auto -30% -12%; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(255, 194, 61, .24), rgba(255, 194, 61, 0) 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: 16px 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--primary-text); }
.hero .lead { font-size: 18px; color: var(--body); max-width: 540px; margin-bottom: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 24px; font-weight: 800; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.stats > div > span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-art .stage { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fff6e2 55%, #f7e3b8 100%); box-shadow: var(--shadow-lg); }
.hero-art .mascot { position: absolute; left: 50%; top: 50%; width: 80%; transform: translate(-50%, -52%); filter: drop-shadow(0 18px 26px rgba(88, 55, 30, .28)); }
.hero-art .icon { position: absolute; left: 2%; top: 6%; width: 22%; border-radius: 24%; box-shadow: var(--shadow-lg); transform: rotate(-8deg); }
.hero-art .chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.hero-art .chip img { width: 38px; height: 38px; object-fit: contain; }
.hero-art .chip small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.hero-art .chip.a { left: 0; bottom: 12%; }
.hero-art .chip.b { right: 0; top: 6%; }

/* ------------------------------------------------------------------ sections */
section { padding: 84px 0; }
.alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0; text-wrap: balance; }
.head p { color: var(--body); }
/* "How to play": cards with a picture, a tag and a short text */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.game { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; min-width: 0; margin: 0; }
.game:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.game > div { min-width: 0; }
.game img { width: 72px; height: 72px; object-fit: contain; flex: none; border-radius: 20px; background: var(--surface-soft); padding: 8px; }
.game h3 { font-size: 17px; margin-bottom: 4px; }
.game .tag { display: inline-block; font-size: 12px; color: var(--primary-text); background: var(--primary-soft); border-radius: 999px; padding: 1px 10px; font-weight: 700; margin-bottom: 8px; }
.game p:last-child { font-size: 14px; color: var(--body); line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
/* icon tiles: warm gradients, white glyphs */
.feature .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, #7fc94e, #3f8a1e); box-shadow: 0 8px 18px -10px rgba(63, 138, 30, .8); }
.feature:nth-child(2) .ico { background: linear-gradient(135deg, #ffb347, #f07a1a); box-shadow: 0 8px 18px -10px rgba(240, 122, 26, .8); }
.feature:nth-child(3) .ico { background: linear-gradient(135deg, #ff7a7a, #e0433f); box-shadow: 0 8px 18px -10px rgba(224, 67, 63, .8); }
.feature:nth-child(4) .ico { background: linear-gradient(135deg, #4fc3d9, #1f8fb0); box-shadow: 0 8px 18px -10px rgba(31, 143, 176, .8); }
.feature:nth-child(5) .ico { background: linear-gradient(135deg, #b98ae8, #8a55c9); box-shadow: 0 8px 18px -10px rgba(138, 85, 201, .8); }
.feature:nth-child(6) .ico { background: linear-gradient(135deg, #c99059, #8a5a2c); box-shadow: 0 8px 18px -10px rgba(138, 90, 44, .8); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--body); font-size: 15px; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; }
.shot { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shot img { width: 100%; border-radius: 28px; border: 4px solid var(--surface); background: var(--surface); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > *, .hero .wrap > * { min-width: 0; }
.split .art { width: 100%; max-width: 300px; justify-self: center; border-radius: 34px; border: 8px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-lg); transform: rotate(-3deg); }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 14px; text-wrap: balance; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.checks li::before { content: '✓'; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: linear-gradient(180deg, #7fc94e, #4c8f26); color: #fff; font-size: 13px; font-weight: 800; line-height: 24px; text-align: center; }
.checks li b { color: var(--ink); }
/* studio */
.studio-card { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.studio-card img { width: 140px; }
.studio-card h2 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 10px; }
.studio-card p { color: var(--body); max-width: 620px; }
.studio-card .row { margin-top: 18px; }
/* support panel */
.contact { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 32px;
  background: linear-gradient(135deg, #7a4a24 0%, #4e2f17 100%); box-shadow: var(--shadow-lg); }
.contact::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 248, 230, .1); pointer-events: none; }
.contact > * { position: relative; }
.contact > div:first-child { max-width: 560px; }
.contact .eyebrow { background: rgba(255, 248, 230, .18); color: #fff; }
.contact h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 10px; color: #fff; }
.contact .muted { color: #f6e6c6; }
.contact .links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 248, 230, .5); }
.contact .btn:not(.primary):hover { background: rgba(255, 248, 230, .12); }
.contact :focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------------ footer */
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: 560px; }
footer nav a { color: var(--muted); font-weight: 600; }
footer nav a:hover, footer nav a[aria-current="page"] { color: var(--primary-text); }
footer .studio { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
footer .studio img { width: 34px; grid-row: span 4; }
footer .studio b { color: var(--ink); font-size: 14px; }

/* ------------------------------------------------------------------ documents (privacy / terms / delete / support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc.wide .wrap { max-width: 1000px; }
.publisher { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.publisher img { width: 26px; height: auto; }
.publisher b { color: var(--ink); }
.doc h1 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 8px; }
.doc .meta { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
.doc .lead { font-size: 17px; color: var(--body); margin-bottom: 20px; }
.doc article h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--body); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); background: var(--surface-soft); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.doc .table { overflow-x: auto; }
.doc td { overflow-wrap: anywhere; }
.toc { padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 20px 0 8px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--primary-text); }
.note { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #f5d98f; color: #5a3500; font-size: 15px; margin: 16px 0 0; }
.note a { color: #5a3500; text-decoration: underline; }

/* delete account */
.steps { display: grid; gap: 16px; margin-top: 24px; }
.steps > * { min-width: 0; }
.card a, .note a, .doc td a { overflow-wrap: anywhere; }
.card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 20px; }
.signin { display: grid; gap: 14px; margin-top: 18px; }
.signin .social { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-height: 44px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 14px; background: var(--input); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; }
.input:focus { outline: none; border-color: var(--primary-dark); background: var(--surface); box-shadow: 0 0 0 3px rgba(76, 143, 38, .22); }
.msg { font-size: 14px; min-height: 20px; color: var(--muted); }
.msg:empty { display: none; }
.msg.err { color: #b3261e; } .msg.ok { color: var(--primary-text); }
.account { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-grad); color: #fff; font-weight: 800; font-size: 22px; flex: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0 0; font-size: 14px; }
.facts dt { color: var(--dim); } .facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-soft); color: var(--muted); }
.badge.warn { background: var(--gold-soft); color: #7a4300; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.two h3 { font-size: 15px; margin: 0 0 6px; }
.two ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--body); }
.two + p { margin-top: 16px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(36, 21, 10, .5); backdrop-filter: blur(4px); }
.dialog { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px -24px rgba(36, 21, 10, .5); }
.dialog .warn-ico { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.dialog h2 { font-size: 22px; margin: 0 0 8px; border: 0; padding: 0; }
.dialog ul { margin: 12px 0; padding-left: 20px; color: var(--body); font-size: 15px; }
.dialog .check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; cursor: pointer; }
.dialog .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary-dark); }
.dialog .actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* support */
.support-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.contact-card { position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card img { width: 64px; margin-bottom: 8px; }
.contact-card h2 { margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; margin: 18px 0 6px; }
.contact-card ul { padding-left: 18px; margin: 0; }
.contact-card .addr { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.faq h2 { font-size: 22px; margin: 0 0 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--ink); position: relative; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 3px solid var(--primary-dark); border-bottom: 3px solid var(--primary-dark); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 20px 16px; }

/* 404 */
.notfound { text-align: center; padding: 64px 0 96px; }
.notfound img { width: min(300px, 70%); margin: 0 auto 20px; }
.notfound h1 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 10px; text-wrap: balance; }
.notfound .lead { color: var(--body); max-width: 520px; margin: 0 auto 28px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .games, .features { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 58px; }
  .nav { gap: 12px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 44px 0 56px; }
  section { padding: 60px 0; }
  .games, .features, .two { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .contact, .studio-card { padding: 28px; }
  .contact .links, .contact .links .btn { width: 100%; }
  .contact .links .btn { overflow-wrap: anywhere; padding: 10px 16px; }
  .studio-card { grid-template-columns: 1fr; gap: 16px; }
  .studio-card img { width: 110px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stats > div { padding: 10px 12px; }
  .stats b { font-size: 20px; }
  .hero-art .chip { font-size: 12px; padding: 6px 12px 6px 6px; }
  .hero-art .chip img { width: 30px; height: 30px; }
  .split .art { max-width: 240px; }
  .doc { padding: 40px 0 64px; }
}
@media (max-width: 380px) {
  .brand small { display: none; }
  .brand { font-size: 16px; }
  .lang a { padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game, .store { transition: none; }
}
@media print {
  .top, footer, .skip, .lang, .stores { display: none !important; }
}
