/* The public front page's own look (2.6.3, DESIGN.md "Public site identity: cold to hot"): cyber, modern, animated.
   Idle things are cold electric blue; anything live heats up like a toaster coil. Toast hides in the details: the
   chip's outline is a slice, and typing "toast" (js/front.js) pops it. Loaded only by front.html, after app.css;
   scoped to body.front and front-only fp-* / n-* classes, so the panel never changes. Shared components (buttons,
   inputs, the switch) are re-skinned through their tokens. */

body.front {
  /* warm wire (round 25): the panel's own colours. Off is grey, asleep is violet, anything live is hot orange. */
  --f-void: #0a0d14; --f-surface: #121724; --f-surface-2: #1a2133;
  --f-line: rgba(154, 170, 200, .2); --f-line-strong: rgba(154, 170, 200, .34); --f-grid: transparent;
  --f-ink: #f1f4fa; --f-ink-2: #d3dae6; --f-muted: #a3aec2;
  --f-blue: #8b7bff; --f-blue-ink: #ffa23a; --f-coil: #ff7a2f; --f-on-coil: #1a0d05; --f-coil-ink: #ffa23a;
  --f-amber: #ffe14d; --f-amber-ink: #ffa23a; --f-violet: #8b7bff; --f-heat: #ff9a1f; --f-chip-top: #1a2133; --f-chip-bottom: #0a0d14;
  /* what the shared components read */
  --void: var(--f-void); --panel: var(--f-surface); --panel-solid: var(--f-surface); --panel-2: var(--f-surface-2);
  --raised: var(--f-surface-2); --edge: var(--f-line); --edge-strong: var(--f-line-strong); --line: var(--f-line);
  --text: var(--f-ink); --text-2: var(--f-ink-2); --muted: var(--f-muted);
  --accent: var(--f-blue-ink); --accent-fill: var(--f-coil); --accent-hover: var(--f-coil); --on-accent: var(--f-on-coil);
  --tint-accent: rgba(255, 162, 58, .1); --glow: rgba(255, 122, 47, .5); --glow-soft: rgba(255, 122, 47, .22);
  position: relative; isolation: isolate; background: var(--f-void); color: var(--f-ink); font-size: 16px; line-height: 1.6;
  overflow-x: clip;
}
:root[data-theme="light"] body.front {
  --f-void: #eceef3; --f-surface: #ffffff; --f-surface-2: #f1f3f8;
  --f-line: rgba(18, 21, 29, .15); --f-line-strong: rgba(18, 21, 29, .3); --f-grid: transparent;
  --f-ink: #12151d; --f-ink-2: #262d3d; --f-muted: #4f5a70;
  --f-blue: #4a3bb8; --f-blue-ink: #a33f00; --f-coil: #d0371c; --f-on-coil: #ffffff; --f-coil-ink: #a33f00;
  --f-amber: #d96a00; --f-amber-ink: #8a5300; --f-violet: #4a3bb8; --f-heat: #d96a00; --f-chip-top: #ffffff; --f-chip-bottom: #e2e6ef;
  --tint-accent: rgba(163, 63, 0, .08); --glow: rgba(216, 56, 31, .3); --glow-soft: rgba(216, 56, 31, .12);
}
/* the room: two soft lights that drift behind every public page (the panel's room, without the embers) */
body.front::before, body.front::after { content: ""; position: fixed; z-index: -1; width: 90vmax; height: 90vmax; border-radius: 50%; pointer-events: none; will-change: transform; }
body.front::before { right: -30vmax; top: -48vmax; opacity: .8; background: radial-gradient(closest-side, var(--glow), transparent 72%); animation: room-a 38s ease-in-out infinite alternate; }
body.front::after { left: -34vmax; bottom: -46vmax; opacity: .5; background: radial-gradient(closest-side, color-mix(in srgb, var(--f-violet) 34%, transparent), transparent 72%); animation: room-b 46s ease-in-out infinite alternate; }

/* ---- header ---- */
body.front .pub-top { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 0 14px;
  background: none; border: 0; border-bottom: 1px solid var(--f-line); }
body.front .pub-brand { gap: 10px; font: 700 20px/1 var(--display); letter-spacing: .02em; color: var(--f-ink); }
body.front .pub-brand .logo { width: 30px; height: 30px; }
body.front .logo .lg-edge { fill: none; stroke: var(--f-coil); stroke-width: 1.8; stroke-linejoin: round; }
body.front .logo .lg-trace { fill: none; stroke: var(--f-coil-ink); stroke-width: 1.4; stroke-linecap: round; opacity: .7; }
body.front .logo .lg-core { fill: var(--f-amber); }
body.front .pub-nav { gap: 22px; }
body.front .pub-nav > a:not(.btn) { color: var(--f-ink-2); font: 600 15px/1 var(--display); letter-spacing: .02em; text-decoration: none; }
body.front .pub-nav > a:not(.btn):hover { color: var(--f-ink); }
body.front .pub-demo { background: color-mix(in srgb, var(--f-amber) 10%, transparent); border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--f-amber) 30%, transparent); color: var(--f-ink); font-size: 14px; }

