/* Z Urošem v Zotter: cocoa, cream and one wrapper (raspberry, mango, lagoon). */

:root {
  color-scheme: light;
  --cocoa-950: #160b07;
  --cocoa-900: #1f110b;
  --cocoa-800: #2a1710;
  --cocoa-700: #3a2117;
  --cocoa-600: #4a2c1f;
  --cocoa-500: #6b4331;
  --cocoa-400: #8f6650;
  --cream-50: #fffaf2;
  --cream-100: #fbf4e8;
  --cream-200: #f4e9d6;
  --cream-300: #eadbc2;
  --cream-400: #d9c4a3;
  --ink: #2a1710;
  --ink-soft: #66503f;
  --ink-mute: #7d6655;
  --rasp: #e2366b;
  --rasp-deep: #c41f55;
  --mango: #f7a823;
  --mango-deep: #b86e00;
  --lagoon: #11998e;
  --lagoon-deep: #0b7168;
  --focus: #c41f55;

  --f-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --f-ui: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 20px;
  --radius: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; background: var(--cocoa-800); }
html.rm { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--cream-200);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--cream-100); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ================================================================
   HERO: the slab
   ================================================================ */
.hero {
  position: relative;
  background: var(--cocoa-800);
  color: var(--cream-200);
  isolation: isolate;
  overflow: hidden;
  --focus: var(--mango);
}
.slab {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-auto-rows: var(--cell, 96px);
  gap: 0;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, transparent 2px) 0 0 / 96px 96px,
    var(--cocoa-700);
}
.slab.ready { background: var(--cocoa-900); }
.cell {
  position: relative;
  margin: 2px;
  border-radius: 7px;
  background: linear-gradient(145deg, #4b2c1f, #351e14 70%);
  box-shadow:
    inset calc(var(--hx, -1) * -3px) calc(var(--hy, -1) * -3px) 0 rgba(255, 214, 180, calc(.10 + var(--g, 0) * .16)),
    inset calc(var(--hx, -1) * 4px) calc(var(--hy, -1) * 4px) 0 rgba(10, 4, 2, .42);
}
.cell::before {
  content: "";
  position: absolute; inset: 15%;
  border-radius: 5px;
  background: linear-gradient(calc(var(--ang, 135deg)), rgba(255, 215, 185, calc(.05 + var(--g, 0) * .12)), rgba(0, 0, 0, .14));
  box-shadow:
    calc(var(--hx, -1) * 2px) calc(var(--hy, -1) * 2px) 0 rgba(10, 4, 2, .35),
    calc(var(--hx, -1) * -1.5px) calc(var(--hy, -1) * -1.5px) 0 rgba(255, 214, 180, calc(.07 + var(--g, 0) * .14));
}
.cell b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 italic 30px/1 var(--f-display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: rgba(20, 8, 4, .45);
  text-shadow: calc(var(--hx, -1) * -1px) calc(var(--hy, -1) * -1px) 0 rgba(255, 214, 180, .16);
}
.cell b svg { width: 34%; height: auto; fill: rgba(20, 8, 4, .42); }
.sheen {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 22%) var(--my, 18%), rgba(255, 200, 150, .16), transparent 60%),
    linear-gradient(180deg, rgba(31, 17, 11, .1) 0%, rgba(31, 17, 11, .55) 62%, rgba(31, 17, 11, .9) 100%);
  mix-blend-mode: normal;
}
.hero-inner {
  position: relative;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 34px;
  max-width: 1440px; margin: 0 auto;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; min-height: 44px; color: var(--cream-200); }
.mark svg { width: 30px; height: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(251, 244, 232, .1);
  border: 1px solid rgba(251, 244, 232, .22);
  color: var(--cream-100); text-decoration: none; font-size: 14px; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .25s;
}
.pill:hover { background: rgba(251, 244, 232, .18); }
.pill-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--mango); box-shadow: 0 0 0 3px rgba(247, 168, 35, .25); }
.pill[data-state="short"] .pill-dot { background: var(--rasp); box-shadow: 0 0 0 3px rgba(226, 54, 107, .3); }
.pill[data-state="surplus"] .pill-dot, .pill[data-state="exact"] .pill-dot { background: #3fd0c2; box-shadow: 0 0 0 3px rgba(63, 208, 194, .25); }

.kicker {
  margin-top: 8vh;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mango);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.title {
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-weight: 560;
  font-size: clamp(66px, 19.5vw, 212px);
  line-height: .86;
  letter-spacing: -.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  color: var(--cream-100);
}
.t-line { display: block; }
.t-em {
  font-style: italic; font-weight: 440;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--mango);
  padding-left: .04em;
}
.t-dot { color: var(--rasp); }
.facts {
  margin-top: 30px;
  display: grid; gap: 12px;
  max-width: 560px;
}
.facts div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: baseline; padding-top: 12px; border-top: 1px solid rgba(251, 244, 232, .16); }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 233, 214, .62); font-weight: 600; }
.facts dd { font-size: 17px; line-height: 1.35; color: var(--cream-100); }

