:root {
  --bg: #0a0b09;
  --bg-2: #111310;
  --surface: #161914;
  --surface-2: #1d211b;
  --line: #2b3027;
  --line-2: #3a4035;
  --text: #f2f0e6;
  --muted: #8f9486;
  --dim: #5d6257;
  --shay: #d4ff3a;
  --naama: #ff4f8b;
  --both: #f2f0e6;
  --warn: #ffb02e;
  --ok: #5dffb0;
  --display: 'Karantina', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --topbar: 58px;
  --tabs: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--shay); outline-offset: 2px; }
bdi.t { direction: ltr; unicode-bidi: isolate; font-family: var(--mono); font-size: .92em; }

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow { font: 700 11px/1.2 var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 0; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 22px; border: 2px solid var(--text); background: transparent;
  font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn--primary { background: var(--shay); color: #0a0b09; border-color: var(--shay); box-shadow: 5px 5px 0 var(--naama); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--naama); }
.btn--ghost { border-color: var(--line-2); color: var(--muted); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font: 700 11px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg-2); border: 2px solid var(--line-2); border-radius: 0;
  font-size: 17px; transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--shay); }
.form-error { min-height: 1.4em; margin: 0; color: var(--naama); font-weight: 500; }

/* ---------- auth ---------- */
.auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); overflow: auto; }
.auth__bg { position: fixed; inset: 0; display: grid; align-content: center; overflow: hidden; pointer-events: none; }
.auth__bg span {
  font: 700 clamp(160px, 48vw, 420px)/.78 var(--display); white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px var(--line-2); animation: drift 26s linear infinite; text-align: center;
}
.auth__bg span:nth-child(2) { -webkit-text-stroke-color: color-mix(in srgb, var(--shay) 30%, transparent); animation-direction: reverse; }
.auth__bg span:nth-child(3) { -webkit-text-stroke-color: color-mix(in srgb, var(--naama) 26%, transparent); }
@keyframes drift { from { transform: translateX(-12%); } 50% { transform: translateX(12%); } to { transform: translateX(-12%); } }
.auth__card {
  position: relative; width: min(420px, 100%); padding: 28px 22px 22px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 2px solid var(--text); box-shadow: 10px 10px 0 var(--shay); backdrop-filter: blur(6px);
}
.auth__title { margin: 10px 0 4px; font: 700 96px/.8 var(--display); letter-spacing: -.01em; }
.auth__title em { font-style: normal; color: var(--shay); }
.auth__sub { margin: 10px 0 24px; color: var(--muted); }
.pw__intro { margin: 0; color: var(--muted); }
.pw__intro b { color: var(--text); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who__opt { position: relative; }
.who__opt input { position: absolute; opacity: 0; inset: 0; }
.who__opt span {
  display: grid; place-items: center; height: 76px; border: 2px solid var(--line-2); font: 700 46px/1 var(--display);
  color: var(--muted); transition: all .15s; cursor: pointer;
}
.who__opt--shay input:checked + span { background: var(--shay); border-color: var(--shay); color: #0a0b09; }
.who__opt--naama input:checked + span { background: var(--naama); border-color: var(--naama); color: #0a0b09; }
.who__opt input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* ---------- shell ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-rows: calc(var(--topbar) + var(--safe-t)) 1fr calc(var(--tabs) + var(--safe-b)); }
.topbar {
  position: relative; z-index: 1000; display: flex; align-items: center; gap: 10px; padding: var(--safe-t) 12px 0 8px;
  background: var(--bg); border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; background: var(--shay); color: #0a0b09;
  font: 700 34px/1 var(--display); box-shadow: 3px 3px 0 var(--naama); padding-top: 4px;
}
.brand__txt { font: 700 30px/1 var(--display); letter-spacing: .01em; }
.brand__txt b { color: var(--shay); margin-inline-start: 4px; }
.topbar__score { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; font: 700 12px/1 var(--mono); }
.topbar__score .pill { padding: 6px 8px; border: 1px solid var(--line-2); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 10px; min-width: 200px; display: grid; background: var(--surface);
  border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--shay); z-index: 1200;
}
.menu__who { margin: 0; padding: 14px 16px 10px; font: 700 12px/1 var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); }
.menu button { padding: 14px 16px; text-align: start; border: 0; background: none; font-weight: 500; }
.menu button:hover { background: var(--surface-2); }

.views { position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; visibility: hidden; }
.view.is-active { visibility: visible; }
.view--map { overflow: hidden; }

