/* Abyte Labs – shared stylesheet. Plain CSS, no build step.
   Fonts: Fredoka + Nunito, self-hosted in assets/fonts (@font-face rules below). */

/* Fredoka (headings) and Nunito (body), self-hosted (SIL Open Font License) so no visitor data goes to a font CDN. */
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka-latin-500-normal.woff2) format("woff2"); font-weight: 400 500; 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; }
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* metric-matched fallbacks: text keeps its size while the web fonts load, so nothing jumps when they arrive */
@font-face{font-family:"Fredoka Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Roboto Bold"),local("Roboto");size-adjust:95.31%;ascent-override:102.2%;descent-override:24.76%;line-gap-override:0%}
@font-face{font-family:"Nunito Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Roboto");size-adjust:101.96%;ascent-override:99.16%;descent-override:34.62%;line-gap-override:0%}

:root {
  --sky: #8EC8EE;
  --sky-deep: #5FA9DC;
  --cream: #F6EBD3;
  --cream-light: #FFF8E8;
  --sand: #E6D5B8;
  --sand-deep: #D2BC96;
  --brown: #4A2C2A;
  --brown-soft: #6B4A45;   /* 6.3:1 on cream, for secondary text */
  --orange: #FF8F0A;
  --orange-dark: #D96A00;
  --link-line: #A85200;     /* underline / marker colour: 4.6:1 on cream */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 6px 0 rgba(74, 44, 42, .10), 0 14px 28px rgba(74, 44, 42, .10);
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
a { color: var(--brown); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--link-line); }
a:hover { text-decoration-color: var(--brown); }
strong { font-weight: 800; }
.lead { font-size: 1.2rem; color: var(--brown); max-width: 40ch; }
.muted { color: var(--brown-soft); }
.small { font-size: .9rem; }

/* ---------- Focus (visible on sky, cream and sand) ---------- */
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--cream-light); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--brown); color: var(--cream-light);
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding-block: 40px; }
.section-sky { background: var(--sky); }
.section-sand { background: var(--sand); }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: 1em; }

/* ---------- Header ---------- */
.site-header { background: var(--sky); position: relative; z-index: 10; }
.site-header .container { display: flex; flex-direction: column; gap: 10px; padding-block: 14px 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; align-self: flex-start; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.04); }
.logo-mark { width: 44px; height: 44px; flex: none; display: block; transition: transform .2s ease; filter: drop-shadow(0 3px 0 rgba(74,44,42,.18)); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; text-decoration: none; color: var(--brown);
  transition: background-color .15s ease;
}
.site-nav a:hover { background: rgba(255,248,232,.65); }
.site-nav a[aria-current="page"] { background: var(--cream-light); box-shadow: 0 3px 0 rgba(74,44,42,.15); }
@media (min-width: 860px) {
  .site-header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 16px 8px; }
}

/* ---------- Scalloped dividers ---------- */
.scallop-down, .scallop-up { display: block; height: 24px; width: 100%; }
/* sky scallops hanging down into cream (place right after a sky section) */
.scallop-down { background: radial-gradient(circle at 50% 0, var(--sky) 11.5px, transparent 12px) 0 0 / 24px 24px repeat-x; }
/* sand scallops rising into cream (place right before the footer or a sand section) */
.scallop-up { background: radial-gradient(circle at 50% 100%, var(--sand) 11.5px, transparent 12px) 0 0 / 24px 24px repeat-x; }
/* sand scallops hanging down (after a sand section) */
.scallop-down.on-sand { background: radial-gradient(circle at 50% 0, var(--sand) 11.5px, transparent 12px) 0 0 / 24px 24px repeat-x; }
/* big soft hills: a gentler divider */
.hills { display: block; height: 56px; background:
  radial-gradient(ellipse 60% 100% at 25% 100%, var(--sand) 99%, transparent 100%),
  radial-gradient(ellipse 70% 100% at 75% 100%, var(--sand) 99%, transparent 100%); }