/* reveal (intro) */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js.go .reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
.js.rm .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- band: the wrapper ---------- */
.band {
  position: relative;
  background: var(--cream-200);
  color: var(--ink);
  --focus: var(--rasp-deep);
}
.band::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, var(--cream-200) 50%) 0 0 / 18px 10px repeat-x,
    linear-gradient(-135deg, transparent 50%, var(--cream-200) 50%) 0 0 / 18px 10px repeat-x;
}
.js .band { transform: translateY(40px); }
.js.go .band { transform: none; transition: transform 1.3s var(--ease-out) .35s; }
.js.rm .band { transform: none; transition: none; }
.band-label {
  position: relative; z-index: 1;
  padding: 22px var(--gutter) 6px;
  display: grid; gap: 16px;
  max-width: 1440px; margin: 0 auto;
}
.cd-pre { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cd-big { display: flex; align-items: baseline; gap: 18px; margin-top: 2px; }
.cd-unit { display: inline-flex; align-items: baseline; gap: 6px; }
.cd-n {
  font-family: var(--f-display);
  font-size: 68px; line-height: .95; font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.03em;
  color: var(--cocoa-800);
}
.cd-w { font-family: var(--f-display); font-style: italic; font-size: 24px; font-variation-settings: 'opsz' 48, 'SOFT' 100, 'WONK' 1; color: var(--rasp-deep); }
.countdown.is-today .cd-n { font-size: 52px; }
.meet { font-size: 15px; color: var(--ink-soft); max-width: 34ch; }
.meet-tbd { display: flex; gap: 10px; align-items: flex-start; }
.meet-tbd::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; border: 2px dashed var(--rasp-deep); }
.meet-set { display: grid; gap: 6px; }
.meet-set div { display: flex; gap: 10px; flex-wrap: wrap; }
.meet-set dt { font-weight: 600; color: var(--ink); }
.meet-set dd { color: var(--ink); }
.land { width: 100%; height: 170px; margin-top: -8px; }
.land .road-car { transition: transform .9s var(--ease-out); }

/* ================================================================
   SECTIONS
   ================================================================ */
