/* Collows: the site's one stylesheet, direction B ("the shop window").
   Colours, radii and "edges" are the app's Şeker look (app/lib/ui/theme/
   seker_tokens.dart); the boards are board_skin.dart's seven looks.
   Fonts: the app's Baloo 2 and Nunito, subset to WOFF2 (OFL, licences in
   /assets/fonts/). Nothing here loads from another host. */

@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F3EDFF;            /* SekerColors.bg */
  --glow-pink: #FFDCEA;     /* glowPink */
  --glow-mint: #D5F6F1;     /* glowMint */
  --surface: #FFFFFF;
  --surface-soft: #F6F2FF;  /* softFill */
  --ink: #2A1F45;           /* ink */
  --muted: #6B6187;         /* muted (#776C93) a step deeper: 4.5:1 on the lilac too */
  --edge: #DCCFF6;          /* edge: the raised look's darker copy under a card */
  --line: #E4DFEE;          /* cardEdge */
  --me: #FF5C8A;
  --op: #1EB3A6;
  --accent-text: #6A4BD6;
  --focus: #6A4BD6;
  --on-ink: #FFFFFF;
  --f-display: "Baloo 2", "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --r-phone: 30px;
  --phone-frame: #1B1430;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #130D25;
    --glow-pink: rgba(255, 92, 138, .16);
    --glow-mint: rgba(30, 179, 166, .13);
    --surface: #221A3D;
    --surface-soft: #2C2350;
    --ink: #F3EDFF;
    --muted: #B5A9D6;       /* SekerColors.chevron */
    --edge: #0A0617;
    --line: #382D5E;
    --accent-text: #C9B8FF;
    --focus: #C9B8FF;
    --on-ink: #130D25;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(55% 520px at 0% 0%, var(--glow-pink), transparent 75%),
    radial-gradient(50% 480px at 100% 0%, var(--glow-mint), transparent 75%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 480px) { body { font-size: 16px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* Links in running text: the ink, extra bold, a pink line under it (the
   app's consentLink, with the pink of the brand). */
.b-faq a, .legal a, .b-foot a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--me);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.b-faq a:hover, .legal a:hover, .b-foot a:hover { text-decoration-color: var(--ink); }

/* ---------- the frame of every page: B's header and footer ---------- */
.b-wrap, .wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .b-wrap, .wrap { padding-inline: 28px; } }
.b-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.b-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--f-display); }
.b-brand svg { width: 28px; height: 28px; flex: none; }
.b-langs { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 10px; }
.b-langs a { color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; padding: 8px 4px; }
.b-langs a:hover { text-decoration: underline; text-decoration-color: var(--me); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.b-foot { padding-block: 28px 40px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 15px; }
.b-foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.b-foot small { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--ink);
  font: 800 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--edge), inset 0 0 0 1.5px var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--surface-soft); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge), inset 0 0 0 1.5px var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 3px 0 var(--edge); }
.btn-ink:hover { background: var(--ink); opacity: .92; }

/* ---------- the home page ----------
   The app's own screens open the page and tell it in a row, each with one
   plain sentence; the live board comes second, smaller. */
.b-phone { padding: 7px; border-radius: var(--r-phone); background: var(--phone-frame); box-shadow: 0 14px 30px rgba(42, 31, 69, .22); }
.b-phone img { border-radius: calc(var(--r-phone) - 7px); width: 100%; height: auto; }

/* the opening: words, then three phones fanned out with Colly in front */
.b-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 12px 64px; align-items: center; }
.b-hero h1 { margin: 0 0 14px; font-size: clamp(44px, 9vw, 84px); line-height: .98; letter-spacing: -.8px; }
.b-hero p { margin: 0 0 12px; font-size: 19px; max-width: 32rem; }
.b-hero .b-avail { font-weight: 800; font-size: 17px; }

/* the two stores: a QR to scan from a computer, the store's name to tap on a phone. Since the launch
   (2026-11-13) each link has its store's address and its box an inline QR of it (2-module quiet zone). */