/* ---------- Buttons (chunky, like the game's Play button) ---------- */
.btn {
  --face: var(--orange); --edge: var(--orange-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.1;
  color: var(--brown); text-decoration: none; text-align: center;
  background: var(--face); border: 0; border-radius: 18px; cursor: pointer;
  box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(74,44,42,.18);
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--edge), 0 12px 20px rgba(74,44,42,.2); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge), 0 3px 6px rgba(74,44,42,.2); }
.btn-secondary { --face: var(--cream-light); --edge: var(--sand-deep); border: 2px solid var(--brown); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cards & callouts ---------- */
.card {
  background: var(--cream-light); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 2px solid var(--sand);
}
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.card-sand { background: var(--sand); border-color: var(--sand-deep); }
.notice {
  background: var(--cream-light); border-left: 8px solid var(--orange);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-block: 1.4em;
}
.notice > :last-child { margin-bottom: 0; }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--cream-light); border: 2px solid var(--brown);
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
}

/* ---------- Hero ---------- */
.hero { background: var(--sky); padding-block: 36px 24px; }
.hero .container { display: grid; gap: 24px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero-art {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--cream-light);
  border: 3px dashed var(--sand-deep); display: grid; place-items: center;
  color: var(--brown-soft); font-weight: 700; text-align: center; padding: 16px;
}
@media (min-width: 860px) { .hero .container { grid-template-columns: 1.1fr .9fr; } .hero { padding-block: 56px 36px; } }

/* ---------- Page title band for legal/support pages ---------- */
.page-title { background: var(--sky); padding-block: 28px 8px; }
.page-title h1 { margin-bottom: .2em; }
.page-title p { margin-bottom: 0; }
.page-title .muted, .hero .muted, .section-sky .muted { color: var(--brown); } /* brown-soft is only 4.3:1 on sky */

