/* ============================================================================
   SantaCon Bratislava — the look of the public event website
   (santacon-bratislava-squad.lovable.app): deep night-navy page, Santa red with
   a glow, gold eyebrows, Bebas Neue display type over DM Sans body text.
   Structure follows the house pwa-design-system theme (same class names and
   components); every colour comes from a :root token. Reskin = edit :root.
   ============================================================================ */

:root {
  color-scheme: dark;     /* native date/time pickers, selects, scrollbars */
  --bg: #101018;          /* page — night navy (site --background) */
  --card: #191924;        /* card / panel surface (site --card) */
  --elevated: #20202d;    /* rows and tiles nested inside a card */
  --text: #f7f5f3;        /* snow (site --foreground) */
  --muted: #afa69d;       /* warm grey secondary text (site --muted-foreground) */
  --accent: #d71919;      /* Santa red — fills, borders, big type (site --primary) */
  --accent-deep: #d71919; /* filled buttons */
  --accent-text: #f04a3f; /* red for small text on dark (links, labels) */
  --accent-soft: rgba(215, 25, 25, 0.12); /* hover / selection tint */
  --gold: #fbbd23;        /* eyebrows and highlights (site --gold) */
  --input-bg: #23232f;    /* inputs & inset surfaces (site --muted) */
  --correct: #3ecf8e;     /* positive / success */
  --wrong: #ff6b6b;       /* negative / error */
  --warn: #fbbd23;        /* stale / to-be-confirmed notes */
  --border: #2b2b3b;      /* default border (site --border) */
  --border-soft: #23232f; /* lighter border for nested / inset surfaces */
  --glow: 0 0 40px rgba(215, 25, 25, 0.3), 0 0 80px rgba(215, 25, 25, 0.15);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }

body {
  margin: 0;
  font-family: var(--font-body);
  /* A soft red glow over the top of the page: "the city turns red". */
  background:
    radial-gradient(900px 420px at 50% -140px, rgba(215, 25, 25, 0.2), transparent 70%) no-repeat,
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  /* iOS safe-area: viewport meta uses viewport-fit=cover so content can extend
     under the notch / home indicator; env() insets push it back inside on
     devices that have one (zero everywhere else). Always add the base 20px. */
  padding:
    calc(20px + env(safe-area-inset-top))
    calc(20px + env(safe-area-inset-right))
    calc(20px + env(safe-area-inset-bottom))
    calc(20px + env(safe-area-inset-left));
}

/* ── Page frame: header + centered column ────────────────────────────────── */
header {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 6px;
  margin-bottom: 20px;
}
h1 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: 0.05em; line-height: 1; }
.stats { color: var(--muted); font-size: 13px; }
.stats { flex-shrink: 0; }

/* ── Card: the primary surface ───────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 16px;
}

/* ── Typography accents ──────────────────────────────────────────────────── */
/* A large centered headline, set in the condensed display face. */
.headline {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin: 8px 0 4px;
  letter-spacing: 0.04em;
  white-space: pre-line;
}
/* When the headline is a full sentence, drop the size so it can't overflow. */
.headline.long {
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
/* Gold, widely tracked label above content ("A GLOBAL TRADITION"). */
.eyebrow {
  text-align: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.red { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  background: var(--accent-deep);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 20px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.15s, border-color 0.15s, filter 0.15s;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
/* "Card button" for menu / picker tiles: a raised dark tile with body text. */
.btn.card-btn {
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  letter-spacing: normal;
  font-size: 14px;
}
/* The site's red glow, for the one primary call to action on a screen. */
.glow { box-shadow: var(--glow); }
.btn.glow { animation: pulse-glow 2.4s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(215, 25, 25, 0.4); }
  50% { box-shadow: 0 0 40px rgba(215, 25, 25, 0.7); }
}
/* Hover is gated to real pointers (see the touch note at the bottom). */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); box-shadow: 0 0 24px rgba(215, 25, 25, 0.35); }
  .btn.ghost:hover { background: var(--accent-soft); border-color: rgba(215, 25, 25, 0.5); box-shadow: none; filter: none; }
  .btn.card-btn:hover { background: var(--elevated); border-color: rgba(215, 25, 25, 0.5); box-shadow: none; filter: none; }
}