.b-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.b-store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 18px; background: var(--ink); color: var(--on-ink); text-decoration: none; box-shadow: 0 3px 0 var(--edge); }
.b-store[href] { cursor: pointer; }
.b-store[href]:hover { opacity: .92; }
.b-store[href]:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.b-store:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.b-qr { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #FFFFFF; }
.b-qr svg { display: block; width: 100%; height: 100%; }
.b-store-text { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.1; }
.b-store-text small { font-family: var(--f-body); font-weight: 700; font-size: 13px; opacity: .8; }
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  .b-qr { display: none; }
  .b-store { padding: 12px 20px; }
}
.b-fan { position: relative; height: clamp(420px, 108vw, 600px); max-width: 520px; width: 100%; justify-self: center; }
.b-fan .b-phone { position: absolute; width: 46%; top: 6%; }
.b-fan .f1 { left: 2%; transform: rotate(-7deg); top: 12%; }
.b-fan .f3 { right: 2%; transform: rotate(7deg); top: 12%; }
.b-fan .f2 { left: 50%; width: 52%; transform: translateX(-50%); top: 0; z-index: 2; }
.b-fan .colly { position: absolute; z-index: 3; width: 34%; left: -2%; bottom: -2%; filter: drop-shadow(0 8px 12px rgba(42, 31, 69, .25)); }
@media (min-width: 960px) {
  .b-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; padding-block: 32px 96px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .b-fan .b-phone { transition: transform .3s ease; }
  .b-fan:hover .f1 { transform: rotate(-9deg) translateX(-4px); }
  .b-fan:hover .f3 { transform: rotate(9deg) translateX(4px); }
}

.b-show h2, .b-try h2, .b-stick-sec h2, .b-faq h2, .b-samata h2 { margin: 0; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.08; }

/* the row of screens: it scrolls sideways inside the page */
.b-show { padding-block: 16px 64px; display: flex; flex-direction: column; gap: 22px; }
.b-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 4px 2px 16px; list-style: none; }
.b-row li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.b-row p { margin: 0; font-size: 16px; line-height: 1.45; }
.b-hint { margin: 0; color: var(--muted); font-size: 15px; }

/* try it: the live board, with a few words beside it */
.b-try { padding-block: 24px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.b-try .b-board { max-width: 440px; width: 100%; justify-self: center; }
.b-try-words { display: flex; flex-direction: column; gap: 14px; max-width: 34rem; }
.b-try-words p { margin: 0; font-size: 18px; }
@media (min-width: 900px) { .b-try { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; } }

.play-card { padding: 16px; border-radius: 26px; background: var(--surface); box-shadow: 0 6px 0 var(--edge); }
@media (min-width: 480px) { .play-card { padding: 20px; } }
.scores { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-width: 0; }
.player {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--surface-soft); font: 800 16px/1 var(--f-display); white-space: nowrap;
  transition: box-shadow .2s ease;
}
.player i { width: 26px; height: 26px; border-radius: 50%; background: var(--me); flex: none; }
.player.op i { background: var(--op); }
/* room for "−18": a score never widens its pill, so nothing moves */
.player b { min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; font-size: 19px; padding-top: 2px; }
.player .who { padding-top: 2px; }
.player.is-turn { box-shadow: 0 0 0 2.5px var(--me); }
.player.op.is-turn { box-shadow: 0 0 0 2.5px var(--op); }
.status { min-height: 2.9em; margin: 14px 0 12px; color: var(--muted); font-weight: 800; font-size: 15px; line-height: 1.45; text-align: center; text-wrap: balance; }
.status.is-end { color: var(--ink); }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.seg { display: inline-flex; margin: 0; padding: 4px; border: 0; border-radius: 16px; background: var(--surface-soft); min-width: 0; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); box-shadow: 0 2px 0 rgba(18, 12, 36, .35); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 400px) { .seg span { padding: 10px 10px; font-size: 13.5px; } .controls .btn { padding-inline: 14px; } }
/* "Pembe" and "Turkuaz" side by side need 329 px at full size; a 360 px
   screen gives the card 296 px, so the pills are a little smaller there
   (280 px; "−18" still fits 3ch at 17 px) */