/* ---- shared components, re-skinned: blue edges, the primary button is the hot one ---- */
body.front .btn { min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--f-line-strong);
  background: color-mix(in srgb, var(--f-surface) 80%, transparent); color: var(--f-ink); font: 600 15px/1.1 var(--display);
  letter-spacing: .03em; }
body.front .btn:hover:not(:disabled) { background: var(--f-surface-2); }
body.front .btn.primary { background: var(--f-coil); border-color: var(--f-coil); color: var(--f-on-coil); }
body.front .btn.primary:hover:not(:disabled) { background: var(--f-coil); border-color: var(--f-coil); }
body.front .btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
body.front :is(a, button, summary):focus-visible { outline: 2px solid var(--f-blue-ink); outline-offset: 3px; }
body.front .input { min-height: 44px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface);
  color: var(--f-ink); padding: 8px 12px; }
body.front .input:focus { border-color: var(--f-blue); }
body.front .seg { border: 1px solid var(--f-line-strong); border-radius: 12px; background: var(--f-surface); padding: 3px; gap: 2px; }
body.front .seg-opt span { border: 0; border-radius: 9px; padding: 8px 14px; font: 600 14px/1 var(--display); letter-spacing: .02em;
  color: var(--f-ink-2); }
body.front .seg-opt:hover input:not(:checked) + span { background: var(--f-surface-2); color: var(--f-ink); }
body.front .seg-opt input:checked + span { background: var(--f-coil); color: var(--f-on-coil); }
body.front .hud::before, body.front .hud::after { display: none; }
body.front .alert { border-radius: 12px; }

/* ---- the hero: the pitch on the left, the live node on the right ---- */
body.front .pub { width: min(1200px, calc(100% - 32px)); padding-top: 0; }
.fp-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px;
  align-items: center; padding: 44px 0 36px; }
.fp-hero::before { content: ""; position: absolute; z-index: -1; top: -12%; bottom: -12%; left: 34%; right: calc(50% - 50vw);
  pointer-events: none;
  background: radial-gradient(42% 48% at 56% 46%, color-mix(in srgb, var(--f-blue) 22%, transparent), transparent 70%),
              radial-gradient(28% 32% at 66% 70%, color-mix(in srgb, var(--f-coil) 13%, transparent), transparent 70%);
  animation: fp-aurora 16s ease-in-out infinite alternate; }
@keyframes fp-aurora { to { transform: translate(-5%, 4%) scale(1.1); } }
.fp-kicker { margin: 0 0 18px; font: 600 16px/1.3 var(--display); letter-spacing: .03em; color: var(--f-blue-ink); }
.fp-pitch h1 { margin: 0 0 24px; font: 800 clamp(36px, 4.5vw, 60px)/1.04 var(--display); letter-spacing: -.01em; color: var(--f-ink); }
.fp-l { display: block; animation: fp-rise 800ms cubic-bezier(.2, .8, .2, 1) both; }
.fp-l + .fp-l { animation-delay: 120ms; }
@keyframes fp-rise { from { opacity: 0; transform: translateY(20px); } }
body.front .pub-lead { max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--f-ink-2); }
.fp-highlight { max-width: 46ch; margin: 12px 0 0; font: 700 16px/1.4 var(--display); letter-spacing: .01em; color: var(--f-amber-ink); }
body.front .pub-cta { gap: 12px; margin-top: 30px; }
.fp-note { margin: 12px 0 0; font-size: 15px; color: var(--f-muted); }
.fp-visual { position: relative; }

/* the live node (inline SVG #fp-node, driven by js/front.js): heat 0..1 fades in a violet layer, then the hot one on top
   (--warm, --hot), so the colour runs blue, violet, coil orange and never through a muddy mix */