/* Picker tile: a tall card-button with a label + sub-label, used for menus. */
.picker-btn {
  flex: 1;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.picker-btn-label { font-family: var(--font-display); font-size: 23px; letter-spacing: 0.04em; line-height: 1.05; }
.picker-btn-sub { font-size: 12.5px; color: var(--muted); }

/* ── Choices: a vertical stack of selectable answer buttons ──────────────── */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: pre-line;
}
@media (hover: hover) and (pointer: fine) {
  .choice:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
}
.choice:disabled { cursor: default; opacity: 0.7; }
/* Semantic result states: tinted bg + matching border + colored text. Always
   reveal the right answer in green, even on a wrong pick. */
.choice.correct { background: rgba(62, 207, 142, 0.12); border-color: var(--correct); color: var(--correct); font-weight: 600; }
.choice.wrong   { background: rgba(255, 107, 107, 0.12); border-color: var(--wrong);   color: var(--wrong);   font-weight: 600; }

/* ── Selectable tile grid (multi-select: images or labels) ───────────────── */
.select-grid {
  display: grid;
  /* minmax(0,1fr), NOT 1fr — keeps an intrinsic-width child (e.g. an <img>)
     from forcing its track wider than its share and overflowing on iOS Safari. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
@media (max-width: 440px) { .select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.select-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--elevated);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
/* Square via a padding spacer, NOT aspect-ratio: aspect-ratio mis-reserves the
   row height for a grid item holding an <img> in iOS Safari, causing overlap. */
.select-tile::before { content: ""; display: block; padding-top: 100%; }
.select-tile svg, .select-tile img {
  position: absolute;
  top: 8px; left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  display: block;
}
.select-tile.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent) inset;
}
.select-tile.tile-correct { border-color: var(--correct); background: rgba(62, 207, 142, 0.12); box-shadow: 0 0 0 2px var(--correct) inset; }
.select-tile.tile-wrong   { border-color: var(--wrong);   background: rgba(255, 107, 107, 0.12); box-shadow: 0 0 0 2px var(--wrong)   inset; }
@media (hover: hover) and (pointer: fine) {
  .select-tile:hover:not(:disabled):not(.tile-correct):not(.tile-wrong) { border-color: var(--accent); }
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
input[type=text], input[type=email] {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(215, 25, 25, 0.3); }
::placeholder { color: var(--muted); opacity: 0.8; }

/* ── Feedback banner ─────────────────────────────────────────────────────── */
.feedback { margin-top: 18px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.feedback.correct { background: rgba(62, 207, 142, 0.1); color: var(--correct); border: 1px solid rgba(62, 207, 142, 0.3); }
.feedback.wrong   { background: rgba(255, 107, 107, 0.1); color: var(--wrong); border: 1px solid rgba(255, 107, 107, 0.3); }

/* ── Pills: tags, status flags, link chips (999px radius) ────────────────── */
.flag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: middle;
}
.flag.good { background: rgba(62, 207, 142, 0.14);  color: var(--correct); }
.flag.warn { background: rgba(251, 189, 35, 0.14);  color: var(--warn); }
.flag.bad  { background: rgba(255, 107, 107, 0.14); color: var(--wrong); }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(215, 25, 25, 0.35);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
}