main { background: var(--cream-200); background-image: var(--paper); position: relative; }
.split { max-width: 1440px; margin: 0 auto; }
.sec { padding: 64px var(--gutter) 24px; max-width: 1440px; margin: 0 auto; }
.sec-head { margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow .num { font-family: var(--f-display); font-style: italic; letter-spacing: 0; font-size: 15px; color: var(--rasp-deep); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.h2 {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: clamp(42px, 11vw, 76px);
  line-height: .95; letter-spacing: -.03em; font-weight: 560;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.h2:focus { outline: none; }
.h2:focus-visible { outline: 3px solid var(--focus); }
.lede { margin-top: 12px; font-size: 17px; color: var(--ink-soft); max-width: 40ch; }
.h3 { font-family: var(--f-display); font-size: 28px; line-height: 1.05; font-weight: 560; letter-spacing: -.02em; font-variation-settings: 'opsz' 72, 'SOFT' 100; }
.h3-sub { margin-top: 6px; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }

/* ---------- form ---------- */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.label { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; }
.opt { font-weight: 400; color: var(--ink-mute); font-size: 13px; margin-left: 6px; }
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(42, 23, 16, .2);
  background: var(--cream-50);
  font-size: 17px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9a8573; }
.input:hover { border-color: rgba(42, 23, 16, .38); }
.input:focus { outline: none; border-color: var(--cocoa-800); box-shadow: 0 0 0 4px rgba(226, 54, 107, .22); background: #fff; }
.input[aria-invalid="true"] { border-color: var(--rasp-deep); background: #fff4f6; }
.area { resize: vertical; min-height: 84px; line-height: 1.4; }
.count { justify-self: end; font-size: 13px; color: var(--ink-mute); font-variant-numeric: tabular-nums; margin-top: -2px; }
.count.near { color: var(--mango-deep); }
.err { color: var(--rasp-deep); font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.err::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 2px; background: currentColor; }
.hint { font-size: 14px; color: var(--ink-soft); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.choices legend { margin-bottom: 12px; }
.choice-grid { display: grid; gap: 10px; }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: var(--cream-50);
  border: 1.5px solid rgba(42, 23, 16, .14);
  cursor: pointer;
  transition: background .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.choice:hover { border-color: rgba(42, 23, 16, .35); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice-art { grid-row: 1 / span 2; display: flex; gap: 3px; align-items: center; justify-content: flex-start; }
.choice-art i {
  width: 15px; height: 15px; border-radius: 3px;
  background: linear-gradient(145deg, #5a3626, #3a2117);
  box-shadow: inset 1px 1px 0 rgba(255, 214, 180, .2), inset -1.5px -1.5px 0 rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease-snap), background .3s;
}
.choice-art i:first-child { background: var(--cream-300); box-shadow: inset 1px 1px 0 #fff, inset -1.5px -1.5px 0 rgba(42, 23, 16, .2); }
.choice-art i.on { background: var(--rasp); box-shadow: inset 1px 1px 0 rgba(255,255,255,.3), inset -1.5px -1.5px 0 rgba(0, 0, 0, .25); }
.choice-art i.loose { transform: rotate(-14deg) translate(12px, 2px); background: var(--mango); width: 18px; height: 18px; }
.choice-t { font-family: var(--f-display); font-size: 22px; line-height: 1.1; font-weight: 560; letter-spacing: -.01em; font-variation-settings: 'opsz' 48, 'SOFT' 100; }
.choice-d { font-size: 14px; color: var(--ink-soft); }
.choice.is-on { background: var(--cocoa-800); border-color: var(--cocoa-800); color: var(--cream-100); box-shadow: 0 14px 30px -18px rgba(42, 23, 16, .7); }
.choice.is-on .choice-d { color: rgba(244, 233, 214, .72); }
.choice.is-on .choice-art i:not(:first-child):not(.on):not(.loose) { background: linear-gradient(145deg, #6b4331, #4a2c1f); }
.choice.is-on .choice-art i { transform: translateY(-2px); }
.choice.is-on .choice-art i:nth-child(2) { transition-delay: .04s; }
.choice.is-on .choice-art i:nth-child(3) { transition-delay: .08s; }
.choice.is-on .choice-art i:nth-child(4) { transition-delay: .12s; }
.choice.is-on .choice-art i.loose { transform: rotate(-4deg) translate(10px, -2px); }

.branch { display: grid; gap: 22px; padding: 22px 18px; border-radius: 18px; background: rgba(255, 250, 242, .65); border: 1px dashed rgba(42, 23, 16, .22); margin-top: -10px; }
.js .branch:not([hidden]) { animation: branchIn .5s var(--ease-out); }
@keyframes branchIn { from { opacity: 0; transform: translateY(-8px); } }
.seats legend { margin-bottom: 4px; }
.seats .hint { margin-bottom: 12px; }
.seat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seat { position: relative; cursor: pointer; }
.seat input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seat span {
  display: grid; place-items: center;
  min-height: 52px;
  border-radius: 12px;
  font-family: var(--f-display); font-size: 22px; font-weight: 600;
  font-variant-numeric: lining-nums;
  background: var(--cream-50);
  border: 1.5px solid rgba(42, 23, 16, .16);
  transition: background .2s, color .2s, transform .35s var(--ease-snap), border-color .2s;
}
.seat:hover span { border-color: rgba(42, 23, 16, .4); }
.seat input:checked + span {
  background: linear-gradient(145deg, #5a3626, #3a2117);
  color: var(--cream-100);
  border-color: var(--cocoa-800);
  box-shadow: inset 2px 2px 0 rgba(255, 214, 180, .18), inset -3px -3px 0 rgba(0, 0, 0, .35);
  transform: translateY(-2px);
}
.seat input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.preview { display: grid; gap: 10px; }
.preview-cap { font-size: 14px; color: var(--ink-soft); min-height: 1.5em; }

.drv-list { display: grid; gap: 8px; }
.dopt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 14px;
  border-radius: 14px;
  background: var(--cream-50);
  border: 1.5px solid rgba(42, 23, 16, .14);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.dopt:hover { border-color: rgba(42, 23, 16, .38); }
.dopt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dopt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.dopt:has(input:checked) { background: var(--cocoa-800); color: var(--cream-100); border-color: var(--cocoa-800); }
.dopt:has(input:checked) .drv-meta { color: rgba(244, 233, 214, .75); }
.drv-name { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.drv-meta { margin-left: auto; font-size: 14px; color: var(--ink-soft); text-align: right; flex: none; }
.drv-sw { width: 18px; height: 18px; border-radius: 5px; flex: none; background: var(--wrap, transparent); }
.dopt.drv-other .drv-name { font-weight: 500; }
.dopt.drv-other .drv-sw { border: 2px dashed currentColor; opacity: .55; }

.note-card { font-size: 16px; color: var(--ink); }

.banner { padding: 14px 16px; border-radius: 14px; background: #fde7ee; color: #8f1640; font-weight: 600; font-size: 15px; border: 1px solid rgba(196, 31, 85, .25); }
.banner.warn { background: #fff1d6; color: #6e3d00; border-color: rgba(184, 110, 0, .35); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 600; font-size: 17px; letter-spacing: .005em;
  cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease-out), background .2s, box-shadow .25s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn-primary { background: var(--rasp-deep); color: #fff; box-shadow: 0 10px 24px -14px rgba(196, 31, 85, .9), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn-primary:hover { background: #ad1748; }
.form .btn-primary { flex: 1 1 220px; }
.btn-primary.warn { background: var(--mango-deep); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(42, 23, 16, .3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-cream { background: var(--cream-200); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-line { background: transparent; color: var(--cream-100); box-shadow: inset 0 0 0 1.5px rgba(244, 233, 214, .4); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--cream-100); }
.btn-line-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(42, 23, 16, .35); }
.btn-line-ink:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-danger { background: var(--rasp); color: #fff; }
.btn-danger:hover { background: var(--rasp-deep); }
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translate(2px, -2px); }
.quiet { font-size: 13px; color: var(--ink-mute); }
.flash { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--cream-50); border: 1px solid var(--cream-300); font-size: 15px; }

/* ---------- own entry card ---------- */
.mine {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: 22px;
  background: var(--cocoa-800);
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
  --focus: var(--mango);
  box-shadow: 0 30px 60px -36px rgba(42, 23, 16, .8);
}
.mine::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(420px circle at 100% 0%, rgba(226, 54, 107, .28), transparent 60%),
    radial-gradient(360px circle at 0% 100%, rgba(17, 153, 142, .22), transparent 60%);
}
.eyebrow-dark { color: var(--mango); }
.mine-name { margin-top: 8px; font-family: var(--f-display); font-size: 40px; line-height: 1; font-weight: 560; letter-spacing: -.02em; overflow-wrap: anywhere; font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.mine-name:focus { outline: none; }
.mine-line { margin-top: 8px; color: rgba(244, 233, 214, .82); font-size: 16px; }
.mine-stage { margin: 22px 0 6px; min-height: 64px; display: flex; align-items: center; }
.mine-note { margin-top: 12px; font-family: var(--f-display); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--cream-200); font-variation-settings: 'SOFT' 100; overflow-wrap: anywhere; }
.mine-actions, .confirm-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mine-actions .btn, .confirm-actions .btn { flex: 1 1 120px; }
.confirm { margin-top: 20px; padding: 16px; border-radius: 16px; background: rgba(251, 244, 232, .08); border: 1px solid rgba(251, 244, 232, .18); }
.confirm-t { font-weight: 600; font-size: 17px; }
.confirm-warn { margin-top: 8px; color: #ffc7d7; font-size: 15px; }
.confirm .confirm-actions { margin-top: 14px; }
.mine-msg { margin-top: 14px; color: #ffc7d7; font-weight: 600; font-size: 15px; }
.quiet-dark { margin-top: 16px; color: rgba(244, 233, 214, .6); }
.wait { padding: 20px; border-radius: 18px; background: var(--cream-50); border: 1px dashed var(--cream-400); color: var(--ink-soft); }
.closed-note { margin-top: 16px; padding: 28px 22px; border-radius: 22px; background: var(--cocoa-800); color: var(--cream-100); }
.closed-big { font-family: var(--f-display); font-style: italic; font-size: 64px; line-height: 1; margin-bottom: 12px; color: var(--mango); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }

/* ================================================================
   CHOCOLATE BAR (shared by board, preview, own card)
   ================================================================ */
.bar { --sq: 44px; display: flex; gap: 4px; padding: 5px; border-radius: 10px; background: #24130c; width: max-content; max-width: 100%; box-shadow: 0 10px 22px -12px rgba(22, 11, 7, .8), inset 0 1px 0 rgba(255, 214, 180, .08); }
.sq {
  position: relative;
  flex: none;
  width: var(--sq); height: var(--sq);
  border-radius: 6px;
  background: linear-gradient(145deg, #553323, #3b2117 70%);
  box-shadow: inset 2px 2px 0 rgba(255, 214, 180, .16), inset -3px -3px 0 rgba(10, 4, 2, .45);
  display: grid; place-items: center;
}
.sq::before {
  content: ""; position: absolute; inset: 17%;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 215, 185, .08), rgba(0, 0, 0, .18));
  box-shadow: 1.5px 1.5px 0 rgba(10, 4, 2, .4), -1px -1px 0 rgba(255, 214, 180, .12);
}
.sq > span {
  position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 650; font-size: calc(var(--sq) * .44); line-height: 1;
  font-variation-settings: 'opsz' 48, 'SOFT' 100;
}
.sq.drv { background: linear-gradient(145deg, #fff6e6, #ead6b6 75%); box-shadow: inset 2px 2px 0 #fff, inset -3px -3px 0 rgba(120, 80, 40, .3); }
.sq.drv::before { background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(150, 100, 50, .08)); box-shadow: 1.5px 1.5px 0 rgba(120, 80, 40, .22), -1px -1px 0 #fff; }
.sq.drv > span { color: var(--cocoa-800); }
.sq.drv::after { content: ""; position: absolute; right: 9%; bottom: 9%; width: 16%; height: 16%; border-radius: 50%; border: 1.5px solid rgba(42, 23, 16, .5); }
.sq.pax { background: linear-gradient(145deg, var(--fill-hi, #f05686), var(--fill, #e2366b) 70%); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .28), inset -3px -3px 0 rgba(0, 0, 0, .25); }
.sq.pax::before { background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .1)); box-shadow: 1.5px 1.5px 0 rgba(0, 0, 0, .18), -1px -1px 0 rgba(255, 255, 255, .22); }
.sq.pax > span { color: var(--fill-ink, #fff); }
.sq.free > span { width: 22%; height: 22%; border-radius: 50%; border: 1.5px dashed rgba(255, 214, 180, .28); }
.sq.over { outline: 2px dashed var(--rasp); outline-offset: 2px; transform: rotate(6deg) translateY(4px); }
.sq.res { background: transparent; box-shadow: none; border: 2px dashed var(--rasp-deep); }
.sq.res::before { display: none; }
.sq.res > span { color: var(--rasp-deep); }
.sq.loose { background: linear-gradient(145deg, #8f6650, #6b4331 70%); }
.sq.loose > span { color: var(--cream-100); }
.sq.me { outline: 2.5px solid var(--mango); outline-offset: 2px; }

.w-rasp { --wrap: var(--rasp); --wrap-deep: var(--rasp-deep); --wrap-ink: #fff; --fill: #e2366b; --fill-hi: #f05686; --fill-ink: #fff; }
.w-lagoon { --wrap: var(--lagoon); --wrap-deep: var(--lagoon-deep); --wrap-ink: #fff; --fill: #11998e; --fill-hi: #27b6aa; --fill-ink: #fff; }
.w-mango { --wrap: var(--mango); --wrap-deep: var(--mango-deep); --wrap-ink: var(--cocoa-800); --fill: #f7a823; --fill-hi: #ffc04d; --fill-ink: #2a1710; }

.bar-preview { --sq: 38px; }

/* snap moment */
.snap-in { animation: snapIn .9s var(--ease-out) both; }
@keyframes snapIn {
  0% { transform: translate(-28px, -70px) rotate(-24deg) scale(1.2); opacity: 0; }
  45% { transform: translate(0, -6px) rotate(3deg) scale(1.08); opacity: 1; }
  62% { transform: translate(0, 2px) scaleY(.86) scaleX(1.08); }
  78% { transform: translate(0, -2px) scaleY(1.04) scaleX(.98); }
  100% { transform: none; }
}
.bar.jolt { animation: jolt .5s var(--ease-out) .5s; }
@keyframes jolt { 30% { transform: translateY(3px) rotate(-.4deg); } 60% { transform: translateY(-1px); } }
.grow-in > .sq { animation: growIn .55s var(--ease-snap) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
@keyframes growIn { from { transform: scale(.2) translateY(14px); opacity: 0; } }
.tumble-in { animation: tumble 1s var(--ease-out) both; }
@keyframes tumble {
  0% { transform: translate(60px, -60px) rotate(120deg); opacity: 0; }
  55% { transform: translate(-4px, 2px) rotate(-14deg); opacity: 1; }
  75% { transform: translate(2px, 0) rotate(-4deg); }
  100% { transform: rotate(var(--rot, -6deg)); }
}
.crumb { position: absolute; width: 5px; height: 5px; border-radius: 1.5px; background: #4a2c1f; pointer-events: none; z-index: 3; animation: crumb .7s var(--ease-out) forwards; }
@keyframes crumb { to { transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); opacity: 0; } }
.foil { position: relative; overflow: hidden; }
.foil::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 35%, rgba(255, 245, 225, .5) 50%, transparent 65%); transform: translateX(-120%); animation: foil 1.1s var(--ease-out) .75s forwards; }
@keyframes foil { to { transform: translateX(120%); } }

/* ================================================================
   BOARD
   ================================================================ */
.balance {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  padding: 22px 20px;
  border-radius: 22px;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  overflow: hidden;
  margin-bottom: 28px;
}
.balance::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--bal, var(--cream-400)); }
.balance[data-state="surplus"], .balance[data-state="exact"] { --bal: var(--lagoon); --bal-ink: var(--lagoon-deep); }
.balance[data-state="short"], .balance[data-state="nobody"], .balance[data-state="empty"] { --bal: var(--rasp); --bal-ink: var(--rasp-deep); }
.bal-num {
  display: block;
  font-family: var(--f-display);
  font-size: 92px; line-height: .85; font-weight: 600;
  letter-spacing: -.05em;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--bal-ink, var(--ink));
  min-width: 1ch;
}
.bal-num.tick { animation: tick .6s var(--ease-snap); }
@keyframes tick { 0% { transform: translateY(-18px); opacity: 0; } }
.bal-head { font-family: var(--f-display); font-size: 24px; line-height: 1.1; font-weight: 560; letter-spacing: -.01em; font-variation-settings: 'opsz' 48, 'SOFT' 100; }
.bal-sub { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.bal-sum { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--cream-400); font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bal-sum:empty { display: none; }
.bal-res { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; color: var(--rasp-deep); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.bal-res::before { content: "U"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 2px dashed currentColor; font-family: var(--f-display); font-weight: 650; font-size: 14px; }

.board-state:empty { display: none; }
.board-state { margin-bottom: 24px; }
.empty-card { padding: 28px 22px; border-radius: 22px; border: 1.5px dashed var(--cream-400); text-align: left; background: rgba(255, 250, 242, .6); }
.empty-card .bar { margin-bottom: 18px; }
.empty-t { font-family: var(--f-display); font-size: 26px; line-height: 1.1; font-weight: 560; font-variation-settings: 'opsz' 48, 'SOFT' 100; }
.empty-s { margin-top: 6px; color: var(--ink-soft); }
.empty-card .btn { margin-top: 18px; }
.err-card { padding: 22px; border-radius: 22px; background: #fde7ee; color: #6d1031; border: 1px solid rgba(196, 31, 85, .25); }
.err-card .btn { margin-top: 14px; }
.skel { display: grid; gap: 14px; }
.skel-car { height: 132px; border-radius: 22px; background: linear-gradient(100deg, var(--cream-300) 30%, var(--cream-100) 50%, var(--cream-300) 70%) 0 0 / 300% 100%; animation: skel 1.6s linear infinite; }
.skel-car:nth-child(2) { height: 108px; opacity: .7; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.rm .skel-car { animation: none; }

.cars { display: grid; gap: 18px; }
.car {
  container-type: inline-size;
  position: relative;
  border-radius: 22px;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(42, 23, 16, .04), 0 22px 40px -32px rgba(42, 23, 16, .55);
}
.car-wrap {
  position: relative;
  padding: 18px 18px 46px;
  background-color: var(--wrap);
  color: var(--wrap-ink);
  overflow: hidden;
}
.car-wrap::before { content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.w-rasp .car-wrap::before { background: repeating-linear-gradient(-28deg, rgba(42, 23, 16, .1) 0 3px, transparent 3px 11px); }
.w-lagoon .car-wrap::before { background: radial-gradient(circle at 3.5px 3.5px, rgba(251, 244, 232, .32) 2px, transparent 2.5px) 0 0 / 14px 14px, radial-gradient(circle at 10.5px 10.5px, rgba(251, 244, 232, .32) 2px, transparent 2.5px) 0 0 / 14px 14px; }
.w-mango .car-wrap::before { background: conic-gradient(rgba(42, 23, 16, .09) 25%, transparent 0 50%, rgba(42, 23, 16, .09) 0 75%, transparent 0) 0 0 / 16px 16px; }
.car-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, var(--cream-50) 50%) 0 0 / 16px 10px repeat-x,
    linear-gradient(-135deg, transparent 50%, var(--cream-50) 50%) 0 0 / 16px 10px repeat-x;
}
.car-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.car-name { font-family: var(--f-display); font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.car-desc { position: relative; margin-top: 6px; font-size: 15px; opacity: .88; overflow-wrap: anywhere; }
.car-tag { flex: none; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(251, 244, 232, .92); color: var(--cocoa-800); white-space: nowrap; }
.car-tag.full { background: var(--cocoa-800); color: var(--cream-100); }
.car-tag.over { background: var(--cocoa-800); color: #ffb3c8; }
.car-bar { position: relative; z-index: 1; margin: -36px 14px 0; }
.car-bar .bar { --sq: min(52px, calc((100cqw - 28px - 10px - 7 * 4px) / 8)); }
.car-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.car-meta { font-size: 14px; color: var(--ink-soft); }
.pax-list { display: grid; gap: 8px; }
.pli { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.pax-dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 650; font-size: 13px; background: var(--fill); color: var(--fill-ink); margin-top: 1px; }
.pax-dot.drv-dot { background: var(--cream-300); color: var(--cocoa-800); }
.pax-dot.over-dot { background: transparent; color: var(--rasp-deep); border: 2px dashed var(--rasp-deep); }
.pax-name { font-weight: 600; overflow-wrap: anywhere; }
.pax-role { font-size: 13px; color: var(--ink-mute); margin-left: 6px; font-weight: 400; }
.you { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--mango); color: var(--cocoa-800); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.q { display: block; margin-top: 2px; font-family: var(--f-display); font-style: italic; font-size: 16px; line-height: 1.35; color: var(--ink); font-variation-settings: 'SOFT' 100; overflow-wrap: anywhere; }
.q::before { content: "\201E"; }
.q::after { content: "\201C"; }
.car.is-mine { box-shadow: 0 0 0 3px var(--mango), 0 22px 40px -28px rgba(42, 23, 16, .6); }

.tray-wrap, .unmatched-wrap { margin-top: 40px; }
.tray { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.tray li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: var(--cream-50); border: 1px solid var(--cream-300); }
.tray .sq { --sq: 40px; transform: rotate(var(--rot, -6deg)); }
.tray li.res-item { background: transparent; border: 1.5px dashed rgba(196, 31, 85, .45); }
.tray-name { font-weight: 600; overflow-wrap: anywhere; display: block; }
.tray-sub { font-size: 13px; color: var(--ink-mute); display: block; }
.tray li.is-mine { box-shadow: 0 0 0 3px var(--mango); }
.unmatched { margin-top: 16px; display: grid; gap: 10px; }
.unmatched li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--cream-400); background: rgba(255, 250, 242, .55); }
.unmatched li.is-mine { box-shadow: 0 0 0 3px var(--mango); }
.um-to { display: block; font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.um-flag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rasp-deep); }
.stale { margin-top: 22px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stale button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--cocoa-800); color: var(--cream-100); font-weight: 600; cursor: pointer; }

/* ================================================================
   TRIP
   ================================================================ */
.sec-trip { padding-top: 72px; padding-bottom: 72px; }
.trip-grid { display: grid; gap: 22px; }
.addr { font-style: normal; display: grid; gap: 2px; font-size: 19px; padding: 22px; border-radius: 22px; background: var(--cocoa-800); color: var(--cream-100); position: relative; overflow: hidden; }
.addr::after { content: ""; position: absolute; right: -24px; bottom: -24px; width: 120px; height: 120px; border-radius: 16px; transform: rotate(-12deg); background: radial-gradient(circle at 3.5px 3.5px, rgba(251, 244, 232, .35) 2px, transparent 2.5px) 0 0 / 12px 12px, var(--lagoon); opacity: .9; }
.addr-name { font-family: var(--f-display); font-size: 26px; line-height: 1.1; font-weight: 560; margin-bottom: 8px; color: var(--mango); font-variation-settings: 'opsz' 72, 'SOFT' 100; max-width: 14ch; }
.trip-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trip-facts div { padding: 18px; border-radius: 20px; background: var(--cream-50); border: 1px solid var(--cream-300); }
.trip-facts dt, .trip-meet dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.trip-facts dd { margin-top: 6px; font-size: 18px; }
.trip-facts .big { font-family: var(--f-display); font-size: 52px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.trip-meet { display: grid; gap: 12px; padding: 18px; border-radius: 20px; border: 1.5px dashed var(--cream-400); }
.trip-meet dd { margin-top: 4px; font-size: 17px; overflow-wrap: anywhere; }
.trip-meet dd.tbd { color: var(--ink-mute); font-style: italic; font-family: var(--f-display); font-variation-settings: 'SOFT' 100; }
.trip-links { display: grid; gap: 10px; }

/* ================================================================
   FOOTER, TOAST
   ================================================================ */
.foot { background: var(--cocoa-900); color: rgba(244, 233, 214, .7); padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom)); font-size: 14px; display: grid; gap: 10px; justify-items: start; --focus: var(--mango); }
.foot a { color: var(--cream-200); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot-bar { display: flex; gap: 3px; margin-bottom: 10px; }
.foot-bar i { width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(145deg, #553323, #3b2117); box-shadow: inset 1px 1px 0 rgba(255, 214, 180, .15), inset -1.5px -1.5px 0 rgba(0, 0, 0, .4); }
.foot-bar i:first-child { background: var(--cream-300); }
.foot-bar i:nth-child(3) { background: var(--rasp); }
.foot-bar i:nth-child(4) { background: var(--lagoon); }
.foot-bar i:nth-child(6) { background: var(--mango); }

.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 0);
  padding: 12px 18px; border-radius: 999px;
  background: var(--cocoa-900); color: var(--cream-100);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
  animation: toastIn .45s var(--ease-out);
}
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ================================================================
   LAYOUT: wider screens
   ================================================================ */
@media (min-width: 560px) {
  :root { --gutter: 32px; }
  .choice-grid { grid-template-columns: 1fr; }
  .seat-row { grid-template-columns: repeat(8, 1fr); }
  .trip-links { grid-template-columns: auto auto; justify-content: start; }
  .land { height: 220px; }
}
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .hero { min-height: min(100vh, 980px); display: flex; flex-direction: column; }
  .hero-inner { flex: 1; width: 100%; display: grid; grid-template-columns: 1fr minmax(300px, 380px); grid-template-rows: auto 1fr auto; column-gap: 48px; }
  .topbar { grid-column: 1 / -1; }
  .kicker { grid-column: 1; margin-top: 8vh; }
  .title { grid-column: 1; grid-row: 3; margin-top: 10px; font-size: clamp(110px, 11.6vw, 200px); }
  .kicker { grid-row: 2; align-self: end; }
  .facts { grid-column: 2; grid-row: 3; align-self: end; margin-bottom: 14px; }
  .band { width: 100%; }
  .band-label { grid-template-columns: auto 1fr; align-items: end; gap: 40px; padding-top: 30px; padding-bottom: 18px; }
  .meet { max-width: 30ch; padding-bottom: 10px; }
  .cd-n { font-size: 96px; }
  .cd-w { font-size: 30px; }
  .land { height: 300px; margin-top: 0; }
  .split { display: grid; grid-template-columns: minmax(380px, 5fr) 7fr; gap: 0 64px; padding: 0 var(--gutter); }
  .split .sec { padding-left: 0; padding-right: 0; margin: 0; max-width: none; }
  .sec { padding-top: 96px; }
  .sec-form > * { max-width: 520px; }
  .sec-form { position: relative; }
  .bal-num { font-size: 132px; }
  .balance { grid-template-columns: auto 1fr; }
  .bal-head { font-size: 30px; }
  .balance { padding: 28px 30px; }
  .cars { grid-template-columns: 1fr; }
  .sec-trip { padding-left: var(--gutter); padding-right: var(--gutter); }
  .trip-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: stretch; }
  .trip-facts { grid-template-columns: 1fr; }
  .trip-links { grid-column: 1 / -1; }
  .foot { padding-left: var(--gutter); padding-right: var(--gutter); grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot-bar { margin: 0; }
}
@media (min-width: 1200px) {
  .cars { grid-template-columns: 1fr 1fr; }
  .car-name { font-size: 30px; }
}


/* ================================================================
   MAPS (Leaflet, lazy) + ROUTES
   ================================================================ */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.pick-state { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pick-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px dashed var(--ink-mute); }
.pick-state.on::before { border: 0; background: var(--mango); box-shadow: 0 0 0 3px rgba(247, 168, 35, .3); }
.pick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-mini {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(42, 23, 16, .28);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: box-shadow .2s, background .2s;
}
.btn-mini:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-mini[disabled] { opacity: .55; cursor: progress; }
.btn-mini.solid { background: var(--cocoa-800); color: var(--cream-100); box-shadow: none; }
.btn-mini.solid:hover { background: var(--cocoa-950); }
.privacy { font-size: 13px; color: var(--ink-mute); display: flex; gap: 8px; }
.privacy::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 3px; background: repeating-linear-gradient(-45deg, var(--ink-mute) 0 2px, transparent 2px 4px); opacity: .7; }

.map-box { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--cream-300); background: #efe4cf; isolation: isolate; }
.map { height: 250px; width: 100%; background: #efe4cf; }
.map-board .map { height: 400px; }
.map-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-soft); font-size: 15px; z-index: 2; background: repeating-linear-gradient(-45deg, rgba(42, 23, 16, .03) 0 10px, transparent 10px 20px), #efe4cf; }
.map-msg.err { color: var(--rasp-deep); font-weight: 600; }
.map-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1002; padding: 10px 16px; border-radius: 999px; background: rgba(31, 17, 11, .86); color: var(--cream-100); font-size: 14px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.map-hint.show { opacity: 1; }
.map-fs { position: absolute; left: 10px; bottom: 10px; z-index: 1001; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--cream-50); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px -8px rgba(42, 23, 16, .6); cursor: pointer; }
.map-fs:hover { background: #fff; }
.map-box.full { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; }
.map-box.full .map { height: 100%; }
.map-box.full .map-fs { bottom: max(24px, env(safe-area-inset-bottom)); left: 12px; background: var(--cocoa-800); color: var(--cream-100); }
body.map-open { overflow: hidden; }
.map .leaflet-tile-pane { filter: sepia(.32) saturate(.8) hue-rotate(-6deg) brightness(1.02) contrast(.96); }
.map.leaflet-container { font-family: var(--f-ui); background: #efe4cf; }
.map .leaflet-control-attribution { font-size: 11px; background: rgba(251, 244, 232, .88); color: var(--ink-soft); }
.map .leaflet-control-attribution a { color: var(--ink); }
.map .leaflet-bar { border: 0; box-shadow: 0 6px 16px -8px rgba(42, 23, 16, .6); border-radius: 12px; overflow: hidden; }
.map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 20px; color: var(--ink); background: var(--cream-50); border-bottom-color: var(--cream-300); }
.map .leaflet-bar a:hover { background: #fff; }
.map .leaflet-container a.leaflet-popup-close-button { width: 44px; height: 44px; }
.map:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.mk-host { background: none; border: 0; }
.mk { position: relative; display: grid; place-items: center; width: 30px; height: 30px; font: 650 13px/1 var(--f-display); font-variation-settings: 'SOFT' 100; color: #fff; }
.mk-drv { border-radius: 7px; background: var(--wrap, #2a1710); color: var(--wrap-ink, #fff); border: 2.5px solid var(--cream-50); box-shadow: 0 4px 10px -3px rgba(31, 17, 11, .6); }
.mk-pax { border-radius: 50%; background: var(--wrap, #2a1710); color: var(--wrap-ink, #fff); border: 2.5px solid var(--cream-50); box-shadow: 0 4px 10px -3px rgba(31, 17, 11, .6); width: 26px; height: 26px; font-size: 12px; }
.mk-wait { border-radius: 50%; background: var(--cream-50); color: var(--cocoa-800); border: 2.5px dashed var(--cocoa-800); width: 26px; height: 26px; font-size: 12px; box-shadow: 0 4px 10px -3px rgba(31, 17, 11, .5); }
.mk-dest { width: 36px; height: 36px; border-radius: 9px; background: var(--cocoa-800); border: 2.5px solid var(--mango); box-shadow: 0 6px 14px -4px rgba(31, 17, 11, .7); }
.mk-dest svg { width: 18px; height: 18px; }
.mk-pick { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--mango); border: 2.5px solid var(--cocoa-800); box-shadow: 0 6px 14px -4px rgba(31, 17, 11, .7); }
.mk-pick span { transform: rotate(45deg); color: var(--cocoa-800); font-size: 14px; }
.mk.dim { opacity: .45; }
.leaflet-tooltip.tt { background: var(--cocoa-800); color: var(--cream-100); border: 0; border-radius: 999px; padding: 3px 9px; font: 600 12px/1.3 var(--f-ui); box-shadow: 0 4px 12px -4px rgba(31, 17, 11, .6); white-space: nowrap; }
.leaflet-tooltip.tt::before { border-top-color: var(--cocoa-800); }
.leaflet-tooltip.tt.tt-dest { background: var(--mango); color: var(--cocoa-800); }
.leaflet-tooltip.tt.tt-dest::before { border-top-color: var(--mango); }

.mapsec { margin-top: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 14px; font-size: 14px; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; flex: none; }
.lg-drv { border-radius: 4px; background: var(--rasp); border: 2px solid var(--cream-50); box-shadow: 0 0 0 1px rgba(42, 23, 16, .25); }
.lg-pax { border-radius: 50%; background: var(--lagoon); border: 2px solid var(--cream-50); box-shadow: 0 0 0 1px rgba(42, 23, 16, .25); }
.lg-wait { border-radius: 50%; border: 2px dashed var(--cocoa-800); background: var(--cream-50); }
.lg-dest { border-radius: 4px; background: var(--cocoa-800); border: 2px solid var(--mango); }
.map-note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

.route { margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--cream-400); display: grid; gap: 12px; }
.route-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.route-sum { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.route-sum b { font-family: var(--f-display); font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variation-settings: 'opsz' 96, 'SOFT' 100; }
.route-sum span { font-size: 14px; color: var(--ink-soft); }
.route-ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: stop; font-size: 15px; }
.route-ol li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; }
.route-ol .rn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 650 12px/1 var(--f-display); background: var(--cream-300); color: var(--ink); }
.route-ol .rn.s { border-radius: 7px; background: var(--wrap); color: var(--wrap-ink); }
.route-ol .rn.d { border-radius: 7px; background: var(--cocoa-800); color: var(--mango); }
.route-miss { font-size: 14px; color: var(--ink-mute); }
.route-err { font-size: 14px; color: var(--rasp-deep); font-weight: 600; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; }
.route-links a.btn-mini { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mine .route { border-top-color: rgba(251, 244, 232, .2); margin-top: 18px; }
.mine .route-sum span, .mine .route-miss { color: rgba(244, 233, 214, .7); }
.mine .route-ol .rn { background: rgba(251, 244, 232, .15); color: var(--cream-100); }
.mine .route-err { color: #ffc7d7; }
.mine .btn-mini { color: var(--cream-100); box-shadow: inset 0 0 0 1.5px rgba(244, 233, 214, .4); }
.mine .btn-mini.solid { background: var(--cream-200); color: var(--ink); box-shadow: none; }
@media (min-width: 900px) {
  .map-board .map { height: 520px; }
  .map-pick .map { height: 280px; }
}

/* motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
.rm .snap-in, .rm .tumble-in, .rm .grow-in > .sq, .rm .foil::after, .rm .bar.jolt { animation: none !important; }

/* once signed up, the short own-entry card follows the board instead of leaving an empty column */
@media (min-width: 900px) {
  .split:has(#mine:not([hidden])) .sec-form { position: sticky; top: 32px; align-self: start; }
}
.bal-sum { display: grid; gap: 4px; }
.bal-line b { font-weight: 600; color: var(--ink); }
.bal-line.over { color: var(--rasp-deep); }

/* compact form: three choices in one row, map folded away */
.choice-grid, .choice-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
.choice { grid-template-columns: 1fr; grid-template-rows: auto auto; row-gap: 8px; min-height: 0; padding: 12px 8px; text-align: center; justify-items: center; }
.choice-art { grid-row: auto; justify-content: center; min-height: 18px; }
.choice-d { display: none; }
.choice-t { font-size: 17px; line-height: 1.15; }
.pick { border: 1.5px solid rgba(42, 23, 16, .14); border-radius: 16px; background: var(--cream-50); padding: 0; }
.pick[open] { padding-bottom: 14px; }
.pick > :not(summary) { margin-left: 14px; margin-right: 14px; }
.pick-sum { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; }
.pick-sum::-webkit-details-marker { display: none; }
.pick-sum .label { margin: 0; }
.pick-sum-act { font-size: 14px; font-weight: 600; color: var(--rasp-deep); white-space: nowrap; }
.pick-sum-act::after { content: " +"; }
.pick[open] .pick-sum-act::after { content: " −"; }
.pick-sum:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 14px; }
