/* Crowd Clash — crowd-clash.fun. The game's look: the loading screen's orange sunburst, ink outlines, chunky slab
   buttons and glassy gates. One stylesheet, no external resources, no inline styles (see _headers). */

/* Self-hosted from @fontsource (SIL Open Font License 1.1). Lilita One has a single weight: headings stay at 400 so
   browsers never fake a bold. */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* The game's UI tokens (src/ui/ui.css) and loading screen (index.html). */
  --orange: #ff8a1f;
  --sun: #ffd04a;
  --ink: #1b1d3a;
  --ink-soft: #5a6185;
  --line: #c9d0e6;
  --paper: #ffffff;
  --paper-2: #eef2fc;
  --navy: #0b3478;
  --navy-d: #06205a;
  --blue: #2f8cff; --blue-l: #8cc4ff; --blue-d: #1756b8;
  --red: #ff4b5c; --red-l: #ff9aa3; --red-d: #b5182c;
  --green: #3ed160; --green-l: #8ff5a4; --green-d: #1b8f3c;
  --gold: #ffc21a; --gold-l: #ffe680; --gold-d: #c27d00;
  --purple: #9b5cff; --purple-l: #cfa9ff; --purple-d: #5d23bf;
  --pink: #ff6fb5; --pink-l: #ffb3d9; --pink-d: #c02f7a;
  /* Links and focus rings; sections on dark or orange backgrounds override --focus. */
  --link: #1756b8;
  --focus: #1756b8;
  --radius: 24px;
  --wrap: 1160px;
  --display: "Lilita One", "Fredoka", "Arial Black", system-ui, sans-serif;
  --body: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 400px) { .wrap { width: calc(100% - 32px); } }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* Outlined game text: white fill, thick dark outline. The text-shadow ring keeps the outline even where
   paint-order is ignored for HTML text (as in the game's .cc-o). */
.o {
  --oc: var(--navy);
  color: #fff;
  -webkit-text-stroke: 0.09em var(--oc);
  paint-order: stroke fill;
  text-shadow:
    0 0.09em 0 var(--oc),
    0.05em 0.05em 0 var(--oc),
    -0.05em 0.05em 0 var(--oc),
    0.05em -0.04em 0 var(--oc),
    -0.05em -0.04em 0 var(--oc),
    0 0.14em 0.12em rgba(0, 0, 0, 0.22);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 15px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--ink); padding: 8px 14px 9px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

/* ---------------- Slab buttons (the game's .cc-btn: a dark base with a pressable face) ---------------- */

.slab {
  --c: var(--green); --cl: var(--green-l); --cd: var(--green-d);
  --depth: 6px;
  position: relative; display: inline-flex; padding-bottom: var(--depth); border-radius: 18px;
  font-family: var(--display); line-height: 1; letter-spacing: 0.02em; text-decoration: none;
}
.slab::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--depth); bottom: 0; border-radius: inherit;
  background: var(--cd); box-shadow: 0 6px 14px rgba(12, 14, 50, 0.28);
}
.slab .face {
  --oc: var(--cd);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 54px; padding: 12px 26px; border-radius: inherit; overflow: hidden;
  background: linear-gradient(180deg, var(--cl) 0%, var(--c) 52%, var(--c) 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  color: #fff; font-size: 22px; white-space: nowrap;
  -webkit-text-stroke: 0.1em var(--oc); paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--oc), 0.04em 0.04em 0 var(--oc), -0.04em 0.04em 0 var(--oc), 0 -0.03em 0 var(--oc);
  transition: transform 0.08s ease-out;
}
.slab .face::after {
  content: ""; position: absolute; left: 9%; right: 9%; top: 3px; height: 36%; border-radius: 99px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}
