/*
 * First Friday Art Walk — the passport's look.
 *
 * Built out of the Art Walk mark (brand/art-walk-logo-720.webp):
 *
 *   NAVY  #1B3B53  the night the walk happens in; the ground of every band
 *   TEAL  #14A393  the brush stroke; fills, rings, progress
 *   TEAL DEEP #0F8577  the teal that carries text (4.6:1 on white)
 *   LIME  #8CC963  the paint splatter; kept for the prize and nothing else
 *   WHITE           the line work — the palette ring, the skyline
 *
 *   Oswald, light and condensed, set in capitals — FIRST FRIDAY, DOWNTOWN OCALA;
 *   Kaushan Script, a brush script, for the few words that should feel painted —
 *     "Art Walk", "You're first";
 *   Nunito Sans for everything anybody actually reads.
 *
 * The motifs are the logo's: rough-edged brush strokes laid diagonally across
 * the navy, a few lime flecks, and a thin white ring.
 *
 * The sponsor, The Marion Mosaic, has its own colours and they are never
 * borrowed: its mark always sits on a white chip beside the certificate.
 */

[hidden] { display: none !important; }

:root {
  color-scheme: light dark;

  --navy: #1b3b53;
  --navy-deep: #12293b;
  --teal: #14a393;
  --accent: #0f8577;          /* teal that can carry white text and be read on white */
  --accent-deep: #0b6a5f;
  --accent-wash: #e3f5f2;
  --lime: #8cc963;
  --lime-deep: #4f8a2b;       /* lime that can be read on white */
  --lime-wash: #eef7e6;
  --white: #ffffff;
  --black: #0f1c26;

  --paper: #ffffff;
  --wash: #f3f6f8;
  --card: #ffffff;
  --ink: #14202b;
  --ink-soft: #5a6874;
  --line: #dfe6eb;
  --good: #1f7a4d;

  --shadow: 0 1px 2px rgba(18, 41, 59, .06), 0 10px 30px rgba(18, 41, 59, .09);

  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --sans: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: var(--script);
  --serif: var(--sans);

  --radius: 16px;
  --tab-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #2cc2b0;
    --accent-deep: #14a393;
    --accent-wash: #10302f;
    --lime-deep: #a6db7f;
    --lime-wash: #1e2d16;
    --paper: #0c1720;
    --wash: #122230;
    --card: #142634;
    --ink: #eef3f6;
    --ink-soft: #9fb1bd;
    --line: #243a4a;
    --good: #4cc38a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}

.wrap { max-width: 560px; margin: 0 auto; padding-inline: 18px; }

h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; letter-spacing: -.005em; line-height: 1.2; }
h1 { font-family: var(--display); font-weight: 500; font-size: 32px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
a { color: inherit; }

.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; }
.tiny { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hand { font-family: var(--script); font-weight: 400; }

/* ============================================================ the brand === */

/* The mark itself, wherever it appears. It already carries its own ground. */
.mark-logo { display: block; width: 100%; height: auto; }

/* Brush strokes on navy — the logo's paint, laid across a band. Drawn with
   CSS so they cost nothing: two skewed strokes with torn ends, and flecks. */
.brush {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.brush::before, .brush::after {
  content: ''; position: absolute; border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
}
.brush::before {
  width: 58%; height: 190%; left: -14%; top: -45%;
  background: linear-gradient(100deg, transparent 0 4%, var(--teal) 10% 72%, color-mix(in srgb, var(--teal) 55%, transparent) 86%, transparent 97%);
  transform: rotate(24deg); opacity: .95;
}
.brush::after {
  width: 34%; height: 170%; right: 6%; top: -40%;
  background: linear-gradient(95deg, transparent, color-mix(in srgb, var(--teal) 45%, transparent) 25% 60%, transparent);
  transform: rotate(28deg); opacity: .45;
}
.brush .fleck {
  position: absolute; border-radius: 50%; background: var(--lime);
}

/* The big field on the passport's front. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 20px 18px 30px;
  margin-bottom: 18px;
}
.hero .inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.hero .hero-logo { width: 176px; margin: 4px auto 6px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.hero .tagline { font-family: var(--display); font-weight: 300; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-top: 4px; }

/* The torn bottom edge of a band — paint running out. */
.edge {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 22px; display: block;
}
.edge path { fill: var(--paper); }

/* A shorter band for the secondary screens. */
.band {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 18px 18px 32px;
  margin-bottom: 14px;
}
.band .inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.band h1 { font-size: 34px; }
.band .tiny { color: rgba(255, 255, 255, .85); }
.band .brush::before { left: auto; right: -22%; width: 46%; opacity: .8; }
.band .brush::after { display: none; }

.masthead { padding: 20px 0 14px; }
.masthead .tiny { color: var(--accent); }

/* A small lockup for headers: the mark, and the words beside it. */
.lockup-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.lockup-row img { width: 46px; height: 46px; }
.lockup-row .l1 { font: 400 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.lockup-row .l2 { font: 400 24px/1 var(--script); margin-top: 2px; }

/* The sponsor chip. Its mark keeps its own colours on white, in either theme. */
.sponsor {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ffffff; color: #14202b; border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08); border: 1px solid #e6e6e6;
  text-decoration: none;
}
.sponsor .by { font: 400 10.5px/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #5a6874; }
.sponsor img { height: 22px; width: auto; display: block; }
.sponsor.big img { height: 30px; }
/* ================================================================= cards == */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card-body { padding: 18px; }

/* ============================================================== progress == */

.progress { padding: 20px 16px 14px; text-align: center; }
.progress .count { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; }
.progress .count small { font-size: 20px; color: var(--ink-soft); }

.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 14px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.dial { position: relative; width: 172px; height: 172px; margin: 6px auto 4px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { fill: none; stroke: var(--line); stroke-width: 9; }
.dial .fill { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .9, .25, 1); }
.dial .inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial .num { font-family: var(--display); font-weight: 900; font-size: 58px; line-height: .9; }
.dial .of { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

.card.paper { position: relative; }
.card.paper::before {
  content: ''; position: absolute; right: 0; top: 0; width: 45%; height: 60%;
  background-image: radial-gradient(circle, var(--accent) 1.1px, transparent 1.5px);
  background-size: 7px 7px; opacity: .22; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 5%, transparent 70%);
}

/* ================================================================= stamps == */

.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; padding: 4px 16px 18px; position: relative; align-items: stretch; }

/* Square when the name is short; taller when a full name needs more lines.
   Every name is shown whole — the grid row grows rather than cutting it off. */
.stamp-slot {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 6px;
  text-align: center; font-size: 10.5px; font-weight: 500; line-height: 1.2;
  color: var(--ink-soft); background: var(--card);
  cursor: pointer; text-decoration: none;
}
.stamp-slot.got { border: 1.5px solid var(--accent); background: var(--accent-wash); color: var(--ink); }
.stamp-slot .mark {
  font-family: var(--display); font-weight: 900; font-size: 17px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2.5px solid currentColor; color: var(--ink-soft);
}
.stamp-slot:not(.got) .mark { border-style: dashed; opacity: .4; }
.stamp-slot.got .mark { color: var(--accent); transform: rotate(-9deg); }

/* A custom stamp replaces the ring and letters with the organiser's art. */
.stamp-slot .mark.art { border: none; width: 46px; height: 46px; border-radius: 0; }
.stamp-slot .mark.art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stamp-slot:not(.got) .mark.art { filter: grayscale(1); opacity: .28; }

/* Closed this tour: still on the card, not required, clearly not collectable. */
.stamp-slot.closed { border-style: dotted; opacity: .55; cursor: default; }
.stamp-slot.closed::after {
  content: 'Closed'; position: absolute; top: 5px; right: 5px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--ink-soft); padding: 1px 5px; border-radius: 99px;
}

.stamp-slot.got .mark { animation: thud .5s cubic-bezier(.2, 1.6, .4, 1) backwards; animation-delay: var(--in, 0ms); }
@keyframes thud {
  0% { transform: rotate(-30deg) scale(2.1); opacity: 0; }
  55% { opacity: 1; }
  100% { transform: rotate(-9deg) scale(1); opacity: 1; }
}
.stamp-slot.got::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%);
  opacity: 0; animation: bloom .7s ease-out backwards; animation-delay: var(--in, 0ms);
}
@keyframes bloom { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* ================================================================ buttons == */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; width: 100%;
  border-radius: 12px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 700 15px/1 var(--sans); letter-spacing: .01em;
  cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn.red, .btn.stamp-btn { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn + .btn { margin-top: 8px; }

/* ============================================================ stop cards == */

.stop {
  display: flex; gap: 12px; align-items: stretch; width: 100%;
  text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; cursor: pointer;
  font-family: inherit; color: inherit; min-height: 92px;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stop:active { transform: scale(.985); }
.stop + .stop { margin-top: 10px; }
.stop .thumb { width: 92px; flex: none; background: var(--line) center/cover no-repeat; position: relative; }
.stop .meta { padding: 12px 12px 12px 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.stop .name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.stop .line { font-size: 13px; color: var(--ink-soft); }
.stop.closed .thumb { filter: grayscale(1); opacity: .6; }
.stop.closed .name { color: var(--ink-soft); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip {
  font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap;
}
.chip.got { border-color: color-mix(in srgb, var(--good) 45%, transparent); color: var(--good); }
.chip.near { border-color: var(--ink); color: var(--ink); }
.chip.closed { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.pocket-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ================================================================ sheets == */

dialog.sheet {
  border: none; padding: 0; margin: auto auto 0;
  width: min(560px, 100%); max-height: 90dvh;
  border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, .3);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet-inner { padding: 0 0 calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 90dvh; }
.sheet-hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--line); }
.sheet-pad { padding: 16px 18px 0; }
/* A tall, full-width strip so the handle is easy to catch with a thumb. */
.grip { height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grip::before { content: ""; width: 44px; height: 5px; border-radius: 99px; background: var(--line); }
.grip:active { cursor: grabbing; }
dialog.sheet { will-change: transform; }

.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px 4px; scroll-snap-type: x mandatory; }
.gallery-strip img { height: 130px; border-radius: 12px; scroll-snap-align: start; flex: none; object-fit: cover; background: var(--line); }

/* =================================================== the overlay after a scan */

.scan-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .55);
  animation: fade .3s ease both;
}
.scan-sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: 94dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, .35);
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  animation: slide-up .5s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }

.scan-sheet .band { margin: 0; border-radius: 24px 24px 0 0; padding: 22px 20px 44px; }
.scan-sheet .band h2 { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.scan-sheet .band .pin-mark { position: absolute; right: 22px; top: 18px; width: 34px; height: 44px; z-index: 1; }
.scan-sheet .band .inner { padding-right: 46px; }
.scan-sheet .directions { padding: 4px 20px 0; }
.scan-sheet .directions p { font-size: 15px; color: var(--ink); }
.scan-sheet .claim { padding: 6px 20px 0; }
.scan-sheet .close-x {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, .25); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

/* The hand-drawn aside pointing at the form, straight off the rack card. */
.aside {
  display: flex; align-items: flex-end; gap: 6px;
  font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--ink);
  margin: 10px 0 4px 6px; text-transform: uppercase;
}
.aside svg { width: 34px; height: 34px; flex: none; }

.meter { height: 10px; border-radius: 99px; background: var(--accent-wash); overflow: hidden; margin: 12px 0 6px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }

/* Consent: large enough to hit with a thumb, never ticked for anyone. */
.check {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 2px; margin: 4px 0 8px; cursor: pointer; font-size: 13.5px; line-height: 1.4;
}
.check input { appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink-soft);
  display: grid; place-items: center; cursor: pointer; background: var(--card);
  transition: background .15s ease, border-color .15s ease; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ''; width: 6px; height: 11px; margin-top: -2px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

/* =================================================================== map == */

