/* Seon Games site, v4 (2026-11-13): a light parchment page with a night theme.
   Brandbook: Seon 36 colours only (all in :root), no plates or halos under text, pixel art at whole
   scales only (natural size × 1/2/3 with image-rendering: pixelated). Display type: Fusion Pixel,
   our games' font, at multiples of 10 px only. Body: the system sans. Spacing: multiples of 8 px.
   Small text keeps ≥ 4.5:1 contrast in both themes. */

@font-face {
  font-family: "SeonPixel";
  src: url("/assets/fonts/FusionPixel10.woff2") format("woff2");
  font-display: block;
}

:root {
  /* Seon 36 */
  --c0: #0f1a14; --c1: #1f3a2c; --c6: #2e1a14; --c7: #6a3a1e; --c8: #a8642c; --c9: #d8904a; --c10: #f0bc72;
  --c11: #8a1e14; --c12: #d0381a; --c13: #f4801a; --c14: #ffb020; --c15: #ffe08a; --c16: #fff6d8; --c17: #e6cfa6; --c18: #f6ead0;
  --c31: #7f9a90;

  --px: "SeonPixel", ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --g: 20px;            /* side gutter */
  --wrap: 1232px;       /* 1152 of content + 2 × 40 */
  --nav: 64px;
  --sec: 112px;         /* section padding (phone) */
  /* stepped "pixel" corners: 2 steps of 4 px */
  --step: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
  --step-s: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));

  /* light theme (default) */
  color-scheme: light;
  --bg: var(--c18); --bg-2: var(--c17); --ink: var(--c0); --sub: var(--c7); --faint: var(--c8);
  --line: rgba(15, 26, 20, .16); --rule: var(--c0); --field: var(--c18); --tab: var(--c0); --tab-ink: var(--c16);
  --btn: var(--c13); --btn-hover: var(--c14); --btn-press: var(--c12); --btn-ink: var(--c0);
  --link: var(--c0); --accent: var(--c13); --focus: var(--c12);
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: var(--c0); --bg-2: var(--c6); --ink: var(--c16); --sub: var(--c17); --faint: var(--c31);
  --line: rgba(255, 246, 216, .14); --rule: var(--c16); --field: var(--c0); --tab: var(--c16); --tab-ink: var(--c0);
  --link: var(--c16); --focus: var(--c14);
}
@media (min-width: 900px) { :root { --g: 40px; --nav: 72px; --sec: 200px; } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
body.theming, body.theming * { transition: background-color .32s var(--ease), color .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease) !important; }
img, canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--c14); color: var(--c0); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.ico { display: inline-block; flex: none; vertical-align: middle; }

/* ---------- type ---------- */
.px, h1, h2, .k, .btn, .tab, .kind, .lab, .t-title, .pk-name, .pk-price b, .how-n, .facts b, .mail, .strip figcaption, .play-btn, .theme, .h3 {
  font-family: var(--px); font-weight: 400; word-spacing: -.2em; font-kerning: none;
}
.k { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; line-height: 20px; color: var(--sub); }
.k::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
h2, .h2 { font-size: 50px; line-height: 50px; text-wrap: balance; }
.k + h2 { margin-top: 24px; }
.sub { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--sub); max-width: 32em; text-wrap: pretty; }
.h3 { font-size: 30px; line-height: 30px; }
@media (min-width: 900px) {
  h2, .h2 { font-size: 90px; line-height: 90px; }
  .k + h2 { margin-top: 32px; }
  .sub { margin-top: 32px; font-size: 21px; line-height: 32px; }
}
@media (max-width: 359px) { h2, .h2 { font-size: 40px; line-height: 40px; } }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; background: var(--btn); color: var(--btn-ink);
  font-size: 20px; line-height: 20px; clip-path: var(--step); transition: background-color .16s, transform .16s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--btn-hover); }
