/* The STUDIO's page (/<lang>/after-signal: tools/studio-build.mjs), in the game's eight languages. Corporate and balanced (owner's verdict of 2026-10-17: «fine, but the
   sections are unbalanced and it is too much game UI»): the logo given the first screen on a calm night gradient, then five sections with ONE rhythm — the same
   width, the same padding, the same header (a small label and a title) — alternating two flat dark tones: what we make (the game and the tool as two equal cards),
   five house rules, the founder, a status list, a way to write. No glows, no scanlines, no glitch fringes, no numbered pixel kickers, no fake window bars.
   The pixel font only on the big titles; every label is DM Sans. The build replaces __FONT_x__ with the game's own font files; site-nav.css (bar, .sn-btn, footer)
   is appended after this. Nothing moves. Keyframe names would start with st- (tools/check-css.mjs). */
@font-face { font-family: 'Grifo Pixel'; src: url('/assets/grifo-pixel-C0NX-hEd.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 400; src: url('/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 500; src: url('/assets/dm-sans-latin-500-normal-B9HHJjqV.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; font-weight: 700; src: url('/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #04080c; --bg-2: #060d13; --panel: #0a1620; --panel-2: #07121b; --line: #182c3a; --line-hi: #2a4a5e;
  --ink: #e8f0f4; --text: #c4d4dd; --dim: #8fa7b6; --cy: #5fcbe6; --or: #ff9a4a; --ok: #4fe08a; --gold: #ffb24a;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans CJK JP', 'Microsoft YaHei', 'Yu Gothic', sans-serif;
  --pix: 'Grifo Pixel', ui-monospace, monospace;
  --gut: 24px; --max: 1140px; --sec: 92px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; scroll-behavior: smooth; }
body.st { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html:lang(zh) body.st, html:lang(ja) body.st { line-height: 1.85; line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cy); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
.pf { font-family: var(--pix); font-weight: 400; text-transform: uppercase; -webkit-font-smoothing: none; letter-spacing: .02em; }
html:lang(zh) .pf, html:lang(ja) .pf { font-family: var(--sans); font-weight: 700; text-transform: none; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); overflow-wrap: break-word; }
html:lang(de) h2, html:lang(de) h3 { hyphens: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 14px; background: var(--gold); color: #1a0b00; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.st-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* the small label above a title: DM Sans, bold, spaced, muted */
.st-k { margin: 0 0 12px; color: var(--dim); font: 700 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; -webkit-font-smoothing: antialiased; }
html:lang(zh) .st-k, html:lang(ja) .st-k { letter-spacing: .08em; font-size: 13px; text-transform: none; }
.st-sh { margin: 0 0 44px; }
.st-sh h2 { margin: 0; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; }
html:lang(zh) .st-sh h2, html:lang(ja) .st-sh h2 { line-height: 1.35; }

/* ---------- the first screen: the logo on a calm night */
.st-hero { position: relative; display: grid; align-content: center; justify-items: center; min-height: min(700px, calc(100svh - 60px)); padding: 64px var(--gut) 72px; text-align: center; overflow: hidden; isolation: isolate; }
.st-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 38%, rgba(95, 203, 230, .1), transparent 70%), linear-gradient(180deg, #03070a 0%, #051018 70%, #04080c 100%); }
.st-hero-in { display: grid; justify-items: center; max-width: 820px; }
.st-logo { margin: 0 0 34px; line-height: 0; }
.st-logo img { width: min(460px, 76vw); }
.st-statement { margin: 0 0 18px; max-width: 22em; color: #f2f7fa; font-size: clamp(22px, 3.1vw, 34px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
html:lang(zh) .st-statement, html:lang(ja) .st-statement { line-height: 1.55; }
.st-intro { margin: 0; max-width: 36em; color: var(--dim); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; text-wrap: pretty; }
.st-intro a { color: var(--ink); text-decoration-color: rgba(95, 203, 230, .5); }

/* ---------- sections: one rhythm, two flat tones */
.st-sec { padding: var(--sec) 0; border-top: 1px solid #0f1f2a; }
.st-alt { background: var(--bg-2); }

/* ---------- what we make: two equal cards */
.st-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.st-work { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.st-art { display: block; background: #070b10; border-bottom: 1px solid var(--line); }
.st-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; transition: filter .2s; }
.st-art:hover img { filter: brightness(1.1); }
.st-work-t { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.st-work-t > p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.7; }
.st-name { margin: 0 0 16px; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; min-height: 36px; display: flex; align-items: center; }
html:lang(zh) .st-name, html:lang(ja) .st-name { font-family: var(--pix); text-transform: uppercase; -webkit-font-smoothing: none; font-weight: 400; }
.st-name-img img { width: min(300px, 100%); height: auto; }
/* the facts of a work: a spec sheet, label and value, hairlines */
.st-facts { margin: 0 0 26px; border-top: 1px solid var(--line); }
.st-facts div { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.st-facts dt { color: var(--dim); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; padding-top: 2px; }
html:lang(zh) .st-facts dt, html:lang(ja) .st-facts dt { text-transform: none; letter-spacing: .04em; }
.st-facts dd { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.st-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.st-facts + .st-ctas { padding-top: 2px; }

/* ---------- how we work: five rules, a title and its words on each row */
.st-rules { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.st-rules li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 48px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.st-rules h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.st-rules p { margin: 0; color: var(--text); font-size: 16.5px; line-height: 1.65; }

/* ---------- who is behind it */
.st-who-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; }
.st-portrait { padding: 10px; background: #0c1d2a; border: 1px solid var(--line-hi); border-radius: 10px; }
.st-face { display: block; width: 168px; height: 168px; image-rendering: pixelated; }
.st-person { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.st-role { margin: 0 0 20px; color: var(--dim); font-size: 15.5px; }
.st-who-t > p:not(.st-k):not(.st-role) { margin: 0 0 14px; max-width: 40em; font-size: 17px; line-height: 1.7; }
.st-who-t a { color: var(--ink); }
.st-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 20px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); max-width: 40em; }
.st-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; }
.st-links a:hover { color: #fff; }
.st-links .bi { width: 17px; height: 17px; color: #9fb4c2; }
.st-links i { font-style: normal; color: var(--cy); }

/* ---------- right now: a status list, one row per thing, a dot each */
.st-log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.st-log a { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, 1.6fr) 14px; gap: 20px; align-items: center; min-height: 68px; padding: 14px 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: background .15s; }
.st-log a:hover { background: rgba(255, 255, 255, .03); }
.st-log b { font-size: 17px; font-weight: 700; line-height: 1.35; }
.st-log span:not(.st-led) { color: var(--dim); font-size: 15px; line-height: 1.45; }
.st-log i { width: 7px; height: 7px; border: solid #6f8797; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s, border-color .15s; }
.st-log a:hover i { transform: translateX(3px) rotate(45deg); border-color: var(--cy); }
.st-led { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.st-wip .st-led { background: var(--gold); }

/* ---------- let's talk */
.st-talk { text-align: center; }
.st-talk-in { display: grid; justify-items: center; max-width: 760px; }
.st-talk h2 { margin: 0 0 16px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; }
.st-talk-in > p { margin: 0 0 8px; max-width: 34em; color: var(--text); font-size: 17px; }
.st-mail { margin: 16px 0 30px !important; }
.st-mail a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-size: clamp(20px, 3vw, 28px); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(95, 203, 230, .6); text-decoration-thickness: 2px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.st-mail a:hover { color: var(--cy); }
.st-talk .st-ctas { justify-content: center; margin-top: 0; }
.st-ctas .sn-btn .bi { width: 18px; height: 18px; color: #5fcbe6; }

/* ---------- narrower screens */
@media (max-width: 900px) {
  :root { --sec: 72px; }
  .st-works { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .st-rules li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .st-sh { margin-bottom: 36px; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; --sec: 60px; }
  .st-hero { min-height: calc(100svh - 56px); padding: 44px var(--gut) 56px; }
  .st-logo { margin-bottom: 26px; }
  .st-work { margin: 0 calc(-1 * var(--gut)); border-left: 0; border-right: 0; border-radius: 0; }
  .st-work-t { padding: 24px var(--gut) 28px; }
  .st-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
  .st-ctas { flex-direction: column; align-items: stretch; }
  .st-who-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .st-face { width: 120px; height: 120px; }
  .st-log a { grid-template-columns: 12px minmax(0, 1fr) 12px; gap: 4px 14px; }
  .st-log a span:not(.st-led) { grid-column: 2; grid-row: 2; }
  .st-log i { grid-column: 3; grid-row: 1 / span 2; }
  .st-log .st-led { grid-row: 1 / span 2; }
}
/* a phone on its side: the first screen is short — the logo smaller */
@media (max-height: 520px) and (max-width: 1024px) {
  .st-hero { min-height: auto; padding: 36px var(--gut) 44px; }
  .st-logo img { width: min(300px, 46vw); }
  .st-logo { margin-bottom: 20px; }
  .st-statement { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st-art img, .st-log a, .st-log i { transition: none; }
}
@media print { .st-sky, .st-ctas { display: none; } body.st { background: #fff; color: #000; } }

/* The ONE top bar of every public page (markup: app/site-nav.js). Imported by info-v2.css (informative pages) and appended to the showcase stylesheet by
   tools/showcase-build.mjs (blog, Tale Rocket). Self-contained: its own --sn- colours; the pages define the fonts (Grifo Pixel, DM Sans).
   Corporate and quiet (owner's verdict of 2026-10-17: the public pages looked too much like the game's HUD): flat dark surfaces, hairlines, no icons in the menus,
   no glows, no glitch fringes, no scanlines; the pixel font stays only in the logo and the buttons. «Menos es más».
   No script needed: every menu is a <details>; on a desktop with a mouse «Descubre» also opens on hover (::details-content; browsers without it open on click).
   Phones (≤ 760 px, or a phone on its side: ≤ 520 px tall and ≤ 1024 px wide) get a hamburger with a full-height panel.
   The bar has no backdrop-filter of its own (it would trap the panel's position: fixed): the blur lives on its ::before. Keyframes: none. */

.sn-bar, .sn-foot { --sn-h: 60px; --sn-bg: #04080c; --sn-panel: #07111a; --sn-line: #182c3a; --sn-line-hi: #2a4a5e; --sn-ink: #e8f0f4; --sn-text: #c4d4dd; --sn-dim: #8fa7b6;
  --sn-cy: #5fcbe6; --sn-or: #ff8a3d; --sn-gold: #ffb24a;
  --sn-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --sn-pix: 'Grifo Pixel', ui-monospace, monospace; }
.sn-bar {
  position: sticky; top: 0; z-index: 50; isolation: isolate; background: rgba(4, 8, 12, .9); border-bottom: 1px solid #12232f;
  font-family: var(--sn-sans); line-height: 1.3; }
.sn-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.sn-bar *, .sn-bar *::before, .sn-bar *::after { box-sizing: border-box; }
.sn-bar ul { margin: 0; padding: 0; list-style: none; }
.sn-bar summary { list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.sn-bar summary::-webkit-details-marker { display: none; }
.sn-bar a, .sn-bar summary { -webkit-tap-highlight-color: transparent; }
.sn-bar :focus-visible { outline: 2px solid var(--sn-gold); outline-offset: 2px; }
.sn-bar .bi { flex: none; }

.sn-in { position: relative; max-width: 1180px; height: var(--sn-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.sn-logo { flex: none; color: #f2f5f7; text-decoration: none; font: 400 17px/1 var(--sn-pix); text-transform: uppercase; white-space: nowrap; letter-spacing: .01em; -webkit-font-smoothing: none; }
.sn-logo b { color: var(--sn-cy); font-weight: 400; }
.sn-logo:hover { color: #fff; }

/* the small down-pointing caret of the menus */
.sn-caret { display: inline-block; width: 0; height: 0; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0; transition: transform .15s; }
details[open] > summary .sn-caret { transform: rotate(180deg); }

/* ---------- desktop menu */
.sn-nav { height: 100%; min-width: 0; }
.sn-menu { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.sn-menu > li { display: flex; }
.sn-top { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; color: var(--sn-dim); text-decoration: none; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; border-bottom: 2px solid transparent; transition: color .12s, border-color .12s; }
.sn-top:hover, .sn-disc[open] > .sn-top { color: #fff; }
.sn-top[aria-current="page"], .sn-top.sn-on { color: var(--sn-ink); border-bottom-color: var(--sn-cy); }
.sn-top:focus-visible { outline-offset: -4px; }
.sn-disc { display: flex; }
.sn-disc > summary { height: var(--sn-h); }

/* the mega-menu: a plain dark card under the bar, centred on the page */
.sn-mega { position: absolute; top: 100%; left: 50%; z-index: 60; width: min(900px, calc(100vw - 32px)); transform: translateX(-50%); margin-top: 1px;
  background: var(--sn-panel); border: 1px solid var(--sn-line-hi); border-radius: 10px; box-shadow: 0 22px 50px rgba(0, 0, 0, .55); overflow: hidden;
  color: var(--sn-text); text-align: left; }
.sn-mega-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 28px; padding: 22px 24px 18px; }
.sn-h { margin: 0 0 10px; padding: 0 12px; color: #7f98a8; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
html:lang(zh) .sn-h, html:lang(ja) .sn-h { letter-spacing: .04em; font-size: 12.5px; }
.sn-col ul { display: grid; gap: 2px; }
.sn-item { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; color: var(--sn-ink); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 6px; }
.sn-item:hover, .sn-rich:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sn-item[aria-current="page"], .sn-rich[aria-current="page"] { background: rgba(95, 203, 230, .1); color: #fff; }
.sn-rich { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--sn-ink); text-decoration: none; border-radius: 6px; }
.sn-rt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sn-rh { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.sn-rt b { font-size: 15px; font-weight: 700; }
.sn-rt small { color: var(--sn-dim); font-size: 13px; line-height: 1.4; }
/* a small category tag (After Signal: «Estudio de juegos»; Tale Rocket: «Creador de juegos»): amber text on a faint amber tint with an amber outline, the text centred in the chip */
.sn-tag { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 22px; padding: 2px 10px 0; color: var(--sn-gold); font-size: 11.5px; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  background: rgba(255, 178, 74, .1); border: 1px solid rgba(255, 178, 74, .55); border-radius: 999px; }
/* (the fonts' own metrics sit the letters a little high in the chip: a small top padding centres them by eye; the CJK fallback fonts need a bit more) */
html:lang(zh) .sn-tag, html:lang(ja) .sn-tag { padding-top: 3px; }
.sn-chev { flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid #6f8797; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .12s, border-color .12s; }
.sn-rich:hover b { color: #fff; }
.sn-rich:hover .sn-chev { transform: translateX(3px) rotate(45deg); border-color: var(--sn-cy); }

/* the highlighted card: the newest bulletin of the blog (cover, number, title) */
.sn-promo { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; color: var(--sn-ink); text-decoration: none; overflow: hidden;
  background: #0a1620; border: 1px solid var(--sn-line); border-radius: 8px; transition: border-color .12s; }
.sn-promo:hover { border-color: var(--sn-line-hi); }
.sn-promo-k { color: var(--sn-dim); font-size: 11px; letter-spacing: .1em; line-height: 1.4; }
.sn-promo-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: #0c1d2a; }
.sn-promo-t { font-size: 14.5px; font-weight: 700; line-height: 1.38; color: var(--sn-ink); }
.sn-promo-cta { color: var(--sn-cy); font-size: 12.5px; letter-spacing: .04em; }
/* the pixel font only for titles and big text (owner, 2026-10-17): the card's small kicker and call are DM Sans */
.sn-bar .sn-promo-k.pf, .sn-bar .sn-promo-cta.pf { font-family: var(--sn-sans); font-weight: 700; text-transform: uppercase; -webkit-font-smoothing: antialiased; }
.sn-promo:hover .sn-promo-cta, .sn-promo:hover .sn-promo-t { color: #fff; }

/* the strip of quick links at the bottom: plain words */
.sn-strip { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 8px 24px; border-top: 1px solid var(--sn-line); background: rgba(0, 0, 0, .22); }
.sn-strip a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--sn-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
.sn-strip a i { font-style: normal; font-size: 12px; color: var(--sn-dim); }
.sn-strip a:hover { color: #fff; }
.sn-strip a[aria-current="page"] { color: #fff; }

/* a mouse on a desktop: hovering «Descubre» shows the card too (the summary fills the bar's height, so moving down never leaves it) */
@media (hover: hover) and (pointer: fine) {
  .sn-disc:hover::details-content { content-visibility: visible; }
  .sn-disc:hover > .sn-top { color: #fff; }
  .sn-disc:hover > summary .sn-caret { transform: rotate(180deg); }
}

/* ---------- the right side: language and play */
.sn-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.sn-lang { position: relative; }
.sn-lang > summary { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; color: #cfe3ec; background: transparent; border: 1px solid var(--sn-line-hi); border-radius: 6px;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; transition: border-color .12s, color .12s; }
.sn-lang > summary .sn-caret { margin-left: 0; }
.sn-lang > summary:hover, .sn-lang[open] > summary { color: #fff; border-color: #4f7f95; }
.sn-lang .sn-globe { width: 17px; height: 17px; flex: none; color: #8fb0c2; }
.sn-lg-short { display: none; font-weight: 700; letter-spacing: .06em; }
.sn-lang .lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 172px; display: grid; padding: 4px; background: var(--sn-panel);
  border: 1px solid var(--sn-line-hi); border-radius: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.sn-lang .lang-list a, .sn-lang-grid a { padding: 9px 12px; color: var(--sn-text); text-decoration: none; font-size: 14.5px; line-height: 1.3; border-radius: 5px; }
.sn-lang .lang-list a:hover, .sn-lang-grid a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sn-lang .lang-list a[aria-current], .sn-lang-grid a[aria-current] { color: #fff; background: rgba(95, 203, 230, .12); }

/* «Jugar»: the game's button (the landing's primary .ea-btn.pri), calmed: dark box, cyan edge, Grifo Pixel; hover lights the frame, press flashes orange */
.sn-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 0 16px; color: #e9fbff; text-decoration: none; white-space: nowrap; border-radius: 6px;
  font: 400 15px/1 var(--sn-pix, 'Grifo Pixel'), monospace; text-transform: uppercase; letter-spacing: .03em; -webkit-font-smoothing: none;
  background: rgba(95, 203, 230, .08); box-shadow: inset 0 0 0 1.5px rgba(95, 203, 230, .55);
  transition: background .12s, box-shadow .12s, color .12s; }
.sn-play::before { content: ""; width: 9px; height: 11px; flex: none; background: var(--sn-cy, #5fcbe6); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sn-play:hover, .sn-play:focus-visible { color: #fff; background: rgba(95, 203, 230, .18); box-shadow: inset 0 0 0 1.5px #5fcbe6; }
.sn-play:focus-visible { outline: 2px solid #ffb24a; outline-offset: 3px; }
.sn-play:active { transform: translateY(1px); color: #fff3e6; background: rgba(255, 150, 70, .25); box-shadow: inset 0 0 0 1.5px #ff8a3d; transition: none; }
.sn-play-lg { min-height: 48px; padding: 0 30px; font-size: 16px; }
html:lang(zh) .sn-play, html:lang(ja) .sn-play { font: 700 14px/1 var(--sn-sans, system-ui), sans-serif; text-transform: none; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }

.sn-bar .pf { font-family: var(--sn-pix); font-weight: 400; text-transform: uppercase; -webkit-font-smoothing: none; }
/* Chinese and Japanese: the pixel font has no CJK (the game's name stays in it) */
html:lang(zh) .sn-bar .pf:not(.sn-logo), html:lang(ja) .sn-bar .pf:not(.sn-logo) { font-family: var(--sn-sans); font-weight: 700; text-transform: none; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
html:lang(zh) .sn-bar .sn-logo.pf, html:lang(ja) .sn-bar .sn-logo.pf { font-family: var(--sn-pix); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; -webkit-font-smoothing: none; }

/* the hamburger and its panel exist only on phones */
.sn-burger { display: none; }

/* ---------- medium widths: the language shrinks to its two letters, the menu gets tighter */
@media (max-width: 1040px) {
  .sn-in { gap: 12px; padding: 0 16px; }
  .sn-top { padding: 0 9px; font-size: 14px; }
  .sn-lg-full { display: none; }
  .sn-lg-short { display: inline; }
  .sn-lang > summary { padding: 0 10px; }
}
@media (max-width: 900px) {
  .sn-logo { font-size: 14px; }
  .sn-play { padding: 0 12px; font-size: 13px; }
  .sn-mega-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .sn-promo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-areas: "i k" "i t" "i c"; align-content: center; gap: 6px 20px; }
  .sn-promo-k { grid-area: k; align-self: end; } .sn-promo-shot { grid-area: i; } .sn-promo-t { grid-area: t; } .sn-promo-cta { grid-area: c; align-self: start; }
}

/* ---------- phones (and phones on their side): logo · play sign · ☰ */
@media (max-width: 760px), (max-height: 520px) and (max-width: 1024px) {
  .sn-bar { --sn-h: 56px; }
  .sn-in { gap: 10px; padding: 0 12px 0 14px; }
  .sn-logo { font-size: 15px; }
  .sn-nav, .sn-tools > .sn-lang { display: none; }
  .sn-tools { gap: 8px; }
  .sn-tools > .sn-play { width: 42px; min-height: 40px; padding: 0; }
  .sn-tools > .sn-play span { display: none; }
  .sn-tools > .sn-play::before { width: 12px; height: 14px; }
  .sn-burger { display: block; }
  .sn-burger-btn { display: grid; place-items: center; width: 44px; height: 40px; color: #e9fbff; background: transparent; border: 1px solid var(--sn-line-hi); border-radius: 6px; }
  .sn-burger-btn:hover, .sn-burger[open] > .sn-burger-btn { border-color: #4f7f95; }
  .sn-bars, .sn-bars::before, .sn-bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .15s, background .15s; }
  .sn-bars { position: relative; }
  .sn-bars::before, .sn-bars::after { content: ""; position: absolute; left: 0; }
  .sn-bars::before { top: -6px; } .sn-bars::after { top: 6px; }
  .sn-burger[open] .sn-bars { background: transparent; }
  .sn-burger[open] .sn-bars::before { transform: translateY(6px) rotate(45deg); }
  .sn-burger[open] .sn-bars::after { transform: translateY(-6px) rotate(-45deg); }
  /* the panel: everything under the bar, scrolling on its own; the page behind does not scroll */
  .sn-panel { position: fixed; left: 0; right: 0; top: var(--sn-h); bottom: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); background: #05101a; border-top: 1px solid var(--sn-line); display: flex; flex-direction: column; gap: 4px; }
  html:has(.sn-burger[open]), html:has(.sn-burger[open]) body { overflow: hidden; }
  .sn-pnav { display: flex; flex-direction: column; }
  .sn-prow { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 6px; color: var(--sn-ink); text-decoration: none;
    font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--sn-line); }
  .sn-prow[aria-current="page"] { color: var(--sn-cy); }
  .sn-acc > summary .sn-caret { margin-right: 6px; }
  .sn-acc[open] > summary { color: #fff; border-bottom-color: transparent; }
  .sn-acc[open] { padding-bottom: 10px; border-bottom: 1px solid var(--sn-line); }
  .sn-acc .sn-h { margin: 12px 0 6px; padding: 0 6px; }
  .sn-acc ul { display: grid; gap: 2px; }
  .sn-acc .sn-item { padding: 6px 6px; font-size: 15.5px; }
  .sn-acc .sn-rich { padding: 10px 6px; }
  .sn-panel .sn-strip { padding: 8px 6px; margin: 0; background: none; border-top: 0; border-bottom: 1px solid var(--sn-line); gap: 0 20px; }
  .sn-panel .sn-strip a { min-height: 44px; font-size: 15px; }
  .sn-panel > .sn-h { margin: 16px 0 6px; padding: 0 6px; }
  .sn-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  .sn-lang-grid a { padding: 11px 10px; font-size: 15px; }
  .sn-panel > .sn-play { margin-top: 18px; width: 100%; flex: none; }
}
@media (max-height: 520px) and (max-width: 1024px) and (min-width: 561px) {
  .sn-lang-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 360px) { .sn-logo { font-size: 13px; } }

/* ---------- the site's one BUTTON (every public page): dark box, cyan edge, Grifo Pixel — the game's button, calmed (no glow, no glitch fringe, a plain arrow instead of
   the signal glyph). Hover lights the frame; press flashes orange. .sn-btn-q is the quiet one (a hairline frame). Works on any page: its colours are its own. */
.sn-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 18px 0 20px; color: #e9fbff; text-decoration: none; border-radius: 6px;
  font: 400 15px/1.15 'Grifo Pixel', ui-monospace, monospace; text-transform: uppercase; letter-spacing: .03em; text-align: center; -webkit-font-smoothing: none; cursor: pointer;
  background: rgba(95, 203, 230, .08); border: 0; box-shadow: inset 0 0 0 1.5px rgba(95, 203, 230, .55);
  transition: background .12s, box-shadow .12s, color .12s; --pi-water: #5fcbe6; --pi-accent: #ff8a3d; }
.sn-btn::after { content: ""; flex: none; width: 7px; height: 7px; margin-left: -2px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .8; transition: transform .12s; }
.sn-btn .pi, .sn-btn .bi { width: 18px; height: 18px; color: #5fcbe6; }
.sn-btn:hover, .sn-btn:focus-visible { color: #fff; background: rgba(95, 203, 230, .18); box-shadow: inset 0 0 0 1.5px #5fcbe6; }
.sn-btn:hover::after { transform: translateX(3px) rotate(45deg); }
.sn-btn:focus-visible { outline: 2px solid #ffb24a; outline-offset: 3px; }
.sn-btn:active { transform: translateY(1px); color: #fff3e6; background: rgba(255, 150, 70, .25); box-shadow: inset 0 0 0 1.5px #ff8a3d; transition: none; }
.sn-btn-q { background: transparent; box-shadow: inset 0 0 0 1px rgba(143, 167, 182, .4); color: #cfe3ec; }
.sn-btn-q::after { opacity: .5; }
.sn-btn-q:hover, .sn-btn-q:focus-visible { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(143, 167, 182, .75); }
.sn-btn-q:hover::after, .sn-btn-q:focus-visible::after { opacity: .85; }
/* a page outside the site: «↗» instead of the arrow */
.sn-btn[data-ext]::after { content: "↗"; width: auto; height: auto; margin-left: 0; border: 0; transform: none; font: 700 15px/1 var(--sn-sans, 'DM Sans', system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
.sn-btn[data-ext]:hover::after { transform: translate(2px, -2px); }
html:lang(zh) .sn-btn, html:lang(ja) .sn-btn { font: 700 15px/1.3 var(--sn-sans, system-ui), sans-serif; text-transform: none; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }

/* ---------- the site's one FOOTER (markup: siteFoot in app/site-nav.js): the studio's sign, three columns of links, the networks */
.sn-foot { position: relative; z-index: 1; background: #03070a; border-top: 1px solid #12232f; color: var(--sn-text); font: 400 15px/1.5 var(--sn-sans); text-align: left; }
.sn-foot *, .sn-foot *::before, .sn-foot *::after { box-sizing: border-box; }
.sn-foot ul { margin: 0; padding: 0; list-style: none; }
.sn-foot a { -webkit-tap-highlight-color: transparent; }
.sn-foot :focus-visible { outline: 2px solid var(--sn-gold); outline-offset: 2px; }
.sn-foot-in { max-width: 1180px; margin: 0 auto; padding: 46px 24px calc(34px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2.4fr);
  grid-template-areas: "brand nav" "end end"; gap: 30px 56px; }
.sn-fbrand { grid-area: brand; min-width: 0; }
.sn-fstudio { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--sn-ink); text-decoration: none; }
.sn-fstudio img { width: 34px; height: auto; flex: none; }
.sn-fstudio span { display: grid; gap: 5px; }
.sn-fstudio b { font: 700 15px/1 var(--sn-sans); letter-spacing: .24em; }
.sn-fstudio small { color: var(--sn-cy); font-size: 10px; line-height: 1; letter-spacing: .46em; }
.sn-fstudio:hover b { color: #fff; }
.sn-fby { margin: 14px 0 6px; color: var(--sn-dim); font-size: 14px; line-height: 1.5; }
.sn-fby a { color: var(--sn-cy); text-decoration: none; }
.sn-fby a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sn-fmail { margin: 0; }
.sn-fmail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sn-text); font-size: 14px; text-decoration: underline; text-decoration-color: rgba(143, 167, 182, .5); text-underline-offset: 3px; }
.sn-fmail a:hover { color: #fff; text-decoration-color: var(--sn-cy); }
.sn-fnav { grid-area: nav; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
.sn-foot .sn-h { margin: 0 0 8px; padding: 0; }
.sn-fcol a { display: inline-flex; align-items: center; min-height: 36px; color: var(--sn-text); font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.sn-fcol a:hover { color: #fff; }
.sn-fcol a[aria-current="page"] { color: var(--sn-cy); }
.sn-fend { grid-area: end; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--sn-line); }
.sn-fend .sn-h { margin: 0; }
.sn-fsocs { display: flex; flex-wrap: wrap; gap: 4px; margin-right: -10px; }
.sn-fsoc { display: grid; place-items: center; width: 44px; height: 44px; color: #9fb4c2; border-radius: 6px; transition: color .12s, background .12s; }
.sn-fsoc .bi { width: 20px; height: 20px; }
.sn-fsoc:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 900px) {
  .sn-foot-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav" "end"; gap: 28px; padding: 38px 20px calc(30px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .sn-fnav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .sn-fcol:last-child { grid-column: 1 / -1; }
  .sn-fcol:not(:last-child) .sn-h { min-height: 2.5em; }          /* (a title on two lines does not push its column down) */
  .sn-fcol:last-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .sn-fcol a { min-height: 44px; }
  .sn-fend { flex-direction: column; align-items: flex-start; }
  .sn-fsocs { margin: 0 0 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-bar *, .sn-bar *::before, .sn-bar *::after, .sn-foot *, .sn-btn, .sn-btn::after { transition-duration: 0s !important; }
}
@media print { .sn-bar, .sn-fend, .sn-fnav { display: none; } }
