/* Cheeky Burrow site — ADR-006 "Nightlight" on the web (ADR-022): deep plum soil, bold ink outlines, rooms that glow
   amber, cream paper for reading. Structure from Point & Purr's site.css (header, switcher, consent, legal pages). */
/* Subsets made by tools/site/fonts.sh: a page downloads only the faces whose unicode-range it uses. Fredoka has no
   Cyrillic: Ukrainian, Polish and Turkish headings use Nunito (rounded, OFL). No third-party font requests. */
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url('/media/fonts/fredoka-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-weight: 600 900; font-display: swap; src: url('/media/fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-weight: 600 900; font-display: swap; src: url('/media/fonts/nunito-ext.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0259, U+0300-0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+1E00-1E9F, U+1EF2-1EFF, U+2116, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* src/ui/tokens.ts PALETTE */
  --ink: #1F1622; --night: #2A1F2E; --dusk: #3B2E40; --soil: #594350; --soil-shade: #463441;
  --cream: #FFF4E4; --cream2: #F6E6CF; --paper: #FFFBF3;
  --amber: #FFB64A; --honey: #FFD45C; --ember: #D2672A; --ember-dark: #A84E1E; --leaf: #7CC266; --moss: #4E8A44;
  --text: #2A1F2E; --text-soft: #5E4F5E; --on-dark: #FFF1DC; --on-dark-soft: #E2D2C4;
  /* names the /admin dashboard uses */
  --ink-soft: #5E4F5E; --terra: #D2672A; --terra-dark: #A84E1E;
  --radius: 22px; --shadow: 0 6px 0 rgba(31, 22, 34, 0.14);
  --max: 1120px; --gutter: 16px;
  /* height of the sticky header (site.js keeps it exact); in-page anchors land just below it */
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
section[id] { scroll-margin-top: calc(var(--header-h) - 24px); }
body {
  margin: 0; font-family: Nunito, ui-rounded, 'Segoe UI', system-ui, sans-serif; font-weight: 600; color: var(--text);
  background: var(--cream); line-height: 1.55; overflow-x: hidden; overflow-wrap: break-word;
}
h1, h2, h3, .btn .big, .logo span, footer .brand span, .tagline { font-family: Fredoka, Nunito, ui-rounded, system-ui, sans-serif; font-weight: 700; }
:lang(uk) h1, :lang(uk) h2, :lang(uk) h3, :lang(uk) .btn .big, :lang(uk) .tagline,
:lang(pl) h1, :lang(pl) h2, :lang(pl) h3, :lang(pl) .btn .big, :lang(pl) .tagline,
:lang(tr) h1, :lang(tr) h2, :lang(tr) h3, :lang(tr) .btn .big, :lang(tr) .tagline { font-family: Nunito, ui-rounded, system-ui, sans-serif; font-weight: 900; }
/* CJK: the system's fonts — no multi-megabyte webfonts */
body:lang(ja), :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .btn .big, :lang(ja) .tagline { font-family: Nunito, 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', system-ui, sans-serif; }
body:lang(ko), :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) .btn .big, :lang(ko) .tagline { font-family: Nunito, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; }
body:lang(zh), :lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .btn .big, :lang(zh) .tagline { font-family: Nunito, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2, :lang(zh) h1, :lang(zh) h2 { line-height: 1.3; }
body:lang(ko) { word-break: keep-all; }
h1, h2, h3, .btn, summary { hyphens: auto; -webkit-hyphens: auto; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--ember-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-soft); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* buttons: sticker look — ink outline and a hard ink shadow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 22px;
  font: inherit; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.terra { background: var(--amber); color: #2A1A12; }
.btn.ink, .btn.soon { background: var(--ink); color: #fff; border-color: #000; box-shadow: 0 4px 0 #000; }
.btn.soon { cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; box-shadow: 0 4px 0 #000; }
.btn.soon .sub { color: var(--honey); opacity: 1; }
.btn .sub { display: block; font-size: 12px; font-weight: 700; opacity: 0.9; line-height: 1; }
.btn .big { display: block; font-size: 19px; line-height: 1.1; }
.btn svg { width: 26px; height: 26px; flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.dark .btn.soon, .hero .btn.soon, .cta .btn.soon { border-color: var(--on-dark); box-shadow: 0 4px 0 rgba(255, 241, 220, 0.35); }

/* header: dark glass like the game's HUD */
.top { position: sticky; top: 0; z-index: 20; background: rgba(31, 22, 34, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 210, 138, 0.25); color: var(--on-dark); }
.top .wrap { position: relative; display: flex; align-items: center; gap: 16px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-size: 22px; white-space: nowrap; }
.logo img { width: 44px; height: 44px; }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { color: var(--on-dark); text-decoration: none; padding: 8px 12px; border-radius: 12px; font-size: 16px; }
.top nav a:hover, .top nav a.on { background: rgba(255, 241, 220, 0.12); }
.top .btn { min-height: 42px; font-size: 15px; padding: 6px 14px; box-shadow: 0 3px 0 #000; border-color: #000; }
@media (max-width: 900px) {
  :root { --header-h: 102px; }
  .top .wrap { flex-wrap: wrap; height: auto; column-gap: 12px; row-gap: 0; padding-top: 6px; }
  .top .logo { min-height: 48px; }
  .top .lang-menu { margin-left: auto; }
  .top nav { order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { flex: none; white-space: nowrap; font-size: 14px; padding: 6px 12px; border: 1.5px solid rgba(255, 241, 220, 0.3); border-radius: 999px; min-height: 34px; }
}
@media (max-width: 520px) {
  .logo span { display: none; }
  .top .btn { min-height: 40px; font-size: 14px; padding: 5px 12px; white-space: nowrap; }
  .top .lang-menu summary { min-height: 40px; padding: 4px 8px; font-size: 14px; }
}

/* language switcher (a <details> menu) */
.lang-menu { flex: none; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 10px; border: 2px solid rgba(255, 241, 220, 0.5); border-radius: 14px; cursor: pointer; font-weight: 800; font-size: 15px; user-select: none; color: var(--on-dark); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 20px; height: 20px; }
.lang-menu[open] summary { background: rgba(255, 241, 220, 0.12); }
.lang-menu ul { position: absolute; right: var(--gutter); top: calc(100% - 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; width: min(220px, calc(100vw - 2 * var(--gutter))); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 16px; }
.lang-menu li a:hover, .lang-menu li a:focus-visible { background: var(--cream2); }
.lang-menu li a[aria-current] { background: var(--honey); }

/* hero: night sky over a meadow line, glowing burrow below */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; color: var(--on-dark);
  background: radial-gradient(60% 50% at 78% 62%, rgba(255, 182, 74, 0.28), transparent 70%), linear-gradient(180deg, #33263A 0%, var(--night) 46%, var(--soil-shade) 100%); }
.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 100%; opacity: 0.5; pointer-events: none;
  background: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 32% 8%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 58% 14%, #FFD45C 50%, transparent 51%), radial-gradient(1.5px 1.5px at 86% 10%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 28%, #fff 50%, transparent 51%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.tagline { color: var(--amber); font-size: 19px; margin-bottom: 8px; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); color: #fff; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; color: var(--on-dark-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.pills li { border: 1.5px solid rgba(255, 210, 138, 0.45); background: rgba(255, 241, 220, 0.08); border-radius: 999px; padding: 5px 13px; font-size: 15px; color: var(--on-dark); }
.hero-art { display: flex; justify-content: center; }
.device { position: relative; padding: 9px; background: #000; border-radius: 40px; box-shadow: 0 0 0 3px rgba(255, 210, 138, 0.35), 0 28px 60px rgba(0, 0, 0, 0.45); width: min(330px, 100%); }
.device img, .device video { width: 100%; height: auto; aspect-ratio: 480 / 1040; object-fit: cover; border-radius: 31px; background: var(--soil); }
@media (max-width: 820px) {
  .hero { padding: 30px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 26px; }
  .pills, .hero .stores { justify-content: center; }
  .device { width: min(250px, 70vw); border-radius: 34px; padding: 8px; }
  .device img, .device video { border-radius: 27px; }
}

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--cream2); }
section.dark { background: var(--night); color: var(--on-dark); }
section.dark .sec-head p { color: var(--on-dark-soft); }
.sec-head { text-align: center; margin: 0 auto 34px; max-width: 760px; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.sec-head p { font-size: 18px; color: var(--text-soft); margin: 0; }

/* trailer + screenshots */
.trailer { max-width: 960px; margin: 0 auto; border: 3px solid #000; border-radius: 24px; overflow: hidden; background: var(--soil); box-shadow: 0 0 0 3px rgba(255, 210, 138, 0.3), 0 20px 50px rgba(0, 0, 0, 0.4); }
.trailer img, .trailer video { width: 100%; height: auto; aspect-ratio: 1100 / 507; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px auto 0; max-width: 960px; padding: 0; }
.shots figure { margin: 0; padding: 6px; background: #000; border-radius: 26px; box-shadow: 0 0 0 2px rgba(255, 210, 138, 0.25); }
.shots img { width: 100%; height: auto; border-radius: 20px; background: var(--soil); }
.shots figure:nth-child(odd) { transform: rotate(-1.5deg); }
.shots figure:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
@media (max-width: 760px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 28px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 18px; scrollbar-width: thin; }
  .shots figure { flex: 0 0 min(46vw, 200px); scroll-snap-align: center; transform: none !important; }
}

/* feature rows: picture + text, alternating */
.feature-rows { display: grid; gap: 64px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.row.flip .art { order: 2; }
.row .art img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 0 rgba(31, 22, 34, 0.18); background: var(--soil); }
.row h2 { font-size: clamp(26px, 3.4vw, 38px); }
.row .txt > p { font-size: 18px; color: var(--text-soft); }
@media (max-width: 820px) {
  .feature-rows { gap: 44px; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row.flip .art { order: 0; }
}
.modes { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.modes li { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 0 rgba(31, 22, 34, 0.14); }
.modes h3 { font-size: 19px; margin: 0 0 2px; }
.modes p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* cards (friends, made with care) */
.cards { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }
.cards li { background: var(--paper); border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cards .ic { width: 52px; height: 52px; margin-bottom: 10px; }
.cards h3 { font-size: 21px; margin-bottom: 4px; }
.cards p { margin: 0; color: var(--text-soft); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 16px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--ember-dark); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--text-soft); }

/* final call to action: a lit room in the dark */
.cta { text-align: center; color: var(--on-dark); background: radial-gradient(50% 80% at 50% 100%, rgba(255, 182, 74, 0.35), transparent 70%), var(--night); }
.cta h2 { font-size: clamp(28px, 4.6vw, 44px); color: #fff; }
.cta p { color: var(--on-dark-soft); font-size: 18px; }
.cta .stores { justify-content: center; margin-top: 20px; }

/* friend invite + 404 */
.invite, .not-found { text-align: center; }
.invite .code { display: inline-block; margin: 8px 0 22px; padding: 10px 22px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: clamp(28px, 7vw, 44px); font-weight: 800; letter-spacing: 0.08em; background: var(--paper); border: 3px dashed var(--soil); border-radius: 18px; }
.invite .stores, .not-found .stores { justify-content: center; margin-top: 14px; }
.invite .mark, .not-found .mark { width: 112px; height: 112px; border-radius: 28px; margin: 0 auto 18px; }
.gap { margin-top: 22px; }

/* footer */
footer { background: var(--ink); color: var(--on-dark-soft); padding: 44px 0 28px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: #fff; }
footer .brand img { width: 40px; height: 40px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer h2 { margin: 0 0 10px; font-size: 16px; color: var(--honey); }
footer .follow { margin: 14px 0 6px; color: var(--honey); }
footer .social { display: flex; flex-wrap: wrap; gap: 8px; }
footer .social a { display: inline-block; padding: 6px 12px; border: 1.5px solid rgba(255, 241, 220, 0.35); border-radius: 999px; }
footer .langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
footer .langs a { color: var(--on-dark-soft); padding: 4px 0; }
footer .langs a[aria-current] { color: var(--honey); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; color: #CDBBB0; font-size: 13px; }
footer .legal a { text-decoration: underline; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

/* consent banner (only when an optional third-party analytics id is configured) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 620px; margin: 0 auto; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(31, 22, 34, 0.3); display: none; }
.consent.show { display: block; }
.consent p { margin: 0 0 12px; font-size: 15px; }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { min-height: 44px; font-size: 16px; }

/* legal / doc pages */
.doc { max-width: 820px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 23px; margin-top: 1.6em; }
.doc h3 { font-size: 19px; margin-top: 1.4em; }
.doc li { margin-bottom: 8px; }
.doc .card { background: var(--paper); border: 2px solid var(--cream2); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); margin: 18px 0; }
.doc .card.note { font-size: 15px; background: var(--cream2); box-shadow: none; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { hyphens: auto; -webkit-hyphens: auto; text-align: left; border-bottom: 2px solid var(--cream2); padding: 8px 6px; vertical-align: top; }
.doc table.facts th { width: 30%; color: var(--text-soft); font-weight: 800; }
.doc .links { margin-top: 28px; }
.press .tagline { color: var(--ember-dark); font-size: 22px; }
.press .kit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.press .kit p { margin: 0; flex: 1 1 260px; font-size: 15px; }
.assets { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
.assets a { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 2px solid var(--cream2); border-radius: 16px; background: var(--paper); text-decoration: none; font-size: 14px; }
.assets img { width: 96px; height: 96px; }
.press-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.press-shots img { width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--ink); }
@media (max-width: 560px) { .press-shots { grid-template-columns: 1fr 1fr; } }
/* phones: the 3-column privacy table becomes one labelled block per row */
@media (max-width: 560px) {
  .doc table.stack thead { display: none; }
  .doc table.stack tr { display: block; padding: 10px 0; border-bottom: 2px solid var(--cream2); }
  .doc table.stack td { display: block; border: 0; padding: 3px 0; }
  .doc table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--text-soft); }
  .doc table.facts th, .doc table.facts td { display: block; width: auto; border: 0; padding: 2px 0; }
  .doc table.facts tr { display: block; padding: 8px 0; border-bottom: 2px solid var(--cream2); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } .shots figure { transform: none !important; } }