/* ---------- Long-form (legal) text ---------- */
.prose { max-width: 68ch; }
.prose h2 { padding-top: .2em; scroll-margin-top: 16px; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.toc { background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 18px 22px; margin-block: 1.4em; }
.toc ol { margin: 0; }
.updated { display: inline-block; font-weight: 700; color: var(--brown); }

/* tables scroll inside their own box on small screens */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 2px solid var(--sand); margin-block: 1.2em; background: var(--cream-light); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 2px solid var(--sand); }
th { font-family: var(--font-head); font-weight: 600; background: var(--sand); }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ (native <details>, no JS) ---------- */
details { background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--link-line); }
details[open] summary::after { content: "–"; }
details[open] { padding-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); margin-top: auto; }
.site-footer .container { padding-block: 8px 28px; display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.footer-brand .logo-mark { width: 38px; height: 38px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav li { margin: 0; }
.footer-nav a { display: inline-block; padding: 6px 0; font-weight: 700; }
.footer-meta { font-size: .95rem; }
.footer-meta p { margin: 0 0 .3em; }
@media (min-width: 860px) { .site-footer .container { grid-template-columns: 1.2fr 1.4fr 1fr; align-items: start; } }

/* ---------- Print (legal pages) ---------- */
@media print {
  .site-header, .site-footer, .scallop-down, .scallop-up, .skip-link { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* ---------- Home page additions ---------- */
.btn-large { min-height: 64px; padding: 14px 34px; font-size: 1.3rem; flex-direction: column; gap: 0; border-radius: 22px; }
.btn-sub { font-family: var(--font-body); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-actions { margin-top: 26px; }
.hero h1 { font-size: clamp(2.4rem, 11vw, 4.2rem); }

/* Landscape phone frame (20:9, matches the game's 2400x1080 canvas) */
.phone {
  position: relative; background: var(--brown); border-radius: 30px; padding: 10px 8px 10px 20px;
  box-shadow: 0 8px 0 rgba(74,44,42,.22), 0 22px 36px rgba(74,44,42,.22);
  max-width: 560px; width: 100%; justify-self: center;
}
.phone::before { /* camera dot on the left edge */
  content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #7a5a54;
}
.phone-screen { position: relative; aspect-ratio: 20 / 9; border-radius: 18px; overflow: hidden; background: var(--cream-light); display: grid; place-items: center; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* How to play */
.step-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--sky); border: 3px solid var(--brown); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 4px 0 rgba(74,44,42,.18); }
.step-icon svg { width: 46px; height: 46px; }
.step-num { font-family: var(--font-head); font-weight: 500; color: var(--brown-soft); font-size: .95rem; }
.steps .card h3 { margin-top: 0; }
.steps .card p { margin-bottom: 0; }

/* Meet Sprig */
.sprig-wrap { display: grid; gap: 24px; align-items: center; }
.sprig-badge { width: 150px; height: 150px; border-radius: 50%; background: var(--cream-light); border: 3px solid var(--brown); display: grid; place-items: center; box-shadow: 0 6px 0 rgba(74,44,42,.18); justify-self: start; }
.sprig-badge svg { width: 96px; height: 96px; }
@media (min-width: 640px) { .sprig-wrap { grid-template-columns: auto 1fr; gap: 36px; } .sprig-badge { width: 190px; height: 190px; } .sprig-badge svg { width: 120px; height: 120px; } }

/* Features */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .dot { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--orange); border: 3px solid var(--brown); box-shadow: 0 3px 0 var(--orange-dark); display: grid; place-items: center; }
.feature .dot svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 .15em; font-size: 1.15rem; }
.feature p { margin: 0; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.note-band { text-align: center; }
.note-band p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; }

/* ---------- Data table: real table on wide screens, stacked cards on phones ---------- */
.data-table th[scope="row"] { font-family: var(--font-body); font-weight: 800; background: transparent; }
.data-table .yes { font-weight: 800; }
@media (max-width: 719px) {
  .table-wrap.stack-table { border: 0; background: transparent; overflow: visible; }
  .data-table { min-width: 0; display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tbody { display: grid; gap: 14px; }
  .data-table tr { display: block; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 6px 16px 10px; box-shadow: var(--shadow); }
  .data-table tr:last-child td { border-bottom: 0; }
  .data-table th[scope="row"], .data-table td { display: block; padding: 8px 0; border-bottom: 2px solid var(--sand); }
  .data-table th[scope="row"] { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; border-bottom: 2px solid var(--sand); }
  .data-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brown-soft); }
}
@media (min-width: 720px) { .container-wide { max-width: 980px; } }

/* ---------- Numbered step cards (delete-data) ---------- */
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.step-list > li { counter-increment: step; margin: 0; position: relative; padding-left: 78px; min-height: 96px; }
.step-list > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--brown); box-shadow: 0 3px 0 var(--orange-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; display: grid; place-items: center;
}
.step-list h2 { font-size: 1.25rem; margin: 0 0 .3em; }
.step-list p:last-child { margin-bottom: 0; }
.path { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: var(--sand); border-radius: 8px; padding: 1px 8px; font-weight: 800; font-size: .95rem; }
@media (max-width: 420px) { .step-list > li { padding-left: 20px; padding-top: 74px; } .step-list > li::before { left: 20px; top: 18px; } }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: 36px 56px; }
.lost svg { width: min(260px, 70%); height: auto; margin: 0 auto 8px; display: block; }
.lost .lead { margin-inline: auto; }
.lost .btn-row { justify-content: center; margin-top: 22px; }


/* ---------- Studio family refresh (November 2026): Abyte Labs mark and intro, build 14 content ---------- */
@font-face { font-family: "Recursive"; src: url(fonts/recursive-intro.woff2) format("woff2"); font-weight: 300 900; font-display: block; }
html.ab-intro-pending body { visibility: hidden; }
html.ab-intro-pending { background: #FFF8EE; }
.ab-hidden-for-intro { visibility: hidden; }
.logo-mark { overflow: visible; }
.badge-link { text-decoration: none; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-1px); }
.studio-links a { font-weight: 700; }

.hero-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255,248,232,.75); border: 2px solid var(--brown); font-weight: 800; font-size: .92rem; }
.hero-note { margin: 12px 0 0; font-weight: 700; }
.hero-visual { position: relative; padding-bottom: 54px; }
.squad { position: absolute; right: -6px; bottom: -4px; display: flex; align-items: flex-end; pointer-events: none; }
.squad img { width: 92px; height: auto; margin-left: -26px; filter: drop-shadow(0 6px 0 rgba(74,44,42,.15)); animation: squad 2.4s ease-in-out 2; transform-origin: 50% 100%; } /* two hops, then still (moving content stops within 5 s) */
.squad img:nth-child(2) { width: 108px; animation-delay: .3s; position: relative; z-index: 2; }
.squad img:nth-child(3) { animation-delay: .6s; }
@keyframes squad { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-10px) scale(.98, 1.03); } 60% { transform: translateY(0) scale(1.03, .97); } }
@media (min-width: 860px) { .squad img { width: 118px; margin-left: -34px; } .squad img:nth-child(2) { width: 138px; } .squad { right: -26px; bottom: -18px; } }