.btn:active { background: var(--btn-press); transform: translateY(2px); }
.btn:focus-visible { outline: none; background: var(--btn-hover); box-shadow: inset 0 0 0 3px var(--c0); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: var(--c7); color: var(--c16); }
.btn.sm { height: 40px; padding: 0 16px; clip-path: var(--step-s); }
.more { display: inline-flex; align-items: center; min-height: 48px; font-size: 18px; color: var(--link); }
.more span { border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: border-color .16s; }
.more:hover span { border-color: var(--link); }
.txt-link { color: var(--link); border-bottom: 1px solid var(--line); transition: border-color .16s; }
.txt-link:hover { border-color: var(--link); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.logo { display: flex; align-items: center; height: 48px; }
.logo img { width: 123px; height: 24px; }
.logo .on-dark, :root[data-theme="night"] .logo .on-light { display: none; }
:root[data-theme="night"] .logo .on-dark { display: block; }
.nav-r { display: flex; align-items: center; gap: 4px; }
.nav-r > a:not(.btn) { display: none; align-items: center; height: 48px; padding: 0 14px; font-size: 16px; color: var(--sub); transition: color .16s; }
.nav-r > a:not(.btn):hover, .nav-r > a[aria-current] { color: var(--ink); }
.nav-r > a.lang { display: inline-flex; }
.nav-r .btn { margin-left: 8px; }
@media (min-width: 900px) { .nav-r > a:not(.btn) { display: inline-flex; } .nav-r { gap: 8px; } }

/* theme switch: a visible two-state control (sun / moon) */
.theme { display: inline-flex; align-items: center; height: 40px; padding: 4px; gap: 0; font-size: 20px; line-height: 20px; color: var(--sub); box-shadow: inset 0 0 0 2px var(--line); clip-path: var(--step-s); }
.theme span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; transition: background-color .2s, color .2s; clip-path: var(--step-s); }
.theme .t-l { background: var(--tab); color: var(--tab-ink); }
:root[data-theme="night"] .theme .t-l { background: none; color: var(--sub); }
:root[data-theme="night"] .theme .t-n { background: var(--tab); color: var(--tab-ink); }
.theme:hover { color: var(--ink); }
.theme b { font-weight: 400; display: none; }
@media (min-width: 1100px) { .theme b { display: inline; } }
.lang-hint { margin: 0; padding: 12px var(--g); background: var(--bg-2); color: var(--ink); font-size: 15px; text-align: center; }
.lang-hint a { border-bottom: 1px solid currentColor; }

