/* vanillacity.me: VanillaCity's website, dressed like the game. The sky behind the town, cream
   panels outlined in ink with a hard shadow like the town's sprites, TeamVanilla green, the shop
   awnings' stripes, titles in the town's own sign lettering (build.py draws them), the pixel art
   kept sharp. One stylesheet; no fonts or pictures from anywhere else. */

:root {
  --green: #1ed67c;
  --green-deep: #17b566;
  --green-dark: #0f6e3e;
  --ink: #16151c;
  --ink-soft: #3a3942;
  --muted: #6d6a62;
  --paper: #fbf6ea;
  --panel: #fffdf8;
  --line: #e6dcc6;
  --sky: #cfe8f6;
  --sky-deep: #9fd0ec;
  --peach: #f4a582;
  --brick: #a8442f;
  --gold: #e3b341;
  --edge: 3px solid var(--ink);
  --drop: 0 6px 0 var(--ink);
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
.px, .shot img, .stage-img, .strip img, .feature-pic img, .place img, .map-art img, .hero-art { image-rendering: pixelated; }
a { color: var(--green-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 850; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 850; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 14px; border: var(--edge); border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }
.lead { font-size: 19px; color: var(--ink-soft); }
.hint { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }

/* titles in the town's sign lettering */
.pixel-title { margin: 0 0 14px; line-height: 0; }
.pixel-title .pw { display: block; height: 32px; width: auto; max-width: 100%; }
h1.pixel-title .pw { height: 48px; }
.center .pixel-title .pw { margin: 0 auto; }
.pw-ink { fill: var(--ink); }
.pw-shadow { fill: var(--green-deep); }
@media (max-width: 640px) {
  .pixel-title .pw { height: 24px; }
  h1.pixel-title .pw { height: 32px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  border: var(--edge);
  border-radius: 999px;
  padding: .55em 1.3em;
  min-height: 48px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-go { background: var(--green-deep); color: #fff; }
.btn-go:hover { color: #fff; background: #1bc472; }
.btn-soft { background: var(--panel); color: var(--ink); }
.btn-soft:hover { color: var(--ink); background: #fff; }
.btn-big { font-size: 19px; padding: .65em 1.6em; min-height: 58px; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btns, .notfound .btns { justify-content: center; }

/* ── The header ──────────────────────────────────────────────────────────── */

.top { position: sticky; top: 0; z-index: 20; background: var(--panel); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; width: 200px; height: 39px; }
/* the town cat peeks over the awning, paws on the stripes */
.top-in .cat { flex: none; align-self: flex-end; width: 69px; height: 44px; margin: 0 -8px 0 -6px; image-rendering: pixelated; pointer-events: none; }
.top .btn { white-space: nowrap; flex: none; min-height: 44px; padding: .4em 1.1em; box-shadow: 0 3px 0 var(--ink); }
/* the awning: the shops' stripes along the header's foot */
.awning {
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--green-deep) 0 24px, #f4f1ea 24px 48px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.menu-btn {
  display: none;
  margin-left: auto;
  border: var(--edge);
  background: var(--panel);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 1em;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}
/* ── The home page's town ───────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: var(--edge); }
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(207, 232, 246, .9) 0%, rgba(207, 232, 246, .55) 34%, rgba(207, 232, 246, 0) 56%);
}
.hero-in { position: relative; z-index: 1; min-height: min(780px, 86vh); display: flex; align-items: center; padding: 56px 24px; }
.hero-card {
  max-width: 580px;
  background: var(--panel);
  border: var(--edge);
  border-radius: 20px;
  box-shadow: 0 8px 0 var(--ink);
  padding: 32px 34px 30px;
}
.hero-card .logo { display: block; width: 400px; height: auto; margin: 0 0 18px; }
.hero-card h1 { font-size: clamp(30px, 3.6vw, 44px); }
.hero-card .btns { margin-top: 22px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 18px 0 0; border-top: 2px dashed var(--line); list-style: none; color: var(--ink-soft); font-size: 15px; font-weight: 750; }
.platforms li { display: inline-flex; align-items: center; gap: 7px; }
.platforms .ico { width: 18px; height: 18px; color: var(--green-dark); }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(207, 232, 246, 0) 0%, rgba(207, 232, 246, 0) 30%, rgba(207, 232, 246, .92) 62%); }
  .hero-in { min-height: 0; padding: 200px 16px 28px; }
  .hero-card { padding: 22px 20px; }
  .hero-card .logo { width: 240px; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.band { padding: 72px 0; }
.band-sky { background: linear-gradient(180deg, var(--sky) 0%, #e3f1f9 100%); }
.band-panel { background: var(--panel); border-top: var(--edge); border-bottom: var(--edge); }
.sub { color: var(--ink-soft); max-width: 780px; margin-bottom: 30px; font-size: 18px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose .pixel-title { margin-top: 0; }

.card {
  background: var(--panel);
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: 22px 24px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.cards .card h3 { margin-bottom: .35em; }
.cards .card p { margin: 0; color: var(--ink-soft); }
.cards .card .ico { width: 34px; height: 34px; padding: 6px; border: 2px solid var(--ink); border-radius: 10px; background: #e5f7ec; color: var(--green-dark); margin-bottom: 12px; }

/* a feature: its picture on one side, what it is on the other, turning sides down the page */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; align-items: center; margin: 0 0 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-pic { order: 2; }
.feature-pic a { display: block; border-radius: var(--radius); overflow: hidden; border: var(--edge); box-shadow: 0 8px 0 var(--ink); background: var(--ink); transition: transform .15s ease; }
.feature-pic a:hover { transform: translateY(-3px); }
.feature-pic img { display: block; width: 100%; }
.feature-text h3 { font-size: 28px; letter-spacing: -.01em; }
.feature-text p { color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.facts li { background: #e5f7ec; color: var(--green-dark); border: 2px solid var(--green-dark); border-radius: 999px; padding: .2em .85em; font-weight: 850; font-size: 14px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 56px; }
  .feature.flip .feature-pic { order: 0; }
}

/* ── Screenshots ─────────────────────────────────────────────────────────── */

.viewer { max-width: 1120px; margin: 0 auto; }
.stage { position: relative; border-radius: var(--radius); overflow: hidden; border: var(--edge); box-shadow: 0 8px 0 var(--ink); background: var(--ink); }
.stage-link { display: block; }
.stage-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: opacity .2s; }
.stage-img.loading { opacity: .6; }
.v-prev, .v-next, .lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: var(--edge);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}
.v-prev, .lb-prev { left: 14px; }
.v-next, .lb-next { right: 14px; }
.v-prev::before, .v-next::before, .lb-prev::before, .lb-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
}
.v-prev::before, .lb-prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.v-next::before, .lb-next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.stage-cap { margin: 16px 4px 12px; color: var(--ink-soft); font-weight: 650; min-height: 1.5em; text-align: center; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; margin: 0; list-style: none; scroll-snap-type: x proximity; }
.strip li { flex: none; scroll-snap-align: start; }
.strip a { display: block; width: 172px; border-radius: 10px; overflow: hidden; border: 3px solid transparent; opacity: .72; transition: opacity .15s; }
.strip a[aria-current="true"] { border-color: var(--ink); opacity: 1; box-shadow: 0 3px 0 var(--green-deep); }
.strip a:hover { opacity: 1; }
.strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px 24px; padding: 0; margin: 0; list-style: none; }
.shots.phones { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.shot { margin: 0; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: var(--edge); box-shadow: var(--drop); background: var(--ink); transition: transform .15s ease; }
.shot a:hover { transform: translateY(-3px); }
.shot img { display: block; width: 100%; }
.shot figcaption { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 21, 28, .92);
  display: grid;
  place-items: center;
  padding: 24px 76px;
}
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; }
.lb img { max-width: min(1600px, 100%); max-height: calc(100vh - 120px); border-radius: 10px; border: 3px solid var(--panel); image-rendering: pixelated; }
.lb figcaption { color: #fff; text-align: center; max-width: 900px; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border: var(--edge); border-radius: 50%; background: var(--panel); font-size: 20px; cursor: pointer; }
@media (max-width: 640px) { .lb { padding: 64px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; } }

/* ── The town's people ──────────────────────────────────────────────────── */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.person { display: flex; gap: 12px; align-items: center; background: var(--panel); border: var(--edge); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 4px 0 var(--ink); }
.person img { width: 64px; height: 64px; border-radius: 10px; background: #dff0f9; border: 2px solid var(--ink); flex: none; image-rendering: pixelated; }
.person b { display: block; line-height: 1.25; }
.person span { color: var(--muted); font-size: 14px; line-height: 1.3; display: block; }

/* ── Places ─────────────────────────────────────────────────────────────── */

.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; padding: 0; margin: 0; list-style: none; }
.place { background: var(--panel); border: var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--drop); display: flex; flex-direction: column; }
.place > a { display: block; background: var(--ink); border-bottom: var(--edge); }
.place img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.place-body { padding: 16px 20px 20px; }
.place-body h3 { margin-bottom: .25em; }
.place-body .who { color: var(--green-dark); font-weight: 850; font-size: 14px; margin-bottom: .5em; }
.place-body p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.title-gap { margin-top: 56px; }

.map-art { display: block; border-radius: var(--radius); border: var(--edge); box-shadow: 0 8px 0 var(--ink); background: var(--sky); overflow: hidden; }
.map-art img { display: block; width: 100%; }

/* ── Download ───────────────────────────────────────────────────────────── */

.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .dl { grid-template-columns: minmax(0, 1fr); } }
.dl .card { display: flex; flex-direction: column; gap: 10px; }
.dl .card h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; margin: 0; }
.dl .card h2 .ico { width: 30px; height: 30px; color: var(--green-deep); }
.dl .card .btn { align-self: flex-start; margin-top: auto; }
.dl dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 12px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dl code, .sha { font: 13px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.steps { counter-reset: s; padding: 0 !important; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin: 0 0 16px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--green-deep);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 15px;
}

/* ── Rules ───────────────────────────────────────────────────────────────── */

.rules { counter-reset: r; padding: 0 !important; list-style: none; display: grid; gap: 14px; }
.rules li {
  counter-increment: r;
  background: var(--panel);
  border: var(--edge);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 14px 18px 14px 66px;
  position: relative;
}
.rules li::before {
  content: counter(r);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--panel);
  font-weight: 900;
  display: grid;
  place-items: center;
}
.rules b { display: block; }
.ladder { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: var(--edge); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 0 var(--ink); }
.ladder th, .ladder td { text-align: left; padding: 11px 16px; border-bottom: 2px solid var(--line); }
.ladder th { background: #efe7d4; }
.ladder tr:last-child td { border-bottom: 0; }

/* ── The footer ─────────────────────────────────────────────────────────── */

.foot { background: var(--ink); color: #d9d4c8; padding: 0 0 28px; }
.foot::before { content: ""; display: block; height: 12px; background: repeating-linear-gradient(90deg, var(--green-deep) 0 24px, #f4f1ea 24px 48px); border-bottom: 3px solid var(--ink); margin-bottom: 48px; }
.foot a { color: #fffdf8; }
.foot a:hover { color: var(--green); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h2 { font-size: 15px; color: #fffdf8; margin-bottom: .7em; letter-spacing: .06em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot .logo { display: block; width: 240px; height: 46px; margin-bottom: 14px; }
.fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3a3942; font-size: 14px; color: #a8a398; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }

.ico { display: inline-block; vertical-align: middle; }
.notfound { padding: 96px 0; text-align: center; }
.notfound img { width: 128px; margin-bottom: 18px; image-rendering: pixelated; }

/* ── Money: the game's own coin and VanillaBuck, and an arcade ticket ───────────── */

.money-cards { margin-top: 28px; }
.coin-mark, .vb-mark, .ticket-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border: 2px solid var(--ink); }
.coin-mark { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a, var(--gold) 60%, #b8862a); box-shadow: inset 0 0 0 3px #9a6e1e; }
.vb-mark { border-radius: 10px; background: var(--green-deep); box-shadow: inset 0 0 0 3px var(--green-dark); color: #fff; font-weight: 900; font-size: 22px; line-height: 1; }
.ticket-mark { width: 52px; height: 32px; margin-top: 4px; border-radius: 6px; background: radial-gradient(circle at 0 50%, transparent 6px, #f07ab0 6.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 6px, #f07ab0 6.5px) right / 51% 100% no-repeat; border-style: dashed; }
.money-band .cards { margin-top: 8px; }
.money-more { margin-top: 26px; }
.money-cards, .money-band .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.prose > .pixel-title:not(:first-child) { margin-top: 48px; }

/* the cat again, peeking over the foot of the page */
.foot .fine { position: relative; }
.foot .cat-foot { position: absolute; right: 24px; bottom: 0; width: 69px; height: 44px; image-rendering: pixelated; pointer-events: none; }

/* ══ 2026-10 redesign: the live bar, the menu's groups, the home page's news, tiles and community, the footer's call ══ */

:root { --sky-ink: #0e3a52; --cream: #f4f1ea; }

/* the bar over the header: how many are in town, the town's weather, quick links */
.ticker { background: var(--ink); color: #e9e4d6; font-size: 14px; }
.ticker-in { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.ticker a { color: #fffdf8; text-decoration: none; font-weight: 700; }
.ticker a:hover { color: var(--green); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fffdf8; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8d8a80; display: inline-block; flex: none; }
.town-busy .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(30, 214, 124, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 214, 124, .65); } 70% { box-shadow: 0 0 0 9px rgba(30, 214, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 214, 124, 0); } }
@media (prefers-reduced-motion: reduce) { .town-busy .dot { animation: none; } }
.ticker-sky { color: #bfb9aa; }
.ticker-links { margin-left: auto; display: flex; gap: 18px; }
@media (max-width: 640px) { .ticker-sky { display: none; } .ticker-links a:not(:last-child) { display: none; } }

/* the menu: links and drop-downs */
.top { box-shadow: 0 2px 0 rgba(22, 21, 28, .06); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none;
  padding: .45em .8em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; white-space: nowrap; list-style: none;
}
.nav-link::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-group[open] > .nav-link { border-color: var(--ink); background: #fff; color: var(--ink); }
.nav-link[aria-current="page"], .nav-group.here > .nav-link { background: var(--ink); color: var(--panel); }
.caret { transition: transform .15s; }
.nav-group[open] .caret { transform: rotate(180deg); }
.nav-group { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 30;
  width: 320px; margin: 0; padding: 8px; list-style: none;
  background: var(--panel); border: var(--edge); border-radius: 16px; box-shadow: 0 6px 0 var(--ink);
}
.nav-menu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current] { background: #e5f7ec; }
.nav-menu b { font-size: 16px; }
.nav-menu span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.burger { width: 18px; height: 12px; margin-right: 8px; background: linear-gradient(var(--ink) 0 0) top / 100% 2.5px no-repeat, linear-gradient(var(--ink) 0 0) center / 100% 2.5px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 2.5px no-repeat; }
@media (max-width: 1060px) {
  .top.folds .menu-btn { display: inline-flex; align-items: center; }
  .top.folds .top-in { flex-wrap: wrap; }
  .top.folds .nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 14px; gap: 2px; }
  .top.folds.open .nav { display: flex; }
  .top.folds .nav-link { padding: .65em 1em; justify-content: space-between; }
  .top.folds .nav-menu { position: static; transform: none; width: auto; box-shadow: none; border-width: 2px; margin: 4px 0 8px; }
  .top.folds .top-play { margin-left: 8px; }
}
@media (max-width: 520px) { .top.folds .top-play { display: none; } .top.folds.open .top-play { display: inline-flex; order: 4; margin: 0 0 16px; } }

/* the home page's town: drifting clouds, and the town in numbers under the card */
.hero-clouds { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-clouds i {
  position: absolute; width: 180px; height: 46px; border-radius: 40px; background: rgba(255, 255, 255, .55);
  box-shadow: 46px -18px 0 6px rgba(255, 255, 255, .55), 96px 0 0 -4px rgba(255, 255, 255, .55);
  animation: drift 90s linear infinite; image-rendering: pixelated;
}
.hero-clouds i:nth-child(1) { top: 12%; left: -260px; }
.hero-clouds i:nth-child(2) { top: 30%; left: -260px; animation-duration: 130s; animation-delay: -60s; transform: scale(.7); }
.hero-clouds i:nth-child(3) { top: 6%; left: -260px; animation-duration: 160s; animation-delay: -110s; transform: scale(1.2); }
@keyframes drift { to { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .hero-clouds { display: none; } }
.hero-in { z-index: 2; padding-bottom: 120px; }
.hero-stats-wrap { position: relative; z-index: 3; margin-top: -86px; padding-bottom: 28px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  background: var(--panel); border: var(--edge); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); overflow: hidden;
}
.hero-stats li { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 16px 10px; border-left: 2px dashed var(--line); }
.hero-stats li:first-child { border-left: 0; }
.hero-stats b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 14px; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) {
  .hero-in { padding-bottom: 28px; }
  .hero-stats-wrap { margin-top: 0; padding-top: 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats li { border-left: 0; border-top: 2px dashed var(--line); }
  .hero-stats li:nth-child(-n+2) { border-top: 0; }
  .hero-stats li:last-child { grid-column: 1 / -1; }
}

/* a section's title with a link beside it */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.band-head .pixel-title { margin: 0; }
.more-link { font-weight: 850; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* the news: cards on the home page, the whole of it on /news/ */
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .news-cards { grid-template-columns: minmax(0, 1fr); } }
.news-card { background: var(--panel); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); padding: 20px 22px; display: flex; flex-direction: column; transition: transform .15s; }
.news-card:hover { transform: translateY(-3px); }
.news-card h3 { margin: 6px 0 8px; font-size: 21px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.tag { display: inline-block; padding: .1em .7em; border-radius: 999px; border: 2px solid var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tag-update { background: #e5f7ec; color: var(--green-dark); border-color: var(--green-dark); }
.tag-event { background: #fdf0d2; color: #7a5410; border-color: #7a5410; }
.tag-notice { background: #dff0f9; color: var(--sky-ink); border-color: var(--sky-ink); }
.news-wrap { max-width: 860px; }
.news-list { display: grid; gap: 28px; }
.news-item { background: var(--panel); border: var(--edge); border-radius: 18px; box-shadow: var(--drop); padding: 26px 30px 12px; scroll-margin-top: 130px; }
.news-item h2 { margin: 10px 0 8px; }
.news-item .lead { font-size: 18px; }
.news-item ul { padding-left: 1.3em; }
.news-item li { margin: .35em 0; }
.news-anchor { margin-left: auto; color: var(--muted); text-decoration: none; font-weight: 900; }
.news-item:target { outline: 4px solid var(--green); outline-offset: 4px; }

/* things to do: a tile each, its screenshot on top */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; padding: 0; margin: 0 0 34px; list-style: none; }
.tile { background: var(--panel); border: var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--drop); display: flex; flex-direction: column; transition: transform .15s; }
.tile:hover { transform: translateY(-3px); }
.tile > a { display: block; background: var(--ink); border-bottom: var(--edge); }
.tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.tile-body { padding: 14px 18px 18px; }
.tile-body h3 { font-size: 19px; margin-bottom: .3em; }
.tile-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
/* a tile whose picture isn't taken yet starts with its words */
.tile:not(:has(> a)) .tile-body { border-top: 10px solid var(--green-deep); }

/* the town's people on the home page */
.community { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1060px) { .community { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .community { grid-template-columns: minmax(0, 1fr); } }
.community .card { display: flex; flex-direction: column; gap: 10px; }
.community h3 { margin: 0; }
.community .more-link { margin-top: auto; font-size: 15px; }
.mini-who-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-who { display: grid; justify-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 13px; min-width: 0; }
.mini-who span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-face { width: 48px; height: 48px; border-radius: 50%; background: #e5f7ec; border: 2px solid var(--line); }
.mini-who:hover .mini-face { border-color: var(--green-deep); }
.mini-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-board li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-board a { font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.mini-board a:hover { text-decoration: underline; }
.mini-board b { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rank { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--ink); font-weight: 900; font-size: 13px; background: var(--cream); }
.rank.r1 { background: #f2d36b; } .rank.r2 { background: #dcdcdc; } .rank.r3 { background: #e0a56b; }

/* play anywhere */
.dl-mini .platform { color: var(--ink); text-decoration: none; transition: transform .15s; }
.dl-mini .platform:hover { transform: translateY(-3px); }
.dl-mini .platform > .ico { width: 40px; height: 40px; color: var(--green-deep); }
.dl-mini .platform h3 { margin: 4px 0 0; font-size: 22px; }
.dl-mini .platform p { color: var(--ink-soft); margin: 0 0 6px; }
.dl-mini .platform .btn { align-self: flex-start; margin-top: auto; }

/* questions, as rows that open */
.faq details { background: var(--panel); border: var(--edge); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); margin: 0 0 14px; }
.faq summary { cursor: pointer; padding: 14px 20px; font-weight: 850; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 6px; color: var(--ink-soft); }

/* the footer's call to play */
.foot::before { margin-bottom: 0; }
.foot-cta { background: var(--green-deep); color: #fff; border-bottom: var(--edge); margin-bottom: 48px; }
.foot-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 36px 24px; }
.foot-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); text-transform: none; letter-spacing: -.01em; margin: 0 0 4px; }
.foot-cta p { margin: 0; color: #eafff3; font-size: 18px; }
.foot-cta .btn-go { background: var(--ink); }
.foot-cta .btn-go:hover { background: #2a2933; }
.foot .foot-cta .btn-soft, .foot .foot-cta .btn-soft:hover, .foot .foot-cta .btn-soft:focus-visible { color: var(--ink); }
.foot .foot-cta .btn-soft:hover { background: #fff; }
.foot-live { display: flex; align-items: center; gap: 8px; font-weight: 750; color: #fffdf8; }

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .brand img { width: 134px; height: 26px; }
  .top-in .cat { width: 40px; height: 26px; margin: 0 0 0 -4px; }
}

.hero-stats-go a { display: grid; gap: 2px; justify-items: center; color: var(--green-dark); text-decoration: none; }
.hero-stats-go { background: #e5f7ec; }
.hero-stats-go .ico { width: 30px; height: 30px; }
.hero-stats-go a:hover span { text-decoration: underline; }
#things-to-do { scroll-margin-top: 120px; }

/* the Privacy Notice (its body comes from the game's server: server/lib/privacy_routes.js) */
.notice .notice-meta { font-size: .95rem; color: var(--muted, #5b6478); }
.notice .notice-toc { background: var(--panel, #fffdf7); border: var(--edge, 3px solid #1d2433); border-radius: 14px; padding: 14px 18px; margin: 0 0 1.5em; }
.notice .notice-toc ol { columns: 2 14em; margin: 0; padding-left: 1.3em; }
.notice .notice-toc li { margin: .2em 0; break-inside: avoid; }
.notice .ladder { margin: .4em 0 1.2em; font-size: .95rem; }
.notice .ladder td, .notice .ladder th { vertical-align: top; }
.notice h2 { scroll-margin-top: 90px; }
@media (max-width: 640px) { .notice .ladder { display: block; overflow-x: auto; } .notice .ladder th, .notice .ladder td { padding: 8px 10px; min-width: 9em; } }
.notice-form { max-width: 560px; margin-top: 1em; }
.notice-form label { display: block; margin: 0 0 14px; font-weight: 700; }
.notice-form input, .notice-form select, .notice-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  color: inherit; background: var(--panel, #fff); border: 2px solid var(--line, #d8dce6); border-radius: 10px; }
.notice-form input:focus, .notice-form select:focus, .notice-form textarea:focus { outline: 3px solid var(--go, #17b566); outline-offset: 1px; }
.notice-form #result { margin-top: 12px; font-weight: 700; }