.gang { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gang { grid-template-columns: repeat(4, 1fr); } }
.char { margin: 0; background: var(--cream-light); border: 2px solid var(--sand-deep); border-radius: var(--radius); padding: 14px 14px 16px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .2s ease; }
.char:hover { transform: translateY(-4px) rotate(-1deg); }
.char-pic { width: 100%; aspect-ratio: 1 / 1.05; border-radius: 16px; background: radial-gradient(circle at 50% 70%, var(--sky) 0 60%, #BFE2F5 61%); display: grid; place-items: end center; overflow: hidden; }
.char-pic img { width: 78%; height: auto; margin-bottom: -4%; transition: transform .25s cubic-bezier(.34,1.56,.64,1); transform-origin: 50% 100%; }
.char:hover .char-pic img { transform: translateY(-8px) scale(1.04); }
.char h3 { margin: 12px 0 2px; font-size: 1.3rem; }
.char p { margin: 0 0 10px; font-size: .95rem; color: var(--brown-soft); line-height: 1.45; }
.pill { margin-top: auto; display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: var(--sand); }
.pill-free { background: var(--orange); box-shadow: 0 2px 0 var(--orange-dark); }

.wardrobe { display: grid; gap: 14px; margin-top: 18px; }
.ward-row { display: grid; gap: 10px; align-items: center; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .ward-row { grid-template-columns: 140px 1fr; } }
.ward-row h3 { margin: 0; font-size: 1.25rem; }
.ward-row ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ward-row li { margin: 0; text-align: center; font-weight: 700; font-size: .88rem; line-height: 1.3; }
.ward-row img { width: 74px; height: 74px; margin: 0 auto 4px; display: block; border-radius: 18px; background: var(--cream); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.ward-row li:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.06); }

.roads { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .roads { grid-template-columns: repeat(3, 1fr); } }
.road { margin: 0; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.road:hover { transform: translateY(-4px); }
.road img { display: block; width: 100%; height: auto; }
.road-body { padding: 14px 18px 16px; }
.road-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.road h3 { margin: 0; }
.road p { margin: 6px 0 0; }
.road-unlock { font-weight: 700; }
.diff { padding: 3px 11px; border-radius: 999px; font-weight: 800; font-size: .82rem; border: 2px solid var(--brown); }
.diff-easy { background: #CDEBB5; } .diff-medium { background: #FFD9A0; } .diff-hard { background: #FFC2B8; }

.seeds .card { text-align: center; }
.seeds .card img { width: 96px; height: 96px; margin: 0 auto 6px; display: block; }
.seeds .card h3 { margin-top: .2em; }
.seeds .card p { margin-bottom: 0; }
.seeds-note { margin: 18px 0 0; font-weight: 700; text-align: center; }

.more-card { display: flex; gap: 16px; align-items: center; text-decoration: none; transition: transform .2s ease; }
.more-card:hover { transform: translateY(-3px); }
.more-card img, .more-mark { width: 84px; height: 84px; flex: none; border-radius: 20px; }
.more-mark { display: grid; place-items: center; background: #221824; }
.more-svg { width: 64px; height: 64px; overflow: visible; }
.more-card h3 { margin: 0 0 .2em; }
.more-card p { margin: 0 0 .4em; color: var(--brown-soft); }
.more-link { font-weight: 800; text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 3px; }
:root { --font-head: "Fredoka", "Fredoka Fallback", "Trebuchet MS", system-ui, sans-serif; --font-body: "Nunito", "Nunito Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Build 16 (November 2026): 14 friends, 7 roads, 8 items per wardrobe row ---------- */
.diff-expert { background: #DCCFF7; }
.road-top { flex-wrap: wrap; row-gap: 6px; }

/* friends: four to a row from 640 px (8 half-columns), so a short last row sits in the middle */
@media (min-width: 640px) {
  .gang { grid-template-columns: repeat(8, 1fr); }
  .gang .char { grid-column: span 2; }
  .gang .char:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
  .gang .char:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
  .gang .char:nth-child(4n+1):last-child { grid-column: 4 / span 2; }
}

/* roads: picture beside the text below 760 px, three to a row up to 979 px, four from 980 px; short last rows centred */
@media (max-width: 759px) {
  .road { display: grid; grid-template-columns: min(42%, 240px) 1fr; align-items: center; }
  .road img { padding: 10px 0 10px 10px; }
  .road-body { padding: 10px 14px 12px; }
}
@media (min-width: 760px) {
  .roads { grid-template-columns: repeat(6, 1fr); }
  .road { grid-column: span 2; }
  .road:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
  .road:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
}
@media (min-width: 980px) {
  .roads { grid-template-columns: repeat(8, 1fr); }
  .road:nth-child(3n+1):nth-last-child(2), .road:nth-child(3n+1):last-child { grid-column: auto / span 2; }
  .road:nth-child(4n+1):nth-last-child(3) { grid-column: 2 / span 2; }
  .road:nth-child(4n+1):nth-last-child(2) { grid-column: 3 / span 2; }
  .road:nth-child(4n+1):last-child { grid-column: 4 / span 2; }
}

/* wardrobe: eight items in one row on wide screens (two rows of four below 960 px) */
@media (min-width: 960px) { .ward-row ul { grid-template-columns: repeat(8, 1fr); } }
/* road name and difficulty: stacked until the four-column row is wide enough, then side by side (slightly smaller name) */
@media (max-width: 1099px) { .road-top { flex-direction: column; align-items: flex-start; gap: 6px; } }
@media (min-width: 980px) { .road h3 { font-size: 1.12rem; } .road-body { padding-inline: 16px; } }
/* seed prices stay on one line, even in the narrow two-column cards of a 320 px phone */
.pill { white-space: nowrap; }
@media (max-width: 359px) { .pill { padding-inline: 8px; } }
/* the hero squad leans 26 px out of the hero column from 860 px; below 1092 px that ran past the window edge */
@media (min-width: 860px) and (max-width: 1091px) { .squad { right: -14px; } }

/* trailer: the video in a dark rounded frame like the hero phone, with a big orange play button until it starts */
.trailer .screen { position: relative; margin: 18px 0 0; background: var(--brown); border-radius: 26px; padding: 10px;
  box-shadow: 0 8px 0 rgba(74,44,42,.22), 0 22px 36px rgba(74,44,42,.22); }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 17px; background: var(--sky); cursor: pointer; }
.play-big { position: absolute; left: 50%; top: 58%; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0 0 0 6px;
  display: grid; place-items: center; border-radius: 50%; border: 4px solid var(--brown); background: var(--orange); cursor: pointer;
  box-shadow: 0 5px 0 var(--orange-dark), 0 12px 22px rgba(74,44,42,.3); transition: transform .15s ease; }
.play-big[hidden] { display: none; }
.play-big:hover { transform: scale(1.06); }
.play-big svg { width: 46px; height: 46px; }
@media (max-width: 520px) { .play-big { width: 62px; height: 62px; margin: -31px 0 0 -31px; padding-left: 4px; border-width: 3px; } .play-big svg { width: 30px; height: 30px; } .trailer .screen { padding: 7px; border-radius: 20px; } .trailer video { border-radius: 14px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Build 24 (November 2026): 8 roads, four how-to-play cards ---------- */
/* how to play: two by two from 640 px, all four in a row from 1040 px */
@media (min-width: 1040px) { .steps.grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Build 28 (November 2026): 19 friends, 10 roads, rides, premium and ad-free ---------- */
/* friend pills: won on a road (green) and premium (lilac, with the game's crown) */
.pill-won { background: #CDEBB5; }
.pill-premium { background: #DCCFF7; display: inline-flex; align-items: center; gap: 5px; }
.pill-crown { width: 18px; height: 18px; flex: none; }
@media (max-width: 359px) { .pill-won { white-space: normal; } }
/* the premium wardrobe row: a lilac edge and the crown before its name */
.ward-premium { border-color: #C9B6EE; background: linear-gradient(180deg, #FBF7FF, var(--cream-light)); }
.ward-premium h3 { display: flex; align-items: center; gap: 8px; }
.ward-crown { width: 32px; height: 32px; flex: none; }
/* emotes (build 31): ten of the 38 card pictures, two to a row on phones, five on wide screens; a gentle bob on hover */
.emotes { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .emotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .emotes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.emote { margin: 0; min-width: 0; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 10px 10px 12px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease; }
.emote:hover { transform: translateY(-4px) rotate(-1deg); }
.emote-pic { border-radius: 14px; background: radial-gradient(circle at 50% 38%, #FFF3D6 0, #FCE3B0 46%, #BFE2F5 47%, #DDF0FA 100%); aspect-ratio: 1 / 1; overflow: hidden; }
.emote-pic img { width: 100%; height: auto; display: block; }
.emote h3 { margin: 10px 0 0; font-size: 1.04rem; }
.emote p { margin: 2px 0 0; overflow-wrap: break-word; }
.emotes-note { margin: 16px auto 0; max-width: 60ch; text-align: center; }
/* rides: one from each road, two to a row on phones, five on wide screens */
.rides { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .rides { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .rides { grid-template-columns: repeat(5, 1fr); } }
.ride { margin: 0; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 10px 10px 12px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease; }
.ride:hover { transform: translateY(-4px) rotate(1deg); }
.ride-pic { border-radius: 14px; background: linear-gradient(180deg, #BFE2F5 0 72%, #E6D5B8 72%); aspect-ratio: 3 / 2; display: grid; place-items: end center; overflow: hidden; padding: 6px 6px 10%; }
.ride-pic img { width: 100%; height: auto; display: block; }
.ride h3 { margin: 10px 0 0; font-size: 1.08rem; }
.ride p { margin: 2px 0 0; }
/* ad-free and the Premium Pack under the seed cards */
.premium-cards { margin-top: 18px; }
.premium-cards .card { display: flex; gap: 14px; align-items: center; border-color: #C9B6EE; }
.premium-cards .card img { width: 84px; height: 84px; flex: none; }
.premium-cards .card h3 { margin: 0 0 .2em; }
.premium-cards .card p { margin: 0; }
/* long premium names ("Masquerade Mask") must not widen the wardrobe on a 320 px phone */
.wardrobe, .ward-row, .ward-row ul, .ward-row li { min-width: 0; }
.ward-row li span { display: block; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 359px) { .ward-row li { font-size: .8rem; } }
.ward-row h3 .ward-crown { width: 32px; height: 32px; margin: 0; background: none; border-radius: 0; display: inline-block; transform: none; }
/* build 29: floating bricks and the front flip */
.flip-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 880px; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: flip; }
.flip-steps li { margin: 0; min-width: 0; text-align: center; counter-increment: flip; }
.flip-steps img { width: 100%; height: auto; display: block; border-radius: 18px; border: 2px solid var(--sand); box-shadow: var(--shadow); background: #BFE2F5; }
.flip-steps span { display: block; margin-top: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; overflow-wrap: break-word; }
.flip-steps span::before { content: counter(flip) ". "; color: var(--orange); }
@media (max-width: 560px) { .flip-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .flip-steps span { font-size: .9rem; } }
.bricks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .bricks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .bricks { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brick { margin: 0; min-width: 0; background: var(--cream-light); border: 2px solid var(--sand); border-radius: var(--radius); padding: 10px 10px 12px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease; }
.brick:hover { transform: translateY(-4px) rotate(-1deg); }
.brick-pic { border-radius: 14px; background: linear-gradient(180deg, #A9D8F2, #DDF0FA); aspect-ratio: 8 / 5; overflow: hidden; }
.brick-pic img { width: 100%; height: auto; display: block; animation: brick-float 3.2s ease-in-out infinite; }
.brick:nth-child(2n) .brick-pic img { animation-delay: -1.1s; }
.brick:nth-child(3n) .brick-pic img { animation-delay: -2.2s; }
@keyframes brick-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .brick-pic img { animation: none; } }
.brick h3 { margin: 10px 0 0; font-size: 1.04rem; }
.brick p { margin: 2px 0 0; overflow-wrap: break-word; }