/* ---------- reveal ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { padding-top: 56px; overflow: hidden; }
h1 { font-size: 60px; line-height: 60px; text-wrap: balance; }
h1 span { display: block; }
.hero-row { margin-top: 32px; display: grid; gap: 28px; }
.lead { font-size: 19px; line-height: 30px; color: var(--sub); max-width: 25em; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.strip { margin-top: 64px; position: relative; }
.strip-track { display: flex; width: max-content; animation: drift 90s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track, .strip.off .strip-track { animation-play-state: paused; }
.strip a { display: block; margin-right: 16px; }
.strip img { width: 195px; height: 300px; clip-path: var(--step); transition: transform .5s var(--ease); }
.strip a:hover img { transform: translateY(-8px); }
.strip figcaption { margin-top: 16px; font-size: 20px; line-height: 20px; color: var(--sub); transition: color .16s; }
.strip a:hover figcaption { color: var(--ink); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } .strip { overflow-x: auto; scrollbar-width: none; } }
@media (min-width: 900px) {
  .hero { padding-top: 104px; }
  h1 { font-size: 140px; line-height: 130px; letter-spacing: -.01em; }
  .hero-row { margin-top: 56px; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
  .lead { font-size: 21px; line-height: 32px; }
  .strip { margin-top: 104px; }
  .strip a { margin-right: 32px; }
  .strip img { width: 390px; height: 600px; }
  .strip figcaption { margin-top: 20px; }
}
@media (min-width: 900px) and (max-width: 1199px) { h1 { font-size: 110px; line-height: 104px; } }
@media (max-width: 359px) { h1 { font-size: 50px; line-height: 50px; } }

/* ---------- statement ---------- */
.say { padding: var(--sec) 0; }
.say-big { font-family: var(--px); word-spacing: -.2em; font-size: 40px; line-height: 44px; text-wrap: balance; }
.say-big span { display: block; }
.say-big span:first-child { color: var(--faint); }
.facts { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 20px; }
.facts li { border-top: 2px solid var(--rule); padding-top: 20px; font-size: 16px; line-height: 24px; color: var(--sub); }
.facts b { display: block; margin-bottom: 12px; font-size: 60px; line-height: 60px; color: var(--ink); }
@media (min-width: 900px) {
  .say-big { font-size: 100px; line-height: 100px; }
  .facts { margin-top: 160px; grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .facts b { font-size: 100px; line-height: 100px; margin-bottom: 16px; }
}

/* ---------- player (a game behind a poster: plays only on a click, muted first) ---------- */
.player { position: relative; overflow: hidden; background: var(--c0); clip-path: var(--step); }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: filter .3s var(--ease); }
.player .shade { position: absolute; inset: 0; background: linear-gradient(rgba(15, 26, 20, 0) 30%, rgba(15, 26, 20, .55)); transition: opacity .3s; }
.player .sign { position: absolute; image-rendering: pixelated; pointer-events: none; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--c0); opacity: 0; transition: opacity .4s; }
.player.live iframe { opacity: 1; }
.player.live .poster, .player.live .shade, .player.live .sign, .player.live .play-wrap { visibility: hidden; }
.play-wrap { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; height: 72px; padding: 0 36px 0 28px; background: var(--c13); color: var(--c0); font-size: 30px; line-height: 30px;
  clip-path: var(--step); transition: background-color .16s, transform .16s var(--ease); }
.play-btn:hover { background: var(--c14); }
.play-btn:active { background: var(--c12); transform: translateY(2px); }
.play-btn:focus-visible { outline: none; background: var(--c14); box-shadow: inset 0 0 0 3px var(--c0); }
.play-note { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; color: var(--c16); text-shadow: 0 1px 0 rgba(15, 26, 20, .7); }
.player .loading { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-size: 15px; color: var(--c16); opacity: 0; transition: opacity .2s; pointer-events: none; }
.player.loading-on .loading { opacity: 1; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 16px; }
.controls button, .controls a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--sub); transition: color .16s, opacity .2s; white-space: nowrap; }
.controls button:hover, .controls a:hover { color: var(--ink); }
.controls button[disabled] { opacity: .4; cursor: default; }
.controls .snd[aria-pressed="true"] { color: var(--ink); }
.controls .snd .on, .controls .snd[aria-pressed="true"] .off { display: none; }
.controls .snd[aria-pressed="true"] .on { display: inline; }
.player-phone { width: 390px; height: 844px; max-width: 100%; }
@media (max-width: 429px) { .player-phone { width: calc(100vw - 2 * var(--g)); height: calc((100vw - 2 * var(--g)) * 844 / 390); } }

/* ---------- try it with your name ---------- */
.try { padding: var(--sec) 0; background: var(--bg-2); }
.try-in { display: grid; gap: 56px; }
.lab { display: flex; align-items: baseline; gap: 12px; margin-top: 48px; font-size: 20px; line-height: 20px; color: var(--sub); }
.lab i { font-style: normal; color: var(--faint); }
.kinds { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kind { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; text-align: left; font-size: 20px; line-height: 20px; color: var(--ink);
  background: var(--bg); clip-path: var(--step-s); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .16s, background-color .16s; }
.kind:hover { box-shadow: inset 0 0 0 2px var(--line); }
.kind[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--c13); }
.kind .ico { width: 24px; height: 24px; }
.field { display: flex; align-items: center; margin-top: 16px; height: 64px; padding: 0 20px; background: var(--field); clip-path: var(--step-s); max-width: 520px; transition: box-shadow .16s; }
.field:focus-within { box-shadow: inset 0 0 0 3px var(--c13); }
.field input { width: 100%; border: 0; background: none; outline: none; padding: 0; font-family: var(--px); word-spacing: -.2em; font-size: 30px; line-height: 30px; color: var(--ink); caret-color: var(--c13); }
.field input::placeholder { color: var(--faint); opacity: 1; }
.field-off { display: none; }
.try-note { margin-top: 20px; font-size: 15px; line-height: 24px; color: var(--sub); max-width: 34em; }
.try-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.try-stage { justify-self: center; }
.try-pk { margin-top: 12px; text-align: center; font-size: 15px; color: var(--sub); }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .try-in { grid-template-columns: 1fr 390px; gap: 96px; align-items: start; }
  .try-stage { position: sticky; top: calc(var(--nav) + 24px); }
}

