/* Golunex Games — the logo's violet night, lit by its crescent: violet, magenta and orange.
   Layout: mobile first; one centred column (max 1120px), full-width bands, cards only where they group content. */
:root {
  --bg: #120A2C;          /* page: the logo's night */
  --bg-deep: #0B0620;     /* bands, footer */
  --surface: #1C1142;     /* cards */
  --surface-2: #26175A;
  --line: rgba(196, 170, 255, 0.16);
  --text: #F5F2FF;
  --muted: #B9AEDB;
  --violet: #A855F7;
  --magenta: #E5489B;
  --orange: #FF8A3D;
  --gold: #FFC857;
  --brand: linear-gradient(120deg, #A855F7 0%, #E5489B 52%, #FF8A3D 100%);
  --display: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE08F; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-weight: 900; font-size: clamp(2.3rem, 8vw, 4.2rem); letter-spacing: -0.015em; }
h2 { font-weight: 900; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-weight: 900; font-size: 1.3rem; }
p { margin: 0; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { display: inline-block; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 36em; }

/* ------------------------------------------------------------ header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(18, 10, 44, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .compact { display: none; }
.nav { display: flex; gap: 4px; font-weight: 800; font-size: 0.98rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
@media (max-width: 520px) {
  .brand .full { display: none; }
  .brand .compact { display: block; }
  .nav { font-size: 0.92rem; }
  .nav a { padding: 8px 10px; }
}

/* ------------------------------------------------------------ backdrop glow */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow::before { width: 520px; height: 520px; left: -160px; top: -180px; background: radial-gradient(circle, #7C3AED, transparent 70%); opacity: .55; }
.glow::after { width: 460px; height: 460px; right: -140px; top: 60px; background: radial-gradient(circle, #E5489B, transparent 70%); opacity: .35; }

/* ------------------------------------------------------------ buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 12px 24px; border-radius: 999px; font-weight: 900; font-size: 1rem; text-decoration: none;
  background: var(--brand); color: #1A0B33; box-shadow: 0 10px 30px rgba(229, 72, 155, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #1A0B33; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(229, 72, 155, 0.45); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 200, 87, .6); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 520px) { .actions { width: 100%; } .actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
.hero .copy { display: grid; gap: 22px; justify-items: start; }
.hero .art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.hero .art .moon { position: absolute; width: min(420px, 90%); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .35; filter: blur(1px); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* phone frame around screenshots */
.phone {
  position: relative; width: min(250px, 66vw); aspect-ratio: 9 / 16; border-radius: 36px; padding: 9px; flex-shrink: 0;
  background: linear-gradient(160deg, #3A2479, #140A30); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.hero .phone { transform: rotate(4deg); }
.hero .phone.back { position: absolute; transform: translateX(-42%) rotate(-9deg) scale(.82); opacity: .7; }
@media (max-width: 520px) { .hero .phone.back { display: none; } .hero .art { min-height: 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px;
  font-weight: 900; font-size: 0.85rem; color: var(--gold); background: rgba(255, 200, 87, .1); box-shadow: inset 0 0 0 1px rgba(255, 200, 87, .35);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 87, .2); }

/* ------------------------------------------------------------ sections */
section { padding-block: clamp(56px, 9vw, 96px); }
.band { background: var(--bg-deep); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 44em; }
.section-head p { color: var(--muted); }

/* featured game */
.feature { border-radius: 28px; padding: 1.5px; background: var(--brand); box-shadow: 0 30px 80px rgba(124, 58, 237, .25); }
.feature-in {
  border-radius: 27px; background: linear-gradient(160deg, #1E3A6E 0%, #101C3C 55%, #0C1430 100%);
  display: grid; gap: 28px; padding: clamp(22px, 4vw, 40px); overflow: hidden;
}
.feature .info { display: grid; gap: 18px; justify-items: start; }
.feature .head { display: flex; gap: 18px; align-items: center; }
.feature .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); flex-shrink: 0; }
.feature .sub { color: #FFB347; font-weight: 900; }
.feature p.desc { color: #C8D6EE; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; color: #E1EAF7; background: rgba(188, 211, 243, .1); box-shadow: inset 0 0 0 1px rgba(188, 211, 243, .2); }
@media (min-width: 900px) { .feature-in { grid-template-columns: 1.05fr 1fr; align-items: center; } }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; scrollbar-color: rgba(188,211,243,.3) transparent; }
.shots .phone { width: min(190px, 52vw); scroll-snap-align: start; }

/* value tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tile p { color: var(--muted); }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.ic svg { width: 28px; height: 28px; }
.ic.violet { background: rgba(168, 85, 247, .18); color: #C9A2FF; }
.ic.magenta { background: rgba(229, 72, 155, .18); color: #FF8CC6; }
.ic.orange { background: rgba(255, 138, 61, .18); color: #FFB37A; }
.ic.blue { background: rgba(188, 211, 243, .14); color: #BCD3F3; }
.ic.amber { background: rgba(255, 179, 71, .16); color: #FFB347; }

/* facts list */
.facts { display: grid; margin: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 22px; }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.about { display: grid; gap: 32px; }
.about .copy p { color: var(--muted); }
.about .copy p + p { margin-top: 14px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.15fr 1fr; align-items: start; } }

/* contact band */
.cta {
  border-radius: 28px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 18px; justify-items: start;
  background: radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, .55), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(255, 138, 61, .45), transparent 55%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta p { color: #E6DEFF; max-width: 40em; }

/* Twicetold page: the game's own night blue and amber */
.tw-hero { background: linear-gradient(180deg, #102048 0%, var(--bg) 100%); }
.tw-hero.glow::before { background: radial-gradient(circle, #2C5291, transparent 70%); opacity: .9; }
.tw-hero.glow::after { background: radial-gradient(circle, #FFB347, transparent 70%); opacity: .22; }
.tw-hero .eyebrow { color: #FFB347; }
.tw-hero h1 .amber { color: #FFB347; }
.app-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 24px 78px; border-radius: var(--radius); background: rgba(28, 49, 92, .55); box-shadow: inset 0 0 0 1px rgba(188, 211, 243, .14); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #10203F; background: #FFB347;
}
.step strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.step span { color: #C8D6EE; }

/* ------------------------------------------------------------ legal pages */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { color: #DDD6F5; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .meta { color: var(--muted); margin-top: 10px; }
.legal .box { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 18px; padding: 18px 20px; margin-top: 18px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--muted); font-weight: 800; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
/* phones: each row becomes a small block, every cell led by its column name (from data-label), so nothing scrolls sideways */
@media (max-width: 600px) {
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal td { border-bottom: 0; padding: 4px 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
}
.lang-switch { display: flex; gap: 8px; margin-top: 18px; }
.lang-switch a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }

/* ------------------------------------------------------------ footer */
footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer .who { display: flex; align-items: center; gap: 12px; }
footer .who img { width: 36px; height: 36px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------ 2026-11 redesign: two games on the home page */
.section-head p { max-width: 52ch; }
.home-hero .copy { gap: 20px; }
.hero-games { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-games a {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s;
}
.hero-games a:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.hero-games img { width: 44px; height: 44px; border-radius: 12px; }
.hero-games span { display: grid; line-height: 1.2; }
.hero-games strong { font-weight: 900; }
.hero-games small { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
/* two phones side by side: Twicetold's night and Wiserio's day */
.art.duo { min-height: 440px; gap: 12px; max-width: 100%; }
.art.duo .phone { width: min(230px, 38vw); position: relative; }
.art.duo .phone.tw { transform: rotate(-7deg) translateY(28px); z-index: 1; }
.art.duo .phone.ws { transform: rotate(6deg) translate(-26px, -18px); z-index: 2; }
.art.duo .moon { opacity: .5; }
@media (max-width: 520px) { .art.duo { min-height: 330px; gap: 8px; } .art.duo .phone { width: 38vw; } .art.duo .phone.ws { transform: rotate(6deg) translate(-10px, -14px); } }

/* feature cards: each game in its own colours */
.feature + .feature { margin-top: 28px; }
.feature.day { background: linear-gradient(120deg, #FF6B4A, #FFB83D); box-shadow: 0 30px 80px rgba(255, 107, 74, .22); }
.feature.day .feature-in { background: linear-gradient(170deg, #FFF4E4 0%, #FFE2C4 55%, #FFC89A 100%); color: #2A2238; }
.feature.day h3 { color: #2A2238; }
.feature.day .sub { color: #E8502F; }
.feature.day p.desc { color: #4A3D55; }
.feature.day .chip { background: rgba(42, 34, 56, .08); color: #2A2238; box-shadow: inset 0 0 0 1px rgba(42, 34, 56, .14); }
.feature.day .badge { color: #B23A1C; background: rgba(232, 80, 47, .1); box-shadow: inset 0 0 0 1px rgba(232, 80, 47, .35); }
.feature.day .badge::before { background: #E8502F; box-shadow: 0 0 0 4px rgba(232, 80, 47, .18); }
.feature.day .btn { background: #FF6B4A; color: #fff; box-shadow: 0 10px 26px rgba(255, 107, 74, .35); }
.feature.day .btn:hover { color: #fff; background: #F25C3B; }
.feature.day .btn.ghost { background: rgba(42, 34, 56, .07); color: #2A2238; box-shadow: inset 0 0 0 1.5px rgba(42, 34, 56, .18); }
.feature.day .btn.ghost:hover { color: #2A2238; box-shadow: inset 0 0 0 1.5px rgba(42, 34, 56, .4); }
.feature.day .phone { background: linear-gradient(160deg, #5A2A28, #2A2238); box-shadow: 0 24px 50px rgba(90, 42, 40, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.feature.day .shots::-webkit-scrollbar-thumb { background: rgba(42, 34, 56, .2); }

/* four promises */
@media (min-width: 700px) { .tiles.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } }
footer .sep { color: var(--line); }

/* Wiserio page: the game's own paper and coral */
.ws-hero { background: linear-gradient(180deg, #2A1D36 0%, var(--bg) 100%); }
.ws-hero.glow::before { background: radial-gradient(circle, #FF6B4A, transparent 70%); opacity: .55; }
.ws-hero.glow::after { background: radial-gradient(circle, #FFB83D, transparent 70%); opacity: .35; }
.ws-hero .eyebrow { color: #FFB37A; }
.coral { color: #FF8A5C; }
.ws-hero .badge { color: #FFB37A; background: rgba(255, 138, 92, .12); box-shadow: inset 0 0 0 1px rgba(255, 138, 92, .4); }
.ws-hero .badge::before { background: #FF8A5C; box-shadow: 0 0 0 4px rgba(255, 138, 92, .2); }
.ws-hero .btn { background: linear-gradient(120deg, #FF6B4A, #FFB83D); color: #2A2238; }
.ws-hero .btn:hover { color: #2A2238; }
.ws-hero .phone { background: linear-gradient(160deg, #5A2A28, #2A2238); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 200, 154, .3); }
@media (max-width: 520px) { .nav { gap: 0; font-size: 0.9rem; } .nav a { padding: 8px 9px; } .nav .extra { display: none; } }

/* ------------------------------------------------------------ 2026-11-17: legal pages reworked, small motion site-wide */
/* legal pages: assets/legal.js shows one language, adds the game's icon, links to its other documents and a list of
   sections; these rules also read well without it */
html[data-lang="en"] #tr, html[data-lang="tr"] #en, html[data-lang] .legal .divider { display: none; }
.legal { max-width: 800px; }
.legal article { position: relative; scroll-margin-top: 110px; }
.legal h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 52px; margin-bottom: 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.legal article > p, .legal li { color: #DDD6F5; font-size: 1.04rem; line-height: 1.72; }
.legal ul { padding-left: 0; margin: 12px 0; list-style: none; }
.legal ul li { position: relative; padding-left: 1.5em; }
.legal ul li::before { content: ""; position: absolute; left: 0.3em; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.legal li + li { margin-top: 10px; }
.legal li strong, .legal p strong { color: var(--text); }
.legal .meta { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.doc-head { display: flex; align-items: center; gap: 18px; }
.doc-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); flex-shrink: 0; }
.doc-head .eyebrow { margin-bottom: 4px; }
.doc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.doc-bar .lang-switch { margin-top: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-links a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 0.95rem; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s, background .15s; }
.doc-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.doc-links a[aria-current] { color: #1A0B33; background: var(--gold); box-shadow: none; }
.lang-switch { padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; gap: 2px; }
.lang-switch a { background: none; box-shadow: none; color: var(--muted); padding: 6px 16px; font-size: 0.95rem; transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(196, 170, 255, .3); }
.legal .box {
  position: relative; margin-top: 26px; padding: 22px 24px; border-radius: 20px; box-shadow: none;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box; border: 1.5px solid transparent;
}
.legal .box, .legal .box strong { color: var(--text); }
/* the "data / why" table: a rounded panel, rows that are easy to follow */
.table-scroll { margin-top: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal table { font-size: 0.98rem; }
.legal th, .legal td { padding: 14px 18px; }
.legal thead th { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; }
.legal tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal td:first-child { color: var(--text); width: 46%; }
.legal td + td { color: #CFC6EC; }
@media (max-width: 600px) {
  .legal tr { padding: 14px 16px; }
  .legal td, .legal td:first-child { padding: 3px 0; width: 100%; }
  .legal td + td { margin-top: 8px; }
}
/* "on this page": a folded list on phones, a column beside the text on wide screens */
.toc { margin-top: 22px; }
.toc details { border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 18px; }
.toc summary { cursor: pointer; font-weight: 900; padding: 10px 0; color: var(--text); list-style-position: outside; }
.toc ol { margin: 0; padding: 0 0 12px; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; margin: 0; padding: 0; }
.toc li::before { content: none; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; line-height: 1.35; transition: color .15s, background .15s; }
.toc a::before { content: counter(toc); color: var(--gold); font-weight: 900; min-width: 1.2em; }
.toc a:hover, .toc a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
@media (min-width: 1240px) {
  .toc { position: absolute; top: 0; left: -264px; width: 224px; height: 100%; margin: 0; }
  .toc details { position: sticky; top: 96px; padding: 6px 12px; }
  .toc summary { pointer-events: none; list-style: none; padding: 10px; font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .toc summary::-webkit-details-marker { display: none; }
}
.to-top { margin-top: 44px; }
.to-top a { text-decoration: none; font-weight: 800; color: var(--muted); }
.to-top a:hover { color: var(--text); }
@media print {
  .top, footer, .toc, .doc-bar, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
  .legal p, .legal li, .legal td, .legal .meta { color: #000 !important; }
  .legal .box, .table-scroll { background: none; border: 1px solid #999; box-shadow: none; }
}

/* small motion: cards answer the pointer, the hero phones drift, sections rise in once (assets/site.js) */
.tile, .step { transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover, .step:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(196, 170, 255, .34), 0 18px 40px rgba(0, 0, 0, .35); }
.feature { transition: transform .25s ease; }
.feature:hover { transform: translateY(-3px); }
.shots .phone { transition: transform .2s ease; }
.shots .phone:hover { transform: translateY(-6px); }
@keyframes drift-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes drift-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.hero .phone { animation: drift-a 7s ease-in-out infinite; }
.hero .phone.back, .art.duo .phone.ws { animation: drift-b 8s ease-in-out infinite; }
.reveal-on .section-head, .reveal-on .feature, .reveal-on .tile, .reveal-on .step, .reveal-on .facts, .reveal-on .cta, .reveal-on .about .copy { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease, transform .2s ease, box-shadow .2s ease; }
/* .about .copy needs its own line: its hiding rule has three classes, which would outrank a two-class reveal */
.reveal-on .in, .reveal-on .about .copy.in { opacity: 1; translate: 0 0; }
.reveal-on .tiles .tile:nth-child(2), .reveal-on .steps .step:nth-child(2) { transition-delay: .08s; }
.reveal-on .tiles .tile:nth-child(3), .reveal-on .steps .step:nth-child(3) { transition-delay: .16s; }
.reveal-on .tiles .tile:nth-child(4) { transition-delay: .24s; }
footer nav a { text-decoration: none; padding: 2px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
footer nav a:hover { border-bottom-color: var(--gold); }

/* Snowbie page: icy sky blue */
.sb-hero { background: linear-gradient(180deg, #123C7A 0%, var(--bg) 100%); }
.sb-hero.glow::before { background: radial-gradient(circle, #4FB2FF, transparent 70%); opacity: .6; }
.sb-hero.glow::after { background: radial-gradient(circle, #BFE6FF, transparent 70%); opacity: .25; }
.sb-hero .eyebrow, .sb-hero h1 .ice { color: #9FD8FF; }
.sb-hero .btn { background: linear-gradient(120deg, #4FB2FF, #8FE0FF); color: #0C2550; }
.sb-hero .btn:hover { color: #0C2550; }

/* home: the Snowbie card, crisp snow over a deep winter blue */
.feature.snow { background: linear-gradient(120deg, #4FB2FF, #BFE6FF); box-shadow: 0 30px 80px rgba(79, 178, 255, .25); }
.feature.snow .feature-in { background: linear-gradient(170deg, #123C7A 0%, #0E2D5E 60%, #0A2148 100%); }
.feature.snow .sub { color: #9FD8FF; }
.feature.snow p.desc { color: #D3E8FF; }
.feature.snow .chip { background: rgba(159, 216, 255, .1); color: #E6F4FF; box-shadow: inset 0 0 0 1px rgba(159, 216, 255, .3); }
.feature.snow .badge { color: #BFE6FF; background: rgba(79, 178, 255, .12); box-shadow: inset 0 0 0 1px rgba(79, 178, 255, .4); }
.feature.snow .badge::before { background: #4FB2FF; box-shadow: 0 0 0 4px rgba(79, 178, 255, .2); }
.feature.snow .btn { background: linear-gradient(120deg, #4FB2FF, #8FE0FF); color: #0C2550; box-shadow: 0 10px 26px rgba(79, 178, 255, .35); }
.feature.snow .btn:hover { color: #0C2550; }
.feature.snow .btn.ghost { background: rgba(255, 255, 255, .06); color: #E6F4FF; box-shadow: inset 0 0 0 1.5px rgba(159, 216, 255, .35); }
.feature.snow .btn.ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(159, 216, 255, .7); }
.feature.snow .phone { background: linear-gradient(160deg, #1B4F94, #0A2148); box-shadow: 0 24px 50px rgba(5, 20, 50, .45), inset 0 0 0 1.5px rgba(191, 230, 255, .3); }

/* home footer: brand, games, studio, contact in columns (the game pages keep their own legal links) */
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; justify-content: stretch; }
@media (min-width: 700px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .foot-brand img { width: 143px; height: 40px; }
.site-footer .foot-brand p { margin-top: 12px; max-width: 30ch; color: var(--muted); line-height: 1.5; }
.site-footer .foot-col { display: grid; gap: 10px; justify-items: start; }
.site-footer h4 { color: var(--text); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.site-footer .foot-col a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .foot-col img { width: 22px; height: 22px; border-radius: 6px; }
.site-footer .foot-col small { color: var(--muted); opacity: .75; font-size: .82rem; }
.site-footer .foot-base { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: block; font-size: .85rem; }