/* ── Progress bar (slim, top of column) ──────────────────────────────────── */
.progress-bar {
  width: 100%;
  max-width: 720px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-fill { height: 100%; background: var(--accent); box-shadow: 0 0 12px rgba(215, 25, 25, 0.6); transition: width 0.3s; }

/* ── Footer actions (subtle, underlined text buttons) ────────────────────── */
.footer-actions {
  max-width: 720px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.footer-actions button {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 12px; text-decoration: underline; font-family: inherit;
}

/* ── Auth card (sign-in) ─────────────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  margin-top: 60px;
}
.auth-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: 0.04em; line-height: 1; }
.auth-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.auth-card .btn { width: 100%; padding: 12px; font-size: 20px; }
.auth-msg { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-msg.success { color: var(--correct); }
.auth-msg.error { color: var(--wrong); }

/* ── Celebration: toast, congrats card, confetti ─────────────────────────── */
/* Fixed toast near the top — pops in with a springy curve, auto-dismisses. */
.toast {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  max-width: calc(100vw - 32px);
  animation: popIn 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.toast.leaving { animation: popOut 0.3s ease forwards; }
@keyframes popIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes popOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.9); }
}

/* Full-card celebration (e.g. "You did it!") that auto-advances. */
.congrats {
  position: relative;
  text-align: center;
  padding: 28px 16px 8px;
  overflow: hidden;
  animation: congratsIn 0.36s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.congrats-emoji { font-size: 64px; line-height: 1; animation: bounce 1.6s ease-in-out infinite; }
.congrats-title { font-family: var(--font-display); font-size: 36px; letter-spacing: 0.04em; margin-top: 12px; color: var(--text); }
.congrats-sub   { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 460px; margin-inline: auto; }
@keyframes congratsIn { from { opacity: 0; transform: translateY(-14px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Self-contained CSS confetti — no image assets. JS sprays N .confetti-bit
   spans into .confetti-layer with per-piece left/color/delay/duration/--spin. */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-bit {
  position: absolute; top: -16px;
  width: 9px; height: 14px; border-radius: 2px; opacity: 0;
  animation-name: confettiFall; animation-timing-function: ease-in;
  animation-iteration-count: 1; animation-fill-mode: forwards;
}
@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(0) rotate(0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(340px) rotate(var(--spin)); }
}

.hidden { display: none !important; }

/* ── Large displays (wall panels, big monitors) ──────────────────────────────
   The app is normally a 720px column with px-fixed type sized for a phone or
   laptop at arm's length. On a wall-mounted panel that column is a small strip
   of small text. This ONE block widens the column and scales the key type ~1.5x.
   It's display-only — no logic, layout-structure, or behavior changes here. */
@media (min-width: 1200px) {
  header, .card, .progress-bar, .footer-actions { max-width: 1100px; }
  h1 { font-size: 36px; }
  .stats { font-size: 18px; }
  .card { padding: 48px; }
  .headline { font-size: 64px; }
  .headline.long { font-size: 38px; }
  .eyebrow { font-size: 22px; margin-bottom: 36px; }
  .choice { font-size: 24px; padding: 20px 26px; }
  .picker-btn { padding: 24px; }
  .picker-btn-label { font-size: 32px; }
  .picker-btn-sub { font-size: 16px; }
  input[type=text] { font-size: 24px; padding: 18px 22px; }
  .feedback { font-size: 20px; }
  .btn { font-size: 26px; padding: 14px 26px 12px; }
  .flag { font-size: 15px; padding: 4px 12px; }
}

/* ── The touch rule (why every :hover above is gated) ─────────────────────────
   On touch devices :hover sticks to the last-tapped element until you tap
   elsewhere, so a rebuilt button looks stuck-highlighted. Gating every hover
   rule behind `@media (hover: hover) and (pointer: fine)` excludes phones and
   tablets cleanly. Pair with `-webkit-tap-highlight-color: transparent` on
   tappable tiles to kill the gray flash. This is non-negotiable for a PWA. */

@media (prefers-reduced-motion: reduce) {
  .btn.glow, .live-cta, .live-dot, .tab-btn .tab-dot { animation: none; }
}

/* ============================================================================
   SantaCon additions — app-specific components, token-only colors.
   ============================================================================ */

/* Page frame: a fixed, blurred top bar (transparent over Home's photo hero
   until you scroll, like the website's nav) and room for the bottom tab bar.
   Home is full-bleed; every other screen is a centered column of cards.
   body[data-screen] and body.scrolled are set by app.js. */
body {
  align-items: stretch;
  padding: 0 env(safe-area-inset-right) calc(84px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; max-width: none; margin: 0; flex-wrap: nowrap;
  padding: calc(12px + env(safe-area-inset-top)) max(16px, calc((100% - 1100px) / 2)) 12px;
  background: rgba(16, 16, 24, 0.85); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
body[data-screen="home"]:not(.scrolled) header {
  background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
main#view { width: 100%; display: flex; flex-direction: column; align-items: stretch; padding: calc(76px + env(safe-area-inset-top)) 16px 0; }
main#view > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
body[data-screen="home"] main#view { padding: 0; }
body[data-screen="home"] main#view > * { max-width: none; }
.footer-actions { margin: 8px auto 0; padding: 0 16px; }
body[data-screen="home"] .footer-actions { padding-top: 12px; }
.card { padding: 24px; }
@media (max-width: 440px) {
  main#view { padding-left: 12px; padding-right: 12px; }
  .card { padding: 18px; }
}

/* Header: brand on the left (tap = home), language switch on the right. */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.brand-emoji { font-size: 24px; line-height: 1; }
.brand h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); padding-top: 3px; }

/* Segmented control (language switch, small choice rows). */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; background: var(--card); overflow: hidden; }
.seg button {
  background: none; border: none; font-family: var(--font-display); font-size: 16px; letter-spacing: 0.08em;
  padding: 6px 12px 4px; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.seg button.active { background: var(--accent); color: #fff; }

/* Row of controls; `margin-left:auto` on a child pushes it right (house Back pattern). */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 440px) { .grid-2.collapse { grid-template-columns: minmax(0, 1fr); } }
.btn.block { width: 100%; padding: 13px 18px 11px; font-size: 20px; }
.btn.big { width: 100%; padding: 15px 18px 13px; font-size: 22px; }
.btn.danger { background: transparent; color: var(--wrong); border: 1px solid rgba(255, 107, 107, 0.6); }
.btn:disabled { opacity: 0.45; cursor: default; animation: none; box-shadow: none; }
.btn.small { padding: 6px 12px 4px; font-size: 16px; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }

a { color: var(--accent-text); }
/* A venue's name linked to its Instagram / website: keeps the text colour, red underline. */
a.venue { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a.venue::after { content: "↗"; margin-left: 3px; font-size: 0.8em; color: var(--accent-text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.prose { white-space: pre-line; line-height: 1.55; font-size: 15px; }
.eyebrow.left { text-align: left; margin-bottom: 10px; }
h2.section { margin: 0 0 14px; font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: 0.04em; line-height: 1; }

/* ── Home: the event website's one-pager ────────────────────────────────────
   The look of santacon-bratislava-squad.lovable.app: full-bleed sections with
   generous padding, a centered 1100px column, plain night or a night→card
   gradient (the site's section-gradient), a centered gold eyebrow over a big
   display heading, bordered cards with Lucide icons in soft red circles. */
.sec { padding: 72px 0; }
.sec.alt { background: linear-gradient(180deg, var(--bg), var(--card)); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.sec-eyebrow { margin: 0 0 12px; color: var(--gold); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.sec-title { margin: 0 0 20px; font-family: var(--font-display); font-weight: 400; font-size: 42px; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.sec-head .sec-title:last-child { margin-bottom: 0; }
.sec-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.sec-prose { color: var(--muted); font-size: 17px; line-height: 1.65; white-space: pre-line; }
.lv-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; min-width: 0; transition: border-color 0.2s; }
@media (hover: hover) and (pointer: fine) { .lv-card:hover { border-color: rgba(215, 25, 25, 0.4); } }
.ico { display: block; width: 24px; height: 24px; }
.ico-circle {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(215, 25, 25, 0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.ico-circle .ico { width: 28px; height: 28px; }
.ico-circle.sm { width: 48px; height: 48px; margin: 0 0 16px; }
.ico-circle.sm .ico { width: 24px; height: 24px; }
.feat-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.1; letter-spacing: 0.05em; }
.feat-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Hero: a full-screen photo under the (transparent) top bar, darkened
   toward the bottom so the type always reads. No photo → a red night glow. */
.hero-full {
  position: relative; overflow: hidden; text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100svh - 70px - env(safe-area-inset-bottom));
  padding: calc(88px + env(safe-area-inset-top)) 16px 88px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(215, 25, 25, 0.25), transparent 70%), var(--bg);
}
.photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.photo-shade { position: absolute; inset: 0; background: linear-gradient(rgba(16, 16, 24, 0.4), rgba(16, 16, 24, 0.6), rgba(16, 16, 24, 0.95)); }
.hero-inner, .photo-band-inner { position: relative; z-index: 1; }
.hero-inner { max-width: 900px; }
.hero-eyebrow { margin: 0 0 16px; color: var(--gold); font-family: var(--font-display); font-size: 19px; letter-spacing: 0.3em; text-transform: uppercase; }
.hero-h1 { margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(64px, 19vw, 150px); line-height: 0.9; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-h1 span { display: block; color: var(--accent); text-shadow: 0 0 40px rgba(215, 25, 25, 0.35); }
.hero-slogan { margin: 0 0 8px; color: var(--gold); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-lead { margin: 0 auto 8px; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.btn.btn-hero { min-width: 250px; padding: 15px 34px 12px; font-size: 21px; letter-spacing: 0.06em; text-transform: uppercase; }
.btn.btn-hero.ghost { background: rgba(16, 16, 24, 0.55); }
.hero-note { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 24px; padding: 10px 18px;
  border: 1px solid var(--accent); border-radius: 999px; background: rgba(215, 25, 25, 0.18);
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  animation: pulse-glow 2.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; width: 24px; height: 40px; padding-top: 8px;
  border: 2px solid rgba(175, 166, 157, 0.4); border-radius: 999px;
  display: flex; justify-content: center; animation: cue-bounce 1s infinite;
}
.scroll-cue span { width: 6px; height: 12px; border-radius: 999px; background: rgba(175, 166, 157, 0.6); }
@keyframes cue-bounce {
  0%, 100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* Countdown to the meeting time: four dark tiles, display-face numbers over
   gold labels. Ticks in place (views/public.js). */
.countdown { display: flex; justify-content: center; gap: 10px; margin: 24px auto 28px; max-width: 440px; }
.cd-unit { flex: 1; min-width: 0; padding: 12px 4px 9px; border-radius: 8px; background: rgba(16, 16, 24, 0.65); border: 1px solid var(--border); }
.cd-num { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cd-label { margin-top: 5px; color: var(--gold); font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 440px) {
  .countdown { gap: 6px; }
  .cd-num { font-size: 34px; }
  .cd-label { font-size: 11px; letter-spacing: 0.1em; }
}

/* Next edition ("up top"): three fact cards, then the latest news. */
.fact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.fact-card { text-align: center; }
.fact-card .fact-label { margin-bottom: 6px; }
.fact-card .fact-value { font-size: 18px; }
.fact-card .fact-sub { margin-top: 4px; }
.news { max-width: 680px; margin: 48px auto 0; }

/* Card grids: the four "what is" points, the six steps, the testimonials. */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.feat { text-align: center; }
.step-grid, .quote-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.step-card { position: relative; }
.step-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-display); font-size: 42px; line-height: 1; color: rgba(247, 245, 243, 0.07); }

/* Story timeline: a line with red dots, one card per edition (left-aligned on
   phones, alternating sides from tablet up); this year's goal glows. */
.tl { position: relative; max-width: 760px; margin: 0 auto; }
.tl::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-left: 56px; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: 25px; top: 26px; z-index: 1; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg);
}
.tl-card { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tl-card.goal { cursor: default; border-color: rgba(215, 25, 25, 0.5); background: rgba(215, 25, 25, 0.05); box-shadow: var(--glow); }
.tl-year { color: var(--gold); font-family: var(--font-display); font-size: 16px; letter-spacing: 0.2em; }
.tl-count { margin-top: 2px; font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: 0.04em; }
.tl-sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.tl-sub .chev { color: var(--accent); font-size: 18px; }

/* Photo band (the Christmas Market moment). */
.photo-band {
  position: relative; overflow: hidden; text-align: center; background: var(--card);
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
}
.photo-band-inner { max-width: 760px; padding: 96px 16px; }
.sec-title.big { font-size: 46px; }
.photo-band-body { margin: 0 0 16px; color: rgba(247, 245, 243, 0.9); font-size: 18px; line-height: 1.65; }
.market-quote { margin: 0; color: var(--gold); font-family: var(--font-display); font-size: 26px; line-height: 1.15; letter-spacing: 0.04em; }

/* Who can join + the rules, side by side on wide screens. */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 1000px; margin: 0 auto; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; line-height: 1.5; }
.checks .ico { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

/* Testimonials. */
.q-card { margin: 0; display: flex; flex-direction: column; }
.stars { display: flex; gap: 4px; margin-bottom: 16px; color: var(--gold); }
.stars .ico { width: 16px; height: 16px; fill: var(--gold); }
.q-card blockquote { flex: 1; margin: 0 0 16px; color: rgba(247, 245, 243, 0.9); font-size: 14.5px; font-style: italic; line-height: 1.6; }
.q-name { display: block; font-size: 14px; font-weight: 600; }
.q-role { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }

/* FAQ: one bordered card per question; the chevron turns when open. */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0 22px; transition: border-color 0.2s; }
.faq-item[open] { border-color: rgba(215, 25, 25, 0.3); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-size: 15.5px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex-shrink: 0; width: 16px; height: 16px; transition: transform 0.2s; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--accent-text); } }

/* Closing call to action, then the site footer. */
.cta-sec { background: var(--card); }
.cta-h { margin: 0 0 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 13vw, 104px); line-height: 0.95; letter-spacing: 0.05em; text-transform: uppercase; }
.cta-h span { display: block; color: var(--accent); }
.cta-sec .sec-lead { max-width: 440px; margin: 0 auto; }
.site-foot { padding: 48px 0 28px; border-top: 1px solid var(--border); }
.foot-logo { margin: 0 0 8px; color: var(--accent); font-family: var(--font-display); font-size: 26px; letter-spacing: 0.05em; text-transform: uppercase; }
.foot-tag { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.foot-copy { margin: 0; color: var(--muted); font-size: 12px; }

@media (min-width: 560px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .btn.btn-hero { min-width: 0; }
}
@media (min-width: 768px) {
  .sec { padding: 96px 0; }
  .wrap { padding: 0 24px; }
  .sec-head { margin-bottom: 64px; }
  .sec-title { font-size: 60px; }
  .sec-title.big { font-size: 72px; }
  .hero-eyebrow { font-size: 24px; }
  .hero-slogan { font-size: 26px; }
  .hero-lead { font-size: 18px; }
  .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-band-body { font-size: 20px; }
  .market-quote { font-size: 30px; }
  .tl::before { left: 50%; transform: translateX(-50%); }
  .tl-item { width: 50%; padding: 0 48px 0 0; margin-bottom: 40px; text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 0 48px; text-align: left; }
  .tl-dot { left: 100%; }
  .tl-item:nth-child(even) .tl-dot { left: 0; }
  .tl-card { text-align: inherit; }
}
@media (min-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-grid, .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-pill, .scroll-cue { animation: none; }
  .scroll-cue { transform: translateX(-50%); }
}

/* Key facts: emoji + label/value lines. */
.facts { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact-emoji {
  font-size: 18px; line-height: 1; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.fact-label { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.14em; line-height: 1.2; padding-top: 1px; }
.fact-value { font-size: 16px; font-weight: 600; }
.fact-sub { font-size: 13px; color: var(--muted); }

/* Tappable list rows (editions, stops, organizer lists). */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font: inherit; color: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; min-width: 0; transition: border-color 0.15s;
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.list-row .chev { color: var(--accent); font-size: 20px; }
.list-row img.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
div.list-row { cursor: default; }
/* "wrap" here means "may wrap"; undo the Home page's .wrap container padding. */
.list-row .title.wrap { white-space: normal; overflow: visible; max-width: none; margin: 0; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  button.list-row:hover { border-color: rgba(215, 25, 25, 0.5); }
}

/* Numbered stop badge — same look as the map pins (and the site's timeline dots). */
.num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: transparent; border: 2px solid var(--accent); color: var(--text);
  font-family: var(--font-display); font-size: 17px; line-height: 1; padding-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.num.current { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(215, 25, 25, 0.6); }
.num.next { background: var(--accent-soft); }
.num.start { border-color: var(--correct); color: var(--correct); }
.stop-cancelled .title { text-decoration: line-through; color: var(--muted); }

/* Banners: info / warn / good / preview — tri-part like .feedback. */
.banner { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.banner.warn { background: rgba(251, 189, 35, 0.1); color: var(--warn); border: 1px solid rgba(251, 189, 35, 0.35); }
.banner.info { background: var(--accent-soft); color: var(--text); border: 1px solid rgba(215, 25, 25, 0.35); }
.banner.good { background: rgba(62, 207, 142, 0.1); color: var(--correct); border: 1px solid rgba(62, 207, 142, 0.3); }
.banner.preview { background: repeating-linear-gradient(135deg, var(--accent-soft), var(--accent-soft) 12px, transparent 12px, transparent 24px); color: var(--text); border: 1px dashed var(--accent); font-weight: 600; }

/* Live status — the "Find the Santas" card. */
.live-card { text-align: center; background: radial-gradient(120% 80% at 50% 0%, rgba(215, 25, 25, 0.16), transparent 60%), var(--card); }
.live-emoji { font-size: 44px; line-height: 1; }
.live-where { font-family: var(--font-display); font-size: 40px; font-weight: 400; letter-spacing: 0.03em; margin: 8px 0 6px; line-height: 1; }
.live-when { font-size: 16px; font-weight: 600; color: var(--gold); margin-top: 10px; }
.live-next { font-size: 14px; color: var(--muted); margin-top: 6px; }
.live-note { margin: 14px auto 0; max-width: 460px; padding: 10px 14px; background: var(--input-bg); border-left: 3px solid var(--accent); border-radius: 6px; text-align: left; font-size: 14px; white-space: pre-line; }
.live-updated { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-right: 6px; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
.live-cta {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid var(--accent); -webkit-tap-highlight-color: transparent;
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.live-cta-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.04em; line-height: 1.1; }

/* Map container (Leaflet mounts inside). OSM tiles are inverted into a night
   map so the route sits in the same dark palette; pins and popups stay crisp. */
.map { width: 100%; height: 300px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--input-bg); margin: 4px 0 14px; position: relative; z-index: 0; }
.map.tall { height: 360px; }
.map.leaflet-container { background: var(--bg); font-family: var(--font-body); }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6); }
.map .leaflet-bar { border-color: var(--border); }
.map .leaflet-bar a { background-color: var(--card); color: var(--text); border-bottom-color: var(--border); }
.map .leaflet-bar a:hover, .map .leaflet-bar a:focus { background-color: var(--elevated); }
.map .leaflet-bar a.leaflet-disabled { background-color: var(--card); color: var(--muted); opacity: 0.6; }
.map.leaflet-container .leaflet-control-attribution { background: rgba(16, 16, 24, 0.75); color: var(--muted); }
.map.leaflet-container .leaflet-control-attribution a { color: var(--muted); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.map.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; padding: 16px; text-align: center; }
.pin {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent);
  color: var(--text); font: 400 16px/26px var(--font-display);
  text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pin.current { background: var(--accent); border-color: var(--text); color: #fff; width: 38px; height: 38px; line-height: 33px; font-size: 19px; box-shadow: 0 0 0 6px rgba(215, 25, 25, 0.35), 0 0 24px rgba(215, 25, 25, 0.7); }
.pin.next { background: #3a1418; }
.pin.start { border-color: var(--correct); color: var(--correct); }
.pin.cancelled { opacity: 0.45; }
.pin.pick { border-color: var(--text); background: var(--accent); color: #fff; }

/* Gallery grid + lightbox. Square tiles via the padding spacer (house rule). */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 440px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery > * { position: relative; padding: 0; border: none; border-radius: 6px; overflow: hidden; background: var(--elevated); cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; }
.gallery > *::before { content: ""; display: block; padding-top: 100%; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 10, 16, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: none; border-radius: 999px; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
.lightbox .lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 13px; }

/* Forms (organizer tools). */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field-label { font-size: 13.5px; font-weight: 500; color: var(--text); }
input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 16px; font-family: inherit; min-width: 0;
}
input[type=text], input[type=email] { font-size: 16px; } /* ≥16px so iOS doesn't zoom on focus */
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(215, 25, 25, 0.3); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
details.more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent-text); font-size: 14px; }

/* Organizer photo tiles with overlay actions. */
.ph-tile .ph-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; z-index: 1; }
.ph-tile .ph-actions button { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border); background: rgba(16, 16, 24, 0.85); color: var(--text); cursor: pointer; font-size: 14px; }
.ph-tile .flag { position: absolute; left: 6px; bottom: 6px; z-index: 1; }

/* Drinks preview: steppers, vouchers, QR, scan results. */
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item .grow { flex: 1; min-width: 0; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--elevated); font-size: 18px; cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; }
.stepper .qty { min-width: 18px; text-align: center; font-weight: 700; }
.total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em; margin-top: 14px; }
.qr { background: #fff; padding: 12px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; } /* white: scanners need the contrast */
.qr svg { display: block; width: 220px; height: 220px; }
.voucher-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2px; font-size: 15px; margin-top: 8px; }
table.counts { width: 100%; border-collapse: collapse; font-size: 14px; }
table.counts th, table.counts td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: right; }
table.counts th:first-child, table.counts td:first-child { text-align: left; }
table.counts th { font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--gold); letter-spacing: 0.12em; }
.scan-result { border-radius: 8px; padding: 18px; text-align: center; margin-top: 12px; }
.scan-result .sr-title { font-family: var(--font-display); font-size: 32px; letter-spacing: 0.04em; line-height: 1.05; }
.scan-result .sr-sub { font-size: 14px; margin-top: 6px; }
.scan-result.good { background: rgba(62, 207, 142, 0.1); color: var(--correct); border: 2px solid var(--correct); }
.scan-result.bad { background: rgba(255, 107, 107, 0.1); color: var(--wrong); border: 2px solid var(--wrong); }
.scan-result.warn { background: rgba(251, 189, 35, 0.1); color: var(--warn); border: 2px solid rgba(251, 189, 35, 0.6); }

/* Bottom tab bar — fixed, safe-area aware, equal-width tabs (M-Life pattern),
   dressed like the site's translucent, blurred nav bar. */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  background: rgba(16, 16, 24, 0.95); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { display: flex; width: 100%; max-width: 720px; }
.tab-btn {
  flex: 1; background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 9px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); -webkit-tap-highlight-color: transparent; position: relative;
}
.tab-btn .tab-emoji { font-size: 21px; line-height: 1.2; filter: grayscale(1); opacity: 0.55; }
.tab-btn .tab-label { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; line-height: 1; }
.tab-btn.active { color: var(--accent-text); }
.tab-btn.active::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.tab-btn.active .tab-emoji { filter: none; opacity: 1; }
.tab-btn .tab-dot { position: absolute; top: 6px; left: calc(50% + 10px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s ease-in-out infinite; }

/* Sign-in card sits inside main#view, not as a separate root. */
.auth-card { margin: 12px auto 16px; }
.otp-input { text-align: center; letter-spacing: 8px; font-size: 20px !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (min-width: 1200px) {
  .tabbar-inner { max-width: 1100px; }
  main#view > * { max-width: 960px; }
  .map { height: 460px; }
  .live-where { font-size: 60px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
