/* Franchise World "Coming soon" site. Source of truth; build.mjs copies it (content-hashed) to the preview.
   No inline styles, no scripts of our own, one self-hosted font (Nunito Sans, SIL OFL, same face as the game).
   Brand colours come from the game theme (franchise_world/lib/app/theme.dart): coral, sun, sky, night.
   Colour tokens are checked for WCAG contrast by verify.mjs (keep the PAIRS list there in sync). */
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/NunitoSans-latin.e71ce02df4.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #fff6e6;
  --bg-2: #ffe9c2;
  --ink: #2a2220;
  --muted: #55484a;
  --tile: #ffffff;
  --edge: #8a7f68;
  --soft-edge: #eadcc0;
  --link: #a22d1b;
  --focus: #2a2220;
  --accent: #b3321f;
  --on-accent: #ffffff;
  --ok: #176b3b;
  --glow-1: rgb(239 91 77 / 0.28);
  --glow-2: rgb(79 163 224 / 0.3);
  --glow-3: rgb(255 201 60 / 0.4);
  --h1-from: #2a2220;
  --h1-to: #b3321f;
  --shadow: 0 1.5rem 3rem -1rem rgb(90 50 10 / 0.3), 0 0.125rem 0.25rem rgb(90 50 10 / 0.1);
  --plate: #f3dcae;
  --road: #fff6e6;
  --road-glow: rgb(79 163 224 / 0.0);
  --lot: #e9c98f;
  --top-a: #fffaf0;
  --top-b: #fde8bd;
  --left-a: #d8b57a;
  --right-a: #c29a5e;
  --park: #9ed083;
  --tree: #5faa57;
  --win: #ffc93c;
  --ring: #ef5b4d;
  --route: #2a2220;
  --pin-fill: #ef5b4d;
  --pin-dot: #fff6e6;
  --sky-line: #4fa3e0;
  --haze: rgb(255 246 230 / 0.0);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1e;
    --bg-2: #141a2e;
    --ink: #f6f0e6;
    --muted: #b9c2dc;
    --tile: #141c36;
    --edge: #5c6fa8;
    --soft-edge: #26325a;
    --link: #ffc93c;
    --focus: #ffc93c;
    --accent: #ffc93c;
    --on-accent: #0b0f1e;
    --ok: #4be08e;
    --glow-1: rgb(239 91 77 / 0.34);
    --glow-2: rgb(79 163 247 / 0.32);
    --glow-3: rgb(255 201 60 / 0.16);
    --h1-from: #fff6e6;
    --h1-to: #ffb35c;
    --shadow: 0 1.75rem 3.5rem -1rem rgb(0 0 0 / 0.7), inset 0 0.0625rem 0 rgb(255 255 255 / 0.1);
    --plate: #0f1830;
    --road: #080c19;
    --road-glow: rgb(79 163 247 / 0.9);
    --lot: #1a2548;
    --top-a: #2a3a6c;
    --top-b: #1f2c56;
    --left-a: #141d3d;
    --right-a: #0e1631;
    --park: #1f4a46;
    --tree: #2d7a62;
    --win: #ffc93c;
    --ring: #ff5d8f;
    --route: #fff6e6;
    --pin-fill: #ffc93c;
    --pin-dot: #0b0f1e;
    --sky-line: #4fa3f7;
    --haze: rgb(79 163 247 / 0.1);
  }
}