.slab:hover .face { transform: translateY(-1px); }
.slab:active .face { transform: translateY(calc(var(--depth) - 2px)); }
.slab:focus-visible { outline-offset: 4px; border-radius: 20px; }
.slab.blue { --c: var(--blue); --cl: var(--blue-l); --cd: var(--blue-d); }
.slab.orange { --c: var(--orange); --cl: #ffc074; --cd: #b85400; }

/* "Coming soon to Google Play": a store-style pill in the game's ink, deliberately not Google's badge and not a link. */
.store-pill {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: 0 6px 0 rgba(6, 32, 90, 0.35);
}
.store-pill svg { width: 28px; height: 28px; flex: none; color: var(--sun); }
.store-pill .stack { display: flex; flex-direction: column; align-items: flex-start; font: 400 21px/1.05 var(--display); letter-spacing: 0.02em; }
.store-pill small { font: 600 12px/1.2 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: #dfe3f2; }

/* ---------------- Game chips: gates, the count bubble, coins ---------------- */

.chip {
  --oc: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 30px/1 var(--display); color: #fff; white-space: nowrap; letter-spacing: 0.01em;
  -webkit-text-stroke: 0.09em var(--oc); paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--oc), 0.05em 0.05em 0 var(--oc), -0.05em 0.05em 0 var(--oc), 0.05em -0.04em 0 var(--oc), -0.05em -0.04em 0 var(--oc);
}
/* A glass gate panel: good gates are blue, bad ones red. */
.chip.gate {
  min-width: 2.7em; padding: 0.3em 0.45em 0.36em; border-radius: 0.3em;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 31% 39%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #c8f3ff 0%, #74c8ff 52%, #2f8cff 100%);
  border: 3px solid var(--navy);
  box-shadow: 0 5px 0 var(--navy), inset 0 3px 0 rgba(255, 255, 255, 0.6);
}
.chip.gate.bad {
  --oc: #7a0f1d;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 31% 39%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #ffc9ce 0%, #ff7f8b 52%, #ff4b5c 100%);
  border-color: #7a0f1d; box-shadow: 0 5px 0 #7a0f1d, inset 0 3px 0 rgba(255, 255, 255, 0.6);
}
/* The count bubble over a crowd. */
.chip.bubble {
  position: relative; font-size: 24px; min-width: 2.2em; padding: 0.22em 0.42em 0.28em; border-radius: 0.42em;
  background: linear-gradient(180deg, #6db4ff 0%, #2f8cff 55%, #2176ea 100%);
  border: 3px solid var(--navy); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.chip.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px;
  background: #2176ea; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg);
}
.chip.coin {
  --oc: #8a5200;
  gap: 0.25em; padding: 0.2em 0.5em 0.24em 0.24em; border-radius: 999px; font-size: 24px;
  background: linear-gradient(180deg, #fff2b0 0%, #ffd54a 50%, #ffc21a 100%);
  border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy);
}
.chip.coin::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff9d0 0, #ffc83d 38%, #d9810a 100%); border: 2px solid #8a5200;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.logo span { font: 400 24px/1 var(--display); letter-spacing: 0.02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.site-nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .site-nav { gap: 16px; }
  .site-nav .opt { display: none; }
}
@media (max-width: 380px) {
  .logo span { font-size: 21px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 15px; }
}

/* ---------------- Sunburst (the loading screen's background) ---------------- */

.sun {
  --sx: 50%; --sy: 30%;
  --focus: var(--ink);
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at var(--sx) var(--sy), #fff3bf 0, #ffd04a 13%, #ffa126 32%, #ff8a1f 58%, #ff7a18 100%);
}
/* Slowly turning rays, faded out towards the edges. */
.sun::before {
  content: ""; position: absolute; z-index: -1; left: var(--sx); top: var(--sy);
  width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.2) 0deg 6deg, rgba(255, 255, 255, 0) 6deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0) 60%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0) 60%);
  animation: spin 140s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

/* A chequered finish line along the bottom edge. */
.finish { padding-bottom: 22px; }
.finish::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 22px 22px;
  border-top: 3px solid var(--ink);
}

/* ---------------- Hero ---------------- */