@media (max-width: 400px) {
  .player { gap: 6px; padding: 4px 10px 4px 4px; font-size: 15px; }
  .player i { width: 22px; height: 22px; }
  .player b { min-width: 3ch; font-size: 17px; }
}
.skins { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1.5px solid var(--line); min-width: 0; }
.skins legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; color: var(--muted); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.skins .opts { clear: both; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 8px; border-radius: 12px; background: var(--surface-soft); font-weight: 800; font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--sw); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12); }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- the boards ----------
   One board for every look: the frame, its squares in a grid, every size a
   part of the board's width (a container). A square is off (not on the
   line), lit (on the line, the pink player to move), calm (on the line, the
   teal player to move: the app's opponent look), taken (empty, no owner) or
   the last move (taken, ringed in its mover's colour). */
.board-box { container-type: inline-size; width: 100%; }
.board.n5 { --n: 5; }
.board {
  --pad: 2.65cqi; --gap: 1.2cqi;
  --sq: calc((100cqi - 2 * var(--pad) - (var(--n) - 1) * var(--gap)) / var(--n));
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap);
  padding: var(--pad); border-radius: 7cqi; aspect-ratio: 1;
  background: var(--board-bg); box-shadow: var(--board-shadow, none);
  isolation: isolate;
}
.sq {
  position: relative; display: grid; place-items: center; min-width: 0; aspect-ratio: 1;
  margin: 0; padding: 0; border: 0; border-radius: calc(var(--sq) * var(--sq-rf));
  background: var(--sq-bg); box-shadow: var(--sq-shadow, none);
  color: var(--c, inherit); font: 800 calc(var(--sq) * .31)/1 var(--f-display);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  text-shadow: var(--v-glow, none);
  -webkit-tap-highlight-color: transparent;
}
.sq .v { padding-top: .08em; pointer-events: none; }
.sq.pos { --c: var(--pos); } .sq.neg { --c: var(--neg); } .sq.zero { --c: var(--zero); }
.sq.off { opacity: var(--off-op); }
.sq.lit { background: var(--lit-bg); box-shadow: var(--lit-shadow); }
.sq.lit.pos { --c: var(--pos-lit, var(--pos)); } .sq.lit.neg { --c: var(--neg-lit, var(--neg)); }
.sq.calm { background: var(--calm-bg); box-shadow: var(--calm-shadow); }
.sq.taken { background: var(--taken-bg); box-shadow: var(--taken-shadow); }
.sq.taken .v { visibility: hidden; }
.sq.by-me { --ring: #FF5C8A; } .sq.by-op { --ring: #1EB3A6; }
.sq.last { z-index: 1; box-shadow: var(--taken-shadow), var(--ring-inset,) 0 0 0 var(--ring-w) var(--ring), 0 0 var(--ring-glow, 0px) var(--ring); }
button.sq { cursor: default; }
button.sq.lit, button.sq.calm { cursor: pointer; }
button.sq:focus-visible { outline: 3px solid var(--focus-ring, #2A1F45); outline-offset: 2px; border-radius: calc(var(--sq) * var(--sq-rf)); z-index: 2; }
@media (hover: hover) { button.sq.lit:hover, button.sq.calm:hover { translate: 0 -1px; } }
.sq.pop { animation: pop 380ms both; }
@keyframes pop {
  0% { scale: 1; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
  45% { scale: 1.22; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
  100% { scale: 1; }
}
.sq.nope { animation: nope 260ms; }
@keyframes nope { 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }

/* Klasik, the free board (decision 145): flat and readable. */
.skin-klasik, .skin-auto {
  --board-bg: #E9E4F3; --sq-bg: #FFFFFF; --sq-shadow: 0 1px 0 #D6CFE6; --sq-rf: .15; --off-op: .6;
  --lit-bg: #FFF3CC; --lit-shadow: inset 0 0 0 max(1.5px, .6cqi) #F2B32B;
  --calm-bg: #EAF8F6; --calm-shadow: inset 0 0 0 max(1px, .45cqi) #8FD9D1;
  --taken-bg: #DCD5EA; --taken-shadow: inset 0 2px 3px rgba(42, 31, 69, .16);
  --ring-w: max(1.5px, .75cqi);
  --pos: #17924F; --zero: #776C93; --neg: #D93F58;
  --focus-ring: #2A1F45; --sw: #E9E4F3;
}
/* Neon Gece (B4): the night sign. Also the board the page shows in dark mode
   until a look is picked (.skin-auto). */
.skin-neon {
  --board-bg: radial-gradient(80% 60% at 15% 0%, rgba(255, 92, 168, .22), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(46, 240, 224, .16), transparent 70%), repeating-linear-gradient(to bottom, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px), #120E29;
  --board-shadow: inset 0 0 0 2px #FF5CA8, inset 0 0 16px rgba(255, 92, 168, .6), 0 0 18px rgba(255, 92, 168, .25);
  --sq-bg: #1F1947; --sq-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); --sq-rf: .21; --off-op: 1;
  --lit-bg: #2E282F; --lit-shadow: inset 0 0 0 1.5px #FFE45C, 0 0 14px -2px rgba(255, 228, 92, .9);
  --calm-bg: #1F1947; --calm-shadow: inset 0 0 0 1px rgba(46, 240, 224, .6);
  --taken-bg: #0B0920; --taken-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
  --ring-inset: inset; --ring-w: 2px; --ring-glow: 14px;
  --pos: #5CF2A6; --zero: #8E86B8; --neg: #FF6B8B;
  --pos-lit: #6CFFB2; --neg-lit: #FF7A96;
  --v-glow: 0 0 .32em currentColor;
  --focus-ring: #FFFFFF; --sw: #120E29;
}
@media (prefers-color-scheme: dark) {
  .skin-auto {
    --board-bg: radial-gradient(80% 60% at 15% 0%, rgba(255, 92, 168, .22), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(46, 240, 224, .16), transparent 70%), repeating-linear-gradient(to bottom, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px), #120E29;
    --board-shadow: inset 0 0 0 2px #FF5CA8, inset 0 0 16px rgba(255, 92, 168, .6), 0 0 18px rgba(255, 92, 168, .25);
    --sq-bg: #1F1947; --sq-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); --sq-rf: .21; --off-op: 1;
    --lit-bg: #2E282F; --lit-shadow: inset 0 0 0 1.5px #FFE45C, 0 0 14px -2px rgba(255, 228, 92, .9);
    --calm-bg: #1F1947; --calm-shadow: inset 0 0 0 1px rgba(46, 240, 224, .6);
    --taken-bg: #0B0920; --taken-shadow: inset 0 2px 6px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .04);
    --ring-inset: inset; --ring-w: 2px; --ring-glow: 14px;
    --pos: #5CF2A6; --zero: #8E86B8; --neg: #FF6B8B;
    --pos-lit: #6CFFB2; --neg-lit: #FF7A96;
    --v-glow: 0 0 .32em currentColor;
    --focus-ring: #FFFFFF;
  }
}
/* Ahşap (K4): a carved wooden board, in flat colours. */
.skin-ahsap {
  --board-bg: #A66E3E; --sq-bg: #EACB9A; --sq-shadow: 0 1px 0 #8C5830; --sq-rf: .15; --off-op: .55;
  --lit-bg: #FBDC90; --lit-shadow: inset 0 0 0 max(1.5px, .6cqi) #E09A2B;
  --calm-bg: #D8ECE5; --calm-shadow: inset 0 0 0 max(1px, .45cqi) #8FCFC4;
  --taken-bg: #734421; --taken-shadow: inset 0 2px 3px rgba(0, 0, 0, .45);
  --ring-w: max(1.5px, .75cqi);
  --pos: #2E6B1F; --zero: #7A5A3A; --neg: #A3261B;
  --focus-ring: #FFFFFF; --sw: #A66E3E;
}
/* Çıkartma (K4, V4): stickers on a cutting mat, ink edges, a ±2° tilt. */
.skin-cikartma {
  --board-bg: #8ED0F5; --board-shadow: inset 0 0 0 2.5px #16130E;
  --sq-bg: #FFFDF5; --sq-shadow: inset 0 0 0 max(1.5px, .6cqi) #16130E; --sq-rf: .15; --off-op: .55;
  --lit-bg: #FFE45C; --lit-shadow: inset 0 0 0 max(1.5px, .6cqi) #16130E;
  --calm-bg: #D2F4EE; --calm-shadow: inset 0 0 0 max(1px, .45cqi) rgba(22, 19, 14, .45);
  --taken-bg: #4FA9DC; --taken-shadow: inset 0 2px 5px rgba(22, 19, 14, .35);
  --ring-w: max(1.5px, .75cqi);
  --pos: #128A3E; --zero: #6B6253; --neg: #E13B1C;
  --focus-ring: #16130E; --sw: #8ED0F5;
}
.skin-cikartma .sq:nth-child(4n+1) { rotate: -2deg; }
.skin-cikartma .sq:nth-child(4n+2) { rotate: 1.5deg; }
.skin-cikartma .sq:nth-child(4n+3) { rotate: 2deg; }
.skin-cikartma .sq:nth-child(4n) { rotate: -1deg; }
.skin-cikartma .sq.taken::after { content: ""; position: absolute; inset: max(2px, .6cqi); border: max(1.5px, .6cqi) dashed rgba(22, 19, 14, .45); border-radius: calc(var(--sq) * .12); }
/* Jelibon (B1): jelly candies on a pink tray; + candies cool, − candies warm
   and sour (matte, sugar-dusted); the line ringed white then pink or teal. */
.skin-jelibon {
  --board-bg: repeating-linear-gradient(45deg, rgba(255, 143, 180, .18) 0 2.6cqi, transparent 2.6cqi 5.2cqi), #FFE6EF;
  --board-shadow: inset 0 0 0 max(2px, .9cqi) #FFFFFF, 0 0 0 max(2px, .9cqi) #FF8FB4, 0 max(2px, .8cqi) 0 max(2px, .9cqi) #E46A95;
  --sq-rf: .31; --off-op: 1;
  --taken-bg: radial-gradient(circle at 50% 38%, rgba(190, 120, 155, .10), rgba(190, 120, 155, .24));
  --taken-shadow: inset 0 3px 7px rgba(150, 70, 112, .28), inset 0 0 0 1px rgba(255, 255, 255, .7);
  --ring-w: max(2.5px, 1.05cqi);
  --pos: #0C7F3C; --zero: #6B5B7A; --neg: #D2173F;
  --focus-ring: #2A1F45; --sw: #FF8FB4;
}
/* each candy's own colour: declared on the square, so var() resolves there */
.skin-jelibon .sq {
  --candy: #FFB3C7;
  --sq-bg: linear-gradient(165deg, color-mix(in srgb, var(--candy), #FFFFFF 45%), var(--candy));
  --sq-shadow: inset 0 calc(var(--sq) * -.08) 0 rgba(120, 40, 80, .12), 0 2px 0 rgba(200, 80, 130, .18);
  --lit-bg: var(--sq-bg); --lit-shadow: var(--sq-shadow), 0 0 0 max(1px, .45cqi) #FFFFFF, 0 0 0 max(2.5px, 1.05cqi) #FF5C8A;
  --calm-bg: var(--sq-bg); --calm-shadow: var(--sq-shadow), 0 0 0 max(1px, .45cqi) #FFFFFF, 0 0 0 max(2.5px, 1.05cqi) #1EB3A6;
  text-shadow: 0 0 .45em rgba(255, 255, 255, .95), .07em .07em 0 #FFF, -.07em .07em 0 #FFF, .07em -.07em 0 #FFF, -.07em -.07em 0 #FFF, 0 .1em 0 #FFF, 0 -.1em 0 #FFF, .1em 0 0 #FFF, -.1em 0 0 #FFF;
}
.skin-jelibon .sq.pos.c0 { --candy: #B8F0C4; } .skin-jelibon .sq.pos.c1 { --candy: #A8E6FF; } .skin-jelibon .sq.pos.c2 { --candy: #D6F2A6; }
.skin-jelibon .sq.neg.c0 { --candy: #FFB3C7; } .skin-jelibon .sq.neg.c1 { --candy: #FFC9A3; } .skin-jelibon .sq.neg.c2 { --candy: #FFA7A1; }
.skin-jelibon .sq.zero { --candy: #CDB8FF; }
.skin-jelibon .sq:not(.taken):not(.neg)::before { content: ""; position: absolute; left: 20%; top: 14%; width: 19.6%; height: 19.6%; border-radius: 50%; background: rgba(255, 255, 255, .95); }
.skin-jelibon .sq.neg:not(.taken) { background: radial-gradient(rgba(255, 255, 255, .85) 18%, transparent 24%) 0 0 / 14% 14%, linear-gradient(165deg, color-mix(in srgb, var(--candy), #FFFFFF 30%), color-mix(in srgb, var(--candy), #8E7F88 14%)); }
.skin-jelibon .sq.last { box-shadow: var(--taken-shadow), 0 0 0 max(1px, .45cqi) #FFFFFF, 0 0 0 max(2.5px, 1.05cqi) var(--ring); }
/* Piksel Arcade (B2): an 8-bit arcade screen, pixel numbers, dashed line. */
.skin-piksel {
  --board-bg: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), #0A0A16;
  --board-shadow: inset 0 0 0 2px #0E0E1C, inset 0 0 0 6px #23233A, inset 0 0 26px rgba(80, 120, 255, .22);
  --sq-bg: #191938; --sq-shadow: inset 0 0 0 2px #2B2B5E, inset -3px -3px 0 rgba(0, 0, 0, .35); --sq-rf: .06; --off-op: 1;
  --lit-bg: #2A2A6E; --lit-shadow: inset 0 0 0 2px #2B2B5E;
  --calm-bg: #2A2A6E; --calm-shadow: inset 0 0 0 2px #2B2B5E;
  --taken-bg: #0D0D20; --taken-shadow: inset 3px 3px 0 rgba(0, 0, 0, .45), inset 0 0 0 2px #1B1B3A;
  --ring-w: 0px;
  --pos: #6BFF8F; --zero: #9A9AC8; --neg: #FF5B6B;
  --focus-ring: #FFFFFF; --sw: #191938;
}
.skin-piksel .sq .v { color: transparent; text-shadow: none; }
.skin-piksel .sq:not(.taken) .v::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--sq) * .34); height: calc(var(--sq) * .216);
  translate: -50% -50%; background: var(--c);
  -webkit-mask: var(--px) center / contain no-repeat; mask: var(--px) center / contain no-repeat;
}
.skin-piksel .sq.lit::after, .skin-piksel .sq.calm::after { content: ""; position: absolute; inset: max(2px, .9cqi); border: 2px dashed #FFE45C; border-radius: 2px; }
.skin-piksel .sq.calm::after { border-color: #2EF0E0; }
.skin-piksel .sq.last::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--ring); border-radius: 3px; }
/* Okyanus (B3): the sea floor; glassy squares, the line in light. */
.skin-okyanus {
  --board-bg: repeating-radial-gradient(circle at 30% 40%, rgba(170, 230, 255, .12) 0 1.5cqi, transparent 1.5cqi 6cqi), repeating-radial-gradient(circle at 70% 65%, rgba(255, 255, 255, .08) 0 1.2cqi, transparent 1.2cqi 5cqi), linear-gradient(#0F6EA8, #093A5E);
  --board-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
  --sq-bg: linear-gradient(160deg, rgba(225, 247, 255, .93), rgba(165, 222, 242, .88));
  --sq-shadow: inset 0 -.55cqi 0 rgba(9, 58, 94, .25); --sq-rf: .25; --off-op: 1;
  --lit-bg: linear-gradient(160deg, #FFF7CF, #FFE27E); --lit-shadow: 0 0 0 2px #FFD54A, 0 0 14px rgba(255, 230, 140, .7);
  --calm-bg: linear-gradient(160deg, #DBFFF6, #9DEBDC); --calm-shadow: 0 0 0 2px #1EB3A6, 0 0 12px rgba(30, 179, 166, .55);
  --taken-bg: radial-gradient(circle at 50% 45%, #0D4C78, #082E4B); --taken-shadow: inset 0 2px 6px rgba(0, 0, 0, .4);
  --ring-w: max(2px, .75cqi);
  --pos: #0B6B45; --zero: #3F6A80; --neg: #B32443;
  --focus-ring: #FFFFFF; --sw: #0F6EA8;
}

/* Şamata / Mayhem, the fun mode: its own section on a livelier card, each special square as the app draws it,
   with its name and what it does */
.b-samata { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 22px; border-radius: 26px; margin-bottom: 64px;
  background: radial-gradient(70% 90% at 0% 0%, var(--glow-pink), transparent 70%), radial-gradient(70% 90% at 100% 100%, var(--glow-mint), transparent 70%), var(--surface);
  box-shadow: 0 4px 0 var(--edge); }
.b-samata-words { display: flex; flex-direction: column; gap: 12px; max-width: 34rem; }
.b-samata-words p { margin: 0; font-size: 18px; }
.b-samata-words .b-kicker { margin: 0; font-weight: 800; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }
.b-specials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.b-specials li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.b-specials img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.b-specials div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-specials b { font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.b-specials span { font-size: 15px; line-height: 1.4; color: var(--muted); }
@media (min-width: 560px) { .b-specials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .b-samata { padding: 34px; } }
@media (min-width: 1040px) { .b-samata { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; } }

/* three of the app's stickers, animated (their still frame under reduced motion) */
.b-stick-sec { padding-block: 0 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.b-stick-words { display: flex; flex-direction: column; gap: 12px; max-width: 34rem; }
.b-stick-words p { margin: 0; font-size: 18px; }
.b-stick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.b-stick li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.3; }
.b-stick picture { display: block; width: 100%; max-width: 150px; }
.b-stick img { width: 100%; }
@media (min-width: 960px) {
  .b-stick-sec { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .b-stick { grid-template-columns: repeat(3, 150px); gap: 24px; }
}

/* the questions */
.b-faq { padding-block: 0 64px; display: flex; flex-direction: column; gap: 18px; max-width: 46rem; }
.b-faq details { border-top: 1.5px solid var(--line); padding-block: 14px; }
.b-faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.b-faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: "+"; font: 800 22px/1 var(--f-display); color: var(--me); }
.b-faq details[open] summary::after { content: "−"; }
.b-faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- legal pages (their text is the old pages', word for word) ---------- */
.legal { max-width: 800px; margin-inline: auto; padding-block: 12px 24px; }
.legal section { scroll-margin-top: 16px; margin: 0 0 28px; padding: clamp(22px, 5vw, 44px); border-radius: 24px; background: var(--surface); box-shadow: 0 4px 0 var(--edge); overflow-wrap: break-word; }
.legal h1 { margin: 0 0 14px; font-size: clamp(30px, 5.4vw, 42px); line-height: 1.1; letter-spacing: -.3px; }
.legal h2 { margin: 34px 0 10px; font-size: clamp(21px, 3vw, 25px); line-height: 1.2; }
.legal p, .legal li { line-height: 1.65; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.35em; }
.legal li { margin: 0; padding-left: .2em; }
.legal li + li { margin-top: .5em; }
.legal li > ul { margin-top: .5em; margin-bottom: 0; }
.legal ul li::marker { color: var(--me); }
.legal ol li::marker { color: var(--accent-text); font-weight: 800; }
.legal strong { font-weight: 800; }

/* ---------- 404 ---------- */
.lost { display: grid; justify-items: center; gap: 10px; padding-block: 40px 72px; text-align: center; }
.lost img { width: 168px; height: 168px; margin-bottom: 8px; }
.lost h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; }
.lost p { margin: 0; color: var(--muted); font-size: 18px; }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* the cards keep an edge on the dark background */
@media (prefers-color-scheme: dark) { .play-card, .b-samata, .legal section { box-shadow: 0 4px 0 var(--edge), inset 0 0 0 1px var(--line); } }

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

/* Piksel Arcade's numbers: the app's 5×7 pixel glyphs (animated_board.dart) as masks. */
.skin-piksel .sq[data-v="-3"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='9' y='0' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='10' y='1' width='1' height='1'/%3E%3Crect x='10' y='2' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="-2"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='9' y='0' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='10' y='1' width='1' height='1'/%3E%3Crect x='10' y='2' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='10' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="-1"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='8' y='1' width='1' height='1'/%3E%3Crect x='8' y='2' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="0"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="1"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='8' y='1' width='1' height='1'/%3E%3Crect x='8' y='2' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="2"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='9' y='0' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='10' y='1' width='1' height='1'/%3E%3Crect x='10' y='2' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='8' y='4' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3Crect x='10' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
.skin-piksel .sq[data-v="3"] { --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 7' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='8' y='0' width='1' height='1'/%3E%3Crect x='9' y='0' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='10' y='1' width='1' height='1'/%3E%3Crect x='10' y='2' width='1' height='1'/%3E%3Crect x='8' y='3' width='1' height='1'/%3E%3Crect x='9' y='3' width='1' height='1'/%3E%3Crect x='10' y='4' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='8' y='6' width='1' height='1'/%3E%3Crect x='9' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