@media (min-width: 112.5rem) { html { font-size: 125%; } }
@media (min-width: 150rem) { html { font-size: 150%; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Nunito Sans", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    radial-gradient(60rem 38rem at 8% -6%, var(--glow-1), transparent 70%),
    radial-gradient(56rem 40rem at 98% 38%, var(--glow-2), transparent 70%),
    radial-gradient(40rem 26rem at 50% 112%, var(--glow-3), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-color: var(--bg);
}
h1, h2, p { margin: 0; }
a { color: var(--link); text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.25rem; border-radius: 0.375rem; }

.skip { position: absolute; left: 0.75rem; top: -5rem; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 800; }
.skip:focus { top: calc(env(safe-area-inset-top) + 0.75rem); }

.wrap { width: min(100% - 2.5rem, 108rem); margin-inline: auto; }
@media (min-width: 90rem) { .wrap { width: min(100% - 8rem, 108rem); } }

/* header */
.site-header { padding-block: clamp(1rem, 2.5vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: 0.01em; }
.brand svg { width: 2.5rem; height: 2.5rem; flex: none; }

/* hero */
main { flex: 1; display: flex; align-items: center; padding-block: clamp(1rem, 4vw, 4rem); }
.hero { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero > * { min-width: 0; }
@media (min-width: 44rem) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
h1 {
  font-size: clamp(3rem, 9.5vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  h1 {
    background: linear-gradient(100deg, var(--h1-from) 25%, var(--h1-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: 0.08em;
  }
}
@media (forced-colors: active) { h1 { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; } }
.lead { margin-top: clamp(1.25rem, 2.5vw, 2rem); max-width: 34rem; font-size: clamp(1.1875rem, 2.2vw, 1.875rem); line-height: 1.4; font-weight: 500; color: var(--muted); }
@media (min-width: 90rem) { .lead { max-width: 44rem; } }

.tiles { list-style: none; margin: clamp(1.75rem, 3.5vw, 3rem) 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); max-width: 40rem; }
@media (min-width: 90rem) { .tiles { max-width: 52rem; } }
.tile {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.5rem; padding: 1rem 1.25rem;
  background: var(--tile);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile) 92%, #ffffff), var(--tile));
  border: 0.0625rem solid var(--edge);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(1px)) { .tile { backdrop-filter: blur(0.75rem); } }
.tile .ico { width: 2.75rem; height: 2.75rem; flex: none; color: var(--accent); }
.tile b { display: block; font-size: 1.1875rem; line-height: 1.25; font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.125rem; font-weight: 700; color: var(--muted); font-size: 0.9375rem; }
.dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--ok) 28%, transparent); flex: none; }

.contact { margin-top: clamp(1.25rem, 2.5vw, 2rem); color: var(--muted); font-size: 1rem; }
.contact a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.25rem; font-weight: 800; }

/* art */
.art { margin: 0; width: 100%; max-width: 44rem; margin-inline: auto; }
@media (min-width: 90rem) { .art { max-width: 60rem; } }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
@media (orientation: landscape) and (max-height: 32rem) { .art svg { max-height: 62vh; } }

/* footer */
.site-footer { padding-block: 1.25rem 2rem; color: var(--muted); font-size: 0.9375rem; border-top: 0.0625rem solid var(--soft-edge); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding: 0; margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer p { margin-top: 0.25rem; }

/* document pages */
.doc { max-width: 46rem; margin-inline: auto; padding-block: 1rem 3rem; }
.doc h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); margin-bottom: 0.75rem; }
.doc h2 { font-size: 1.375rem; margin: 2rem 0 0.5rem; font-weight: 800; }
.doc p { margin-bottom: 1rem; }
.doc .updated { color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 2.75rem; margin-bottom: 0.5rem; }
main.page { align-items: flex-start; }
.notfound { text-align: center; padding-block: 4rem; margin-inline: auto; }
.notfound a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.5rem; }
.doc p a { padding-block: 0.25rem; }
.notfound h1 { margin-bottom: 1rem; }

/* scene colours */
.s-plate { fill: var(--plate); stroke: var(--soft-edge); stroke-width: 2; }
.s-road { stroke: var(--road); stroke-width: 11; fill: none; stroke-linecap: round; }
.s-glow { stroke: var(--road-glow); stroke-width: 1.6; fill: none; opacity: 0.75; }
.s-lot { fill: var(--lot); }
.s-top { fill: url(#topGrad); }
.s-left { fill: var(--left-a); }
.s-right { fill: var(--right-a); }
.s-shop-top { fill: var(--pin-fill); }
.s-park { fill: var(--park); }
.s-tree { fill: var(--tree); }
.s-win { fill: var(--win); opacity: 0.85; }
.s-ring { fill: none; stroke: var(--ring); stroke-width: 2.5; }
.s-ringfill { fill: var(--ring); opacity: 0.16; }
.s-beam { fill: url(#beamGrad); }
.s-route { fill: none; stroke: var(--route); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0.9; }
.s-pin { fill: var(--pin-fill); }
.s-pindot { fill: var(--pin-dot); }
.s-haze { fill: var(--haze); }
.stop-top-a { stop-color: var(--top-a); }
.stop-top-b { stop-color: var(--top-b); }
.stop-glow-a { stop-color: var(--sky-line); stop-opacity: 0.32; }
.stop-glow-b { stop-color: var(--sky-line); stop-opacity: 0; }
.stop-beam-a { stop-color: var(--pin-fill); stop-opacity: 0.55; }
.stop-beam-b { stop-color: var(--pin-fill); stop-opacity: 0; }
.m-a { stop-color: #ef5b4d; }
.m-b { stop-color: #ffc93c; }
.m-ink { fill: #141a2e; }

/* motion only when allowed */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(1.25rem); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise.r2 { animation-delay: 0.12s; } .rise.r3 { animation-delay: 0.24s; } .rise.r4 { animation-delay: 0.36s; } .rise.r5 { animation-delay: 0.48s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .float.f2 { animation-delay: -2s; } .float.f3 { animation-delay: -4s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  .pulse { animation: pulse 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  .pulse.p2 { animation-delay: -1.1s; } .pulse.p3 { animation-delay: -2.2s; }
  @keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
  .s-route { animation: flow 12s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -96; } }
  .scene { animation: scene 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes scene { from { opacity: 0; transform: translateY(1.5rem) scale(0.98); } to { opacity: 1; transform: none; } }
}
@media print { .skip { display: none; } }