/* ---------- games ---------- */
.games { padding: var(--sec) 0; }
.games-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; font-size: 20px; line-height: 20px; color: var(--sub);
  clip-path: var(--step-s); box-shadow: inset 0 0 0 2px var(--line); transition: background-color .16s, color .16s, box-shadow .16s; }
.tab:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--rule); }
.tab[aria-pressed="true"] { background: var(--tab); color: var(--tab-ink); box-shadow: none; }
.tab small { font-size: 20px; opacity: .6; }
.tiles { margin-top: 64px; display: grid; grid-template-columns: 320px; justify-content: start; gap: 56px; }
.tile { display: block; }
.tile[hidden] { display: none; }
.tile .shot { display: block; overflow: hidden; clip-path: var(--step); background: var(--c0); }
.tile img { width: 320px; height: 240px; transition: transform .6s var(--ease); }
.tile:hover img { transform: translateY(-6px); }
.t-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 24px; }
.t-title { font-size: 30px; line-height: 30px; }
.t-group { font-size: 14px; line-height: 20px; color: var(--sub); white-space: nowrap; }
.t-hook { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--sub); text-wrap: pretty; }
.t-meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--sub); }
.t-meta b { font-weight: 400; font-size: 16px; color: var(--link); border-bottom: 2px solid var(--accent); transition: border-color .16s; }
.tile:hover .t-meta b { border-color: var(--link); }
.games .note { margin-top: 72px; font-size: 15px; color: var(--sub); }
@media (max-width: 359px) { .tiles { grid-template-columns: 1fr; } .tile img { width: 100%; height: auto; } }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 320px); justify-content: space-between; } }
@media (min-width: 1120px) { .tiles { grid-template-columns: repeat(2, 480px); gap: 104px 64px; justify-content: space-between; } .tile img { width: 480px; height: 360px; } .t-row { margin-top: 28px; } }

/* ---------- how ---------- */
.how { padding: var(--sec) 0; }
.how ol { margin-top: 56px; display: grid; gap: 48px; }
.how li { border-top: 2px solid var(--rule); padding-top: 32px; }
.how-n { display: block; font-size: 80px; line-height: 80px; }
.how li p { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--sub); max-width: 18em; }
@media (min-width: 900px) { .how ol { margin-top: 80px; grid-template-columns: repeat(3, 1fr); gap: 40px; } .how-n { font-size: 120px; line-height: 120px; } }

/* ---------- prices ---------- */
.prices { padding: var(--sec) 0; }
.pks { margin-top: 64px; border-bottom: 2px solid var(--rule); }
.pk { display: grid; gap: 20px; padding: 40px 0; border-top: 2px solid var(--rule); }
.pk-name { font-size: 30px; line-height: 30px; }
.pk-for { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--sub); }
.pk-price b { display: block; font-size: 60px; line-height: 60px; white-space: nowrap; }
.pk-price span { display: block; margin-top: 12px; font-size: 15px; color: var(--sub); }
.pk-lead { font-size: 17px; line-height: 26px; color: var(--sub); max-width: 24em; }
.pk details { margin-top: 12px; }
.pk summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--link); list-style: none; }
.pk summary::-webkit-details-marker { display: none; }
.pk summary span { border-bottom: 1px solid var(--line); }
.pk summary::after { content: ""; width: 8px; height: 8px; margin-left: 2px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .2s; }
.pk details[open] summary::after { transform: rotate(180deg); }
.pk details ul { margin-top: 8px; display: grid; gap: 6px; font-size: 15px; line-height: 22px; color: var(--sub); }
.pk details li { padding-left: 16px; position: relative; }
.pk details li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; background: var(--accent); }
.pk .btn { justify-self: start; }
.every { margin-top: 40px; font-size: 16px; line-height: 26px; color: var(--sub); max-width: 46em; }
.pay { margin-top: 12px; font-size: 14px; line-height: 22px; color: var(--sub); max-width: 46em; }
@media (min-width: 900px) {
  .pks { margin-top: 96px; }
  .pk { grid-template-columns: 240px 1fr 1fr 168px; align-items: start; gap: 40px; padding: 56px 0; }
  .pk-price b { font-size: 80px; line-height: 80px; }
  .pk .btn { justify-self: end; }
}

