/* appizor.com: the studio site for Gapball and One Shadow.
   Paper white and ink blue for the studio, grass green for Gapball,
   warm sand and sun yellow for One Shadow. Light and dark (prefers-color-scheme).
   No web fonts, no external files, no JavaScript. Hand-written. */

:root {
  --bg: #fbf8ef;           /* notebook paper */
  --bg-2: #f3eee0;
  --surface: #ffffff;
  --line: #e4ddcb;
  --grid: rgba(31, 60, 136, 0.06);
  --text: #17213d;
  --muted: #505a75;
  --ink: #1f3c88;          /* ballpoint blue */
  --ink-hover: #142a66;
  --on-ink: #fbf8ef;
  --link: #1f3c88;
  --link-hover: #0f2257;
  --focus: #1f3c88;
  --shadow: 0 1px 2px rgba(23, 33, 61, 0.06), 0 18px 40px -22px rgba(23, 33, 61, 0.35);
  --shadow-lg: 0 2px 4px rgba(23, 33, 61, 0.06), 0 30px 60px -28px rgba(23, 33, 61, 0.5);

  /* Gapball */
  --grass: #3f9a42;
  --grass-2: #47a54a;
  --grass-deep: #2f7d35;
  --chalk: rgba(255, 255, 255, 0.86);
  --ball-y: #f6d46e;
  --ball-y-ink: #6b5212;
  /* One Shadow */
  --sand: #efe2c3;
  --sand-2: #e6d4ab;
  --sun: #f4b740;
  --sun-soft: rgba(244, 183, 64, 0.24);
  --night: #141a26;

  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 22px;
  --radius-sm: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121726;
    --bg-2: #171e31;
    --surface: #1c2439;
    --line: #2c3651;
    --grid: rgba(159, 183, 255, 0.05);
    --text: #eef0f6;
    --muted: #aab3c9;
    --ink: #9fb7ff;
    --ink-hover: #c3d1ff;
    --on-ink: #10162a;
    --link: #a9bfff;
    --link-hover: #d3dcff;
    --focus: #f4b740;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -28px rgba(0, 0, 0, 0.9);

    --grass: #2b6e33;
    --grass-2: #307739;
    --grass-deep: #1f5527;
    --chalk: rgba(235, 242, 235, 0.72);
    --sand: #222a3b;
    --sand-2: #1a2131;
    --sun-soft: rgba(244, 183, 64, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, video { max-width: 100%; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .h1-like {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1, .h1-like { font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .wrap { padding-inline: 1.5rem; } }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.lede { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem); line-height: 1.5; max-width: 36em; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--surface); color: var(--text);
  padding: 0.5rem 0.9rem; border: 2px solid var(--focus); border-radius: 10px;
}
.skip:focus { top: 0.75rem; }

/* ---------- header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.bar { display: flex; align-items: center; gap: 0.5rem 1.5rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 2rem; height: 2rem; border-radius: 9px; box-shadow: 0 6px 14px -8px rgba(23, 33, 61, 0.6); }
.main-nav ul, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: 0.5rem 0.1rem; display: inline-block;
}
.main-nav a:hover { color: var(--link); }
.main-nav a[aria-current="page"], .main-nav a.in-section { box-shadow: inset 0 -3px 0 var(--sun); }
.theme-gb .main-nav a[aria-current="page"], .theme-gb .main-nav a.in-section { box-shadow: inset 0 -3px 0 var(--grass-2); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem;
  background: var(--surface);
}
.lang-switch:hover { border-color: var(--link); color: var(--link); }
.lang-switch span[aria-hidden] { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
@media (max-width: 36rem) {
  .bar { padding-block: 0.6rem 0.2rem; gap: 0 1rem; min-height: 0; }
  .lang-switch { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav ul { gap: 0 1.15rem; }
}
@media (max-width: 22rem) { .lang-name { display: none; } }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 2.5rem 0 2.25rem;
  font-size: 0.95rem;
  background: var(--bg-2);
}
.footer-grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.footer-about .brand { font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-about p { color: var(--muted); margin: 0; max-width: 22rem; }
.site-footer .footer-links { flex-direction: column; gap: 0.1rem; }
.footer-links a { color: var(--text); padding: 0.3rem 0; display: inline-block; }
.footer-links a:hover { color: var(--link); }
.footer-note { color: var(--muted); margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.page-gapball .site-footer, .page-game .site-footer, .page-home .site-footer { margin-top: 0; }

/* ---------- shared bits ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 0.98rem;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  margin: 0 0 1.25rem;
}
.pill::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none;
  background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft);
}
.theme-gb .pill::before, .card-gb .pill::before { background: var(--grass-2); box-shadow: 0 0 0 3px rgba(71, 165, 74, 0.25); }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--on-ink);
  text-decoration: none; font-weight: 700; font-size: 1.02rem;
  padding: 0.8rem 1.35rem; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 0 10px 22px -14px rgba(31, 60, 136, 0.9);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button::after { content: "\2192"; font-weight: 700; }
.button:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--on-ink); transform: translateY(-1px); }

.app-icon { border-radius: 22.5%; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 14px 30px -14px rgba(10, 14, 22, 0.6); height: auto; }

.phone {
  border-radius: 2rem; padding: 0.4rem;
  background: #0d1118;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 1.65rem; width: 100%; height: auto; background: #dfe3d6; }

.section { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- studio home ---------- */

.home-hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  background-position: center top;
  border-bottom: 1px solid var(--line);
}
.home-hero h1 { max-width: 13em; margin-bottom: 0.4em; }
.home-hero h1 .hl { color: var(--grass-2); }
.home-hero h1 .hl2 { color: var(--sun); }
@media (prefers-color-scheme: light) {
  .home-hero h1 .hl { color: #2f8a35; }
  .home-hero h1 .hl2 { color: #c98a10; }
}
.home-hero .lede { color: var(--muted); }

.games { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); padding-top: clamp(2.5rem, 5vw, 4rem); }

.game-card {
  position: relative;
  display: grid;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
@media (min-width: 52rem) {
  .game-card { grid-template-columns: 1.15fr 1fr; min-height: 32rem; }
  .game-card.flip { grid-template-columns: 1fr 1.15fr; }
  .game-card.flip .card-text { order: 2; }
}
.card-text { padding: clamp(1.75rem, 4vw, 3.5rem); align-self: center; position: relative; z-index: 2; }
.card-text .name-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.card-text .app-icon { width: clamp(4.25rem, 9vw, 5.75rem); flex: none; }
.card-text h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); margin: 0; }
.card-text .kind { margin: 0.15rem 0 0; font-weight: 600; }
.card-text .pitch-line { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; max-width: 26em; margin-bottom: 1.25rem; }
.card-pic { position: relative; min-height: 20rem; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.card-pic .phone { width: min(15.5rem, 62%); margin-bottom: -38%; transform: rotate(-4deg); }
.card-pic .phone + .phone { position: absolute; width: min(13rem, 50%); right: 8%; bottom: 0; margin-bottom: -48%; transform: rotate(6deg); }
@media (min-width: 52rem) {
  .card-pic { min-height: 0; align-items: center; }
  .card-pic .phone { margin-bottom: 0; transform: rotate(-4deg) translateY(10%); }
  .card-pic .phone + .phone { margin-bottom: 0; bottom: auto; top: 22%; right: 4%; }
}

/* Gapball card: a striped pitch with chalk lines */
.card-gb {
  color: #fbf8ef;
  background:
    repeating-linear-gradient(90deg, var(--grass) 0 4.5rem, var(--grass-2) 4.5rem 9rem);
}
.card-gb::before {
  content: ""; position: absolute; inset: 1rem; z-index: -1;
  border: 3px solid var(--chalk); border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 4.4rem, var(--chalk) 4.4rem calc(4.4rem + 3px), transparent calc(4.4rem + 3px)) ,
    linear-gradient(90deg, transparent calc(50% - 1.5px), var(--chalk) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  opacity: 0.8;
}
@media (max-width: 51.99rem) {
  .card-gb::before {
    background:
      radial-gradient(circle at 50% 50%, transparent 0 4.4rem, var(--chalk) 4.4rem calc(4.4rem + 3px), transparent calc(4.4rem + 3px)),
      linear-gradient(transparent calc(50% - 1.5px), var(--chalk) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  }
}
.card-gb .card-text {
  background: var(--bg);
  color: var(--text);
  margin: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.8deg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.card-gb .card-text::before, .card-gb .card-text::after, .gb-card::before, .gb-card::after {
  content: ""; position: absolute; top: -0.7rem; width: 4.5rem; height: 1.5rem;
  background: rgba(255, 246, 214, 0.75); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.card-gb .card-text::before, .gb-card::before { left: 1.25rem; transform: rotate(-8deg); }
.card-gb .card-text::after, .gb-card::after { right: 1.25rem; transform: rotate(7deg); }
@media (prefers-color-scheme: dark) {
  .card-gb .card-text::before, .card-gb .card-text::after, .gb-card::before, .gb-card::after { background: rgba(230, 222, 190, 0.35); }
}
.card-gb .kind { color: var(--ink); }

/* One Shadow card: warm sand with the sun's glow, a night garden in dark mode */
.card-os {
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 183, 64, 0.55), rgba(244, 183, 64, 0) 45%),
    linear-gradient(160deg, var(--sand), var(--sand-2));
  color: var(--text);
}
.card-os .kind { color: #9a6408; }
@media (prefers-color-scheme: dark) { .card-os .kind { color: var(--sun); } }

.hello {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.hello .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.hello h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 0.25rem; }
.hello p { margin: 0; color: var(--muted); }

/* ---------- Gapball page ---------- */

.gb-hero {
  position: relative;
  color: #fbf8ef;
  background: repeating-linear-gradient(90deg, var(--grass) 0 5rem, var(--grass-2) 5rem 10rem);
  padding: clamp(2rem, 5vw, 4rem) 0 0;
  overflow: hidden;
}
.gb-hero-grid { display: grid; gap: 2rem 3rem; align-items: center; position: relative; z-index: 2; }
@media (min-width: 52rem) { .gb-hero-grid { grid-template-columns: 1.2fr 1fr; } }
.gb-card {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  max-width: 36rem;
}
.gb-card .app-icon { width: clamp(4.5rem, 10vw, 6rem); margin-bottom: 1rem; }
.gb-card h1 { margin: 0; color: var(--ink); font-size: clamp(3rem, 2rem + 4.5vw, 5.25rem); letter-spacing: -0.035em; }
.gb-card .tagline { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); letter-spacing: -0.02em; margin: 0.15rem 0 1rem; }
.gb-card .lede { margin-bottom: 1.25rem; }
.gb-hero-phone { justify-self: center; width: min(17rem, 60vw); transform: rotate(3deg); margin-bottom: -1rem; }
@media (min-width: 52rem) { .gb-hero-phone { margin-bottom: -5rem; } }
.gb-hero .pitch-band { margin-top: clamp(1.5rem, 4vw, 2.5rem); position: relative; z-index: 1; }

.pitch-svg { width: 100%; height: clamp(10rem, 22vw, 17rem); }
.pt-grass { fill: var(--grass); }
.pt-grass2 { fill: var(--grass-2); }
.pt-lines { fill: none; stroke: var(--chalk); stroke-width: 4; }
.pt-spot { fill: var(--chalk); }
.pt-netline { stroke: var(--chalk); stroke-width: 1.2; fill: none; }
.pt-net { stroke: var(--chalk); stroke-width: 2; }
.pt-post { fill: #ffd44d; stroke: #3b3200; stroke-width: 1.5; }
.pt-ballshadow { fill: #0b2a10; opacity: 0.28; }
.pt-ballbody { fill: #fbf8ef; stroke: #1f3c88; stroke-width: 2.4; stroke-linejoin: round; }
.pt-facet { fill: none; stroke: #6f8fd6; stroke-width: 1.8; stroke-linecap: round; }
.pt-ballbody-y { fill: var(--ball-y); stroke: var(--ball-y-ink); stroke-width: 2.4; stroke-linejoin: round; }
.pt-facet-y { fill: none; stroke: #b48a1d; stroke-width: 1.8; stroke-linecap: round; }
.pt-gap { stroke: #fbf8ef; stroke-width: 3; stroke-dasharray: 8 7; opacity: 0.9; animation: pt-flash 0.5s ease-out 0.75s both; }
.pt-streak path { stroke: #1f3c88; stroke-width: 4; stroke-linecap: round; opacity: 0.6; stroke-dasharray: 140; animation: pt-draw 1.1s cubic-bezier(0.15, 0.7, 0.2, 1) 0.45s both; }
@media (prefers-color-scheme: dark) { .pt-streak path { stroke: #c9d6ff; opacity: 0.45; } }
.pt-roll { animation: pt-roll 1.1s cubic-bezier(0.15, 0.7, 0.2, 1) 0.45s both; }
.pt-spin { transform-box: fill-box; transform-origin: center; animation: pt-spin 1.1s cubic-bezier(0.15, 0.7, 0.2, 1) 0.45s both; }
@keyframes pt-roll { from { transform: translateX(-470px); } to { transform: translateX(0); } }
@keyframes pt-spin { from { transform: rotate(-540deg); } to { transform: rotate(0); } }
@keyframes pt-draw { from { stroke-dashoffset: 140; opacity: 0; } 30% { opacity: 0.6; } to { stroke-dashoffset: 0; } }
@keyframes pt-flash { 0% { opacity: 0.9; stroke: #fbf8ef; } 40% { opacity: 1; stroke: #ffe066; stroke-width: 6; } 100% { opacity: 0.9; stroke: #fbf8ef; stroke-width: 3; } }

/* teaser */
.teaser { display: grid; gap: 2rem 3.5rem; align-items: center; }
@media (min-width: 48rem) { .teaser { grid-template-columns: 1fr minmax(15rem, 20rem); } }
.teaser-video {
  margin: 0; justify-self: center; width: min(20rem, 82vw);
}
.teaser-video video {
  width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: var(--radius); background: #213a1f;
  box-shadow: var(--shadow-lg);
}
.teaser-video figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); text-align: center; }

/* how it plays */
.steps {
  list-style: none; margin: 0; padding: 0 0 0.75rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  counter-reset: step;
}
@media (min-width: 40rem) { .steps { grid-auto-columns: 31%; } }
@media (min-width: 60rem) { .steps { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.steps li { scroll-snap-align: start; counter-increment: step; }
.steps figure { margin: 0; }
.steps figcaption { margin-top: 1rem; font-size: 1.05rem; line-height: 1.4; }
.steps figcaption strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.steps figcaption::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  font-family: var(--display); font-weight: 800; margin-bottom: 0.6rem;
  background: var(--ink); color: var(--on-ink);
}
.theme-os .steps figcaption::before { background: var(--sun); color: #2a1d05; }

/* features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
}
.feature h3 { margin: 0.9rem 0 0.4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature .big {
  display: inline-grid; place-items: center; min-width: 3.25rem; height: 3.25rem; padding: 0 0.6rem;
  border-radius: 16px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em;
  background: rgba(71, 165, 74, 0.16); color: #23702a;
}
@media (prefers-color-scheme: dark) { .feature .big { background: rgba(71, 165, 74, 0.22); color: #8fdc8f; } }
.feature .big svg { width: 1.9rem; height: 1.9rem; }

/* arenas */
.arenas {
  list-style: none; margin: 1.75rem 0 0; padding: 0 0 0.75rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 0.75rem;
}
@media (min-width: 36rem) { .arenas { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 60rem) { .arenas { grid-template-columns: repeat(6, 1fr); gap: 1.25rem 1rem; } }
.arenas figure { margin: 0; }
.arenas img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); background: var(--grass); }
.arenas figcaption { font-size: 0.88rem; line-height: 1.3; margin-top: 0.5rem; font-weight: 600; }
.arenas figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }

/* fair play: a notebook page */
.fair {
  display: grid; gap: 1.5rem 3rem;
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, transparent 2.4rem, rgba(220, 70, 70, 0.35) 2.4rem calc(2.4rem + 2px), transparent calc(2.4rem + 2px)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 1.4rem 1.4rem, 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.75rem) clamp(3.4rem, 6vw, 4.5rem);
  box-shadow: var(--shadow);
}
@media (min-width: 52rem) { .fair { grid-template-columns: 1fr 1fr; } }
.fair h2 { margin-bottom: 0.35em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3em;
  width: 0.7rem; height: 1.05rem; border: solid var(--ink); border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.ticks strong { display: block; }
.ad-rule { margin: 0; padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px dashed var(--line); }
.ad-rule strong { display: block; margin-bottom: 0.2rem; }
.also { margin-top: 1.25rem; color: var(--muted); }

/* bottom band */
.soon-band { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(2rem, 4vw, 3rem) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.soon-band .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.soon-band p { margin: 0; }
.soon-band .pill { margin: 0; font-size: 1.1rem; }
.theme-gb .soon-band { background: repeating-linear-gradient(90deg, var(--grass) 0 5rem, var(--grass-2) 5rem 10rem); color: #fbf8ef; border-top: 0; }
.theme-gb .soon-band a { color: #fbf8ef; }

/* ---------- One Shadow page ---------- */

.os-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 183, 64, 0.5), rgba(244, 183, 64, 0) 38%),
    linear-gradient(180deg, var(--sand), var(--bg));
}
.os-hero .title-row { display: flex; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1.25rem; }
.os-hero .app-icon { width: clamp(5rem, 11vw, 7rem); flex: none; }
.os-hero h1 { margin: 0; }
.os-hero .kind { margin: 0.25rem 0 0; color: var(--muted); font-weight: 600; }

.rules { counter-reset: rule; list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li {
  counter-increment: rule;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.2rem 4.3rem; position: relative; font-size: 1.08rem; box-shadow: var(--shadow);
}
.rules li::before {
  content: counter(rule); position: absolute; left: 1.15rem; top: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; background: var(--sun); color: #2a1d05;
}
.rules-note { margin-top: 1.25rem; color: var(--muted); max-width: 42em; }

.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow); border-top: 5px solid var(--sun); }
.promises h3 { margin: 0 0 0.5rem; }
.promises p { margin: 0; color: var(--muted); }

.features-wrap { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 52rem) { .features-wrap { grid-template-columns: 1fr 15rem; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem 2rem; }
@media (min-width: 36rem) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding-left: 1.5rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.75rem; height: 0.75rem;
  border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft);
}
.features strong { display: block; font-weight: 700; }
.shot-side { margin: 0; max-width: 15rem; justify-self: center; }
.shot-side figcaption { margin-top: 0.85rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* the garden band (src/partials/scene.svg), One Shadow's own look */
.theme-os {
  --lawn: #e4dfcf; --lawn-lit: #f3d58d; --hedge: #d7d1bf;
  --bush-shade: #6a7c64; --bush: #889c80; --bush-light: #a6ba9a; --berry: #8e6e9e;
  --g-ink: #2a2e36;
  --g-coat-0: #7d8493; --g-coat: #d9a35e; --g-coat2-0: #656c7a; --g-coat2: #b07e40;
  --g-face-0: #b3b9c3; --g-face: #f8dcbc; --g-beard-0: #cbd0d8; --g-beard: #fffbf2;
  --g-hat-0: #636b7c; --g-hat: #2e8f89; --g-hat2-0: #4f5665; --g-hat2: #226b67;
  --g-nose-0: #9aa1ad; --g-nose: #e3846b;
  --x: #b0a991; --shade: #4a3523; --shade-a: 0.62; --glow-a: 0.55;
}
@media (prefers-color-scheme: dark) {
  .theme-os {
    --lawn: #24322f; --lawn-lit: #5a4a2a; --hedge: #1e2830;
    --bush-shade: #101b15; --bush: #1f3427; --bush-light: #2f4d38; --berry: #7c6aa6;
    --g-ink: #0a0e15;
    --g-coat-0: #8e97a8; --g-coat: #e2cfac; --g-coat2-0: #6e7688; --g-coat2: #bfa580;
    --g-face-0: #c3cad6; --g-face: #ffe6cc; --g-beard-0: #d9dee7; --g-beard: #fffbf2;
    --g-hat-0: #7a859e; --g-hat: #3fa6a0; --g-hat2-0: #5e687e; --g-hat2: #2b7f7a;
    --g-nose-0: #a9b1bf; --g-nose: #f29e86;
    --x: #3d4a49; --shade: #05070b; --shade-a: 0.78; --glow-a: 0.42;
  }
}
.scene { position: relative; border-block: 1px solid var(--line); background: var(--sand-2); overflow: hidden; }
.scene-svg { width: 100%; height: clamp(12rem, 28vw, 22rem); }
.sc-cell { fill: var(--lawn); }
.sc-lit { fill: var(--lawn-lit); animation: sc-fade 0.5s ease-out both; }
.sc-hedge { fill: var(--hedge); }
.sc-b-ground { fill: #000; opacity: 0.25; }
.sc-b-shade { fill: var(--bush-shade); }
.sc-b-body { fill: var(--bush); }
.sc-b-light { fill: var(--bush-light); }
.sc-b-berry { fill: var(--berry); }
.sc-x { stroke: var(--x); stroke-width: 3; stroke-linecap: round; fill: none; }
/* The gnome wakes up when the light reaches it: colors warm, eyes open.
   The base styles are the awake state, so it shows without animation. */
.sc-g-ground { fill: #000; opacity: 0.35; }
.sc-g-ink { fill: var(--g-ink); stroke: var(--g-ink); stroke-width: 5.5; stroke-linejoin: round; }
.sc-g-coat { fill: var(--g-coat); animation: sc-g-coat 0.6s ease-out 1s both; }
.sc-g-coat2 { fill: var(--g-coat2); animation: sc-g-coat2 0.6s ease-out 1s both; }
.sc-g-face { fill: var(--g-face); animation: sc-g-face 0.6s ease-out 1s both; }
.sc-g-beard { fill: var(--g-beard); animation: sc-g-beard 0.6s ease-out 1s both; }
.sc-g-hat { fill: var(--g-hat); animation: sc-g-hat 0.6s ease-out 1s both; }
.sc-g-hat2 { fill: var(--g-hat2); animation: sc-g-hat2 0.6s ease-out 1s both; }
.sc-g-nose { fill: var(--g-nose); animation: sc-g-nose 0.6s ease-out 1s both; }
.sc-g-eye { fill: var(--g-ink); }
.sc-g-catch { fill: #fff; }
.sc-g-cheek { fill: var(--g-nose); opacity: 0.55; }
.sc-g-hi { fill: #fff; opacity: 0.3; }
.sc-g-asleep { fill: none; stroke: var(--g-ink); stroke-width: 2.6; stroke-linecap: round; opacity: 0; animation: sc-out 0.3s linear 1.15s both; }
.sc-g-awake { animation: sc-fade 0.3s linear 1.15s both; }
.sc-glow-a { stop-color: #f0b54a; stop-opacity: var(--glow-a); }
.sc-glow-b { stop-color: #f0b54a; stop-opacity: 0; }
.sc-glowc { animation: sc-fade 1.4s ease-out 0.2s both; }
.sc-shade-a { stop-color: var(--shade); stop-opacity: var(--shade-a); }
.sc-shade-m { stop-color: var(--shade); stop-opacity: calc(var(--shade-a) * 0.62); }
.sc-shade-b { stop-color: var(--shade); stop-opacity: 0.04; }
.sc-shadow { transform-box: fill-box; transform-origin: 0% 40%; animation: sc-grow 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.05s both; }
.sc-ray { stroke: #f0b54a; stroke-width: 4; stroke-linecap: round; }
.sc-lamp-ring { fill: #6b4a12; }
.sc-lamp-core { fill: #f5b53c; }
@media (prefers-color-scheme: dark) { .sc-lamp-core { fill: #ffd27a; } }
.sc-lamp { transform-box: fill-box; transform-origin: center; animation: sc-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.1s both; }
@keyframes sc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-grow { from { transform: scaleX(0.04); opacity: 0.2; } to { transform: scaleX(1); opacity: 1; } }
@keyframes sc-pop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sc-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-g-coat { from { fill: var(--g-coat-0); } to { fill: var(--g-coat); } }
@keyframes sc-g-coat2 { from { fill: var(--g-coat2-0); } to { fill: var(--g-coat2); } }
@keyframes sc-g-face { from { fill: var(--g-face-0); } to { fill: var(--g-face); } }
@keyframes sc-g-beard { from { fill: var(--g-beard-0); } to { fill: var(--g-beard); } }
@keyframes sc-g-hat { from { fill: var(--g-hat-0); } to { fill: var(--g-hat); } }
@keyframes sc-g-hat2 { from { fill: var(--g-hat2-0); } to { fill: var(--g-hat2); } }
@keyframes sc-g-nose { from { fill: var(--g-nose-0); } to { fill: var(--g-nose); } }

/* ---------- support ---------- */

.support-page { max-width: 50rem; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.contact-card {
  display: grid; gap: 0.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); margin: 1.75rem 0 0; box-shadow: var(--shadow);
  border-left: 6px solid var(--ink);
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-email { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.game-jump { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.game-jump a {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.35rem 1rem 0.35rem 0.4rem;
}
.game-jump a:hover { border-color: var(--link); color: var(--link); }
.game-jump img { width: 2rem; height: 2rem; border-radius: 9px; }
.faq-head { display: flex; align-items: center; gap: 0.9rem; margin: 3rem 0 0.5rem; scroll-margin-top: 1rem; }
.faq-head img { width: 3rem; height: 3rem; }
.faq-head h2 { margin: 0; }
.faq { margin-top: 0.75rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0;
  font-weight: 700; font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--link); }
.faq .answer { padding: 0 0 1.15rem; max-width: 42em; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.support-page .privacy-note { margin-top: 3rem; padding: 1.25rem 1.4rem; background: var(--bg-2); border-radius: var(--radius-sm); }
.support-page .privacy-note h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.support-page .privacy-note p { margin: 0; }

/* ---------- legal pages: plain and readable ---------- */

.legal { max-width: 46rem; overflow-wrap: break-word; padding-top: clamp(2.5rem, 6vw, 4rem); }
.legal-page .legal { hyphens: auto; -webkit-hyphens: auto; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin: 2.25rem 0 0.6rem; }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; }
.legal .updated { color: var(--muted); }
.legal address { font-style: normal; margin: 0 0 1em; padding: 1rem 1.2rem; background: var(--bg-2); border-radius: var(--radius-sm); }
.legal dl { margin: 0 0 1em; display: grid; gap: 0.15rem 1.5rem; }
@media (min-width: 36rem) { .legal dl { grid-template-columns: 11rem 1fr; } }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 0.6rem; }
@media (min-width: 36rem) { .legal dd { margin: 0; } }
.table-scroll { overflow-x: auto; margin: 0 0 1.25em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; }
.legal td:first-child { width: 42%; }
.toc { hyphens: manual; -webkit-hyphens: manual; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.toc ol { margin: 0.25rem 0 0; padding-left: 1.4rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.toc p { margin: 0; font-weight: 700; }
.legal-kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--muted); margin-bottom: 0.75rem; text-decoration: none; }
.legal-kicker img { width: 2rem; height: 2rem; border-radius: 9px; }
a.legal-kicker:hover { color: var(--link); }

/* owner placeholder: easy to spot before going live */
.todo {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em;
  background: var(--sun-soft); border: 1px dashed var(--link); border-radius: 4px;
  padding: 0 0.3em; white-space: nowrap;
}

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

.notfound { padding-top: clamp(3rem, 8vw, 6rem); max-width: 42rem; }
.notfound-scene { margin-bottom: 2rem; }
.nf-page { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.nf-grid { stroke: rgba(31, 60, 136, 0.14); stroke-width: 1.2; fill: none; }
.nf-margin { stroke: rgba(220, 70, 70, 0.5); stroke-width: 2; }
.nf-streak { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; opacity: 0.6; }
.nf-ball { fill: #fbf8ef; stroke: #1f3c88; stroke-width: 2.4; stroke-linejoin: round; }
.nf-facet { fill: none; stroke: #6f8fd6; stroke-width: 1.8; stroke-linecap: round; }
.notfound [lang="de"] { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header nav, .lang-switch, .scene, .pitch-band, .skip, .teaser-video { display: none; }
  body { background: #fff; color: #000; }
}