#map { height: calc(100dvh - var(--tab-h) - env(safe-area-inset-bottom)); width: 100%; }
.leaflet-container { font: inherit; background: var(--paper); }
/* Street tiles in greys, so the tour's red is the only colour on the map. */
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.85) brightness(.9); }
}
.pin {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 13px/1 var(--sans); color: #fff; background: var(--navy);
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.pin.got { background: var(--accent); }
.pin.closed { background: #9a9a9a; }

/* ================================================================== tabs == */

.tabs {
  position: fixed; inset: auto 0 0 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--ink-soft);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; position: relative;
}
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"]::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.tabs svg { width: 22px; height: 22px; }

/* ================================================================= seal === */

.seal-wrap { display: grid; place-items: center; padding: 34px 0 8px; }
.seal {
  width: 176px; height: 176px; border-radius: 50%;
  border: 6px double var(--accent); color: var(--accent);
  display: grid; place-items: center; text-align: center;
  transform: rotate(-9deg) scale(.4); opacity: 0;
  animation: land .55s cubic-bezier(.2, 1.5, .4, 1) .1s forwards;
  padding: 12px; background: var(--card);
}
.seal .word { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.seal .who { font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1.05; margin: 6px 0; text-transform: uppercase; }
.seal.art { border: none; width: 190px; height: 190px; padding: 0; background: none; }
.seal.art img { width: 100%; height: 100%; object-fit: contain; }
@keyframes land {
  0% { transform: rotate(-24deg) scale(1.7); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: rotate(-9deg) scale(1); opacity: 1; }
}

.notice {
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px;
  border: 1px solid var(--line); background: var(--wash); margin-bottom: 12px;
}
.notice.bad { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.notice.closed-note { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 500; }

/* ================================================================= forms == */

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], textarea, select {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: inherit; font-size: 16px; /* anything smaller and iOS zooms the page on focus */
  color: var(--ink); background: var(--wash);
  border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); background: var(--card); }

/* A password with a Show button inside its right-hand edge. */
.with-peek { position: relative; }
.with-peek input { padding-right: 68px; }
.peek {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted);
  background: transparent; cursor: pointer;
}
.peek:hover { color: var(--ink); background: var(--wash); }
.linklike {
  border: 0; background: none; padding: 0; font: inherit; font-size: inherit;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: var(--ink); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

table.stats { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats th, table.stats td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.stats td.num, table.stats th.num { text-align: right; font-variant-numeric: tabular-nums; }

.skeleton { background: var(--line); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ================================================================ motion === */

.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: var(--in, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================ finale === */

.finale {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--navy) 70%, transparent);
  backdrop-filter: blur(6px);
  animation: fade .5s ease both; overflow-y: auto;
}
.finale canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.finale .sheet-card {
  position: relative; z-index: 2; width: min(420px, 100%); text-align: center; overflow: hidden;
  background: var(--card); border-radius: 22px;
  padding: 0 0 calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
  animation: rise .6s cubic-bezier(.2, .9, .25, 1) .15s backwards;
}
.finale .sheet-card .band { margin: 0 0 6px; padding: 22px 20px 50px; }
.finale .sheet-card > :not(.band) { margin-left: 22px; margin-right: 22px; }
.finale .crest {
  width: 120px; height: 120px; margin: -64px auto 12px; border-radius: 50%;
  border: 5px double var(--accent); color: var(--accent); background: var(--card);
  display: grid; place-items: center; position: relative; z-index: 2;
  animation: land .6s cubic-bezier(.2, 1.5, .4, 1) .3s backwards;
}
.finale .crest div div:first-child { font-family: var(--display); font-weight: 900; }
.code {
  font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: .14em;
  color: var(--accent); padding: 12px 0 4px;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  margin: 14px 22px 14px;
}

.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; min-height: 40px; border: none; border-radius: 9px; cursor: pointer; background: transparent; color: var(--ink-soft); font: 600 13px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ============================================================ code boxes === */
/*
 * Six boxes over one invisible input. The phone raises its own number
 * keyboard, and — because the field carries autocomplete="one-time-code" —
 * offers the code straight from the notification.
 */

.code-entry { margin-top: 6px; position: relative; }

/*
 * The real input sits exactly on top of the boxes, invisible. It has to be
 * full size rather than parked off-screen: an off-screen field does not
 * reliably receive iOS's one-time-code autofill.
 */
.code-field {
  position: absolute; inset: 0; width: 100%; opacity: 0;
  border: none; background: none; font-size: 16px; letter-spacing: 1em;
  z-index: 2; cursor: pointer;
}
.code-display { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 4px 0 6px; cursor: text; }
.code-box {
  aspect-ratio: 3 / 4; border-radius: 11px;
  border: 2px solid var(--line); background: var(--wash);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 28px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.code-box.filled { border-color: var(--accent); background: var(--accent-wash); animation: popin .18s ease-out; }
.code-box.next { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
@keyframes popin { from { transform: scale(.82); } to { transform: scale(1); } }
.code-display.wrong { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
.code-display.wrong .code-box { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; opacity: 1; transform: rotate(-9deg); }
  .rise, .finale, .finale .sheet-card, .finale .crest, .scan-overlay, .scan-sheet,
  .stamp-slot.got .mark, .stamp-slot.got::before, .code-box, .code-display.wrong {
    animation: none !important;
  }
  .dial .fill, .bar > i, .meter > i { transition: none; }
}

/* ============================================================ profile ==== */

/* The round button in the corner of every header. */
.me {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 2.5px solid var(--navy);
  font: 800 15px/1 var(--display); letter-spacing: .02em;
  text-decoration: none; box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
  transition: transform .12s ease;
}
.me:active { transform: scale(.94); }
.me svg { width: 22px; height: 22px; }
.me.floating { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 1000; }

/* Until the profile has a name: a pulsing ring, a red dot, and a tag below.
   The ring is white edged in black so it reads on the red hero and the map. */
.me.nudge { background: var(--white); animation: me-bob 2.4s ease-in-out infinite; }
.me.nudge::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--navy);
  animation: me-ring 1.6s ease-out infinite; pointer-events: none;
}
.me.nudge::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 2.5px solid var(--white);
}
/* Two short lines, so it stays clear of a headline beside the button. */
.me-note {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 64px; padding: 5px 4px; border-radius: 10px; text-align: center;
  background: var(--navy); color: var(--white);
  font: 700 10.5px/1.15 var(--sans); letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.me-note::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-bottom-color: var(--navy);
}
@keyframes me-ring {
  0% { transform: scale(1); opacity: .95; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes me-bob {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.1); }
  90% { transform: scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .me.nudge, .me.nudge::before { animation: none; }
}

/* Chips you can press. The pressed state carries a tick, not only a colour. */
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button {
  min-height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: 500 14px var(--sans); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.pick button:active { transform: scale(.96); }
.pick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick button[aria-pressed="true"]::before { content: '✓ '; font-weight: 700; }

/* A switch. Its label says the state in words, so it never relies on colour. */
.switch {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  width: 56px; height: 32px; border-radius: 99px; flex: none;
  background: #9a9a9a; position: relative;
  transition: background .22s ease;
}
.switch .track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .28s cubic-bezier(.3, 1.4, .5, 1);
}
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { transform: translateX(24px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--ink) 35%, transparent); outline-offset: 2px; }
.switch .state { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; min-width: 52px; }

.saved {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--good);
  opacity: 0; transition: opacity .2s ease;
}
.saved.on { opacity: 1; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row > div { background: var(--wash); border-radius: 12px; padding: 12px; text-align: center; }
.stat-row .v { font: 900 30px/1 var(--display); }
.stat-row .l { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* ================================================================ map ==== */

.map-bar {
  position: fixed; left: 12px; right: 68px; top: calc(12px + env(safe-area-inset-top));
  z-index: 1000; display: flex; gap: 8px; align-items: center;
}
.map-bar .seg { margin: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); flex: 1; max-width: 300px; }
.map-legend {
  position: fixed; left: 12px; z-index: 1000;
  top: calc(66px + env(safe-area-inset-top));
  background: var(--card); border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18); font-size: 12px;
}
.map-legend .ramp { width: 150px; height: 8px; border-radius: 99px; margin: 6px 0 3px;
  background: linear-gradient(90deg, #e3f5f2, #7fd3c7, #14a393, #1b3b53); }
.map-legend .ends { display: flex; justify-content: space-between; color: var(--ink-soft); }

.next-card {
  position: fixed; left: 12px; right: 12px; z-index: 1000;
  bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom));
  background: var(--card); border-radius: 18px; padding: 18px 14px 12px;
  touch-action: none;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
  max-width: 540px; margin: 0 auto;
}
/* A handle, so the card reads as something that can be swiped away. */
.next-card::before {
  content: ""; position: absolute; top: 7px; left: 50%; margin-left: -20px;
  width: 40px; height: 4px; border-radius: 99px; background: var(--line);
}
.next-pill {
  position: fixed; z-index: 1000; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));
  padding: 10px 16px; border-radius: 99px; border: none; cursor: pointer;
  background: var(--navy); color: var(--white); font: 700 13px var(--sans);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); animation: fade .2s ease both;
}
.next-pill::before { content: "▲ "; font-size: 10px; }
.next-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; width: 100%;
  background: none; border: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.next-row + .next-row { border-top: 1px solid var(--line); }