.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: var(--safe-b); background: var(--bg);
  border-top: 2px solid var(--line); z-index: 1000;
}
.tabs a {
  display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--dim);
  font: 700 12px/1 var(--body); position: relative; transition: color .15s;
}
.tabs a.is-active { color: var(--text); }
.tabs a.is-active::before { content: ''; position: absolute; top: -2px; inset-inline: 22%; height: 3px; background: var(--shay); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 14px; border: 2px solid var(--line-2); background: var(--bg);
  font: 700 14px/1 var(--body); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: all .12s;
}
.chip b { font: 700 11px/1 var(--mono); color: var(--muted); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-on b { color: var(--bg); opacity: .6; }
.chips--sub .chip { min-height: 32px; font-size: 13px; border-width: 1px; }
.chips--sub .chip.is-on { background: transparent; color: var(--shay); border-color: var(--shay); }
.chips--float { position: absolute; top: 10px; inset-inline: 10px; z-index: 500; }
.chips--float .chip { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.chips--float .chip.is-on { background: var(--text); }

/* ---------- map ---------- */
.map { position: absolute; inset: 0; background: #0d0f0c; }
.leaflet-container { font-family: var(--body); background: #0d0f0c; }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(1.15) saturate(.35); }
.leaflet-control-attribution { background: rgba(10,11,9,.7) !important; color: var(--dim) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-control-zoom { border: 2px solid var(--line-2) !important; border-radius: 0 !important; margin-bottom: 78px !important; }
.leaflet-control-zoom a { background: var(--bg) !important; color: var(--text) !important; border-radius: 0 !important; border-color: var(--line) !important; width: 40px !important; height: 40px !important; line-height: 40px !important; }
.pin { display: grid; place-items: center; transition: transform .15s; }
.pin:hover { transform: scale(1.15); z-index: 1; }
.pin--other i { width: 8px; height: 8px; background: var(--dim); border: 1px solid #000; }
.pin--matmon i { width: 14px; height: 14px; background: var(--bg); border: 3px solid var(--text); transform: rotate(45deg); }
.pin--wish i { width: 16px; height: 16px; background: var(--naama); border: 2px solid #000; transform: rotate(45deg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--naama) 35%, transparent); }
.pin--done b {
  display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 6px; background: var(--shay); color: #0a0b09;
  font: 700 14px/1 var(--mono); border: 2px solid #000; box-shadow: 3px 3px 0 var(--naama);
}
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: #3aa0ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(58,160,255,.25); }
.fab {
  position: absolute; bottom: 16px; left: 12px; z-index: 500; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--shay);
}
.legend {
  position: absolute; bottom: 16px; right: 12px; z-index: 500; display: grid; gap: 5px; padding: 9px 11px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--line-2); font: 500 11px/1 var(--body); color: var(--muted);
}
.legend span { display: flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 10px; height: 10px; }
.lg--done { background: var(--shay); }
.lg--wish { background: var(--naama); transform: rotate(45deg); }
.lg--matmon { border: 2px solid var(--text); transform: rotate(45deg); }
.lg--other { width: 6px; height: 6px; background: var(--dim); margin-inline: 2px; }
.peek {
  position: absolute; z-index: 600; inset-inline: 10px; bottom: 12px; display: grid; grid-template-columns: 92px 1fr; min-height: 92px;
  background: var(--bg); border: 2px solid var(--text); box-shadow: 6px 6px 0 var(--shay); text-decoration: none;
  animation: up .22s cubic-bezier(.2,.9,.3,1.2);
}
.peek img, .peek .noimg { width: 92px; height: 100%; object-fit: cover; }
.peek__body { padding: 10px 12px; display: grid; align-content: center; gap: 4px; min-width: 0; }
.peek__name { font: 700 28px/.9 var(--display); }
.peek__meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek__x { position: absolute; top: -14px; left: -10px; width: 30px; height: 30px; border: 2px solid var(--text); background: var(--bg); display: grid; place-items: center; font-weight: 700; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- list ---------- */
.listhead { position: sticky; top: 0; z-index: 5; display: grid; gap: 10px; padding: 12px 12px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border: 2px solid var(--line-2); background: var(--bg-2); color: var(--muted); }
.search:focus-within { border-color: var(--shay); color: var(--shay); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; color: var(--text); }
.sortbar { display: flex; justify-content: space-between; align-items: center; }
.sortbar select { background: var(--bg); border: 1px solid var(--line-2); padding: 6px 10px; font-size: 14px; border-radius: 0; }
.cards { list-style: none; margin: 0; padding: 14px 12px 40px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; display: block; text-decoration: none; border: 2px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:active { transform: scale(.985); }
.card:hover { border-color: var(--line-2); }
.card__img { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 2%, transparent 55%); }
.card__tags { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 7px; font: 700 10.5px/1 var(--mono); letter-spacing: .06em; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); }
.tag--m { background: var(--shay); color: #0a0b09; border-color: var(--shay); }
.tag--w { background: var(--naama); color: #0a0b09; border-color: var(--naama); }
.tag--open { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.tag--closed { color: var(--muted); }
.card__body { position: relative; padding: 0 14px 14px; margin-top: -34px; z-index: 1; }
.card__name { margin: 0; font: 700 36px/.88 var(--display); }
.card__meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card__short { margin: 8px 0 0; font-size: 14px; color: #c9c7bd; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__score { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; font: 700 64px/1 var(--display); color: var(--line-2); background: repeating-linear-gradient(-45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 700 56px/1 var(--display); color: var(--text); margin-bottom: 8px; }

/* score badge */
.score { display: inline-flex; align-items: stretch; border: 2px solid #000; box-shadow: 3px 3px 0 #000; font: 700 13px/1 var(--mono); }
.score span { display: grid; place-items: center; padding: 6px 7px; }
.score .s-shay { background: var(--shay); color: #0a0b09; }
.score .s-naama { background: var(--naama); color: #0a0b09; }
.score .s-avg { background: var(--text); color: #0a0b09; font-size: 16px; padding: 6px 9px; }
.score .s-none { background: var(--bg); color: var(--dim); }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 2000; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel {
  position: absolute; inset: 0; overflow-y: auto; background: var(--bg); outline: none; overscroll-behavior: contain;
  animation: slide .28s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(40px + var(--safe-b));
}
@keyframes slide { from { transform: translateY(40px); opacity: 0; } }
.hero { position: relative; aspect-ratio: 4 / 3; max-height: 52vh; width: 100%; overflow: hidden; background: var(--surface-2); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(10,11,9,.35) 45%, rgba(10,11,9,.5) 100%); }
.hero__bar { position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); inset-inline: 12px; display: flex; justify-content: space-between; }
.sqbtn { width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--text); font-size: 20px; }
.sqbtn.is-on { background: var(--naama); border-color: var(--naama); color: #0a0b09; }
.site-head { position: relative; z-index: 2; margin-top: -92px; padding: 0 16px; }
.site-head .eyebrow { color: var(--shay); }
.site-name { margin: 6px 0 8px; font: 700 clamp(54px, 15vw, 84px)/.82 var(--display); text-wrap: balance; }
.site-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 16px 6px; }
.act { display: grid; place-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line-2); text-decoration: none; font: 500 12px/1 var(--body); color: var(--muted); background: var(--bg-2); }
.act svg { color: var(--text); }
.sec { padding: 22px 16px 4px; }
.sec__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 700 38px/.9 var(--display); }
.sec__title small { font: 700 11px/1 var(--mono); color: var(--dim); letter-spacing: .1em; }
.verdict { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border: 2px solid var(--text); }
.verdict > div { padding: 14px 12px; display: grid; gap: 6px; align-content: start; }
.verdict > div + div { border-inline-start: 2px solid var(--text); }
.verdict .v-label { font: 700 11px/1 var(--mono); letter-spacing: .08em; }
.verdict .v-num { font: 700 60px/.8 var(--display); }
.verdict .v-avg { background: var(--text); color: var(--bg); }
.verdict .v-avg .v-num { font-size: 76px; }
.verdict .v-shay .v-label, .verdict .v-shay .v-num { color: var(--shay); }
.verdict .v-naama .v-label, .verdict .v-naama .v-num { color: var(--naama); }
.verdict .v-num.none { color: var(--dim) !important; }
.diff { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.reviews { display: grid; gap: 10px; margin-top: 14px; }
.review { padding: 14px; border: 1px solid var(--line-2); border-inline-start: 4px solid var(--c); background: var(--bg-2); }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.review__who { font: 700 26px/1 var(--display); color: var(--c); }
.review__date { font: 500 11px/1 var(--mono); color: var(--dim); }
.review p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review--mine .review__edit { margin-top: 10px; }

.rate { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; direction: ltr; }
.rate button {
  height: 48px; border: 2px solid var(--line-2); background: var(--bg-2); font: 700 16px/1 var(--mono); color: var(--muted);
  transition: background .1s, color .1s, transform .08s;
}
.rate button:active { transform: scale(.92); }
.rate button.is-on { background: var(--me); color: #0a0b09; border-color: var(--me); }
.rate button.is-sel { box-shadow: 0 0 0 2px var(--text) inset; }
.rate-label { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); color: var(--dim); margin-top: 6px; }
.rate-word { font: 700 34px/1 var(--display); color: var(--me); min-height: 34px; margin: 4px 0 10px; }
.myform { display: grid; gap: 14px; padding: 16px; border: 2px dashed var(--line-2); }
.myform .row { display: flex; gap: 10px; flex-wrap: wrap; }

.hours { display: grid; gap: 0; border: 1px solid var(--line-2); }
.hours__row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); }
.hours__row:first-child { border-top: 0; }
.hours__row span:first-child { color: var(--muted); }
.hours__now { padding: 12px; font-weight: 700; }
.hours__now.open { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.hours__now.closed { background: var(--surface); color: var(--muted); }
.notes { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: #c9c7bd; }
.notes li::before { content: '› '; color: var(--shay); font-weight: 700; }
.about p { margin: 0 0 12px; color: #d8d6cc; line-height: 1.7; }
.prices { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line-2); }
.prices > * { padding: 10px 12px; border-top: 1px solid var(--line); }
.prices > :nth-child(-n+2) { border-top: 0; }
.prices b { font-family: var(--mono); }
.matmon-note { margin: 8px 0 0; font-size: 13px; color: var(--shay); }
.source { display: block; margin: 26px 16px 0; font: 500 12px/1.5 var(--mono); color: var(--dim); }

/* ---------- leaderboard ---------- */
.ticker { overflow: hidden; border-bottom: 2px solid var(--line); background: var(--shay); color: #0a0b09; }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; font: 700 22px/1 var(--display); padding: 8px 0 6px; }
.ticker__track span { padding-inline: 18px; white-space: nowrap; }
.ticker__track span::after { content: '✦'; margin-inline-start: 36px; }
@keyframes tick { to { transform: translateX(50%); } }
.top { padding: 16px 12px 40px; max-width: 900px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; border: 2px solid var(--line-2); background: var(--surface); display: grid; gap: 4px; align-content: start; min-width: 0; }
.stat--big { grid-column: 1 / -1; border-color: var(--text); }
.stat__k { font: 700 11px/1.2 var(--mono); letter-spacing: .08em; color: var(--muted); }
.stat__v { font: 700 58px/.85 var(--display); }
.stat__v small { font-size: .45em; color: var(--muted); }
.stat__s { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.stat--shay .stat__v { color: var(--shay); }
.stat--naama .stat__v { color: var(--naama); }
.progress { height: 12px; margin-top: 8px; background: var(--bg); border: 1px solid var(--line-2); display: flex; }
.progress i { display: block; background: var(--shay); }
.board { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.board__h { display: flex; justify-content: space-between; align-items: end; margin-top: 30px; }
.board__h h2 { margin: 0; font: 700 52px/.85 var(--display); }
.row-l { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .15s; }
.row-l:hover { border-color: var(--line-2); }
.row-l__rank { font: 700 44px/.8 var(--display); color: var(--dim); text-align: center; }
.board li:nth-child(1) .row-l { border-color: var(--shay); }
.board li:nth-child(1) .row-l__rank { color: var(--shay); }
.board li:nth-child(2) .row-l__rank, .board li:nth-child(3) .row-l__rank { color: var(--text); }
.row-l__name { font: 700 26px/.95 var(--display); }
.row-l__bars { display: grid; gap: 4px; margin-top: 7px; }
.bar { display: grid; grid-template-columns: 1fr 26px; gap: 8px; align-items: center; font: 700 11px/1 var(--mono); }
.bar i { display: block; height: 7px; background: var(--line); position: relative; }
.bar i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--c); }
.row-l__avg { font: 700 46px/.8 var(--display); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 3000; left: 50%; bottom: calc(var(--tabs) + var(--safe-b) + 16px); transform: translate(-50%, 20px);
  padding: 12px 18px; background: var(--text); color: var(--bg); font-weight: 700; border: 2px solid #000; box-shadow: 4px 4px 0 var(--shay);
  opacity: 0; pointer-events: none; transition: all .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { box-shadow: 4px 4px 0 var(--naama); }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .sheet__scrim { background: rgba(0,0,0,.35); }
  .sheet__panel { inset: 0 0 0 auto; width: 520px; border-inline-start: 2px solid var(--text); box-shadow: -14px 0 0 rgba(212,255,58,.12); animation-name: slideside; }
  @keyframes slideside { from { transform: translateX(40px); opacity: 0; } }
  .hero { aspect-ratio: 16 / 10; }
  .peek { inset-inline: auto 16px; width: 420px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat--big { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 899px) { .leaflet-control-zoom { display: none; } }
.peek__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