.hero { --sx: 74%; --sy: 44%; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 56px 0 72px;
}
.hero-copy { max-width: 590px; }

/* The logo: CROWD / CLASH tilted like the loading screen. Each word draws its navy outline from a copy of itself
   (::before, hidden from screen readers) under a gradient fill. */
.title {
  display: flex; flex-direction: column; align-items: flex-start;
  margin: 0 0 22px; line-height: 0.95; text-transform: uppercase; transform: rotate(-5deg); transform-origin: 30% 60%;
}
.title > span { position: relative; display: block; white-space: nowrap; }
.title > span::before {
  content: attr(data-t);
  content: attr(data-t) / "";
  position: absolute; left: 0; top: 0; color: var(--navy);
  -webkit-text-stroke: 0.16em var(--navy);
  text-shadow: 0 0.025em 0 var(--navy), 0 0.05em 0 var(--navy), 0 0.075em 0 var(--navy), 0 0.09em 0 var(--navy), 0 0.17em 0.13em rgba(106, 28, 0, 0.38);
}
.title > span > span {
  position: relative; display: inline-block;
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
}
.title .w1 { font-size: clamp(54px, 8.4vw, 92px); letter-spacing: 0.05em; margin-left: 0.08em; }
.title .w1 > span { background-image: linear-gradient(180deg, #ffffff 60%, #d6e6ff 116%); }
.title .w2 { font-size: clamp(68px, 10.6vw, 118px); letter-spacing: 0.07em; }
.title .w2 > span { background-image: linear-gradient(180deg, #fff7c2 -23%, #ffd84a 39%, #ff9f1c 116%); }

.tagline { font: 400 clamp(24px, 2.8vw, 31px)/1.2 var(--display); color: var(--ink); margin: 0 0 16px; letter-spacing: 0.01em; }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; margin-top: 28px; }
.hero .note { margin: 22px 0 0; font-weight: 600; font-size: 15px; color: var(--ink); }

/* Phone frame around a 1080×1920 screenshot. */
.phone {
  --w: 300px;
  position: relative; width: var(--w); margin: 0; padding: 9px; border-radius: 42px;
  background: linear-gradient(150deg, #34386b 0%, var(--ink) 45%, #0f1028 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 10px 0 rgba(6, 32, 90, 0.35), 0 34px 60px rgba(106, 28, 0, 0.35);
}
.phone::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 19px; width: 28%; height: 17px; margin-left: -14%;
  border-radius: 99px; background: #0b0c1e;
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 33px; background: var(--paper-2); }

.hero-visual { position: relative; justify-self: center; padding: 18px 46px 26px; }
.hero-visual .chip { position: absolute; z-index: 2; animation: bob 3.2s ease-in-out infinite alternate; }
.hero-visual .g1 { top: 12%; left: 0; font-size: 36px; rotate: -8deg; }
.hero-visual .g2 { top: 33%; right: 0; font-size: 42px; rotate: 7deg; animation-delay: -1.3s; }
.hero-visual .g3 { bottom: 25%; left: 4px; font-size: 28px; rotate: 6deg; animation-delay: -2.1s; }
.hero-visual .b1 { bottom: 10%; right: 14px; font-size: 26px; animation-delay: -0.7s; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }

@media (max-width: 920px) {
  .hero { --sx: 50%; --sy: 68%; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 56px; text-align: center; }
  .hero-copy { max-width: 620px; margin-inline: auto; }
  .title { align-items: center; transform-origin: 50% 60%; }
  .hero .lede { margin-inline: auto; }
  .actions { justify-content: center; }
}
@media (max-width: 480px) {
  .phone { --w: 236px; padding: 7px; border-radius: 34px; }
  .phone img { border-radius: 27px; }
  .phone::before { top: 15px; height: 13px; }
  .hero-visual { padding: 14px 40px 22px; }
  .hero-visual .g1 { font-size: 28px; }
  .hero-visual .g2 { font-size: 32px; }
  .hero-visual .g3 { font-size: 23px; }
  .hero-visual .b1 { font-size: 21px; right: 8px; }
  .tagline { font-size: 23px; }
  .hero .lede { font-size: 17.5px; }
}

/* ---------------- Sections ---------------- */

.section { padding: 88px 0; position: relative; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 5vw, 50px); margin: 16px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 19px; margin: 0; }
.center { text-align: center; margin-inline: auto; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 17.5px; }
}

/* Screenshot strip: scrolls sideways on smaller screens, a single row of six on wide ones. */
.shots {
  --pad: max(20px, calc((100% - var(--wrap)) / 2));
  display: flex; gap: 20px; margin: 0; padding: 6px var(--pad) 26px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots:focus-visible { outline-offset: -3px; border-radius: 0; }
.shots figure { flex: 0 0 auto; width: clamp(176px, 46vw, 216px); margin: 0; scroll-snap-align: start; text-align: center; }
.shots figcaption { margin-top: 16px; font: 400 19px/1.2 var(--display); letter-spacing: 0.01em; }
.phone.small { --w: 100%; padding: 6px; border-radius: 30px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 7px 0 rgba(27, 29, 58, 0.18), 0 18px 30px rgba(27, 29, 58, 0.18); }
.phone.small img { border-radius: 24px; }
.phone.small::before { top: 13px; height: 11px; }
@media (min-width: 1200px) {
  .shots { justify-content: center; overflow-x: visible; }
  .shots figure { width: 174px; }
}

/* Feature cards, each drawn in one of the game's six worlds. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink);
}
.card .demo {
  position: relative; height: 184px; flex: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border-bottom: 3px solid var(--ink);
}
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 25px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Worlds: sky above a horizon, ground below. */
.w-meadow { background: linear-gradient(180deg, #7fd0ff 0%, #c9efff 54%, #7ed957 54%, #4fb83a 100%); }
.w-desert { background: linear-gradient(180deg, #ffc982 0%, #ffe6bd 54%, #f0b464 54%, #d9954a 100%); }
.w-snow { background: linear-gradient(180deg, #a3d8ff 0%, #e4f4ff 54%, #ffffff 54%, #d3e7f7 100%); }
.w-candy { background: linear-gradient(180deg, #ffb6dc 0%, #ffe1f0 54%, #ffd0e8 54%, #ffa9d3 100%); }
.w-volcano {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 122, 24, 0.55), rgba(255, 122, 24, 0) 70%),
    linear-gradient(180deg, #3a1630 0%, #7a2a24 54%, #2f1a1a 54%, #1c1010 100%);
}
.w-neon {
  background:
    repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.38) 0 2px, rgba(0, 229, 255, 0) 2px 30px) 0 100% / 100% 46% no-repeat,
    linear-gradient(180deg, #160a3a 0%, #2b1263 54%, #12082b 54%, #0b0520 100%);
}

.gate-row { display: flex; gap: 14px; }
.demo .chip.gate { font-size: 32px; }

/* Boss health bar and the multiplier stairs. */
.hp { position: relative; display: flex; align-items: center; width: min(80%, 260px); }
.hp .skull {
  position: relative; z-index: 1; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 35% 46%, var(--ink) 0 3.5px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(circle at 65% 46%, var(--ink) 0 3.5px, rgba(0, 0, 0, 0) 4px),
    linear-gradient(var(--ink), var(--ink)) 50% 76% / 10px 3px no-repeat,
    #fff;
}
.hp .bar { flex: 1; height: 28px; margin-left: -10px; overflow: hidden; border-radius: 0 15px 15px 0; background: #fff; border: 3px solid var(--ink); }
.hp .bar i { display: block; width: 58%; height: 100%; background: linear-gradient(180deg, #ff9aa3 0%, #ff4b5c 55%, #d42a3c 100%); }
.hp .lbl {
  position: absolute; z-index: 2; left: 56%; top: 50%; translate: -50% -50%;
  font: 400 16px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; white-space: nowrap;
  -webkit-text-stroke: 0.12em var(--ink); paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink), 0.05em 0.05em 0 var(--ink), -0.05em 0.05em 0 var(--ink), 0.05em -0.04em 0 var(--ink), -0.05em -0.04em 0 var(--ink);
}
.stairs { display: flex; gap: 6px; }
.stairs span {
  --oc: var(--ink);
  padding: 7px 8px 8px; border-radius: 9px; border: 2.5px solid var(--ink);
  font: 400 17px/1 var(--display); color: #fff; -webkit-text-stroke: 0.12em var(--oc); paint-order: stroke fill;
  box-shadow: 0 3px 0 var(--ink);
}
.stairs span:nth-child(1) { background: #7ed957; }
.stairs span:nth-child(2) { background: #ffd04a; }
.stairs span:nth-child(3) { background: #ff8a1f; }
.stairs span:nth-child(4) { background: #ff4b5c; }

/* Cannon Rush: the wall's shields. */
.shields { display: flex; gap: 6px; }
.shields i {
  width: 22px; height: 26px; border: 2.5px solid var(--navy); border-radius: 7px 7px 50% 50% / 7px 7px 65% 65%;
  background: linear-gradient(180deg, #8cc4ff, #2f8cff);
}
.shields i.cracked { background: linear-gradient(180deg, #e2e6f2, #aab1c4); border-color: #727a90; }
.callout-text {
  font: 400 21px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 0.1em var(--navy); paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--navy), 0.05em 0.05em 0 var(--navy), -0.05em 0.05em 0 var(--navy), 0.05em -0.04em 0 var(--navy), -0.05em -0.04em 0 var(--navy);
}

/* Kingdom: a floating island with three little houses. */
.island { position: relative; isolation: isolate; width: 200px; height: 112px; margin-top: 4px; }
.island::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 50px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, #8ee26a, #5fc144); border: 3px solid var(--ink);
}
.island::after {
  content: ""; position: absolute; z-index: 0; left: 24px; right: 24px; top: 64px; height: 50px;
  background: linear-gradient(180deg, #c98a52, #8a5530); clip-path: polygon(0 0, 100% 0, 58% 100%, 44% 100%);
}
.house {
  position: absolute; z-index: 2; width: 32px; height: 26px; border-radius: 4px;
  background: #fff7ec; border: 3px solid var(--ink);
}
.house::before {
  content: ""; position: absolute; left: -9px; right: -9px; top: -22px; height: 22px;
  background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.house::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 9px; height: 12px; margin-left: -4.5px; border-radius: 4px 4px 0 0; background: var(--ink); }
.house.h1 { left: 30px; top: 38px; }
.house.h2 { left: 82px; top: 26px; width: 38px; height: 32px; }
.house.h2::before { background: var(--purple); }
.house.h3 { left: 138px; top: 40px; }
.house.h3::before { background: var(--blue); }
.w-candy .chip.coin { position: absolute; right: 18px; top: 16px; font-size: 20px; }

/* Endless Run: the distance meter. */
.meter { display: flex; align-items: center; gap: 10px; width: min(84%, 280px); }
.meter .track { flex: 1; height: 26px; overflow: hidden; border-radius: 15px; background: #2a1414; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
.meter .track i {
  display: block; width: 67%; height: 100%; border-radius: 0 12px 12px 0;
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.25) 0 8px, rgba(255, 255, 255, 0) 8px 18px), linear-gradient(180deg, #ffe680, #ff8a1f 55%, #e0480f);
}
.meter .flag { position: relative; padding-left: 20px; font: 400 18px/1 var(--display); color: #fff; white-space: nowrap; }
.meter .flag::before { content: ""; position: absolute; left: 2px; top: -6px; width: 3px; height: 26px; border-radius: 2px; background: #fff; }
.meter .flag::after { content: ""; position: absolute; left: 5px; top: -6px; width: 11px; height: 9px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.distance {
  font: 400 44px/1 var(--display); color: #fff; letter-spacing: 0.02em;
  -webkit-text-stroke: 0.1em var(--ink); paint-order: stroke fill; text-shadow: 0 0.07em 0 var(--ink), 0 0 26px rgba(255, 138, 31, 0.7);
}

/* Skins: five heads, five hats; the last one glows like a premium skin. */
.heads { display: flex; align-items: flex-end; gap: 16px; padding-top: 22px; }
.head {
  --c: var(--blue);
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 38% 52%, var(--ink) 0 3px, rgba(0, 0, 0, 0) 3.5px),
    radial-gradient(circle at 62% 52%, var(--ink) 0 3px, rgba(0, 0, 0, 0) 3.5px),
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6) 0 16%, rgba(255, 255, 255, 0) 17%),
    var(--c);
}
.head::before, .head::after { content: ""; position: absolute; left: 50%; }
.head.crown { --c: #7d3ff0; }
.head.crown::before, .head.premium::before {
  width: 28px; height: 18px; top: -17px; margin-left: -14px; background: #ffc83d;
  clip-path: polygon(0 100%, 0 18%, 25% 58%, 50% 0, 75% 58%, 100% 18%, 100% 100%);
}
.head.halo { --c: #ffc49a; }
.head.halo::before { width: 32px; height: 11px; top: -18px; margin-left: -16px; border-radius: 50%; border: 3px solid #ffe066; box-shadow: 0 0 10px #ffe066; }
.head.cone { --c: #20d0e8; }
.head.cone::before { width: 24px; height: 28px; top: -25px; margin-left: -12px; background: linear-gradient(180deg, #ff9ccc, #ff3f95); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.head.tophat { --c: #ffd700; }
.head.tophat::before { width: 22px; height: 18px; top: -21px; margin-left: -11px; border-radius: 3px; background: #1c1c24; box-shadow: inset 0 -4px 0 #ff4b5c; }
.head.tophat::after { width: 36px; height: 5px; top: -5px; margin-left: -18px; border-radius: 3px; background: #1c1c24; }
.head.premium { --c: #db7900; box-shadow: 0 0 0 3px rgba(255, 171, 0, 0.35), 0 0 22px 6px rgba(255, 171, 0, 0.75); }
.head.premium::before { background: #ffd54f; }

/* Smaller features. */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.extra { padding: 22px 22px 24px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); }
.extra .icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; border-radius: 15px;
  background: var(--c); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
}
.extra .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.extra .i-gold { --c: var(--gold); }
.extra .i-red { --c: var(--red-l); }
.extra .i-purple { --c: var(--purple-l); }
.extra .i-blue { --c: var(--blue-l); }
.extra .i-green { --c: var(--green-l); }
.extra .i-pink { --c: var(--pink-l); }
.extra h3 { font-size: 22px; margin: 0 0 6px; }
.extra p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 980px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .extras { grid-template-columns: 1fr; } }

/* Fair play, on the loading screen's navy. */
.fair {
  --focus: var(--sun);
  color: #fff; overflow: hidden;
  background: repeating-conic-gradient(from 0deg at 100% 0%, rgba(255, 255, 255, 0.04) 0deg 5deg, rgba(255, 255, 255, 0) 5deg 12deg), var(--navy);
}
.fair .eyebrow { background: var(--sun); color: var(--ink); }
.fair .eyebrow::before { background: var(--navy); box-shadow: none; }
.fair .section-head p { color: #d5def5; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li {
  position: relative; padding: 22px 22px 24px 70px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.18);
}
.promises li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 34px; height: 34px; border-radius: 11px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1d3a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 20px no-repeat,
    linear-gradient(180deg, var(--green-l), var(--green));
  border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--green-d);
}
.promises h3 { font-size: 21px; margin: 0 0 6px; color: #fff; }
.promises p { margin: 0; color: #d5def5; font-size: 16px; }
.fair .note { margin: 32px 0 0; color: #d5def5; }
.fair .note a { color: var(--sun); font-weight: 600; }
@media (max-width: 980px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } }

/* FAQ. */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 16px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font: 600 19px/1.3 var(--body); border-radius: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); border: 2.5px solid var(--navy); color: #fff; font: 400 26px/1 var(--display);
  padding-bottom: 2px; transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details > p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); }
.faq details > p + p { padding-top: 0; margin-top: -8px; }
.faq a { color: var(--link); font-weight: 600; }
@media (max-width: 480px) { .faq summary { font-size: 17.5px; padding: 16px 16px; } .faq details > p { padding: 0 16px 18px; } }

/* Closing call to action. */
.closing { text-align: center; }
.closing .wrap { padding: 80px 0 92px; }
.round-icon { width: 160px; height: 160px; margin: 0 auto 22px; filter: drop-shadow(0 8px 0 rgba(11, 52, 120, 0.3)); }
.closing h2 { font-size: clamp(34px, 5.4vw, 54px); margin: 0 0 12px; }
.closing .wrap > p { font-size: 19px; color: var(--ink); margin: 0; }
.closing .actions { justify-content: center; }
.closing .wrap > .note { margin-top: 22px; font-weight: 600; font-size: 15px; }

/* ---------------- Footer ---------------- */

.site-footer { --focus: var(--sun); background: var(--ink); color: #c9d0e6; padding: 52px 0 56px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-logo { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 400 23px/1 var(--display); color: #fff; letter-spacing: 0.02em; }
.foot-logo img { width: 36px; height: 36px; border-radius: 10px; }
.site-footer h2 { margin: 0 0 12px; font: 400 17px/1 var(--display); letter-spacing: 0.03em; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer .credits { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; color: #a9b1cf; }
.site-footer .credits a { text-decoration: underline; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------------- Long-form pages (privacy, support) ---------------- */

.page-head { --sy: 0%; text-align: center; }
.page-head .wrap { padding: 52px 0 60px; }
.page-head h1 { font-size: clamp(42px, 7vw, 66px); margin: 0 0 12px; }
.page-head p { margin: 0 auto; max-width: 34em; font-size: 19px; color: var(--ink); }
.page-head .updated { font-weight: 600; font-size: 16px; }

.prose { max-width: 760px; padding: 48px 0 88px; }
.prose h2 { font-size: 27px; margin: 44px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--link); text-underline-offset: 2px; }
.prose .faq { margin: 8px 0 0; max-width: none; }
.summary-box {
  margin-bottom: 32px; padding: 22px 24px; border-radius: 22px;
  background: #fff7e3; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.summary-box p { margin: 0; }
.summary-box p + p { margin-top: 0.8em; }

/* Support: the contact card. */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin-bottom: 12px; padding: 24px; border-radius: 22px;
  background: var(--paper-2); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.contact-card h2 { margin: 0 0 4px; font-size: 24px; }
.contact-card p { margin: 0; }
.contact-card .mail { font-weight: 600; word-break: break-all; }

/* ---------------- 404 ---------------- */

.not-found { --sy: 40%; text-align: center; }
.not-found .wrap { min-height: calc(100vh - 67px - 22px); min-height: calc(100svh - 67px - 22px); display: grid; place-content: center; justify-items: center; padding: 56px 0 72px; }
.not-found .chip.gate { font-size: clamp(60px, 14vw, 96px); rotate: -5deg; margin-bottom: 34px; }
.not-found h1 { font-size: clamp(44px, 8vw, 72px); margin: 0 0 14px; }
.not-found p { max-width: 30em; font-size: 19px; color: var(--ink); }
.not-found .slab { margin-top: 14px; }

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun::before, .hero-visual .chip { animation: none; }
  .slab .face, .faq summary::after { transition: none; }
  .slab:hover .face { transform: none; }
}