.fp-node { display: block; width: 100%; height: auto; overflow: visible; --heat: 0;
  animation: fp-node-in 1200ms 150ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fp-node-in { from { opacity: 0; transform: scale(.94); } }
.n-floor ellipse { fill: none; stroke: var(--f-line-strong); stroke-width: 1; }
.n-floor ellipse:nth-child(1) { opacity: .45; }
.n-floor ellipse:nth-child(2) { stroke-dasharray: 2 10; }
.n-ring { fill: none; stroke: var(--f-blue); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: n-ring 3.6s ease-out infinite; }
.n-ring.r2 { animation-delay: 1.2s; }
.n-ring.r3 { animation-delay: 2.4s; }
@keyframes n-ring { from { opacity: .5; transform: scale(.72); } to { opacity: 0; transform: scale(1.5); } }
:root[data-fx="reduced"] .n-ring.r1 { opacity: .3; }
:root[data-fx="reduced"] .n-ring.r2 { opacity: .15; transform: scale(1.3); }
.n-heat { opacity: var(--heat); }
.n-warm { opacity: var(--warm, 0); }
.n-hot { opacity: var(--hot, 0); }
.n-edge { fill: none; stroke: var(--f-blue); stroke-width: 2.5; stroke-linejoin: round; }
.n-edge-warm { stroke: var(--f-violet); }
.n-edge-hot { stroke: var(--f-heat); }
.n-edge-glow { fill: none; stroke: var(--f-heat); stroke-width: 14; stroke-opacity: .22; stroke-linejoin: round; }
.n-traces polyline { fill: none; stroke: var(--f-blue-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.n-pads circle { fill: var(--f-blue-ink); opacity: .8; }
.n-core { fill: var(--f-blue); }
.n-core-warm { fill: var(--f-violet); }
.n-core-hot { fill: var(--f-amber); }
.n-core-blip { fill: #FFFFFF; opacity: 0; }
.n-packet-dot { fill: var(--f-amber); }
.n-packet-glow { fill: var(--f-heat); opacity: .3; }
.n-cover-edge { fill: none; stroke: var(--f-line-strong); stroke-width: 1.2; }
.n-flip { transform-box: fill-box; transform-origin: center; }
.n-slice { opacity: 0; }
.n-chip { cursor: pointer; }
/* the easter egg: toast mode (type "toast", or click the chip five times) */
.n-crust, .n-marks { fill: none; opacity: 0; }
.n-crust { stroke: #9A5A1C; stroke-width: 12; stroke-linejoin: round; }
.n-marks { stroke: #A8631F; stroke-width: 7; stroke-linecap: round; }
:root body.front.toast-mode { --f-chip-top: #F2C27A; --f-chip-bottom: #D58C3A; }
.toast-mode .n-crust { opacity: 1; }
.toast-mode .n-marks { opacity: .75; }
.toast-mode .n-edge, .toast-mode .n-chip .n-warm, .toast-mode .n-chip .n-hot { opacity: 0; }
.toast-mode .n-traces polyline { stroke: #7A4410; }
.toast-mode .n-pads circle { fill: #7A4410; }
.toast-mode .n-core { fill: #FFE7A0; }  /* a pat of butter */
.toast-mode .n-packet-dot { fill: #C98534; }  /* crumbs */
.n-cover.toasted image, .n-cover.toasted .n-cover-edge { opacity: 0; }
.n-cover.toasted .n-slice { opacity: 1; }
body.front.toast-mode .logo .lg-edge { stroke: #D58C3A; }
body.front.toast-mode .logo .lg-core { fill: #FFE7A0; }
.fp-toast { position: fixed; z-index: 60; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
.fp-toast p { display: flex; align-items: center; gap: 12px; max-width: min(380px, calc(100vw - 32px)); margin: 0; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--f-amber); background: var(--f-surface-2); color: var(--f-ink); font-size: 15px;
  line-height: 1.45; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: fp-toast-in 420ms cubic-bezier(.2, .9, .3, 1); }
.fp-toast svg { flex: none; width: 30px; height: 34px; }
@keyframes fp-toast-in { from { opacity: 0; transform: translateY(16px); } }

/* ---- online now: one line under the hero ---- */
.fp-rack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0; padding: 14px 0;
  border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line); }
.fp-rack h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 15px/1.3 var(--display); letter-spacing: .03em;
  color: var(--f-ink); }
body.front .fp-rack .pub-servers { display: flex; flex-wrap: wrap; gap: 4px 24px; }
body.front .fp-rack .pub-servers li { display: flex; gap: 8px; align-items: center; padding: 0; border: 0; }
body.front .fp-rack .pub-servers li.hint { color: var(--f-muted); }
body.front .fp-rack .ps-name { flex-direction: row; gap: 8px; }
body.front .fp-rack .ps-name span, body.front .fp-rack .ps-n { color: var(--f-muted); }
body.front .fp-rack .led.running ~ .ps-n { color: var(--f-amber-ink); }
.fp-uptime { margin-left: auto; color: var(--f-muted); font: 600 14px/1 var(--display); letter-spacing: .01em; text-decoration: none; }
.fp-uptime:hover { color: var(--f-ink-2); }

/* ---- sections: calm, rules and space instead of boxes ---- */
body.front .pub-sec { margin-top: 120px; }
body.front .pub-sec > h2, .fp-sec-head h2 { margin: 0 0 12px; font: 700 clamp(28px, 3.2vw, 40px)/1.12 var(--display); letter-spacing: -.005em;
  color: var(--f-ink); text-wrap: balance; }
.fp-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 12px; }
.fp-sec-head h2 { margin: 0; }
body.front .pub-sub { margin: 0 0 24px; max-width: 60ch; font-size: 17px; color: var(--f-ink-2); }
body.front .hint { color: var(--f-muted); }

.fp-any-grid, .fp-ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fp-any-item, .fp-way { padding-top: 20px; border-top: 1px solid var(--f-line-strong);
  background: linear-gradient(var(--f-blue), var(--f-blue)) 0 -1px / 36px 2px no-repeat; }
.fp-any-item svg, .fp-way svg { width: 34px; height: 34px; fill: none; stroke: var(--f-blue-ink); stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; }
.fp-any-item h3, .fp-way h3 { margin: 12px 0 6px; font: 600 19px/1.3 var(--display); letter-spacing: .01em; color: var(--f-ink); }
.fp-any-item p, .fp-way p { margin: 0; max-width: 40ch; line-height: 1.6; color: var(--f-ink-2); }

/* ---- what happens when it's off: a short, plain checklist, same rule-and-space language as the sections above ---- */
.fp-off-list { display: grid; gap: 12px; max-width: 60ch; margin: 0; padding: 0; list-style: none; }
.fp-off-list li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.6; color: var(--f-ink-2); }
.fp-off-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--f-blue); border-radius: 1px; }

/* ---- prices: the only panels, with a heat line along the top ---- */
body.front .pub-plans { gap: 18px; margin-bottom: 20px; }
body.front .pub-plan { gap: 4px; padding: 24px 24px 22px; border-radius: 14px; border: 1px solid var(--f-line-strong);
  background: linear-gradient(90deg, var(--f-blue), var(--f-coil) 72%, var(--f-amber)) top / 100% 2px no-repeat, var(--f-surface); }
body.front .pub-plan h3 { font: 600 19px/1.2 var(--display); letter-spacing: .01em; color: var(--f-ink); }
body.front .pub-plan > span { font-size: 15px; color: var(--f-ink-2); }
body.front .pub-plan > .pp-price { margin-top: 14px; font: 800 44px/1.05 var(--display); color: var(--f-amber-ink); }
body.front .pub-plan > .pp-price small { font: 600 15px/1 var(--display); letter-spacing: .01em; color: var(--f-ink-2); }
body.front .pub-plan > .pp-money { font-weight: 700; color: var(--f-ink-2); }
body.front .pub-plan > .pp-note { color: var(--f-muted); }
body.front .fp-calc { margin: 8px 0 18px; padding: 24px 26px; border-radius: 14px; background: var(--f-surface-2); }
body.front .fp-calc h3 { margin: 0 0 14px; font: 700 22px/1.2 var(--display); color: var(--f-ink); }
.fp-calc-row { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.fp-calc-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--f-ink-2); }
.fp-calc-row .input { width: 12em; }
.fp-calc-out { max-width: 75ch; margin: 16px 0 0; line-height: 1.6; color: var(--f-ink-2); }
.fp-calc-out b { color: var(--f-ink); }

/* ---- games: a two-row marquee that glides by itself, pauses for the pointer/keyboard, and moves by drag, wheel or
   swipe (js/front.js); a duplicated lane makes the loop seamless. Reduced effects / reduced motion: a single lane,
   no auto-glide, plain horizontal scrolling (.fp-static). Tiles keep the .pub-game art + name card, so logos never
   sit under the label (the solid name bar is the scrim). Search glides to the first match and rings it (.fp-hit). ---- */
.fp-search .input { width: min(260px, 100%); }
.fp-marquee { --fp-tile-w: 168px; --fp-gap: 14px; position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; border-radius: 10px; }
.fp-marquee:active { cursor: grabbing; }
.fp-marquee.fp-static { overflow-x: auto; touch-action: auto; cursor: auto; }
/* soft ends so tiles don't stop at a hard edge (a mask: no colour, works in both themes) */
.fp-marquee:not(.fp-static) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.fp-track { display: flex; gap: var(--fp-gap); will-change: transform; }
.fp-lane { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: var(--fp-tile-w); gap: var(--fp-gap);
  list-style: none; margin: 0; padding: 2px; }
.fp-tile { width: var(--fp-tile-w); cursor: pointer; }
.fp-tile-a { display: block; color: inherit; text-decoration: none; -webkit-user-drag: none; }
.fp-tile-a:focus-visible { outline: 2px solid var(--f-blue-ink); outline-offset: 3px; border-radius: 10px; }
.fp-tile.fp-hit { outline: 2px solid var(--f-coil); outline-offset: 2px; border-radius: 10px; }
.fp-tile.fp-hit > span:last-child { color: var(--f-coil-ink); font-weight: 800; }
body.front .pub-game { border-radius: 10px; border: 1px solid var(--f-line); background: var(--f-surface); }
body.front .pub-game > span:last-child { padding: 9px 12px; font: 600 15px/1.3 var(--display); letter-spacing: .01em; color: var(--f-ink); }
body.front .pub-steps { gap: 32px; }
body.front .pub-steps li { padding: 20px 0 0; border: 0; border-top: 1px solid var(--f-line-strong); border-radius: 0; background: none; }
body.front .pub-steps li::before { font: 800 40px/1 var(--display); color: var(--f-blue-ink); }
body.front .pub-steps b { font: 600 19px/1.3 var(--display); letter-spacing: .01em; color: var(--f-ink); }
.fp-faq details { border-top: 1px solid var(--f-line); }
.fp-faq details:last-of-type { border-bottom: 1px solid var(--f-line); }
.fp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none;
  font: 600 17px/1.35 var(--display); letter-spacing: .01em; color: var(--f-ink); }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: "+"; font: 600 24px/1 var(--display); color: var(--f-blue-ink); transition: transform 150ms ease-out; }
.fp-faq details[open] summary::after { transform: rotate(45deg); }
.fp-faq details p { max-width: 68ch; margin: 0 2px 20px; line-height: 1.65; color: var(--f-ink-2); }
body.front .pub-foot { margin-top: 110px; border-top: 1px solid var(--f-line); font-size: 14px; color: var(--f-muted); }
body.front .pub-foot a { color: var(--f-ink-2); }

/* ---- narrower screens ---- */
@media (max-width: 900px) {
  .fp-hero { grid-template-columns: 1fr; gap: 12px; padding-top: 32px; }
  .fp-hero::before { top: 38%; left: calc(50% - 50vw); }
  .fp-visual { width: 100%; max-width: 580px; margin: 0 auto; }
  .fp-any-grid, .fp-ways-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) { body.front .pub-nav > a:not(.btn) { display: none; } }
@media (max-width: 560px) {
  body.front .pub-sec { margin-top: 84px; }
  .fp-marquee { --fp-tile-w: 132px; --fp-gap: 10px; }
  .fp-lane { grid-template-rows: repeat(1, auto); }  /* one row when two don't fit; still drag/swipe to browse */
  body.front .pub-game > span:last-child { padding: 8px 10px; font-size: 14px; }
}

/* ---- the rest of the public site in the same look (2.6.4): signing in (index.html #login while signed out), the
   one-card pages (offline / notices / 404, choose a new password, a server's invite page), status and legal pages ---- */
body.front #login { position: relative; min-height: 100dvh; padding: 32px 16px; }
@media (min-width: 861px) { body.front .login-wrap { width: min(980px, 100%); grid-template-columns: minmax(0, 440px) minmax(0, 400px); gap: 64px; } }
body.front .login-side { gap: 12px; }
body.front .login-side .pub-brand { align-self: flex-start; }
.login-chip { display: block; width: min(420px, 100%); height: auto; overflow: visible; margin: 0 0 0 -28px; }
.lc-warm, .lc-hot { opacity: 0; animation: lc-warm 10s ease-in-out infinite; }
.lc-hot { animation-name: lc-hot; }
@keyframes lc-warm { 0%, 10% { opacity: 0; } 32%, 72% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes lc-hot { 0%, 30% { opacity: 0; } 48%, 62% { opacity: 1; } 82%, 100% { opacity: 0; } }
:root[data-fx="reduced"] .lc-warm { opacity: .9; }
body.front .login-line { max-width: 34ch; color: var(--f-ink-2); font-size: 18px; line-height: 1.55; }
body.front .login-card { padding: 32px 30px 28px; border-radius: 16px; border: 1px solid var(--f-line-strong); background: var(--f-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
body.front .login-card h1 { margin: 0 0 6px; font: 700 26px/1.2 var(--display); color: var(--f-ink); text-wrap: balance; }
body.front .login-card > .logo { width: 40px; height: 40px; margin-bottom: 14px; }
body.front .login-card p { color: var(--f-ink-2); font-size: 16px; }
body.front .login-card .lbl, body.front .invite .lbl { display: block; margin: 16px 0 6px; color: var(--f-ink-2); font-size: 14px; }
body.front .login-card .btn { width: 100%; margin-top: 18px; }
body.front .login-card .hint { color: var(--f-muted); font-size: 14px; }
body.front .linkbtn { color: var(--f-blue-ink); font: 600 14px/1.4 var(--body); text-decoration-color: color-mix(in srgb, var(--f-blue-ink) 45%, transparent); }
body.front .form-error { border-radius: 10px; }
body.front .check { color: var(--f-ink-2); }
body.front .qr { border-radius: 12px; }
@media (max-width: 860px) { body.front #login { align-content: start; padding-top: 40px; } }

body.front.card-page { display: grid; justify-items: center; align-content: start; gap: 16px; padding: 56px 16px 32px; }
body.front .invite { width: min(560px, 100%); overflow: hidden; border-radius: 16px; border: 1px solid var(--f-line-strong);
  background: var(--f-surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
body.front .invite.notice { width: min(480px, 100%); }
body.front .invite-main { padding: 26px 28px 28px; }
body.front .invite-main > .pub-brand { margin-bottom: 20px; font-size: 18px; }
body.front .invite-main > .pub-brand .logo { width: 26px; height: 26px; }
body.front .invite h1 { margin: 0 0 10px; font: 700 26px/1.2 var(--display); color: var(--f-ink); }
body.front .invite p { color: var(--f-ink-2); }
body.front .invite-game { color: var(--f-blue-ink); font: 600 15px/1.3 var(--display); letter-spacing: .02em; }
body.front .invite-art::after { background: linear-gradient(transparent 50%, var(--f-surface)); }
body.front .notice-act { margin: 22px 0 0; }
body.front .invite-foot { margin: 4px 0 0; }
body.front .invite-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--f-muted); font-size: 14px; text-decoration: none; }
body.front .invite-foot a:hover { color: var(--f-ink); }
body.front .invite-foot .logo { width: 20px; height: 20px; }

body.front .status-page, body.front .legal { padding-top: 48px; }
body.front .st-head { font: 700 clamp(28px, 3.4vw, 38px)/1.15 var(--display); color: var(--f-ink); }
body.front .st-row { border: 1px solid var(--f-line); border-radius: 12px; background: var(--f-surface); }
body.front .status-page .pub-sec { margin-top: 48px; }
body.front .legal h1 { margin: 0 0 22px; font: 700 clamp(30px, 4vw, 40px)/1.15 var(--display); color: var(--f-ink); }
body.front .legal h2 { margin: 34px 0 10px; font: 700 21px/1.3 var(--display); color: var(--f-ink); }
body.front .legal p, body.front .legal li { max-width: 68ch; color: var(--f-ink-2); line-height: 1.65; }

/* ---- the invite page for friends (round 25): the panel's words and cards, and its parts arrive once ---- */
body.front .invite h1 { text-align: center; font: 800 clamp(22px, 3vw, 30px)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
body.front .invite-game { text-align: center; color: var(--f-muted); font: 700 14px/1.3 var(--body); letter-spacing: 0; }
body.front .invite-status { justify-content: center; text-align: center; font-weight: 700; color: var(--f-ink); }
.inv-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--off, #66718a); }
.invite-status.on .inv-dot { background: var(--f-heat); animation: breathe 2.4s ease-in-out infinite; }
.invite-addr { margin-top: 18px; padding: 14px 16px 16px; border: 1px solid color-mix(in srgb, var(--f-heat) 55%, var(--f-line)); border-radius: 14px; background: var(--f-surface-2); }
body.front .invite .invite-addr .lbl { margin: 0 0 8px; }
.invite-addr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.invite-addr-row span { min-width: 0; font: 700 20px/1.2 var(--body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.front .invite { animation: cs-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
.invite.first #inv-body > * { animation: cs-in 460ms cubic-bezier(.2, .8, .2, 1) both; }
.invite.first #inv-body > :nth-child(2) { animation-delay: 70ms; } .invite.first #inv-body > :nth-child(3) { animation-delay: 140ms; }
.invite.first #inv-body > :nth-child(4) { animation-delay: 210ms; } .invite.first #inv-body > :nth-child(n+5) { animation-delay: 280ms; }
body.front .login-card { animation: cs-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
body.front .login-card form:not([hidden]) > * { animation: cs-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
body.front .login-card form > :nth-child(n+3) { animation-delay: 60ms; } body.front .login-card form > :nth-child(n+5) { animation-delay: 120ms; } body.front .login-card form > :nth-child(n+7) { animation-delay: 180ms; }
body.front .btn { transition: transform var(--t-med) var(--ease-spring); }
body.front .btn:hover:not(:disabled) { transform: translateY(-2px); }
body.front .btn:active:not(:disabled) { transform: scale(.97); }
body.front .input:focus { border-color: var(--f-heat); box-shadow: 0 0 0 3px var(--glow-soft); }

/* ---- status (round 25): one centred column, the headline is a sentence, the days grow in once ---- */
body.front .status-page { width: min(860px, calc(100% - 32px)); padding-top: 40px; }
body.front .st-head { justify-content: center; text-align: center; font: 800 clamp(24px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.03em; animation: cs-in 520ms cubic-bezier(.2, .8, .2, 1) both; }
body.front .status-page .pub-sub { text-align: center; margin-inline: auto; color: var(--f-muted); font-size: 14px; }
body.front .status-page .pub-sec { margin-top: 32px; }
body.front .status-page .pub-sec h2 { margin: 0 0 12px; font: 700 16px/1.2 var(--display); color: var(--f-ink); }
body.front .st-row { border-radius: 18px; border-color: var(--f-line-strong); padding: 14px 18px 16px; }
body.front .st-bar { border-radius: 3px; transform-origin: bottom; }
.st-rows.first .st-row { animation: cs-in 460ms cubic-bezier(.2, .8, .2, 1) both; }
.st-rows.first .st-row:nth-child(2) { animation-delay: 70ms; } .st-rows.first .st-row:nth-child(n+3) { animation-delay: 140ms; }
.st-rows.first .st-bar { animation: st-grow 520ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(200ms + var(--i, 0) * 18ms); }
@keyframes st-grow { from { transform: scaleY(.1); opacity: 0; } }
body.front .legal { width: min(760px, calc(100% - 32px)); }
body.front .legal h1 { text-align: center; font: 800 clamp(24px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.03em; }

/* ---- the front page, round 25: the panel's look and words. One centred column, centred headings, sections that
   arrive once, the story drawn as the panel's own line. Transform and opacity only. ---- */
body.front .pub, body.front .pub-top { width: min(1120px, calc(100% - 32px)); }
.fp-hero { padding: 36px 0 28px; }
.fp-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.fp-pitch h1 { font: 800 clamp(30px, 3.5vw, 46px)/1.06 var(--display); letter-spacing: -.03em; margin-bottom: 18px; }
.fp-pitch h1 .fp-l { white-space: nowrap; }
.fp-kicker { color: var(--f-muted); font: 700 15px/1.3 var(--body); letter-spacing: 0; margin-bottom: 14px; }
body.front .pub-lead { font-size: 18px; max-width: 52ch; }
body.front .pub-sec { margin-top: 96px; }
body.front .pub-sec > h2, .fp-sec-head h2 { font: 800 clamp(24px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
body.front .pub-sec > h2, body.front .pub-sec > .pub-sub { text-align: center; margin-inline: auto; }
body.front .pub-sec > .pub-sub { font-size: 16px; }
.fp-rack.quiet h2, .fp-rack.quiet .pub-servers { display: none; }
.fp-rack.quiet { border: 0; padding: 0; text-align: center; }
body.fp-reveal :is(.pub-sec, .fp-rack) { opacity: 0; transform: translateY(26px); transition: opacity 700ms cubic-bezier(.2, .8, .2, 1), transform 700ms cubic-bezier(.2, .8, .2, 1); }
body.fp-reveal :is(.pub-sec, .fp-rack):is(.seen, :focus-within) { opacity: 1; transform: none; }
@media print { body.fp-reveal :is(.pub-sec, .fp-rack) { opacity: 1; transform: none; } }
/* the story: one line, asleep to everyone on and back, wiped in from the left by two transforms */
.fp-story-line { margin: 26px 0 6px; }
.fp-story-line svg { display: block; width: 100%; height: 120px; overflow: visible; }
.fp-story-path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fp-story-dot { fill: var(--f-violet); }
.fp-story-dot.hot { fill: var(--f-heat); }
.fp-wipe { overflow: hidden; }
body.fp-reveal .fp-wipe { transform: translateX(-100%); }
body.fp-reveal .fp-wipe-in { transform: translateX(100%); }
body.fp-reveal .seen .fp-wipe, body.fp-reveal .seen .fp-wipe-in { transform: none; transition: transform 1800ms cubic-bezier(.3, .7, .2, 1) 250ms; }
.fp-story-steps { display: grid; grid-template-columns: 31.6% 26.7% minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.fp-story-steps li { padding-right: 24px; }
.fp-story-steps h3 { margin: 0 0 6px; font: 700 18px/1.25 var(--display); color: var(--f-ink); }
.fp-story-steps p { margin: 0; max-width: 34ch; color: var(--f-ink-2); line-height: 1.6; }
/* what you get: four, two by two, no boxes */
.fp-get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; max-width: 900px; margin: 28px auto 0; }
.fp-get-grid .fp-any-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; padding-top: 0; border-top: 0; }
.fp-get-grid .fp-any-item svg { grid-row: span 2; margin-top: 2px; }
.fp-get-grid .fp-any-item h3 { margin: 0 0 4px; }
.fp-any-item, .fp-way { transition: transform var(--t-med) var(--ease-spring); }
.fp-any-item:hover { transform: translateY(-3px); }
/* asleep: the joke on the left, the facts on the right */
body.front .fp-off { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: center; padding: 34px 38px; border: 1px solid color-mix(in srgb, var(--f-violet) 45%, var(--f-line)); border-radius: 18px; background: color-mix(in srgb, var(--f-violet) 7%, var(--f-surface)); }
body.front .fp-off h2 { text-align: left; margin: 0 0 6px; }
body.front .fp-off .pub-sub { text-align: left; margin: 0; }
.fp-off-list li::before { background: var(--f-violet); }
/* prices */
body.front .pub-plan { border-radius: 18px; transition: transform var(--t-med) var(--ease-spring); }
body.front .pub-plan:hover { transform: translateY(-4px); }
body.front .pub-plan > .pp-price { font-size: 38px; }
body.front .fp-calc { border-radius: 18px; }
body.front #pricing .fp-sec-head { justify-content: center; }
body.front #pricing .fp-note { text-align: center; }
body.front #pub-packs { max-width: 80ch; font-size: 15px; color: var(--f-muted); }
body.front .pub-steps li::before { color: var(--f-heat); }
.fp-faq { max-width: 820px; margin-inline: auto; }
.fp-faq summary::after { color: var(--f-heat); }
body.front .fp-last { text-align: center; padding: 20px 0 30px; }
body.front .fp-last .pub-cta { justify-content: center; margin-top: 18px; }
@media (max-width: 860px) {
  .fp-story-steps { grid-template-columns: 1fr; gap: 18px; } .fp-story-steps p { max-width: none; }
  .fp-hero { grid-template-columns: minmax(0, 1fr); } .fp-pitch h1 .fp-l { white-space: normal; }
  .fp-story-line svg { height: 80px; }
  .fp-get-grid { grid-template-columns: 1fr; gap: 24px; }
  body.front .fp-off { grid-template-columns: 1fr; padding: 24px 20px; }
  body.front .pub-sec { margin-top: 68px; }
}


/* round 31, the marketing pass: the honest line under the prices */
.fp-honest { margin: 22px auto 0; max-width: 64ch; padding: 16px 20px; border-left: 3px solid var(--f-heat); font-size: 16px; line-height: 1.6; color: var(--f-ink-2); }

/* round 32, no sizes: one card for every server; the memory add-ons and the storage tiers on its right (under it on phones) */
body.front .pub-plans:has(.pp-one) { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; }
body.front .pub-plan.pp-one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; padding: 28px 30px 26px; }
body.front .pub-plan.pp-one:hover { transform: none; }
.pp-one .pp-main { display: flex; flex-direction: column; gap: 4px; }
.pp-one .pp-spec { font-size: 15px; font-weight: 700; color: var(--f-ink-2); }
.pp-one .pp-main .pp-price { margin-top: 14px; font: 800 38px/1.05 var(--display); color: var(--f-amber-ink); font-variant-numeric: tabular-nums; }
.pp-one .pp-main .pp-price small { font: 600 15px/1 var(--display); letter-spacing: .01em; color: var(--f-ink-2); }
.pp-one .pp-money { font-size: 15px; font-weight: 700; color: var(--f-ink-2); }
.pp-one .pp-note { font-size: 15px; color: var(--f-muted); }
.pp-one .pp-more { padding-left: 32px; border-left: 1px solid var(--f-line); }
.pp-one .pp-more h4 { margin: 0 0 10px; font: 700 16px/1.25 var(--display); color: var(--f-ink); }
.pp-adds { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pp-adds li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 10px; background: var(--f-surface-2); font-size: 15px; color: var(--f-ink-2); font-variant-numeric: tabular-nums; }
.pp-adds b { font: 700 15px/1.3 var(--display); color: var(--f-ink); }
.pp-one .pp-more p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--f-muted); }
.pp-one .pp-more .pp-store { color: var(--f-ink-2); }
@media (max-width: 860px) {
  body.front .pub-plan.pp-one { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .pp-one .pp-more { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--f-line); }
}

/* ---- Found by search (round 36): the game pages (/games, /games/<id>) ---- */
.gm { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }
.gm-hero { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px 0 24px; }
.gm-art img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.gm-words h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 6px 0 14px; text-wrap: balance; }
.gm-lead { font-size: 17px; line-height: 1.55; max-width: 60ch; color: var(--fg); }
.gm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.gm-fact { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.gm-fact-k { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gm-fact-v { display: block; font-size: 15px; line-height: 1.45; }
.gm-steps { padding-left: 22px; display: grid; gap: 12px; max-width: 70ch; }
.gm-steps li { line-height: 1.5; }
.gm-faq details { max-width: 70ch; }
.gm-other-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.gm-index-head { padding: 32px 0 20px; max-width: 70ch; }
.gm-index-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 6px 0 12px; text-wrap: balance; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 28px; }
.gm-card { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.gm-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.gm-card img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 460 / 215; object-fit: cover; }
.gm-card-t { font-weight: 600; margin-top: 4px; }
.gm-card-g { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .gm-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
}

/* the deeper game pages (round 36b): the walk-through with screenshots, the sums, the four cards */
.gm-sub { color: var(--text-2); max-width: 70ch; line-height: 1.55; }
.gm-walk { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: walk; display: grid; gap: 28px; }
.gm-walk li { counter-increment: walk; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: center; }
.gm-walk li:nth-child(even) .gm-walk-words { order: 2; }
.gm-walk-words h3 { margin: 0 0 8px; font: 600 20px/1.2 var(--display); }
.gm-walk-words h3::before { content: counter(walk) " "; color: var(--accent); }
.gm-walk-words p { margin: 0; line-height: 1.55; color: var(--text-2); }
.gm-walk figure { margin: 0; }
.gm-walk img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.gm-sums-t { width: 100%; max-width: 760px; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.gm-sums-t th, .gm-sums-t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gm-sums-t th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.gm-sums-t td:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gm-total td { font-weight: 700; border-bottom: 0; }
.gm-dim { color: var(--muted); font-size: 13px; }
.gm-yours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gm-yours-grid > div { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.gm-yours-grid h3 { margin: 0 0 8px; font: 600 17px/1.25 var(--display); }
.gm-yours-grid p { margin: 0; line-height: 1.55; color: var(--text-2); }
@media (max-width: 720px) {
  .gm-walk li { grid-template-columns: 1fr; }
  .gm-walk li:nth-child(even) .gm-walk-words { order: 0; }
  .gm-sums-t { font-size: 14px; }
}

/* the front page's questions in two columns on a desk (the owner, 2026-10-14: a smaller footprint); one on phones */
@media (min-width: 900px) {
  .fp-faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  .fp-faq > h2, .fp-faq > p { grid-column: 1 / -1; }
  .fp-faq details:last-of-type { border-bottom: 0; }  /* the base rule draws a top line per row; one line, not two */
}
.gm-walk-plain li { grid-template-columns: 1fr; max-width: 70ch; gap: 0; }
.gm-walk-plain li:nth-child(even) .gm-walk-words { order: 0; }
