/* City pages (api/city-page.js, api/_lib/cityPage.js): one per city, no JavaScript. Same brand as the homepage:
   ink, lime/pink/cyan, Unbounded headlines, dashed paper-cut dividers. */
@font-face {
  font-family: "Unbounded";
  src: url("/assets/Unbounded-ExtraBold.woff2") format("woff2"), url("/assets/Unbounded-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}
/* City pages load this and footer.css only, not the homepage's styles.css: the bits of it they use are copied here. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wordmark { font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.06em; color: var(--paper); text-decoration: none; }
.btn {
  font-family: "Unbounded", "Arial Black", sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.04em; text-decoration: none;
  color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 6px; padding: 16px 26px;
  box-shadow: 5px 5px 0 var(--paper); transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn--ghost:hover { border-color: var(--paper); transform: none; }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.city-page {
  --ink: #060606; --paper: #ffffff; --lime: #c6ff3d; --pink: #ff2d95; --cyan: #2ee6ff;
  --c-gutter: clamp(18px, 5vw, 56px);
  --c-display: "Unbounded", "Arial Black", sans-serif;
  --c-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --c-muted: rgba(255, 255, 255, 0.72);
  --c-line: 2px dashed rgba(255, 255, 255, 0.14);
  margin: 0; background: var(--ink); color: var(--paper);
}
.city-page a:focus-visible { outline: 2px dashed var(--lime); outline-offset: 3px; }

/* ---------- top bar: not the homepage's fixed header over a film, a plain sticky band ---------- */
.city-page > header.city-top {
  position: sticky; top: 0; left: auto; right: auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--c-gutter); background: rgba(6, 6, 6, 0.92); border-bottom: var(--c-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.city-top .wordmark span { color: var(--lime); }
.city-top__nav { display: flex; align-items: center; gap: 20px; font-family: var(--c-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.city-top__nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; color: var(--c-muted); text-decoration: none; transition: color 150ms ease-out; }
.city-top__nav a:hover { color: var(--paper); }
.city-top__nav .city-top__get { color: var(--lime); }
@media (max-width: 640px) { .city-top__nav a:not(.city-top__get) { display: none; } }

/* ---------- the page ---------- */
.city { width: min(100% - 2 * var(--c-gutter), 1080px); margin: 0 auto; padding-bottom: 8svh; }
.city__crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-family: var(--c-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.city__crumbs a { color: var(--c-muted); text-underline-offset: 3px; }

.city__hero { padding: 7svh 0 4svh; }
.city__hero h1 {
  margin: 0; max-width: 16ch;
  font-family: var(--c-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.95;
  font-size: clamp(2.3rem, 1.1rem + 5.4vw, 5.6rem);
}
.city__hero h1 mark { display: block; width: fit-content; position: relative; background: none; color: inherit; }
.city__hero h1 mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.32em; z-index: -1;
  background: var(--lime); opacity: 0.9; transform: rotate(-1deg) skewX(-8deg);
}
.city__hero h1 mark { color: var(--paper); text-shadow: 0 2px 0 var(--ink); }
.city__lede { margin: 26px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, 0.86); }

.city__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; }
.city__stats li { display: flex; align-items: baseline; gap: 10px; padding: 8px 18px; border: 2px solid var(--drop); border-radius: 999px; rotate: -1.5deg; }
.city__stats li + li { rotate: 1deg; }
.city__stats b { font-family: var(--c-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--drop); }
.city__stats span { font-size: 14px; color: var(--c-muted); }

.city__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.city__badge { display: inline-flex; border-radius: 9px; }
.city__badge img { display: block; width: auto; height: 48px; }

.city__games, .city__places, .city__more { margin-top: 5svh; padding-top: 5svh; border-top: var(--c-line); }
.city__games h2, .city__places h2, .city__more h2 {
  margin: 0 0 18px; font-family: var(--c-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
}
.city__note { margin: 0; max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--c-muted); }
.city__empty { margin: 0; max-width: 60ch; padding: 20px 22px; border: 2px dashed rgba(255, 255, 255, 0.25); font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.city__credit { margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.city__credit a { color: inherit; }

.city__activity { margin: 14px 0 0; max-width: 52ch; font-family: var(--c-mono); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5; color: var(--pink); }

/* ---------- facts under "Where to play": surfaces, then towns, as counted chips ---------- */
.city__facts { display: grid; gap: 10px; margin-top: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 14px; }
.chips li b { font-family: var(--c-mono); font-size: 12px; color: var(--cyan); }
.chips--surface li { border-color: rgba(198, 255, 61, 0.5); }
.chips--surface li b { color: var(--lime); }
.chips__label { margin: 6px 0 0; font-family: var(--c-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* ---------- games: one strip per game, lime edge, the status in cyan ---------- */
.games { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.game {
  display: grid; grid-template-columns: 120px 1fr auto; grid-template-areas: "when what open" "when status open";
  align-items: center; gap: 4px 20px; padding: 16px 18px; background: #111113; border-left: 4px solid var(--lime); border-radius: 4px;
}
.game--full { border-left-color: rgba(255, 255, 255, 0.25); }
.game--full .game__status { color: rgba(255, 255, 255, 0.55); }
.game__when { grid-area: when; display: grid; gap: 2px; }
.game__when b { font-family: var(--c-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.game__when span { font-family: var(--c-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.game__what { grid-area: what; display: grid; gap: 2px; min-width: 0; }
.game__what b { font-size: 17px; }
.game__what span { font-size: 14px; color: var(--c-muted); }
.game__status { grid-area: status; margin: 0; font-family: var(--c-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.game__open { grid-area: open; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-family: var(--c-mono); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); text-decoration: none; }
.game__open span { transition: transform 150ms ease-out; }
.game__open:hover span { transform: translateX(3px); }
@media (max-width: 560px) {
  .game { grid-template-columns: 1fr auto; grid-template-areas: "when open" "what what" "status status"; }
}

/* ---------- places: two columns of dashed rows, free in lime, paid in pink ---------- */
.places { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 36px; margin: 18px 0 0; padding: 0; }
.place { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dashed rgba(255, 255, 255, 0.1); }
.place__name { display: grid; flex: 1; gap: 2px; min-width: 0; }
.place__name b { font-size: 16px; overflow-wrap: break-word; hyphens: auto; }
.place__name span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.place__tag { flex: none; padding: 3px 9px; border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--c-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--pink); }
.place__tag--free { color: var(--lime); }
.place__map { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-family: var(--c-mono); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); text-decoration: none; }
.place__map:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- more cities: pills ---------- */
.cities { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; }
.cities a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  font-size: 15px; color: var(--paper); text-decoration: none; transition: border-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}
.cities a:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-1px); }
.city__more--all { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- the rules guide: readable column, numbered parts, lime bullets ---------- */
.guide__body { max-width: 68ch; counter-reset: part; }
.guide__part { padding: 4svh 0 0; margin-top: 4svh; border-top: var(--c-line); }
.guide__part h2 {
  margin: 0 0 14px; font-family: var(--c-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
}
.guide__part:not(.guide__find) h2::before {
  counter-increment: part; content: counter(part, decimal-leading-zero); display: block; margin-bottom: 8px;
  font-family: var(--c-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--lime);
}
.guide__part p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.guide__part ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.guide__part li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.guide__part li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.guide__find { padding-bottom: 2svh; }

/* ---------- footer: the site's, plus the three languages as links (the address is the language) ---------- */
.city-foot__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.city-foot__langs a, .city-foot__langs span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  font-family: var(--c-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); text-decoration: none;
}
.city-foot__langs span[aria-current] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .city-top__nav a, .game__open span, .cities a { transition: none; }
}