/* ---------- faq ---------- */
.faq { padding: 0 0 var(--sec); }
.faq-in { display: grid; gap: 40px; border-top: 2px solid var(--rule); padding-top: 56px; }
.qs details { border-bottom: 1px solid var(--line); }
.qs details:first-child { border-top: 1px solid var(--line); }
.qs summary { position: relative; list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-size: 19px; line-height: 28px; transition: color .16s; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary:hover { color: var(--sub); }
.qs summary::before, .qs summary::after { content: ""; position: absolute; right: 8px; top: 37px; width: 16px; height: 2px; background: var(--ink); transition: transform .24s var(--ease); }
.qs summary::after { transform: rotate(90deg); }
.qs details[open] summary::after { transform: rotate(0deg); }
.qs details p { padding: 0 56px 28px 0; font-size: 17px; line-height: 27px; color: var(--sub); max-width: 40em; }
@media (min-width: 900px) { .faq-in { grid-template-columns: 4fr 8fr; gap: 64px; padding-top: 80px; } .faq h2 { font-size: 60px; line-height: 60px; } .qs summary { font-size: 20px; padding: 28px 64px 28px 0; } .qs summary::before, .qs summary::after { top: 41px; } }

/* ---------- contact (always night) ---------- */
.contact { background: var(--c0); color: var(--c16); padding: var(--sec) 0 0; text-align: center; --sub: var(--c17); --line: rgba(255, 246, 216, .14); --accent: var(--c13); --link: var(--c16); --focus: var(--c14); }
:root[data-theme="night"] .contact { box-shadow: inset 0 1px 0 rgba(255, 246, 216, .1); }
.contact .jar { width: 64px; height: 64px; margin: 0 auto 48px; }
.contact .k { justify-content: center; }
.contact h2 { margin: 24px auto 0; }
.contact h2 span { display: block; }
.contact .sub { margin: 28px auto 0; }
.mail-row { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mail { font-size: 20px; line-height: 20px; color: var(--c14); border-bottom: 3px solid var(--c14); padding-bottom: 8px; word-break: break-all; }
.mail:hover { color: var(--c15); border-color: var(--c15); }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--c17); }
.copy:hover { color: var(--c16); }
.alt { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; font-size: 16px; }
.alt a { color: var(--c17); border-bottom: 1px solid rgba(255, 246, 216, .2); }
.alt a:hover { color: var(--c16); border-color: var(--c16); }
.foot { margin-top: 160px; padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 246, 216, .12); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: 14px; line-height: 20px; color: var(--c31); text-align: left; }
.foot-in img { width: 123px; height: 24px; }
.foot-tag { color: var(--c17); }
@media (min-width: 900px) { .contact h2 { font-size: 120px; line-height: 120px; } .mail { font-size: 50px; line-height: 50px; padding-bottom: 12px; } .foot { margin-top: 240px; } }
@media (min-width: 600px) and (max-width: 899px) { .mail { font-size: 30px; line-height: 30px; } }