.next-row .n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 800 13px var(--sans); color: #fff; background: var(--accent); }
.next-row.second .n { background: var(--navy); }
.next-row .t { min-width: 0; flex: 1; }
.next-row .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-row .d { font-size: 12.5px; color: var(--ink-soft); }
.count-badge {
  position: absolute; top: -8px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--white); color: var(--navy);
  font: 800 11px/20px var(--sans); text-align: center; border: 1.5px solid var(--navy);
}

/* ============================================================== scanner === */

/* The gallery name, with the stamp that opens the scanner in its corner. */
.name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stamp-icon {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: 2.5px solid var(--card);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotate(-10deg); transition: transform .15s ease;
}
.stamp-icon:hover { transform: rotate(-4deg) scale(1.05); }
.stamp-icon:active { transform: rotate(-10deg) scale(.9); }
/* One slow ring now and then, so it reads as something to press. */
.stamp-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; animation: stamp-ring 2.8s ease-out infinite 1s;
}
@keyframes stamp-ring { 0% { transform: scale(1); opacity: .7; } 60%, 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stamp-icon::after { animation: none; } }

.scanner {
  position: fixed; inset: 0; z-index: 2000; background: #000; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  animation: fade .2s ease both;
}
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-top, .scan-bottom { position: relative; z-index: 2; padding: calc(18px + env(safe-area-inset-top)) 20px 18px; }
.scan-top { background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); text-align: center; }
.scan-top .tiny { color: #7fe0d2; }
.scan-hint { font-weight: 700; font-size: 18px; margin-top: 4px; }
.scan-bottom { padding-bottom: calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); }
.scan-status { text-align: center; font-size: 14px; margin: 0 0 14px; min-height: 20px; }
.scan-actions { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.scan-actions .btn { background: #fff; color: #111; border-color: #fff; }
.scan-torch {
  min-height: 50px; padding: 0 18px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; font: 700 15px var(--sans); cursor: pointer;
}
.scan-torch[aria-pressed="true"] { background: #fff; color: #111; }

/* The frame: red corners, and a line sweeping so it visibly looks. */
.scan-frame {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -54%);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); border-radius: 18px;
}
.scan-frame .c { position: absolute; width: 38px; height: 38px; border: 5px solid var(--accent); }
.scan-frame .tl { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.scan-frame .tr { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.scan-frame .bl { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.scan-frame .br { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.scan-frame .sweep {
  position: absolute; left: 8%; right: 8%; height: 3px; top: 10%; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: sweep 1.8s ease-in-out infinite alternate;
}
@keyframes sweep { to { top: 88%; } }
.scanner.found .scan-frame .c { border-color: #4cc38a; }
.scanner.found .scan-frame .sweep { display: none; }
@media (prefers-reduced-motion: reduce) { .scan-frame .sweep { animation: none; top: 50%; } }

/* ================================================================ credit === */

/* The studio that made the site. Quiet on purpose: set small, in the page's
   muted ink, with the KIAH wordmark as it appears on kiah.design (Syne 800,
   wide tracking). */
.credit { display: flex; justify-content: center; padding: 34px 16px 26px; }
.credit a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--ink-soft); text-decoration: none; opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.credit a::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .35; margin-bottom: 8px; }
.credit .by { font: 500 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.credit .kiah {
  font: 800 15px/1 Syne, sans-serif; letter-spacing: .34em; margin-right: -.34em;
  color: var(--ink); transition: color .2s ease;
}
.credit .site { font: 500 11px/1 var(--sans); letter-spacing: .04em; }
.credit a:hover, .credit a:focus-visible { opacity: 1; outline: none; }
.credit a:hover .kiah, .credit a:focus-visible .kiah { color: var(--accent); }
.credit a:focus-visible .site { text-decoration: underline; text-underline-offset: 3px; }

/* ======================================================= gallery details === */

.info-card { margin-top: 6px; }
.info-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { flex: none; width: 96px; color: var(--ink-soft); }
.info-row .v { min-width: 0; word-break: break-word; }

/* Whole words only: no hyphens, and a word is never split unless it cannot fit the square at all. */
.stamp-slot .slot-name { hyphens: manual; -webkit-hyphens: manual; word-break: normal; overflow-wrap: break-word; padding: 0 2px; }

/* ======================================================= directions ======= */

/* While directions are running the map belongs to them. */
.navigating .map-bar, .navigating .map-legend, .navigating .next-card,
.navigating .next-pill, .navigating .me.floating { display: none !important; }

.next-row { border-radius: 12px; padding: 8px; margin: 0 -8px; width: calc(100% + 16px); }
.next-row + .next-row { border-top: none; margin-top: 2px; }
.next-row .n { background: var(--navy); }
.next-row.selected { background: var(--accent-wash); }
.next-row.selected .n { background: var(--accent); }
.next-actions { display: flex; gap: 8px; margin-top: 10px; }
.next-actions .btn { margin: 0; min-height: 44px; }
.next-actions .btn.red { flex: 2; }
.next-actions .btn.ghost { flex: 1; }

.nav-banner {
  position: fixed; z-index: 1001; left: 12px; right: 12px;
  top: calc(12px + env(safe-area-inset-top));
  max-width: 540px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: var(--navy); color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: fade .2s ease both;
}
.nav-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; }
.nav-icon svg { width: 30px; height: 30px; }
.nav-text { min-width: 0; display: grid; gap: 2px; }
.nav-text b { font: 900 26px/1 var(--display); letter-spacing: .01em; }
.nav-text span { font: 600 15px/1.25 var(--sans); }

.nav-panel {
  position: fixed; z-index: 1001; left: 12px; right: 12px;
  bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom));
  max-width: 540px; margin: 0 auto; max-height: 62dvh; overflow-y: auto;
  padding: 14px; border-radius: 18px; background: var(--card);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}
.nav-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nav-dest { display: block; font-size: 16px; line-height: 1.2; }
.nav-eta { margin-top: 3px; font: 700 14px var(--sans); color: var(--accent); }
.nav-end {
  flex: none; border: none; border-radius: 99px; padding: 9px 16px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 700 13px var(--sans);
}
.nav-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.nav-row .seg { margin: 0; flex: 1 1 150px; }
.nav-chip {
  min-height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px var(--sans);
}
.nav-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-steps { list-style: none; margin: 12px 0 0; padding: 0; max-height: 30dvh; overflow-y: auto; border-top: 1px solid var(--line); }
.nav-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nav-steps li .nav-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--wash); color: var(--ink); }
.nav-steps li .nav-icon svg { width: 20px; height: 20px; }
.nav-steps li span { flex: 1; min-width: 0; }
.nav-steps li em { font-style: normal; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.nav-steps li.done { opacity: .45; }
.nav-steps li.now .nav-icon { background: var(--accent); color: #fff; }
.nav-msg { margin: 12px 0 0; font-size: 14px; }
.nav-elsewhere { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-elsewhere .btn { flex: 1; margin: 0; min-height: 42px; font-size: 13px; }
.nav-panel > .btn.red { margin-top: 12px; }
.nav-recenter {
  position: fixed; z-index: 1001; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom) + 190px);
  padding: 10px 14px; border-radius: 99px; border: none; cursor: pointer;
  background: var(--card); color: var(--ink); font: 700 13px var(--sans); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.next-row .t b { white-space: normal; overflow: visible; text-overflow: clip; }

/* Center on my location. Top right, under the profile button and its note. */
.locate-me {
  position: fixed; z-index: 1000; right: 12px; top: calc(116px + env(safe-area-inset-top));
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: var(--card); color: #1b3b53; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.locate-me svg { width: 24px; height: 24px; }
.locate-me:active { transform: scale(.94); }
.locate-me.finding svg { animation: locate-spin 1s linear infinite; }
.locate-me.denied { color: var(--accent); }
@keyframes locate-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .locate-me.finding svg { animation: none; } }
.navigating .locate-me { display: none; }

/* The closest-stops card, opened out to every stop. */
.next-card.expanded { max-height: calc(100dvh - var(--tab-h) - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.next-list {
  overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
  margin: 6px -8px 0; padding: 0 8px; min-height: 0; flex: 1 1 auto;
}
.next-row.closed .n { background: #9a9a9a; }
.next-row .d .flag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
  font-style: normal; font-size: 11px; font-weight: 700;
  background: var(--wash); color: var(--ink-soft);
}
.next-row .d .flag.got { background: var(--accent-wash); color: var(--accent); }
.next-toggle {
  display: block; width: 100%; margin-top: 8px; padding: 10px 0 2px; border: none; background: none; cursor: pointer;
  font: 700 13px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.next-toggle:hover { color: var(--accent); }

/* ====================================================== art walk overrides == */

.btn { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 800; }
@media (prefers-color-scheme: dark) { .btn { border-color: #eef3f6; background: #eef3f6; color: var(--navy); } }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.seal { border-color: var(--teal); color: var(--accent); }
.seal .who { font-family: var(--display); font-weight: 500; font-size: 19px; }
.seal .word { font-family: var(--display); font-weight: 400; }
.stamp-slot .mark { font-family: var(--display); font-weight: 500; font-size: 16px; }
.stamp-slot.got { border-color: var(--teal); }
.dial .num, .progress .count { font-family: var(--display); font-weight: 500; }
.dial .fill { stroke: var(--teal); }
.bar > i, .meter > i { background: var(--teal); }
.stat-row .v { font-family: var(--display); font-weight: 500; }
.code-box { font-family: var(--display); font-weight: 500; }
.scan-sheet .band h2, .finale .sheet-card .band h2 { font-family: var(--display); font-weight: 500; font-size: 30px; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; }
.pin { background: var(--navy); }
.pin.got { background: var(--teal); }
.aside { font-family: var(--script); text-transform: none; font-size: 24px; color: var(--accent); }
.tabs a { font-family: var(--display); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* ================================================================ the race == */

/* The prize, wherever it is mentioned: lime, the one colour kept for it. */
.race {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy); color: #fff; padding: 16px 16px 14px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.race .brush::before { left: auto; right: -30%; width: 55%; opacity: .55; }
.race .brush::after { display: none; }
.race .inner { position: relative; z-index: 1; }
.race .prize { font: 500 44px/1 var(--display); color: var(--lime); letter-spacing: .01em; }
.race .prize small { font-size: 16px; color: #fff; letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; }
.race .line { font-size: 14px; margin: 6px 0 10px; }
.race .status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.race .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 11.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 99px; background: rgba(255, 255, 255, .12);
}
.race .pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: live 1.4s ease-in-out infinite; }
.race .pill.won { background: var(--lime); color: var(--navy); }
@keyframes live { 50% { opacity: .3; } }
.race .sponsor { margin-top: 12px; }

.countdown { font-variant-numeric: tabular-nums; }

/* ======================================================== artist profile == */

.profile-hero {
  position: relative; background: var(--navy); color: #fff; overflow: hidden;
  padding: 0 0 18px; margin-bottom: 14px;
}
.profile-hero .cover {
  width: 100%; aspect-ratio: 4 / 3; max-height: 62dvh; object-fit: cover; display: block;
  background: var(--navy-deep);
}
.profile-hero .who { max-width: 560px; margin: -46px auto 0; padding: 0 18px; position: relative; z-index: 1; }
.profile-hero .kind {
  display: inline-block; font: 400 11.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  background: var(--teal); color: #fff; padding: 6px 10px; border-radius: 99px;
}
.profile-hero h1 { font-size: 38px; margin-top: 8px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.profile-hero .blurb { font-size: 15.5px; margin-top: 4px; opacity: .92; }
.profile-hero .spot { font-size: 13.5px; margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; opacity: .9; }
.profile-hero .spot svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

.mediums { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.mediums span {
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-wash); color: var(--accent);
}

.bio { font-size: 16px; white-space: pre-line; }

/* The portfolio: collections as tabs, pieces in a masonry-ish grid. */
.collections { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.collections button {
  flex: none; min-height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: 400 13px var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.collections button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.works { columns: 2 160px; column-gap: 10px; }
.work {
  break-inside: avoid; margin: 0 0 10px; display: block; width: 100%;
  border: none; padding: 0; background: var(--card); color: inherit; font: inherit; text-align: left;
  border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
}
.work img { width: 100%; height: auto; display: block; background: var(--line); min-height: 80px; }
.work .cap { padding: 8px 10px 10px; font-size: 12.5px; line-height: 1.35; }
.work .cap b { display: block; font-size: 13.5px; }
.work .price { color: var(--accent); font-weight: 800; }
.work .sold { color: #b3261e; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.works-empty { padding: 26px 16px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* Full screen, one piece at a time, swipe or arrow between them. */
.lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(8, 16, 22, .96); color: #fff;
  display: flex; flex-direction: column; animation: fade .2s ease both;
}
.lightbox .stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 56px 12px 8px; touch-action: pan-y; }
.lightbox .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox .meta { padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; width: 100%; }
.lightbox .meta b { font-size: 17px; display: block; }
.lightbox .meta span { opacity: .8; font-size: 14px; }
.lightbox .x, .lightbox .prev, .lightbox .next {
  position: absolute; border: none; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14);
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.lightbox .x { top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.lightbox .prev { left: 10px; top: 50%; }
.lightbox .next { right: 10px; top: 50%; }
.lightbox .count { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 18px; font: 400 13px var(--display); letter-spacing: .12em; opacity: .75; }

/* ============================================================ certificate == */

.certificate {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--navy); color: #fff;
  box-shadow: 0 20px 60px rgba(18, 41, 59, .35); text-align: center; padding: 22px 20px 20px;
}
.certificate .brush::before { opacity: .6; }
.certificate .inner { position: relative; z-index: 1; }
.certificate .ring {
  position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 16px; pointer-events: none;
}
.certificate .amount { font: 500 76px/1 var(--display); color: var(--lime); margin: 6px 0 0; }
.certificate .toward { font: 300 15px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.certificate .qr {
  background: #fff; border-radius: 16px; padding: 14px; width: min(250px, 72vw); margin: 16px auto 10px; display: grid; place-items: center;
}
.certificate .qr svg { width: 100%; height: auto; display: block; }
.certificate .code-text { font: 500 26px/1 var(--display); letter-spacing: .24em; margin-right: -.24em; }
.certificate .expires { font-size: 14px; margin-top: 8px; }
.certificate .sponsor { margin-top: 14px; }
.certificate.redeemed .qr, .certificate.expired .qr, .certificate.void .qr { opacity: .18; filter: grayscale(1); }
.certificate .stampover {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-12deg); z-index: 3;
  font: 500 34px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  border: 4px solid var(--lime); color: var(--lime); padding: 8px 14px; border-radius: 10px; background: rgba(18, 41, 59, .85);
}

/* ================================================================ lists ==== */

.filters-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filters-row button {
  flex: none; min-height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 700 13px var(--sans);
}
.filters-row button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { position: relative; margin-bottom: 8px; }
.search-box input { padding-left: 40px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft); }

.stop .kind-tag { font: 400 10.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }

/* ================================================================ studio === */

.studio-section { margin-top: 22px; }
.studio-section > h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 22px; margin-bottom: 8px; }
.pending-note { background: var(--lime-wash); border: 1px solid color-mix(in srgb, var(--lime) 60%, transparent); }
.work-edit { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.work-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--line); }
.work-edit .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-edit .fields input { min-height: 40px; padding: 8px 10px; font-size: 15px; }
.work-edit .fields .wide { grid-column: 1 / -1; }
.work-edit .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini {
  min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 700 12.5px var(--sans); cursor: pointer;
}
.mini.danger { color: #b3261e; }
.mini[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.upload-zone {
  display: grid; place-items: center; text-align: center; gap: 4px; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px 14px; background: var(--wash);
}
.upload-zone b { font-size: 15px; }
.upload-zone input { display: none; }
.qr-print { background: #fff; border-radius: 14px; padding: 14px; display: grid; place-items: center; }
.qr-print svg { width: 100%; max-width: 230px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .race .pill.live::before { animation: none; }
}

/* A tall finale must scroll from its top, which grid centering would hide. */
.finale { display: flex; }
.finale .sheet-card { margin: auto; }
.finale .sheet-card .band .inner h2 { color: #fff; }
.later { display: block; margin: 12px auto 0; background: none; border: none; color: var(--ink-soft); font: 700 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scan-sheet .band .inner { padding-right: 0; }
.scan-sheet .race-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.socials-edit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.socials-head { display: grid; gap: 2px; margin-bottom: 10px; }
.socials-head .lbl { font: 700 13px var(--sans); color: var(--ink); }
.social-row {
  display: grid; grid-template-columns: minmax(110px, 140px) 1fr 40px; gap: 6px;
  padding: 10px; margin-bottom: 8px; border-radius: 12px; background: var(--wash);
}
.social-row select, .social-row input {
  min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 500 14px var(--sans); padding: 0 10px; min-width: 0;
}
.social-row .social-label { grid-column: 1 / 3; font-size: 13px; min-height: 38px; }
.social-x {
  border: none; border-radius: 10px; background: transparent; color: var(--ink-soft);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.social-x:hover { background: var(--accent-wash); color: var(--accent); }
.social-preview { grid-column: 1 / -1; font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.social-preview.bad { color: var(--accent); font-weight: 600; word-break: normal; }
.drop {
  border: 2.5px dashed var(--line); border-radius: 16px; padding: 26px 16px;
  text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
  color: var(--ink-soft); font-size: 14px; position: relative;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.drop.over { transform: scale(1.01); }
.drop b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* The corner profile button steps aside while a sheet, the finale or a
   picture has the screen. */
body:has(.scan-overlay) .me.floating,
body:has(.finale) .me.floating,
body:has(.lightbox) .me.floating,
body:has(dialog[open]) .me.floating { display: none; }
.profile-hero .cover { max-width: 760px; margin: 0 auto; max-height: min(60dvh, 560px); }

/* ============================================================ event map === */

.ev-host { position: relative; width: 100%; background: #ffffff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); touch-action: none; }
.ev-map { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ev-map:active { cursor: grabbing; }
.ev-pin { cursor: pointer; outline: none; }
.ev-pin .ev-body { transition: filter .15s ease; }
.ev-pin:hover .ev-body, .ev-pin:focus-visible .ev-body { filter: brightness(1.12) drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.ev-pin.selected .ev-body { stroke: #1b3b53; stroke-width: 5; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.ev-pin.empty { opacity: .45; }
.ev-zoom { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 2; }
.ev-zoom button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #1b3b53;
  font: 800 20px/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ev-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 12px 2px 4px; font: 400 12.5px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.ev-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev-legend i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.ev-hint { font-size: 12.5px; color: var(--ink-soft); margin: 2px 2px 0; }

.listing { margin-top: 26px; }
.listing h2 { font: 500 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.listing-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.listing-row .badge {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font: 800 14px var(--sans); cursor: pointer; border: none;
}
.listing-row .where { font-weight: 800; color: #16a494; cursor: pointer; background: none; border: none; padding: 0; font-size: 15px; text-align: left; }
.listing-row .note { font-size: 12px; color: var(--ink-soft); font-style: italic; }
.listing-row .who { display: grid; gap: 4px; margin-top: 4px; }
.listing-row .who a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-size: 14.5px; }
.listing-row .who a b { font-style: italic; }
.listing-row .who a .med { color: var(--ink-soft); font-size: 13px; }
.listing-row .who a .got { color: var(--accent); font-weight: 800; font-size: 12px; }
.spot-sheet-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.spot-sheet-row .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--line) center/cover no-repeat; flex: none; }
.spot-sheet-row .meta { min-width: 0; flex: 1; }
.spot-sheet-row .meta b { display: block; }
.spot-sheet-row .go { color: var(--accent); font-weight: 800; }
.spot-tag {
  display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: inherit; text-decoration: none;
}
.spot-tag i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 11px var(--sans); font-style: normal; }

/* The sponsor chip is a button that opens a window about them. */
button.sponsor { cursor: pointer; font: inherit; transition: transform .12s ease, box-shadow .15s ease; }
button.sponsor:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .18); }
button.sponsor:active { transform: scale(.97); }
button.sponsor::after { content: 'ⓘ'; font-size: 13px; color: #5a6874; margin-left: -2px; }

.sponsor-window .logo-plate { background: #fff; border-radius: 14px; padding: 18px; display: grid; place-items: center; border: 1px solid #e6e6e6; }
.sponsor-window .logo-plate img { width: min(260px, 80%); height: auto; }
.sponsor-window .links { display: grid; gap: 8px; margin-top: 12px; }
.sponsor-window .links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700;
}
.sponsor-window .links a span { color: var(--ink-soft); font-weight: 400; font-size: 13px; margin-left: auto; }
.sponsor-window .links a i {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal;
  background: var(--navy); color: #fff; font: 800 11px var(--sans); flex: none;
}

/* Between the walk's start and end, the site says so. */
.live-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; }
.live-now::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(140, 201, 99, .3); animation: live 1.4s ease-in-out infinite; }
.live-now small { font-size: 1em; font-weight: 300; opacity: .9; }
.stop .thumb .thumb-num {
  position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center; color: #fff; font: 800 12px var(--sans); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.profile-hero .spot-tag { margin-top: 10px; }
/* Header text keeps clear of the profile button in the corner. */
.band:has(> .me) .inner { padding-right: 64px; }
.ev-line { transition: opacity .15s ease; }
.ev-line.selected { stroke-width: 7; opacity: 1 !important; }
.ev-you { animation: you-pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes you-pulse { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .ev-you { animation: none; } }
.ev-locate {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: #1b3b53;
  font: 800 13px var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.ev-locate i { width: 14px; height: 14px; border-radius: 50%; background: #2f7cf6; box-shadow: 0 0 0 3px rgba(47, 124, 246, .25); }
.ev-locate[aria-pressed="true"] { background: #2f7cf6; color: #fff; border-color: #2f7cf6; }
.ev-locate[aria-pressed="true"] i { background: #fff; }
.ev-where { font-size: 13px; margin: 8px 2px 0; color: var(--ink-soft); }
/* Controls under the map, so they never sit on a number. */
.ev-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ev-bar .ev-locate { position: static; }
.ev-bar .ev-zoom { position: static; display: flex; gap: 6px; }
/* On a phone the map runs edge to edge. */
@media (max-width: 600px) {
  .ev-host { margin: 0 -18px; width: calc(100% + 36px); border-radius: 0; border-left: none; border-right: none; }
}
/* The dots answer to a tap like their numbers do. */
.ev-hit { cursor: pointer; }
.ev-mark { transition: r .15s ease; }
.ev-mark.selected { stroke: #1b3b53; stroke-width: 4; }

/* ============================================================== notices === */

.tabs { grid-template-columns: repeat(4, 1fr); }
.tab-count {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #e0242b; color: #fff; font: 800 11px/18px var(--sans); font-style: normal; text-align: center;
  box-shadow: 0 0 0 2px var(--card);
}

.push-banner {
  position: fixed; left: 10px; right: 10px; z-index: 45; max-width: 540px; margin: 0 auto;
  bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .4s ease both;
}
.push-banner .pb-icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; grid-row: span 2; align-self: start; }
.push-banner .pb-text { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.push-banner .pb-text b { font-size: 14.5px; }
.push-banner .pb-share { display: inline-flex; vertical-align: -3px; }
.push-banner .pb-go {
  grid-column: 2; justify-self: start; min-height: 38px; padding: 0 16px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--lime); color: var(--navy); font: 800 14px var(--sans);
}
.push-banner .pb-go.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.push-banner .pb-status { grid-column: 2; font-size: 12.5px; color: #ffd2d2; }
.push-banner .pb-later {
  position: absolute; top: 6px; right: 8px; background: none; border: none; color: rgba(255, 255, 255, .75);
  font: 700 12px var(--sans); cursor: pointer; padding: 6px;
}
.push-banner .pb-text { padding-right: 52px; }
body.has-banner { padding-bottom: calc(var(--tab-h) + 150px + env(safe-area-inset-bottom)); }
body:has(.scan-overlay) .push-banner, body:has(.finale) .push-banner, body:has(dialog[open]) .push-banner { display: none; }

.notice-item { padding: 14px 0; border-top: 1px solid var(--line); }
.notice-item.new h3::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0242b; margin-right: 8px; vertical-align: 2px; }
.notice-item .ni-when { font: 400 11.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.notice-item h3 { margin: 4px 0; }
.notice-item p { margin: 0; }
.notice-item .ni-go { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--accent); text-decoration: none; }
.push-banner .pb-acts { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.push-banner .pb-acts .pb-go { grid-column: auto; }

/* The way back out of an artist's page: mirrors the profile button, and sits
   over the cover photo where a back control is looked for. */
.back-pill {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px; padding: 0 14px 0 8px; border-radius: 22px;
  background: var(--white); color: var(--navy);
  border: 2.5px solid var(--navy);
  font: 800 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
  transition: transform .12s ease;
}
.back-pill:active { transform: scale(.94); }
.back-pill .chev { display: grid; place-items: center; }
.back-pill svg { width: 20px; height: 20px; }
.navigating .back-pill { display: none !important; }

/* Two fields side by side, or two choices — first and last name, new or
   returning. One column on the narrowest phones, where side by side is worse
   than nothing. */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-up > .btn { margin: 0; }
.two-up > label.field { margin-bottom: 12px; }
@media (max-width: 380px) { .two-up { grid-template-columns: 1fr; } }

/* The passport code, on the screen that hands it over. Spaced out because
   people read it aloud to each other. */
.passport-code {
  display: inline-block; padding: 12px 18px; border-radius: 12px;
  font: 800 24px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em; white-space: nowrap;
  background: var(--wash); border: 1.5px dashed var(--line);
}

/* ============================================================== square === */
/* The plan of the downtown square, behind the gazebo star. */

.square-plan { width: 100%; height: auto; display: block; border-radius: 14px; background: #fff; }
.square-plan .sq-tent { cursor: pointer; }
.square-plan .sq-tent:active rect { transform: scale(.94); transform-origin: center; }
.square-plan .sq-tent:focus-visible rect { stroke: var(--navy, #1b3b53); stroke-width: 5; }
/* The one you came looking for: ringed on the plan, flagged in the list. */
.square-plan .sq-tent.is-here circle { animation: sq-ping 1.6s ease-out 3; }
@keyframes sq-ping { 0% { opacity: .55; r: 46; } 70% { opacity: 0; r: 64; } 100% { opacity: .55; r: 46; } }
@media (prefers-reduced-motion: reduce) { .square-plan .sq-tent.is-here circle { animation: none; } }

.square-list { display: grid; gap: 2px; margin-top: 4px; }
.square-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px;
  background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit;
  text-align: left; cursor: pointer; text-decoration: none;
}
.square-row:hover { background: var(--wash); }
.square-row.is-here { background: var(--wash); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
.square-row i {
  flex: none; width: 30px; height: 30px; border-radius: 9px; color: #fff;
  display: grid; place-items: center; font: 800 14px var(--sans); font-style: normal;
}
