:root {
  --paper: var(--paper);
  --card: #ffffff;
  --ink: #2b2a26;
  --ink-2: #5d574c;
  --ink-3: #8a8274;
  --line: #e7dfd1;
  --accent: #c2410c;
  --accent-soft: #fdeee6;
  --open: #15803d;
  --closed: #9f1239;
  --tried: #15803d;
  --radius: 14px;
  --panel-w: 470px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Line icons from the sprite in index.html */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* rules for shapes inside the sprite must target the symbol, not the icon that uses it */
symbol .fill { fill: currentColor; stroke: none; }
symbol .tx { font: 700 11px var(--font); fill: currentColor; stroke: none; letter-spacing: -.5px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--solid); color: #fff7ea; }
.brand h1 { font-family: var(--display); font-size: 24px; margin: 0; letter-spacing: .2px; }
.brand p { margin: 2px 0 0; font-size: 13px; color: #d8cdb9; }
.btn-ghost { background: transparent; border: 1px solid #6b655a; color: #fff7ea; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.btn-ghost:hover { border-color: #fff7ea; }
.demo-banner { background: var(--banner); color: var(--banner-ink); font-size: 12.5px; padding: 5px 20px; border-bottom: 1px solid var(--banner-line); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.testbar { display: inline-flex; align-items: center; gap: 6px; }
.testbar select { font-size: 12.5px; padding: 2px 4px; border: 1px solid var(--banner-line); border-radius: 6px; background: var(--card); }

/* ---------- Layout ---------- */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr var(--panel-w); }
.map-wrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--paper); }

.map-controls { position: absolute; z-index: 500; top: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-btn, .start-select select { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; }
.map-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.map-btn span { color: var(--ink); }

/* Map style switcher: small swatches with a label under each */
.style-switch {
  position: absolute; z-index: 500; left: 12px; bottom: 24px;
  display: flex; gap: 6px; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.style-opt { border: 0; background: none; padding: 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-2); border-radius: 10px; }
.style-opt .sw { width: 44px; height: 32px; border-radius: 8px; border: 2px solid transparent; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.style-opt[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.style-opt[aria-checked="true"] .sw { border-color: var(--accent); }

/* ---------- Panel ---------- */
.panel { min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }

/* Dish passport */
.passport { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper)); }
.passport-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.passport h2 { font-family: var(--display); font-size: 20px; margin: 0; }
.passport-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.passport-head p strong { color: var(--tried); }
.progress { height: 6px; background: var(--line); border-radius: 99px; margin: 10px 0 12px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, #15803d); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }

.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; margin-top: 4px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 32px; height: 18px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--tried); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.dish-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 4px; }
.dish-tile {
  border: 0; background: none; cursor: pointer; padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; border-radius: 12px;
}
.dish-tile:hover .dish-ic { transform: translateY(-2px); }
.dish-ic {
  position: relative; width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--tile-base));
  border: 2px solid color-mix(in srgb, var(--c) 28%, var(--tile-base));
  transition: transform .15s, background .2s, border-color .2s;
  touch-action: pan-x pan-y;
}
.dish-ic .ic { width: 30px; height: 30px; }
.dish-name { font-size: 11.5px; line-height: 1.2; text-align: center; color: var(--ink); font-weight: 500; max-width: 80px; }
.dish-tile[aria-pressed="true"] .dish-ic { background: var(--c); color: #fff; border-color: var(--c); }
.dish-tile[aria-pressed="true"] .dish-name { font-weight: 700; }
.dish-tile:focus-visible { outline: 2px solid var(--accent); }
/* Tried: greyed icon with a green stamp */
.dish-tile.tried .dish-ic { filter: grayscale(1); opacity: .55; }
.dish-tile.tried[aria-pressed="true"] .dish-ic { filter: none; opacity: 1; }
.dish-tile.tried .dish-name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(21,128,61,.5); }
.stamp {
  position: absolute; right: -6px; top: -6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tried); color: #fff; display: none; place-items: center; border: 2px solid var(--card);
  filter: none;
}
.stamp .ic { width: 14px; height: 14px; stroke-width: 3; }
.dish-tile.tried .stamp { display: grid; }
.dish-tile.tried .dish-ic { filter: none; opacity: 1; background: var(--chip); border-color: var(--line); color: #a59f93; }
.dish-tile.just-stamped .stamp { animation: stamp .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* Icon filters */
.filters { padding: 12px 16px 4px; }
.filter-groups { display: flex; gap: 14px; flex-wrap: wrap; }
.fgroup { display: flex; flex-direction: column; gap: 5px; }
.fgroup-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.fgroup-tiles { display: flex; gap: 4px; }
.ftile {
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  width: 64px; padding: 7px 2px 6px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; line-height: 1.15; color: var(--ink-2); text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}
.ftile .ic { color: var(--fc, var(--ink-2)); }
.ftile:hover { border-color: var(--line-2); }
.ftile[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: #fff; font-weight: 600; }
.ftile[aria-pressed="true"] .ic { color: #fff; }
.ftile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.results-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 12px 16px 0; font-size: 13px; color: var(--ink-2); }
#result-count { font-weight: 600; color: var(--ink); }
.status-line { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.status-line strong { color: var(--ink-2); font-weight: 600; }
.meta-right { display: flex; align-items: center; gap: 10px; flex: none; }
.sort select { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 8px; font-size: 13px; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 10px 16px 16px; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: 0 4px 16px rgba(43,42,38,.08); }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(194,65,12,.15); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.is-tried .card-img img { filter: grayscale(.7); }

.card-img { position: relative; aspect-ratio: 16 / 7; background: var(--chip); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .dist { position: absolute; right: 10px; bottom: 10px; background: rgba(43,42,38,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.card-img .dish-chip {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--c); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 4px; border-radius: 999px;
}
.card-img .dish-chip .ic { width: 20px; height: 20px; background: rgba(255,255,255,.2); border-radius: 50%; padding: 2px; }
.card-img .tried-flag { position: absolute; left: 10px; top: 10px; background: var(--tried); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px 3px 5px; border-radius: 999px; display: inline-flex; align-items: center; gap: 3px; }
.card-img .tried-flag .ic { width: 14px; height: 14px; stroke-width: 3; }

.card-body { padding: 12px 14px 14px; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; align-items: center; }
.fact { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--ink-2); }
.fact .ic { width: 15px; height: 15px; }
.fact.diet { background: #14301f; color: #86efac; }
.fact.spice { background: #3a1a17; color: #fca5a5; }
.fact.spice.mild { background: var(--chip); color: var(--ink-2); }
.fact.cool { background: #16243a; color: #93c5fd; }

.card h3 { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 2px 0 2px; }
.where { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.open-state { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.open-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-state.is-open { color: var(--open); }
.open-state.is-closed { color: var(--closed); }
.open-state .hrs { color: var(--ink-3); font-weight: 400; }

.note { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.note .label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-bottom: 2px; }
.note.order { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.note.small { font-size: 13.5px; color: var(--ink-2); }
.note.small .label { color: var(--ink-3); }

.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions a, .actions button {
  flex: 1; text-align: center; text-decoration: none; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 9px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.actions a.primary { background: var(--solid); color: #fff; border-color: var(--solid); }
.actions a:hover, .actions button:hover { filter: brightness(.96); }
.btn-stamp { color: var(--tried) !important; border-color: #1f5132 !important; background: #14301f !important; }
.btn-stamp .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.btn-stamp.done { background: var(--tried) !important; color: #fff !important; border-color: var(--tried) !important; }

.empty { text-align: center; color: var(--ink-2); padding: 30px 10px; font-size: 14px; line-height: 1.5; }
.panel-foot { margin-top: auto; padding: 14px 16px 20px; font-size: 11.5px; color: var(--ink-3); }

/* ---------- Map markers ---------- */
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg);
  border: 2.5px solid var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .2s, opacity .2s;
}
.pin .ic { transform: rotate(45deg); color: #fff; width: 19px; height: 19px; stroke-width: 1.8; }
.pin.closed { filter: saturate(.2) brightness(1.15); }
.pin.tried { filter: grayscale(1); opacity: .6; }
.pin.active { transform: rotate(-45deg) scale(1.3); animation: bounce .7s ease 1; }
@keyframes bounce {
  0%, 60%, 100% { transform: rotate(-45deg) scale(1.3) translate(0,0); }
  30% { transform: rotate(-45deg) scale(1.3) translate(10px,-10px); }
  80% { transform: rotate(-45deg) scale(1.3) translate(4px,-4px); }
}
.you-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid var(--card); box-shadow: 0 0 0 6px rgba(37,99,235,.25); }

.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font); }
.pop h4 { margin: 0 0 2px; font-family: var(--display); font-size: 16px; }
.pop p { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); }
.pop .open-state { margin: 4px 0 6px; font-size: 12.5px; }
.pop a { color: var(--accent); font-weight: 600; font-size: 12.5px; text-decoration: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(440px, calc(100% - 32px)); background: var(--solid); color: #fff7ea;
  border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4;
  animation: rise .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast[hidden] { display: none; }
.toast .t-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--tried); display: grid; place-items: center; flex: none; }
.toast .t-ic .ic { color: #fff; stroke-width: 3; }
.toast strong { color: #fff; }
.toast button { margin-left: auto; flex: none; background: #fff7ea; color: var(--ink); border: 0; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- Guide dialog ---------- */
.guide { border: 0; border-radius: 18px; padding: 24px 26px; max-width: 560px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.guide::backdrop { background: rgba(20,18,15,.5); }
.guide h2 { font-family: var(--display); margin: 0 0 8px; }
.guide p { color: var(--ink-2); line-height: 1.5; margin-top: 0; }
.guide dt { font-weight: 600; margin-top: 12px; }
.guide dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; font-size: 14.5px; }
.guide .close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); }

/* ---------- Phone layout: map on top, list below ---------- */
@media (max-width: 820px) {
  .topbar { padding: 8px 16px; }
  .brand h1 { font-size: 20px; }
  .brand p { display: none; }
  .demo-banner { padding: 5px 16px; }
  .layout { grid-template-columns: 1fr; grid-template-rows: 38svh 1fr; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .map-controls { top: 8px; right: 8px; }
  .map-btn, .start-select select { padding: 6px 11px; font-size: 13px; }
  .style-switch { left: 8px; bottom: 40px; padding: 4px; gap: 2px; }
  .leaflet-control-attribution { font-size: 10px; }
  .style-opt .sw { width: 34px; height: 24px; }
  /* Dishes and filters scroll sideways instead of wrapping */
  .dish-grid { display: flex; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 4px 16px 2px; scrollbar-width: none; }
  .dish-tile { flex: 0 0 74px; }
  .filter-groups { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .dish-grid::-webkit-scrollbar, .filter-groups::-webkit-scrollbar { display: none; }
  .ftile { width: 60px; }
}

/* ---------- Artwork slot (rounded square) ----------
   Drop hand-drawn art into art/dishes/<slug>.png and it covers the line icon. */
.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.dish-ic .art { border-radius: 14px; }

/* ---------- Food plan ---------- */
.plan { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.plan h2 { font-family: var(--display); font-size: 20px; margin: 0 0 10px; }
.plan-strip { list-style: none; margin: 0 -16px; padding: 4px 16px 6px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.plan-strip::-webkit-scrollbar { display: none; }
.plan-slot { position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
/* the link between one meal and the next */
.plan-slot + .plan-slot::before {
  content: ""; position: absolute; top: 52px; right: calc(50% + 36px); width: calc(100% - 72px);
  border-top: 2.5px dashed var(--line-2);
}
.plan-slot + .plan-slot::after {
  content: ""; position: absolute; top: 47.5px; left: 5px; width: 0; height: 0;
  border: 5.5px solid transparent; border-left: 7px solid var(--line-2);
}
.slot-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-3); height: 14px; white-space: nowrap; }
.plan-slot.is-next .slot-label { color: var(--accent); }
.art-tile {
  position: relative; width: 70px; height: 70px; border-radius: 18px; cursor: grab;
  display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, var(--tile-base));
  border: 2px solid color-mix(in srgb, var(--c) 30%, var(--tile-base));
  transition: transform .15s, box-shadow .2s, border-color .2s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.art-tile .ic { width: 36px; height: 36px; }
.art-tile .art { border-radius: 16px; }
.art-tile:hover { transform: translateY(-2px); }
.plan-slot.selected .art-tile { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 6px 16px rgba(0,0,0,.12); }
.plan-slot.is-next .art-tile { width: 76px; height: 76px; margin-top: -3px; }

.plan-slot.done .art-tile { cursor: default; background: var(--chip); border-color: var(--line); color: #a59f93; }
.plan-slot.done .art-tile .art { filter: grayscale(1); opacity: .6; }
.plan-slot.done .stamp { display: grid; }
.plan-slot.empty .art-tile { background: repeating-linear-gradient(45deg,var(--paper) 0 6px,var(--chip) 6px 12px); border-style: dashed; border-color: var(--line-2); color: var(--ink-3); cursor: default; }
.plan-slot.warn .slot-time { color: var(--closed); font-weight: 600; }
.slot-dish { font-size: 12.5px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.slot-time { font-size: 11.5px; color: var(--ink-3); }
.plan-slot.drop-over .art-tile { outline: 3px dashed var(--accent); outline-offset: 3px; transform: scale(1.06); }
.plan-slot.drop-over.done .art-tile { outline: none; transform: none; }

.plan-reason { margin-top: 10px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.plan-reason:empty { display: none; }
.plan-reason strong { font-weight: 700; }
.plan-reason .why { color: var(--ink-2); display: block; margin-top: 2px; }
.plan-reason .closed-note { color: var(--closed); font-weight: 600; }
.plan-reason .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.plan-reason button { border: 1px solid var(--solid); background: var(--solid); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.plan-reason button.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.plan-hint { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }

/* drag ghost */
.drag-ghost { position: fixed; z-index: 3000; pointer-events: none; transform: translate(-50%, -50%) scale(1.12) rotate(-3deg); box-shadow: 0 14px 30px rgba(0,0,0,.25); opacity: .95; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.dragging .plan-slot:not(.done) .art-tile { border-style: dashed; }

/* planned stop label on the map */
.stop-tag { background: var(--accent); color: #fff; font: 700 10.5px var(--font); padding: 2px 7px; border-radius: 99px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); transform: translate(-50%, 8px); display: inline-block; }

/* ---------- Plan: header, stay slider, ticks, details ---------- */
.reset-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px 4px 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.reset-btn .ic { width: 16px; height: 16px; }
.reset-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.reset-btn.spin .ic { animation: spin .5s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

.stay { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; cursor: pointer; }
.stay .ic { width: 20px; height: 20px; color: var(--accent); }
.stay input { flex: 1; accent-color: var(--accent); height: 22px; }
.stay-label { font-size: 12.5px; font-weight: 600; min-width: 116px; text-align: right; line-height: 1.2; }
.stay-label small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }

.plan-slot { padding-top: 2px; }
.day-break { flex: 0 0 auto; display: flex; align-items: flex-start; padding: 26px 4px 0 10px; }
.day-break span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--ink-2); border-radius: 99px; padding: 8px 3px; }
.plan-slot + .day-break + .plan-slot::before, .plan-slot + .day-break + .plan-slot::after { display: none; }

.tick {
  position: absolute; z-index: 3; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--card); background: var(--card); color: #b9b1a2; cursor: pointer; padding: 0;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: background .15s, color .15s, transform .15s;
}
.tick .ic { width: 15px; height: 15px; stroke-width: 3; }
.tick:hover { color: var(--tried); transform: scale(1.12); }
.plan-slot.is-next .tick { background: var(--card); color: var(--tried); box-shadow: 0 0 0 2px var(--tried), 0 2px 6px rgba(0,0,0,.2); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: scale(1); } 92% { transform: scale(1.18); } }
.plan-slot.done .tick { background: var(--tried); color: #fff; animation: none; }
.plan-slot.done .stamp { display: none; }
.plan-slot.just-done .tick { animation: stamp .55s cubic-bezier(.2,1.6,.4,1); }

.plan-reason { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); padding: 9px 10px 9px 12px; }
.plan-reason .pr-main { flex: 1; min-width: 0; }
.plan-reason .pr-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-reason .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.plan-reason .chips span { display: inline-flex; align-items: center; gap: 3px; }
.plan-reason .chips .ic { width: 14px; height: 14px; }
.plan-reason .chips .ok { color: var(--open); font-weight: 600; }
.plan-reason .chips .no { color: var(--closed); font-weight: 600; }
.pr-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid var(--solid); background: var(--solid); color: #fff; }
.pr-btn .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.pr-btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.stop-tag.later { background: #8a8274; }

/* ---------- Plan v3: one row per day, airport time ---------- */
.leave { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.leave .ic { width: 20px; height: 20px; color: var(--accent); }
.leave span { font-weight: 600; color: var(--ink); margin-right: 2px; }
.leave select { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 4px 6px; font-size: 13px; }

.plan-days { display: flex; flex-direction: column; gap: 10px; }
.plan-day { display: flex; align-items: stretch; gap: 6px; }
.day-tag {
  flex: 0 0 22px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--ink-2); border-radius: 99px; padding: 6px 0;
}
.plan-day.today .day-tag { background: var(--accent); }
.plan-row { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; flex-wrap: wrap; row-gap: 8px; }
.plan-row .plan-slot { flex: 0 0 25%; min-width: 0; }
.plan-row .art-tile { width: 64px; height: 64px; }
.plan-row .plan-slot.is-next .art-tile { width: 70px; height: 70px; margin-top: -3px; }
.plan-row .plan-slot + .plan-slot::before { top: 50px; right: calc(50% + 33px); width: calc(100% - 66px); }
.plan-row .plan-slot + .plan-slot::after { top: 45.5px; left: auto; right: calc(50% + 33px); }
.plan-row .slot-dish { font-size: 12px; padding: 0 2px; }
.plan-row .slot-label { font-size: 10px; }
.plan-safe { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.plan-safe .ic { color: var(--accent); }

/* Done tiles: tap the green tick to undo; it turns into a cross on hover */
.plan-slot.done .tick:hover { background: var(--closed); }
.tick .x, .stamp .x { display: none; }
.plan-slot.done .tick:hover .ic, .dish-tile.tried .stamp:hover .ic { display: none; }
.plan-slot.done .tick:hover .x, .dish-tile.tried .stamp:hover .x { display: block; }
.dish-tile.tried .stamp { cursor: pointer; }
.dish-tile.tried .stamp:hover { background: var(--closed); }

/* Detail line under the plan: name, distance, open state */
.plan-reason .pr-name { font-size: 14px; }

/* Toast undo */
.toast .undo { background: transparent; color: #fff7ea; border: 1px solid #6b655a; }

/* ---------- Card gallery: shopfront first, swipe for food ---------- */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; scroll-behavior: smooth; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 10px; top: 10px; background: rgba(18,17,16,.85); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; letter-spacing: .3px; }
.card-img .tried-flag { top: 38px; }
.dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: background .2s, width .2s; }
.dots i.on { background: var(--card); width: 14px; border-radius: 99px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(18,17,16,.85); color: var(--ink); cursor: pointer; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); font-size: 18px; line-height: 1; }
.g-nav.prev { left: 8px; } .g-nav.next { right: 8px; }
@media (hover: hover) { .card-img:hover .g-nav { display: grid; } }

/* ---------- Map app buttons: rounded squares like the filters ---------- */
.actions { gap: 10px; margin-top: 12px; }
.map-app {
  flex: 0 0 76px !important; flex-direction: column; gap: 4px !important; padding: 9px 4px 7px !important;
  border-radius: 14px !important; font-size: 11.5px !important; font-weight: 600; line-height: 1.15;
}
.map-app .ic { width: 26px; height: 26px; }
.map-app.google .ic { color: #1a73e8; }
.map-app.apple .ic { color: #111; }

/* ---------- Plan v4: fixed meals, "+" links, centred day tags ---------- */
.day-tag { display: flex; align-items: center; justify-content: center; writing-mode: horizontal-tb; transform: none; padding: 0; }
.day-tag span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.plan-row { align-items: flex-start; flex-wrap: wrap; }
.plan-row .plan-slot { flex: 0 0 78px; }
.plan-row .plan-slot + .plan-slot::before, .plan-row .plan-slot + .plan-slot::after,
.plan-row .link + .plan-slot::before, .plan-row .link + .plan-slot::after { display: none; }
.plan-row .art-tile, .plan-row .plan-slot.is-next .art-tile { width: 64px; height: 64px; margin-top: 0; }
.plan-row .plan-slot.selected .art-tile { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #f97316) 45%, transparent), 0 6px 16px rgba(0,0,0,.12); }
.link { flex: 1 1 14px; min-width: 14px; max-width: 40px; height: 64px; margin-top: 18px; position: relative; display: grid; place-items: center; }
.link::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; border-top: 2.5px dashed var(--line-2); }
.link.trailing::before { right: 50%; }
.link .add {
  position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--line-2); background: var(--card); color: var(--ink-2); font: 700 16px/1 var(--font);
  display: grid; place-items: center; transition: border-color .15s, color .15s, transform .15s;
}
.link .add:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.12); }
.plan-slot.extra .art-tile { border-style: dashed; }
.plan-slot.empty .art-tile { font-size: 12px; font-weight: 600; }
.remove {
  position: absolute; z-index: 3; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid var(--card); background: var(--chip); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.remove .ic { width: 12px; height: 12px; stroke-width: 3; }
.remove:hover { background: var(--closed); color: #fff; }
.plan-slot .tick { animation: none !important; }
.plan-reason .chips .go { color: var(--accent); font-weight: 700; }
.plan-reason .chips .muted, .plan-reason .muted { color: var(--ink-3); }
.plan-safe { padding: 2px 0 0 28px; font-size: 12.5px; }
.plan-safe .ic { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .plan-row .plan-slot { flex-basis: 70px; }
  .plan-row .art-tile, .plan-row .plan-slot.is-next .art-tile { width: 58px; height: 58px; }
  .link { height: 58px; }
}

/* ---------- Dishes not in the plan ---------- */
.tray { margin-top: 4px; padding: 10px 10px 8px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 12px; }
.tray-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.tray-tiles { display: flex; gap: 6px; flex-wrap: wrap; }
.tray-tile { width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; line-height: 1.15; text-align: center; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.tray-tile .mini { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--tile-base)); border: 2px solid color-mix(in srgb, var(--c) 28%, var(--tile-base)); }
.tray-tile .mini .ic { width: 24px; height: 24px; }
.tray-tile .mini .art { border-radius: 10px; }
.tray-tile:hover .mini { transform: translateY(-2px); }

/* ---------- Congratulations ---------- */
.congrats { border: 0; border-radius: 22px; padding: 26px 26px 22px; max-width: 420px; width: calc(100% - 32px); text-align: center; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.congrats::backdrop { background: rgba(20,18,15,.55); }
.congrats .close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); margin: -10px -8px 0 0; }
.congrats h2 { font-family: var(--display); font-size: 28px; margin: 14px 0 6px; }
.congrats p { color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
.cg-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.cg-tile { position: relative; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--tile-base)); animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.cg-tile:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms); }
.cg-tile .ic { width: 22px; height: 22px; }
.cg-tile .art { border-radius: 10px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cg-btn { background: var(--tried); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* =====================================================================
   DARK THEME (the only theme). Colour tokens are defined here last so
   they win over the light values at the top of the file.
   ===================================================================== */
:root {
  color-scheme: dark;
  --paper: #121110;
  --card: #1c1a17;
  --chip: #29261f;
  --tile-base: #1c1a17;
  --ink: #f3ede3;
  --ink-2: #c4bbad;
  --ink-3: #8c8476;
  --line: #2f2b26;
  --line-2: #4a443b;
  --solid: #3b362e;
  --accent: #fb923c;
  --accent-soft: #2a1d14;
  --open: #4ade80;
  --closed: #fb7185;
  --tried: #22c55e;
  --banner: #241d0e;
  --banner-line: #4a3b14;
  --banner-ink: #f5d68a;
}
body { background: var(--paper); }
.topbar { background: #0b0a09; border-bottom: 1px solid var(--line); }
.plan { background: var(--card); }
.passport, .filters, .results-meta { background: var(--paper); }
.day-tag { background: var(--solid); color: var(--ink); }
.plan-day.today .day-tag { background: #c2410c; color: #fff; }
.ftile[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a120b; }
.ftile[aria-pressed="true"] .ic { color: #1a120b; }
.dish-tile[aria-pressed="true"] .dish-ic { color: #1a120b; }
.toast { background: #2a2622; border: 1px solid var(--line-2); }
.toast button { background: var(--ink); color: #141311; }
.toast .undo { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.card { background: var(--card); }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0,0,0,.4); }
.card.is-tried .card-img img { filter: grayscale(.7) brightness(.8); }
.card-img img { filter: brightness(.92); }
.note.order { background: var(--accent-soft); }
.map-app.google .ic { color: #8ab4f8; }
.map-app.apple .ic { color: var(--ink); }
.tick { background: var(--card); color: #6f685c; }
.plan-slot.done .art-tile, .dish-tile.tried .dish-ic { background: var(--chip); border-color: var(--line-2); color: #6f685c; }
.plan-slot.empty .art-tile { background: repeating-linear-gradient(45deg, var(--card) 0 6px, var(--chip) 6px 12px); }
.stop-tag { box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.stop-tag.later { background: #57514a; }
.pin { border-color: #121110; }
.you-dot { border-color: #121110; }
.style-switch, .map-btn, .start-select select { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.guide, .congrats { background: var(--card); }
select { background: var(--card); color: var(--ink); }
/* Leaflet in the dark */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: rgba(18,17,16,.8) !important; color: var(--ink-3); }
.leaflet-control-attribution a { color: var(--ink-2); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #34302a; border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Dish picker and route list ---------- */
.picker { border: 0; border-radius: 20px; padding: 20px 20px 18px; max-width: 470px; width: calc(100% - 24px); background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.picker::backdrop { background: rgba(0,0,0,.6); }
.picker h2 { font-family: var(--display); font-size: 20px; margin: 0 0 14px; }
.picker .close { float: right; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-3); margin: -6px -4px 0 0; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.picker-grid .dish-tile.current .dish-ic { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.picker-grid .dish-tile.tried .dish-name { text-decoration: none; }
.routes { display: flex; flex-direction: column; gap: 8px; }
.route { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--ink); }
.route:hover { border-color: var(--accent); }
.route strong { min-width: 92px; font-size: 14px; }
.route-tiles { display: flex; gap: 5px; flex: 1; }
.route .mini { position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--tile-base)); }
.route .mini .ic { width: 20px; height: 20px; }
.route > .ic { width: 18px; height: 18px; color: var(--accent); }
.export { margin-top: 12px; }
.export-btns { display: flex; gap: 10px; }
.export .map-app { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; font: 600 11.5px/1.15 var(--font); }
.export .map-app:hover { border-color: var(--accent); }
.plan-reason .pr-btn .ic { width: 15px; height: 15px; }

/* =====================================================================
   PLAN NOW
   ===================================================================== */
/* Grey base map, dimmed to sit with the dark page */
.leaflet-tile-pane { filter: brightness(.78) contrast(1.08) saturate(.9); }
#map { background: #2a2824; }
.map-controls, .style-switch { display: none; }
.center-btn {
  position: absolute; z-index: 500; right: 12px; bottom: 100px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.center-btn:hover { color: var(--accent); border-color: var(--accent); }
.testbar { flex-wrap: wrap; }

.now { padding: 14px 16px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.plan-now {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #1a120b; border: 0; border-radius: 16px; padding: 14px 18px;
  font: 700 18px/1 var(--font); letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(251,146,60,.25); transition: transform .12s, box-shadow .2s;
}
.plan-now .ic { width: 22px; height: 22px; }
.plan-now:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(251,146,60,.35); }
.plan-now:active { transform: translateY(1px); }
.plan-now.busy .ic { animation: spin 1s linear infinite; }

.now-card { margin-top: 14px; }
.now-intro { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; text-align: center; }
.now-main { display: flex; gap: 14px; align-items: center; }
.now-art { flex: none; width: 76px !important; height: 76px !important; cursor: default; }
.now-art .ic { width: 40px; height: 40px; }
.now-text { min-width: 0; }
.now-dish { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.now-stall { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 2px 0 4px; }
.now-when { font-size: 13.5px; }
.now-when .ok { color: var(--open); font-weight: 600; }
.now-when .go { color: var(--accent); font-weight: 700; }
.now-order { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); background: var(--accent-soft); border-radius: 10px; padding: 9px 11px; }
.now-how { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mode { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; }
.mode button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; }
.mode button .ic { width: 17px; height: 17px; }
.mode button[aria-checked="true"] { background: var(--ink); color: #141311; }
.how { font-size: 13px; color: var(--ink-2); }
.now-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-dir, .btn-ate {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px;
  padding: 12px 10px; font: 700 15px var(--font); cursor: pointer; text-decoration: none;
}
.btn-dir { background: var(--ink); color: #141311; border: 0; }
.btn-dir .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.btn-ate { background: #14301f; color: #86efac; border: 1px solid #1f5132; }
.btn-ate .ic { width: 18px; height: 18px; stroke-width: 2.8; }
.btn-ate:hover { background: var(--tried); color: #fff; }
.btn-else { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--ink-3); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-else:hover { color: var(--ink); }
@media (max-width: 820px) {
  .center-btn { bottom: 90px; right: 8px; }
  .now-stall { font-size: 20px; }
}

/* ---------- Plan now v2 ---------- */
/* glow to invite the first tap */
.plan-now { animation: glow 2.2s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,146,60,.55), 0 6px 20px rgba(251,146,60,.25); }
  50% { box-shadow: 0 0 0 10px rgba(251,146,60,0), 0 8px 34px rgba(251,146,60,.55); }
}
.now-card { margin-top: 14px; }
.now-when-note { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.cards.now-entry { padding: 0; }
.now-entry .card { cursor: default; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.now-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px 10px;
  border-radius: 16px; cursor: pointer; font-family: var(--font); transition: transform .12s, background .15s, border-color .15s;
}
.choice .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.choice b { font-size: 15px; }
.choice small { font-size: 11.5px; opacity: .8; }
.choice:hover { transform: translateY(-1px); }
.choice.ate { background: #14301f; color: #86efac; border: 1px solid #1f5132; }
.choice.ate:hover { background: #1a3d28; border-color: var(--tried); }
.choice.else { background: var(--chip); color: var(--ink); border: 1px solid var(--line-2); }
.choice.else:hover { border-color: var(--ink-3); }
.all-btn {
  position: absolute; z-index: 500; left: 12px; top: 12px; border-radius: 999px; padding: 7px 14px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 13px var(--font); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.all-btn:hover { border-color: var(--accent); }
.startover { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 4px 10px 4px 7px; font: 600 12px var(--font); cursor: pointer; white-space: nowrap; }
.startover .ic { width: 15px; height: 15px; }
.startover:hover { color: var(--ink); border-color: var(--ink-3); }
/* filters on one row */
.filter-groups { flex-wrap: nowrap; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.filter-groups::-webkit-scrollbar { display: none; }
.fgroup { flex: none; }
.fgroup-tiles { gap: 3px; }
.ftile { width: 58px; padding: 6px 2px 5px; font-size: 10.5px; }
.ftile .ic { width: 22px; height: 22px; }
@media (max-width: 820px) { .all-btn { top: auto; bottom: 34px; left: 8px; } }

/* ---------- Passport v2: bright = not eaten (on the map), dimmed = eaten (off the map) ---------- */
.dish-grid { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 10px 4px !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
.dish-tile { flex: none !important; }
.dish-tile .stamp { display: none !important; }
.dish-tile[aria-pressed="true"] .dish-ic { background: color-mix(in srgb, var(--c) 22%, var(--tile-base)); color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, var(--tile-base)); filter: none; opacity: 1; }
.dish-tile[aria-pressed="true"] .dish-name { font-weight: 600; color: var(--ink); }
.dish-tile.eaten .dish-ic { filter: grayscale(1); opacity: .35; background: var(--chip); border-color: var(--line); }
.dish-tile.eaten .dish-name { color: var(--ink-3); text-decoration: none; font-weight: 400; }
.dish-tile:active .dish-ic { transform: scale(.94); }
@media (max-width: 820px) {
  .dish-tile .dish-ic { width: 52px; height: 52px; }
  .dish-name { font-size: 11px; }
}

/* ---------- Ate it / Suggest something else ---------- */
.choice.ate, .choice.ate:hover { background: var(--chip); color: var(--ink); border: 1px solid var(--line-2); }
.choice.ate:hover, .choice.else:hover { border-color: var(--ink-3); }
.choice { justify-content: center; }
.icon-slot { width: 30px; height: 30px; border: 1.5px dashed var(--ink-3); border-radius: 8px; display: grid; place-items: center; font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 820px) {
  .filter-groups { gap: 6px; margin: 0; padding: 0 0 4px; }
  .ftile { width: 50px; font-size: 9.5px; padding: 5px 1px 4px; }
  .ftile .ic { width: 20px; height: 20px; }
  .fgroup-label { font-size: 9.5px; }
}

/* ---------- Center on map / Go here instead ---------- */
.gallery figcaption { padding: 0; background: none; }
.center-on { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; background: rgba(18,17,16,.85); color: var(--ink); font: 700 11px var(--font); padding: 4px 9px 4px 6px; border-radius: 99px; }
.center-on .ic { width: 14px; height: 14px; color: var(--accent); }
.center-on:hover { background: var(--accent); color: #1a120b; }
.center-on:hover .ic { color: #1a120b; }
.go-instead {
  width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 12px;
  padding: 10px; font: 700 14px var(--font); cursor: pointer;
}
.go-instead .ic { width: 18px; height: 18px; }
.go-instead:hover { background: var(--accent); color: #1a120b; }

/* ---------- Fixed-size recommendation, so the buttons below never move ---------- */
.now-entry .facts { height: 24px; overflow: hidden; flex-wrap: nowrap; }
.now-entry h3, .now-entry .where, .now-entry .open-state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-entry h3 { height: 24px; }
.now-entry .where { height: 18px; }
.now-entry .open-state { height: 20px; flex-wrap: nowrap; display: block; }
.now-entry .open-state::before { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.now-entry .note.order { height: 104px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.now-entry .note.small { height: 60px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.now-entry .note .label { display: block; }
.now-choice { min-height: 92px; }
.choice { height: 92px; }

/* passport title icon */
.passport-ic { width: 20px; height: 25px; vertical-align: -4px; margin-left: 4px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* ---------- Congratulations v2 ---------- */
.congrats { overflow: visible; }
.congrats .close { display: none; }
.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.cg-body { position: relative; z-index: 1; }
.cg-thanks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.cg-thanks button {
  background: var(--tried); color: #fff; border: 0; border-radius: 12px; padding: 11px 8px;
  font: 700 15px var(--font); cursor: pointer; transition: transform .12s, filter .15s;
}
.cg-thanks button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.cg-thanks button[lang="ta"] { font-size: 14px; }

/* ---------- Passport complete: every tile lights up in gold ---------- */
.dish-tile.complete .dish-ic {
  border-color: #f2c14e; background: color-mix(in srgb, var(--c) 24%, var(--tile-base));
  box-shadow: 0 0 0 2px rgba(242,193,78,.25), 0 0 16px rgba(242,193,78,.28);
  animation: shine 3.2s ease-in-out infinite;
}
.dish-tile.complete:nth-child(3n+1) .dish-ic { animation-delay: .4s; }
.dish-tile.complete:nth-child(3n+2) .dish-ic { animation-delay: .9s; }
.dish-tile.complete .dish-name { color: #f2c14e; font-weight: 600; }
@keyframes shine { 0%, 100% { box-shadow: 0 0 0 2px rgba(242,193,78,.25), 0 0 10px rgba(242,193,78,.18); } 50% { box-shadow: 0 0 0 2px rgba(242,193,78,.55), 0 0 22px rgba(242,193,78,.45); } }
@media (prefers-reduced-motion: reduce) { .dish-tile.complete .dish-ic, .plan-now { animation: none; } }

/* ---------- Main buttons under the photo; small map buttons on the photo ---------- */
.now-entry .now-choice { margin: 10px 12px 0; }
.mini-maps { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.mini-maps a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(18,17,16,.85); border: 1px solid var(--line-2); color: var(--ink); }
.mini-maps a .ic { width: 19px; height: 19px; }
.mini-maps a:first-child .ic { color: #8ab4f8; }
.mini-maps a:hover { border-color: var(--accent); }
@media (max-width: 820px) {
  .choice { height: 78px; padding: 8px 6px; }
  .now-choice { min-height: 78px; }
  .choice .ic, .icon-slot { width: 24px; height: 24px; }
  .choice b { font-size: 14px; }
  .choice small { font-size: 11px; }
}

/* ---------- Congratulations: thanks in four languages, tap anywhere to close ---------- */
.congrats { cursor: pointer; }
.cg-thanks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 4px 0 0; font-size: 17px; font-weight: 700; color: #86efac; }
.cg-thanks span + span::before { content: "·"; color: var(--ink-3); margin-right: 14px; font-weight: 400; }
.cg-hint { margin: 14px 0 0 !important; font-size: 12px; color: var(--ink-3) !important; }
.congrats::backdrop { cursor: pointer; }

/* ---------- Save pins ---------- */
.pins-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px 11px 5px 8px; font: 600 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.pins-btn .ic { width: 16px; height: 16px; }
.pins-btn:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Wordmark in the header ---------- */
.brand h1 { line-height: 0; }
.wordmark { height: 44px; width: auto; display: block; }
@media (max-width: 820px) { .wordmark { height: 34px; } }

/* Hand-drawn art: zoom in slightly so the dish fills small tiles */
.dish-ic, .art-tile, .tray-tile .mini, .route .mini, .cg-tile { overflow: hidden; }
.art { transform: scale(1.18); }

/* ---------- Passport chop: eaten dishes stay bright and get a red stamp ---------- */
.dish-tile.eaten .dish-ic { filter: none !important; opacity: 1 !important; background: color-mix(in srgb, var(--c) 22%, var(--tile-base)) !important; border-color: color-mix(in srgb, var(--c) 55%, var(--tile-base)) !important; }
.dish-tile.eaten .dish-name { color: var(--ink) !important; font-weight: 600; }
.dish-ic .chop { position: absolute; z-index: 2; right: -3px; bottom: -3px; width: 78%; height: auto; display: none; transform: rotate(var(--r, -12deg)); pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.dish-tile.eaten .chop, .dish-tile.complete .chop { display: block; }
.dish-tile.just-stamped .chop { animation: chop .5s cubic-bezier(.2,1.5,.35,1); }
@keyframes chop { 0% { transform: rotate(var(--r)) scale(2.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(var(--r)) scale(1); opacity: 1; } }

/* dish chip on photos uses the same artwork as the passport */
.card-img .dish-chip { padding: 3px 10px 3px 3px; gap: 6px; }
.chip-art { position: relative; width: 24px; height: 24px; border-radius: 7px; overflow: hidden; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--c) 60%, #000); flex: none; }
.chip-art .ic { width: 16px !important; height: 16px !important; padding: 0 !important; background: none !important; }
.chip-art .art { transform: scale(1.18); }

/* picture icons on the two main buttons */
.pic-ic { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.pic-ic img { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); object-fit: contain; }
.choice .icon-slot { width: 30px; height: 30px; }

/* list entries: no big map buttons any more */
.card .actions { display: none; }

/* filter group labels centred over their tiles */
.fgroup { align-items: center; }
.fgroup-label { text-align: center; }
.gallery figcaption.dish-cap { background: rgba(18,17,16,.85); color: var(--ink); font-size: 11.5px; padding: 4px 10px; max-width: calc(100% - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Photo overlays kept clear of the shop sign ---------- */
.gallery figcaption { left: 8px; top: 5px; }
.center-on { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 9px; font-size: 0; gap: 0; }
.center-on .ic { width: 17px; height: 17px; }
.mini-maps { top: 5px; right: 8px; gap: 5px; }
.mini-maps a { width: 30px; height: 30px; border-radius: 9px; }
.mini-maps a .ic { width: 17px; height: 17px; }
.pic-ic { width: 46px; height: 46px; margin: -4px 0 -2px; }
@media (max-width: 820px) { .pic-ic { width: 38px; height: 38px; margin: -2px 0 -2px; } }

/* ---------- Bigger passport tiles and chop ---------- */
.dish-tile { padding: 2px 0; min-width: 0; }
.dish-tile .dish-ic, .dish-ic { width: 100%; max-width: 80px; height: auto; aspect-ratio: 1; border-radius: 18px; }
.dish-name { font-size: 12px; line-height: 1.2; text-align: center; }
.dish-ic .chop { width: 94%; right: -6px; bottom: -6px; }
@media (max-width: 820px) {
  .dish-tile .dish-ic { width: 100%; max-width: 72px; height: auto; border-radius: 16px; }
  .dish-name { font-size: 11px; }
}
/* Reset passport button, right of "Tap a dish to try it again" */
#progress-text:has(.reset-passport) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reset-passport { flex: none; border: 1px solid var(--line-2); background: var(--chip); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; cursor: pointer; }
.reset-passport:hover { border-color: var(--accent); }

/* ---------- Pin clusters (number bubbles) and "Show more" in the list ---------- */
.pin-cluster { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2a2622; color: var(--ink); font-weight: 700; font-size: 13px; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.5); }
.more-row { list-style: none; padding: 6px 16px 18px; display: flex; justify-content: center; }
.more-btn { border: 1px solid var(--line-2); background: var(--chip); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: 99px; cursor: pointer; width: 100%; max-width: 360px; }
.more-btn:hover { border-color: var(--accent); }

/* ---------- Tip the developer ---------- */
.panel-foot p { margin: 10px 0 0; }
.tip-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit;
  border: 1px solid color-mix(in srgb, #f2c14e 45%, var(--line)); background: color-mix(in srgb, #f2c14e 10%, var(--paper)); color: var(--ink); }
.tip-btn svg { width: 28px; height: 28px; flex: none; color: #f2c14e; }
.tip-btn b { display: block; font-size: 14px; }
.tip-btn small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.tip-btn:hover { border-color: #f2c14e; }

/* ---------- Add to Home Screen ---------- */
.install { position: fixed; z-index: 3000; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px; border-radius: 18px;
  background: #1f1c19; border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .25s ease; }
.install.in { transform: none; }
.install-ic { width: 48px; height: 48px; border-radius: 12px; }
.install-txt > b { display: block; font-size: 14.5px; }
.install-txt > span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.install-act { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.install-act button { font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 99px; cursor: pointer; }
.install-go { background: var(--accent); color: #1a120b; border: 0; }
.install-x { background: none; color: var(--ink-2); border: 1px solid var(--line-2); }
.share-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: -6px; color: #4ea1ff; }
.share-ic svg { width: 18px; height: 18px; }

/* Solo / Pregnant / No chilli: a line under the filters, and tips inside "Good to know" (17 Oct 2026) */
.filter-note { margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.filter-note[hidden] { display: none; }
.filter-note .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--ink-3); }
.note .advice { display: block; margin-top: 5px; font-weight: 600; color: var(--ink); }
.note .advice .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.now-far { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; background: #fef3c7; color: #78350f; }
/* Placeholder signboard: the stall's name in the dark band at the top, between the photo buttons */
.sign-name { position: absolute; left: 0; right: 0; top: 0; height: 22%; padding: 0 96px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 clamp(11px, 3.4vw, 19px)/1.1 Georgia, serif; color: #fff7ea; overflow: hidden; pointer-events: none; }
.now-far { margin: 10px 0 0; }
.sign-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; }

/* Small bites (18 Oct 2026): a smaller row under the passport, own counter, not part of the 20 */
.bites { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.bites[hidden] { display: none; }
.bites-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bites-title { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.bites-count { font-size: 11.5px; color: var(--ink-3); }
.bite-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px; }
.bite-grid .dish-ic { max-width: 54px !important; border-radius: 14px; }
.bite-grid .dish-ic .ic { width: 24px; height: 24px; }
.bite-grid .dish-name { font-size: 10.5px; }
@media (max-width: 820px) { .bite-grid .dish-ic { max-width: 46px !important; } }

/* Home Screen app on iPhone: the page runs under the status bar and camera, so keep the header clear of it */
.topbar { padding-top: calc(10px + env(safe-area-inset-top)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
@media (max-width: 820px) { .topbar { padding-top: calc(8px + env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); } }

/* Plan now: bigger words, same button size (19 Oct 2026) */
.plan-now { height: 50px; padding: 0 18px; font-size: 22px; }
.plan-now .ic { width: 24px; height: 24px; }

/* Compass beam on the blue dot: points where the phone is facing */
.you-dot { position: relative; }
.you-beam { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from -30deg, rgba(59,130,246,.85) 0deg, rgba(59,130,246,.85) 60deg, transparent 60deg);
  -webkit-mask: radial-gradient(circle, #000 20%, rgba(0,0,0,.75) 42%, transparent 70%); mask: radial-gradient(circle, #000 20%, rgba(0,0,0,.75) 42%, transparent 70%);
  display: none; transition: transform .15s linear; z-index: -1; }
.you-beam.on { display: block; }

/* ---------- 19 Oct 2026: phone layout puts the passport up front ---------- */
/* Test clock and test places: only with ?test in the address */
.demo-banner { display: none; }
body.testing .demo-banner { display: flex; }
/* Shorter map on phones, so the whole passport sits under "Plan now" before planning */
@media (max-width: 820px) { .layout { grid-template-rows: 30svh 1fr; } }

/* Sticker strip under "Ate it / Suggest something else" */
.pp-strip { margin-top: 12px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.pp-head { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 0 0 8px; cursor: pointer;
  font: 700 13px var(--font); color: var(--ink-2); text-align: left; }
.pp-head b { color: #f2c14e; }
.pp-head span { margin-left: auto; font-size: 18px; line-height: 1; color: var(--ink-3); }
.pp-row { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; scroll-behavior: smooth; }
.pp-row::-webkit-scrollbar { display: none; }
.pp-tile { position: relative; flex: 0 0 52px; height: 52px; border-radius: 12px; overflow: hidden; scroll-snap-align: start; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--tile-base)); border: 2px solid color-mix(in srgb, var(--c) 40%, var(--tile-base)); }
.pp-tile .ic { width: 26px; height: 26px; }
.pp-tile .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-tile .chop { position: absolute; z-index: 2; right: -3px; bottom: -3px; width: 82%; transform: rotate(var(--r, -12deg)); display: none; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.pp-tile.eaten .chop { display: block; }
.pp-tile.just-stamped .chop { animation: pp-stamp .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pp-stamp { 0% { transform: rotate(var(--r)) scale(2.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(var(--r)) scale(1); } }
/* 2 Dec 2026: the hint shows on phones too, until the first tap on Plan now (app.js adds .hint-off) */
.hint-off .now-hello { display: none; }

/* 19 Oct 2026 (2): photo buttons 20% smaller, shorter stall photo on phones, swipe hint on the passport strip */
.center-on { width: 24px; height: 24px; border-radius: 7px; }
.center-on .ic { width: 14px; height: 14px; }
.mini-maps { gap: 4px; }
.mini-maps a { width: 24px; height: 24px; border-radius: 7px; }
.mini-maps a .ic { width: 14px; height: 14px; }
.sign-name { padding: 0 16px; }
@media (max-width: 820px) { .card-img { aspect-ratio: 16 / 5.5; } }
.go-instead { margin: 8px 0 4px; }
.pp-head .pp-hint { margin-left: auto; font: 600 12px var(--font); color: var(--ink-3); display: inline-flex; align-items: center; gap: 3px; }
.pp-head .pp-hint span { font-size: 16px; line-height: 1; margin: 0; }
.pp-strip { position: relative; }
.pp-strip::after { content: ""; position: absolute; right: 0; bottom: 6px; width: 28px; height: 52px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--card)); }
/* Sample signboards (drawn placeholders) keep their name band at the top, whatever the photo height */
.card-img img[src$=".svg"] { object-position: top; }
.sign-name { height: auto; aspect-ratio: 640 / 70; }
.pp-head { white-space: nowrap; }
.pp-strip { padding: 10px 14px 2px; margin-top: 10px; } .pp-strip::after { right: 14px; }

/* ---------- 19 Oct 2026 (3): language button, report link, footer links ---------- */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff7ea;
  border-radius: 999px; padding: 6px 12px 6px 9px; font: 700 13px var(--font); cursor: pointer; flex: none; }
.lang-btn .ic { width: 18px; height: 18px; color: #f2c14e; }
.lang-btn:hover { border-color: var(--accent); }
.note + .report, .report { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font: 600 12px var(--font); color: var(--ink-3); text-decoration: none; }
.report .ic { width: 14px; height: 14px; }
.report:hover { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.foot-links a, .foot-links button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 7px 12px 7px 9px; font: 600 12.5px var(--font); text-decoration: none; cursor: pointer; }
.foot-links .ic { width: 16px; height: 16px; color: var(--accent); }
.foot-links a:hover, .foot-links button:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- In-app forms (19 Oct 2026) ---------- */
.report { border: 0; background: none; padding: 0; cursor: pointer; }
.foot-links button { font-family: var(--font); }
.form-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 32px); border: 1px solid var(--line-2); border-radius: 18px; padding: 0;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.form-dialog::backdrop { background: rgba(0,0,0,.6); }
.form-dialog form, .form-done { position: relative; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.form-dialog .close { position: absolute; right: 10px; top: 8px; border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.form-dialog h2 { margin: 0 28px 0 0; font: 700 18px/1.25 var(--display); }
.form-sub { margin: -6px 0 0; color: var(--ink-3); font-size: 13px; }
.form-issues { display: flex; flex-wrap: wrap; gap: 6px; }
.form-issues[hidden], .form-field[hidden], .form-dialog form[hidden], .form-done[hidden] { display: none; }
.issue input { position: absolute; opacity: 0; pointer-events: none; }
.issue span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.issue input:checked + span { background: var(--accent); border-color: var(--accent); color: #1a120b; }
.issue input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-field { display: flex; flex-direction: column; gap: 5px; font: 600 12.5px var(--font); color: var(--ink-2); }
.form-field input, .form-field textarea { font: 400 16px var(--font); color: var(--ink); background: var(--chip); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.form-field textarea { resize: vertical; min-height: 84px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.form-error { margin: 0; color: #fca5a5; font-size: 13px; }
.form-error a { color: inherit; }
.form-send { border: 0; border-radius: 12px; padding: 12px; background: var(--accent); color: #1a120b; font: 700 16px var(--font); cursor: pointer; }
.form-send:disabled { opacity: .6; }
.form-done { align-items: center; text-align: center; padding: 36px 18px; }
.form-done .ic { width: 40px; height: 40px; color: #4ade80; stroke-width: 2.4; }
.form-done b { font-size: 18px; }
.form-done span { color: var(--ink-3); font-size: 14px; }

/* One Directions button on each entry, next to "Go here instead" (replaces the Google / Apple pair and Center on map) */
.card-acts { display: flex; gap: 8px; margin: 10px 0 4px; }
.card-acts .go-instead { flex: 1.4; margin: 0; width: auto; }
.card-acts .dir-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 700 14px var(--font); text-decoration: none; cursor: pointer; }
.card-acts .dir-btn .ic { width: 18px; height: 18px; color: var(--accent); }
.card-acts .dir-btn:hover { border-color: var(--accent); }
.pop .pop-dir { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.maps-dialog { width: min(340px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.maps-dialog::backdrop { background: rgba(0,0,0,.6); }
.maps-dialog .md-title { margin: 0 0 12px; font: 700 17px/1.3 var(--display, var(--font)); }
.maps-dialog button { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--ink); font: 700 16px var(--font); cursor: pointer; }
.maps-dialog button .ic { width: 22px; height: 22px; color: var(--accent); }
.maps-dialog .md-note { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.foot-links [hidden] { display: none; }

/* 20 Oct 2026: entries without photos — a slim header (dish drawing, dish and walk, stall name) */
.card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 0; min-height: 74px; box-sizing: border-box; }
.ch-art { position: relative; flex: 0 0 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--tile-base)); border: 2px solid color-mix(in srgb, var(--c) 45%, var(--tile-base)); }
.ch-art .ic { width: 28px; height: 28px; }
.card.is-tried .ch-art .art { filter: grayscale(.7); }
.ch-text { min-width: 0; flex: 1; }
.ch-dish { display: block; font: 600 12.5px/1.3 var(--font); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-dish b { color: var(--c); filter: brightness(1.35); font-weight: 700; }
.ch-tried { color: var(--tried); display: inline-flex; align-items: center; gap: 2px; }
.ch-tried .ic { width: 13px; height: 13px; stroke-width: 3; }
/* the stall name: at most 2 lines and always 2 lines tall, so whatever follows stays in the same place */
.card-head h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  display: flex; align-items: center; }
.card-head h3 { display: -webkit-box; }
.card.no-photo .card-body { padding-top: 8px; }
.now-entry .card.no-photo .now-choice { margin: 12px 14px 0; }

/* "Ate it" / "Suggest something else": same size, icon inside the button */
.now-choice { min-height: 0; align-items: stretch; }
.choice { height: auto; min-height: 96px; justify-content: flex-start; padding: 10px 8px; overflow: hidden; }
.choice .pic-ic { width: 40px; height: 40px; margin: 0 0 2px; flex: none; }
.choice .pic-ic img { inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) { .choice { min-height: 92px; } .choice .pic-ic { width: 36px; height: 36px; } }

/* "Swipe for more" and the fade go once the strip is at its right end */
.pp-strip .pp-hint, .pp-strip::after { transition: opacity .2s; }
.pp-strip.at-end .pp-hint, .pp-strip.at-end::after { opacity: 0; }
.now-entry .card-head h3 { white-space: normal; height: 2.4em; }
.card-acts .go-instead, .card-acts .dir-btn { flex: 1 1 0; white-space: nowrap; min-width: 0; padding: 10px 6px; gap: 6px; }
@media (max-width: 380px) { .card-acts .go-instead, .card-acts .dir-btn { font-size: 13px; } .card-acts .ic { width: 16px; height: 16px; } }

/* 21 Oct 2026: thumbs-up and people today, top of the footer */
.pulse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); }
.pulse[hidden] { display: none; }
.pulse-q { font: 700 15px var(--font); color: var(--ink); }
.like-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: 700 15px var(--font); -webkit-tap-highlight-color: transparent; }
.like-btn .ic { width: 20px; height: 20px; stroke-width: 1.9; }
.like-btn[aria-pressed="true"] { background: var(--accent); color: #1a120b; }
.like-btn[aria-pressed="true"] .ic { fill: rgba(26,18,11,.18); }
.like-btn.pop .ic { animation: like-pop .45s cubic-bezier(.2,1.8,.4,1); }
@keyframes like-pop { 0% { transform: scale(.6) rotate(-12deg); } 100% { transform: none; } }
.pulse-today { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-3); }

/* 22 Oct 2026: top-right menu, shorter footer, centred filters, passport strip with a mouse */
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: #fff7ea; cursor: pointer; padding: 0; }
.menu-btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.menu-btn:hover { border-color: var(--accent); }
.brand { min-width: 0; }
@media (max-width: 820px) {
  .wordmark { height: 30px; }
  .lang-btn { padding: 6px 10px; font-size: 14px; } .menu-btn { width: 36px; height: 36px; }
}
@media (max-width: 360px) { .wordmark { height: 26px; } .lang-btn .ic { display: none; } }

.menu-sheet { position: fixed; inset: calc(60px + env(safe-area-inset-top)) 12px auto auto; margin: 0; width: min(360px, calc(100vw - 24px));
  max-height: calc(100svh - 80px); overflow: auto; border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 14px 14px;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.55); box-sizing: border-box; }
.menu-sheet::backdrop { background: rgba(0,0,0,.45); }
.menu-sheet .close { position: absolute; right: 8px; top: 4px; border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.menu-sheet .pulse { margin: 14px 0 10px; }
.menu-sheet .tip-btn { margin-top: 0; }
.menu-sheet:not(:has(.pulse:not([hidden]))) .tip-btn { margin-top: 22px; }
.menu-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.menu-links button, .foot-links button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font: 600 12px/1.2 var(--font); cursor: pointer; text-align: center; }
.menu-links .ic, .foot-links .ic { width: 20px; height: 20px; color: var(--accent); }
.menu-links button:hover, .foot-links button:hover { color: var(--ink); border-color: var(--accent); }
.menu-sheet .maps-app { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; border: 0; background: none; color: var(--ink-3); font: 600 12px var(--font); cursor: pointer; }
.menu-sheet .maps-app[hidden] { display: none; }
.menu-sheet .maps-app .ic { width: 15px; height: 15px; color: var(--accent); }

/* footer: one centred row of three, then the credit line */
.panel-foot { text-align: center; padding-top: 18px; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); justify-content: center; gap: 8px; margin: 0 auto; flex-wrap: nowrap; }
.foot-links button { padding: 9px 4px; }

/* filters centred (on phones they still scroll sideways when they don't fit) */
.filter-groups { justify-content: center; }
@media (max-width: 820px) {
  .filter-groups { justify-content: flex-start; }
  .filter-groups > .fgroup:first-child { margin-left: auto; }
  .filter-groups > .fgroup:last-child { margin-right: auto; }
}

/* passport strip head: title on the left, ‹ More › on the right (‹ only with a mouse, once you've moved) */
.pp-head { display: flex; align-items: center; gap: 6px; padding: 0 0 8px; }
.pp-head .pp-title { border: 0; background: none; padding: 0; cursor: pointer; font: 700 13px var(--font); color: var(--ink-2); white-space: nowrap; }
.pp-head .pp-title b { color: #f2c14e; }
.pp-head .pp-hint { margin-left: auto; border: 0; background: none; cursor: pointer; padding: 2px 0 2px 6px; }
.pp-head .pp-prev { display: none; margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--ink-3); font: 600 18px/1 var(--font); padding: 0 6px; }
.pp-strip.mouse:not(.at-start) .pp-prev { display: block; }
.pp-strip.mouse:not(.at-start) .pp-hint { margin-left: 0; }
.pp-strip.mouse .pp-hint, .pp-strip.mouse .pp-prev { border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 10px; }
.pp-strip.mouse .pp-hint:hover, .pp-strip.mouse .pp-prev:hover { border-color: var(--accent); color: var(--ink); }
.pp-strip.at-end .pp-hint { opacity: 0; pointer-events: none; }

/* 22 Oct 2026: social links (TikTok; Instagram to follow) */
.socials { display: flex; justify-content: center; gap: 10px; margin: 12px 0 0; }
.social { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2);
  color: var(--ink-2); text-decoration: none; font: 600 13px var(--font); }
.social .ic { width: 17px; height: 17px; color: var(--ink); }
.social .ic .fill, .social .ic path.fill { fill: currentColor; }
.social:hover { color: var(--ink); border-color: var(--accent); }

/* 24 Oct 2026: privacy / terms links and the disclaimer line */
.legal-links { text-align: center; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.legal-links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.legal-links a:hover { color: var(--ink); border-color: var(--accent); }
.disclaimer { max-width: 420px; margin: 0 auto 14px !important; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

/* 27 Oct 2026: the pick's details are shown in full. (They were clipped to fixed heights when the buttons sat
   below them; the buttons are now above, so nothing moves when the text wraps.) */
.now-entry .facts { height: auto; overflow: visible; flex-wrap: wrap; }
.now-entry .where, .now-entry .open-state { white-space: normal; overflow: visible; text-overflow: clip; height: auto; }
.now-entry .note.order, .now-entry .note.small { height: auto; display: block; -webkit-line-clamp: none; overflow: visible; }

/* Planning from abroad (13 Nov 2026): a note over the top of the map. Taps go through it to the map. */
.abroad-bar { position: absolute; z-index: 800; top: 10px; left: 50%; transform: translateX(-50%); width: max-content;
  max-width: calc(100% - 24px); margin: 0; padding: 8px 12px; border-radius: 12px; pointer-events: none;
  background: rgba(18, 17, 16, 0.88); color: #fff7ea; font-size: 13px; line-height: 1.35; text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.abroad-bar[hidden] { display: none; }
.form-turnstile:empty { display: none; }
.form-turnstile { margin: 4px 0 8px; }

/* 15 Nov 2026: on the recommendation, "Open in Maps" sits right under the stall name, full width, so it is seen
   without scrolling. The row further down is hidden when it has nothing left in it. */
.card-acts:empty { display: none; }
.now-entry .now-maps { margin: 10px 14px 0; }
.now-entry .now-maps .dir-btn { flex: 1 1 auto; padding: 11px 10px; font-size: 15px; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pp-tile { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* 15 Nov 2026 (later): "Directions" is a small button at the top right of the recommendation, next to the name. */
.card-head .dir-top { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px;
  padding: 8px 6px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line-2));
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); font: 700 12px/1.1 var(--font); text-decoration: none; cursor: pointer; }
.card-head .dir-top .ic { width: 20px; height: 20px; color: var(--accent); }
.card-head .dir-top:hover { border-color: var(--accent); }

/* "Ate it": a bigger stamp on the sticker, with a glow */
.pp-tile.just-stamped { animation: pp-glow 1.4s ease-out; }
.pp-tile.just-stamped .chop { animation: pp-stamp 0.9s cubic-bezier(.2,1.6,.4,1); }
@keyframes pp-stamp { 0% { transform: rotate(var(--r)) scale(3.2); opacity: 0; } 45% { opacity: 1; } 70% { transform: rotate(var(--r)) scale(.85); } 100% { transform: rotate(var(--r)) scale(1); } }
@keyframes pp-glow { 0% { box-shadow: 0 0 0 0 rgba(242,193,78,.0); } 30% { box-shadow: 0 0 0 4px rgba(242,193,78,.9), 0 0 22px rgba(242,193,78,.7); } 100% { box-shadow: 0 0 0 0 rgba(242,193,78,0); } }
/* The very first stamp: a big chop in the middle of the screen, then it flies to the sticker */
.stamp-big { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(10,9,8,.55); pointer-events: none; animation: sb-in .25s ease-out; }
.stamp-big img { width: 150px; height: 150px; transform-origin: center; transform: rotate(-8deg); animation: sb-thump .6s cubic-bezier(.2,1.6,.4,1); filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.stamp-big p { margin: 0 24px; padding: 8px 14px; border-radius: 12px; background: rgba(18,17,16,.92); color: #fff7ea; font: 700 16px/1.35 var(--font); text-align: center; }
.stamp-big.fly { background: transparent; transition: background .5s; }
.stamp-big.fly img { transition: transform .6s cubic-bezier(.5,0,.3,1); }
.stamp-big.fly p { opacity: 0; transition: opacity .25s; }
@keyframes sb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sb-thump { 0% { transform: scale(2.6) rotate(-18deg); opacity: 0; } 55% { opacity: 1; } 75% { transform: scale(.9) rotate(-8deg); } 100% { transform: scale(1) rotate(-8deg); } }
/* the walk line on the recommendation may wrap to a second line now that Directions sits beside it */
.now-entry .ch-dish { white-space: normal; }
.now-entry .ch-dish .dist { white-space: nowrap; }
.pp-tile.pre-stamp .chop { opacity: 0; }

/* 17 Nov 2026: the filters moved up, right under Plan now. Centred row, no separate panel. */
.now .filters { padding: 10px 0 2px; background: none; }
.now .filter-groups { justify-content: center; margin: 0; padding: 0 0 4px; }
.now .filter-note { margin: 6px 0 0; }

/* 17 Nov 2026: Plan now and a small Filters button share one row; the filters open in a sheet. */
.plan-row { display: flex; gap: 8px; align-items: stretch; }
.plan-row .plan-now { flex: 1 1 auto; width: auto; }
.filter-btn { position: relative; flex: 0 0 56px; display: grid; place-items: center; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); }
.filter-btn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filter-btn.on { border-color: var(--accent); color: var(--accent); }
.filter-btn .fcount { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: #1a120b; font: 800 12px/20px var(--font); text-align: center; box-sizing: border-box; }
.filter-btn .fcount[hidden] { display: none; }
.filter-sheet { inset: auto 12px calc(16px + env(safe-area-inset-bottom)) 12px; margin: 0 auto; width: min(420px, calc(100vw - 24px)); }
.filter-sheet .sheet-title { margin: 0 0 12px; font: 700 18px/1.2 var(--font-display, var(--font)); }
.filter-sheet .filters { padding: 0; background: none; }
.filter-sheet .filter-groups { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; }
.filter-sheet .filter-note { margin: 10px 0 0; }
.filter-sheet .sheet-done { display: block; width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 12px;
  background: var(--accent); color: #1a120b; font: 700 15px var(--font); cursor: pointer; }

/* 17 Nov 2026: so the whole suggestion fits on a phone screen. "Ate it" and "Suggest something else" become one slim
   row (icon beside the words), and the passport row moves below the stall details. */
.now-entry .now-choice { margin: 10px 12px 0; min-height: 0; gap: 8px; }
.now-entry .choice { display: grid; grid-template-columns: 32px 1fr; grid-auto-rows: auto; column-gap: 8px; row-gap: 0;
  align-items: center; justify-items: start; text-align: left; height: auto; min-height: 0; padding: 8px 10px; }
.now-entry .choice > :first-child { grid-row: span 2; width: 32px; height: 32px; margin: 0; }
.now-entry .choice b { font-size: 14px; line-height: 1.2; align-self: end; }
.now-entry .choice small { font-size: 10.5px; line-height: 1.2; align-self: start; }
.now-entry .choice.else b { grid-row: span 2; align-self: center; }
.now-entry .card-body { padding-top: 10px; }
.now-entry .pp-strip { border-top: 1px solid var(--line); }

/* 18 Nov 2026: Directions is a quiet square, the same size as the dish icon on the left (56 x 56). */
.card-head .dir-top { flex: 0 0 56px; width: 56px; height: 56px; min-width: 0; padding: 0; gap: 2px; justify-content: center;
  border-radius: 14px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 600 9.5px/1 var(--font); }
.card-head .dir-top .ic { width: 20px; height: 20px; color: var(--ink-2); }
.card-head .dir-top:hover { border-color: var(--accent); color: var(--ink); }

/* 18 Nov 2026: the "Ate it" stamp lands on the main passport grid, with a glow */
.dish-tile.pre-stamp .chop { opacity: 0; }
.dish-tile.just-stamped .dish-ic { animation: pp-glow 1.4s ease-out; }
.dish-tile.just-stamped .chop { animation: pp-stamp 0.9s cubic-bezier(.2,1.6,.4,1); }

/* 19 Nov 2026: Vic Moey's drawings reach the edges of their square, so they sit fully inside the rounded tiles
   (a small margin, scaled to fit, never cut off by the corners). */
img.art, .chip-art img.art { inset: 7%; width: 86%; height: 86%; object-fit: contain; border-radius: 0 !important; transform: none; }
.pic-ic img { object-fit: contain; border-radius: 0; }

/* 20 Nov 2026: bigger drawings in the same 5-a-row tiles. Each drawing fills 96% of its tile, and the tile no longer
   clips it, so the few bits that reach a corner (satay sticks) sit just over the rounded edge instead of being cut. */
.dish-ic, .chip-art, .ch-art { overflow: visible !important; }
img.art, .chip-art img.art { inset: 2%; width: 96%; height: 96%; }

/* 20 Nov 2026: before the first Plan now, the empty suggestion area takes no space, so the passport sits closer
   (about half the old gap under the Plan now button). */
.now:not(:has(#now-card .card, #now-card .now-intro:not(.now-hello), #now-card .now-far)) { padding-bottom: 8px; }
.now:not(:has(#now-card .card, #now-card .now-intro:not(.now-hello), #now-card .now-far)) #now-card { margin-top: 0; }

/* ---------- Map pins: the artist's dish drawing in a round badge (22 Nov 2026) ----------
   No colour code any more. Orange ring = open now. Grey ring and faded = closed now. Red tick = already stamped. */
.pin {
  position: relative; width: 42px; height: 50px; border: 0; border-radius: 0; background: none; box-shadow: none;
  transform: none; display: block; transform-origin: 50% 100%;
}
.pin-face {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: #fffaf0;
  border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,.4); overflow: hidden; display: grid; place-items: center;
}
.pin::after {   /* the point under the badge */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 0; margin-left: -6px;
  border: 6px solid transparent; border-top: 9px solid var(--accent); border-bottom: 0;
}
.pin-face .ic { position: absolute; width: 20px; height: 20px; color: #6f685c; transform: none; }
.pin-face img.art { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: contain; }
.pin.closed, .pin.tried { filter: none; opacity: 1; }
.pin.closed .pin-face { border-color: #8f897f; }
.pin.closed::after { border-top-color: #8f897f; }
.pin.closed .pin-face img.art { opacity: .5; filter: grayscale(.7); }
.pin-tick {
  position: absolute; right: -4px; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #b91c1c;
  border: 2px solid #fffaf0; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.pin-tick .ic { width: 11px; height: 11px; color: #fff; stroke-width: 3.2; transform: none; }
.pin.active { transform: scale(1.3); animation: pinhop .7s ease 1; }
@keyframes pinhop { 0%, 60%, 100% { transform: scale(1.3) translateY(0); } 30% { transform: scale(1.3) translateY(-10px); } }
.pin-face:has(img.art) .ic { display: none; }

/* Map credits on one line (22 Nov 2026): OneMap's credit must stay, so keep it small rather than cut it. */
.leaflet-control-attribution { white-space: nowrap; font-size: 10px; line-height: 1.5; padding: 0 6px; }
@media (max-width: 400px) { .leaflet-control-attribution { font-size: 9px; letter-spacing: -0.1px; } }
@media (max-width: 359px) { .leaflet-control-attribution { white-space: normal; } } /* very small phones: wrap rather than run off */