/* ---------- demo page ---------- */
.demo-top { padding: 48px 0 0; }
.crumbs { font-size: 16px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); transition: color .16s; }
.crumbs a:hover { color: var(--ink); }
.demo-top .k { margin-top: 24px; }
.demo-top h1 { margin-top: 24px; font-size: 50px; line-height: 50px; }
.demo-top .lead { margin-top: 24px; }
.demo-stage { margin-top: 56px; display: flex; flex-direction: column; align-items: center; }
.player-site { width: 100%; height: 700px; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; background: var(--c6); color: var(--c17); font-size: 14px; }
.browser-bar i { width: 8px; height: 8px; background: var(--c7); }
.browser-bar .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, monospace; }
.browser { width: 100%; max-width: 1120px; clip-path: var(--step); }
.browser .player { clip-path: none; }
.tries { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 15px; color: var(--sub); }
.tries button { min-height: 40px; padding: 0 12px; font-family: ui-monospace, monospace; font-size: 14px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--step-s); }
.tries button:hover, .tries button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--c13); }
.demo-body { padding-top: 96px; display: grid; gap: 56px; }
.facts3 { display: grid; gap: 40px; }
.facts3 li { border-top: 2px solid var(--rule); padding-top: 24px; }
.facts3 h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 20px; color: var(--sub); }
.facts3 p { margin-top: 16px; font-size: 18px; line-height: 28px; max-width: 30em; text-wrap: pretty; }
.buy { border-top: 2px solid var(--rule); padding-top: 24px; }
.buy .pk-name { margin-top: 16px; }
.buy .pk-price { margin-top: 24px; }
.buy .btn { margin-top: 32px; }
.buy .fict { margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--sub); }
.more-games { padding: calc(var(--sec) * .7) 0 var(--sec); }
.more-games .tiles { margin-top: 48px; }
@media (min-width: 900px) {
  .demo-top { padding-top: 80px; }
  .demo-top h1 { font-size: 100px; line-height: 100px; }
  .demo-stage { margin-top: 80px; }
  .demo-body { padding-top: 160px; grid-template-columns: 1fr 340px; gap: 96px; align-items: start; }
  .buy { position: sticky; top: calc(var(--nav) + 32px); }
  .facts3 { gap: 56px; }
}
@media (max-width: 899px) { .player-site { height: 844px; max-height: calc(100svh - 120px); } }
@media (min-width: 1120px) { .more-games .tiles { grid-template-columns: repeat(3, 320px); gap: 64px; } .more-games .tile img { width: 320px; height: 240px; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 64px var(--g); max-width: var(--wrap); margin: 0 auto; }
.nf h1 { font-size: 100px; line-height: 100px; }
.nf p { font-size: 18px; line-height: 28px; color: var(--sub); max-width: 30em; }
@media (min-width: 900px) { .nf h1 { font-size: 200px; line-height: 200px; } }
.strip-set { display: flex; }

/* ---------- v4 refinements ---------- */
h2 > span { display: block; }
.controls { flex-wrap: nowrap; justify-content: space-between; gap: 0; width: 390px; max-width: 100%; margin-left: auto; margin-right: auto; }
.controls button, .controls a { padding: 0 8px; }
.demo-stage .browser + .controls, .demo-stage .tries + .controls { width: auto; justify-content: center; gap: 8px; }
.t-meta { gap: 16px; }
.t-meta b { white-space: nowrap; }
@media (min-width: 1000px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
.how { padding: calc(var(--sec) / 2) 0; }
/* the theme switch: one icon on phones (the other theme), both with labels on wide screens */
@media (max-width: 899px) {
  .theme { width: 40px; padding: 0; justify-content: center; box-shadow: inset 0 0 0 2px var(--line); }
  .theme span { padding: 0; background: none !important; color: var(--ink) !important; }
  .theme .t-l, :root[data-theme="night"] .theme .t-n { display: none; }
  :root[data-theme="night"] .theme .t-l { display: inline-flex; }
  .nav-r .btn { margin-left: 4px; }
}
@media (max-width: 359px) { .logo img { width: 123px; } .nav-r > a.lang { padding: 0 8px; } .nav-r .btn { padding: 0 12px; } }
@media (max-width: 429px) { .controls .redo span, .controls .full span { display: none; } .controls button, .controls a { padding: 0 10px; } }
.player-site .shade { background: linear-gradient(rgba(15, 26, 20, .1), rgba(15, 26, 20, .7)); }
.kind .ico { width: 32px; height: 32px; padding: 4px; background: var(--c0); clip-path: var(--step-s); }
:root[data-theme="night"] .kind .ico { background: var(--c1); }
.games { padding-bottom: calc(var(--sec) / 2); }
.try-stage { width: 100%; max-width: 390px; }
.controls { width: 100%; max-width: 390px; }
.try-in { grid-template-columns: minmax(0, 1fr); }
.kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) and (max-width: 999px) { .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .try-in { grid-template-columns: minmax(0, 1fr) 390px; } }
@media (max-width: 389px) { .nav-r { gap: 0; } .nav-r > a.lang { padding: 0 10px; } .nav-r .btn.sm { padding: 0 12px; } }
@media (max-width: 379px) { .kind .ico { display: none; } .kind { padding: 8px 10px; } }
/* posters keep a whole scale: phone games ×2 (195 → 390), shots of web pages ×1; narrow phones crop the sides */
.player-phone .poster { left: 50%; right: auto; width: 390px; height: 844px; max-width: none; transform: translateX(-50%); object-fit: fill; }
.player-site .poster { image-rendering: auto; }
.k { flex-wrap: wrap; row-gap: 8px; }
@media (min-width: 900px) { .pk { grid-template-columns: 200px 300px minmax(0, 1fr) 168px; } .pk-price b { font-size: 60px; line-height: 60px; } }
@media (min-width: 1200px) { .pk { grid-template-columns: 240px 400px minmax(0, 1fr) 168px; } .pk-price b { font-size: 80px; line-height: 80px; } }
@media (min-width: 1000px) and (max-width: 1199px) { .try h2 { font-size: 60px; line-height: 60px; } }

/* ---------- review pass (2026-11-13) ---------- */
/* hero: the actions sit under the lead, on the same left edge */
@media (min-width: 900px) { .hero-row { grid-template-columns: 1fr; gap: 40px; align-items: start; } }
/* the logo at x2 on wide screens, so it holds its own next to the big type */
@media (min-width: 900px) { .logo img { width: 246px; height: 48px; } }
/* the theme switch: quiet; the orange «Write» stays the loudest thing in the nav */
.theme { box-shadow: inset 0 0 0 1px var(--line); }
.theme .t-l, :root[data-theme="night"] .theme .t-n { background: var(--bg-2); color: var(--ink); }
:root[data-theme="night"] .theme .t-l { background: none; color: var(--sub); }
/* poster: the bottom third goes calm under «Play» and its note */
.player .shade { background: linear-gradient(rgba(15, 26, 20, 0) 50%, rgba(15, 26, 20, .78) 88%); }
.controls button[disabled] { opacity: .6; }
/* kinds: on phones the label gets the whole tile */
@media (max-width: 429px) { .kind .ico { display: none; } .kind { padding: 8px 12px; } }
/* phones: the game comes right after the name, the order button after the game */
@media (max-width: 999px) {
  .try-in { gap: 0; }
  .try-form { display: contents; }
  .try-stage { order: 1; margin: 40px auto 0; }
  .try-note { order: 2; }
  .try-cta { order: 3; }
}
/* prices: one grid for all three rows */
@media (min-width: 900px) { .pk { grid-template-columns: 3fr 4fr 4fr 2fr; } .pk-price b { font-size: 60px; line-height: 60px; } }
@media (min-width: 1200px) { .pk-price b { font-size: 80px; line-height: 80px; } }
.pk-lead { max-width: 22em; }
/* faq: the same 2px ink rule as everything else, inside the column */
.faq .qs details:first-child { border-top: 0; }
/* night: the contact block is the darker-green finale */
:root[data-theme="night"] .contact { background: var(--c1); box-shadow: none; }
