:root {
  --bg: #111114;
  --bg2: #18181d;
  --card: #1f1f26;
  --card2: #272731;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f2ee;
  --muted: #a6a3ad;
  --dim: #8f8c99;
  --pax: #f2b125;
  --pax-ink: #1a1405;
  --coral: #ef6a5b;
  --teal: #3dbfae;
  --sky: #5bb8ec;
  --lilac: #ad93dc;
  --pink: #ec6fa8;
  --radius: 18px;
  --top-h: 60px;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: 0px; /* the top safe area only applies when installed (html.standalone, below) */
  --display: 'Kanit', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(242, 177, 37, 0.12), transparent 60%),
    radial-gradient(900px 500px at -20% 0%, rgba(173, 147, 220, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pax); }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.01em; margin: 0; line-height: 1.1; }
svg { flex-shrink: 0; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(#141417f2, #141417d9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.xmark { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(242, 177, 37, 0.35)); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.04em; line-height: 1; display: flex; flex-direction: column; }
.wordmark b { color: var(--pax); margin-right: 3px; }
.wordmark small { font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.progress { font: 700 12px var(--body); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.progress .bar { width: 64px; height: 6px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--pax)); border-radius: 4px; transition: width 0.4s; }
.sync { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); position: relative; }
.sync::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--dim); transition: background 0.3s; }
.sync.synced::after { background: var(--teal); }
.sync.syncing::after { background: var(--pax); animation: pulse 1s infinite; }
.sync.error::after, .sync.offline::after { background: var(--coral); }

/* ---------- Layout ---------- */
/* App shell: the document never scrolls (so Safari's bars can't push the header or tabs
   around); only <main>, which sits between the fixed header and tab bar, scrolls. */
html, body { height: 100%; overflow: hidden; }
main {
  position: fixed; left: 0; right: 0;
  top: calc(var(--top-h) + var(--safe-t)); bottom: calc(var(--tabs-h) + var(--safe-b));
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 14px max(16px, calc((100% - 980px) / 2)) 28px; outline: none;
}
main.full { padding: 0; overflow: hidden; }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #141417ee; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); text-decoration: none; font: 600 11px var(--body); letter-spacing: 0.03em; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--pax); }
.tabs a.on svg { filter: drop-shadow(0 0 8px rgba(242, 177, 37, 0.5)); }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.page-head h1 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.page-head h1 em { color: var(--pax); font-style: normal; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.eyebrow { font: 700 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pax); }

/* ---------- Chips / buttons ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  padding: 7px 13px; border-radius: 999px; font: 600 13px var(--body); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip.on { background: var(--pax); color: var(--pax-ink); border-color: var(--pax); }
.chip .n { opacity: 0.7; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px;
  padding: 11px 16px; font: 700 14px var(--body); background: var(--card2); color: var(--text); text-decoration: none;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--pax); color: var(--pax-ink); box-shadow: 0 6px 20px -8px rgba(242, 177, 37, 0.7); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--coral); border: 1px solid rgba(239, 106, 91, 0.35); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.steam { background: linear-gradient(135deg, #1b2838, #2a475e); color: #c7d5e0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

input[type='search'], input[type='text'], input[type='email'], input[type='url'], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 11px 13px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(242, 177, 37, 0.6); box-shadow: 0 0 0 3px rgba(242, 177, 37, 0.15); }
textarea { min-height: 96px; resize: vertical; }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.search input { padding-left: 38px; font-size: 16px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- Game cards ---------- */
.count { color: var(--muted); font-size: 13px; margin: 2px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.count select { width: auto; padding: 5px 10px; font-size: 13px; border-radius: 10px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px;
  background: linear-gradient(180deg, var(--card), #1b1b21); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: transform 0.15s, border-color 0.2s;
}
.card:active { transform: scale(0.985); }
.card.s-seen { border-color: rgba(61, 191, 174, 0.35); }
.card.s-want { border-color: rgba(242, 177, 37, 0.4); }
.card.r-love { border-color: rgba(239, 106, 91, 0.5); }
.thumb {
  width: 112px; aspect-ratio: 460 / 215; border-radius: 11px; overflow: hidden; position: relative; align-self: start;
  background: var(--card2); display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .gen { position: absolute; inset: 0; display: grid; place-items: center; font: 800 22px var(--display); color: rgba(255, 255, 255, 0.92); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); letter-spacing: 0.02em; }
.booth-tag {
  position: absolute; left: 6px; bottom: 6px; background: #000c; color: var(--pax); font: 800 11px var(--display);
  padding: 2px 7px; border-radius: 6px; letter-spacing: 0.05em;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.card .studio { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tagline { font-size: 13px; color: #d9d6de; margin: 5px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { font: 700 10.5px var(--body); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--card2); color: var(--muted); }
.pill.want { background: rgba(242, 177, 37, 0.16); color: var(--pax); }
.pill.seen { background: rgba(61, 191, 174, 0.16); color: var(--teal); }
.pill.love { background: rgba(239, 106, 91, 0.18); color: var(--coral); }
.pill.next { background: rgba(91, 184, 236, 0.18); color: var(--sky); }
.pill.rec { background: rgba(173, 147, 220, 0.18); color: var(--lilac); }
.pill.wish { background: rgba(102, 192, 244, 0.14); color: #8fd0f7; }
.pill.sect { background: transparent; border: 1px solid var(--line); }
.left { display: flex; flex-direction: column; gap: 8px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.li .qbtn { flex-shrink: 0; }
.qbtn { min-width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #15151acc; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: 700 11px var(--body); padding: 0 4px; }
.qbtn span { display: none; }
.card .qbtn span { display: inline; }
.qbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qbtn.on.want { background: var(--pax); color: var(--pax-ink); border-color: var(--pax); }
.qbtn.on.seen { background: var(--teal); color: #052521; border-color: var(--teal); }
.card .body { min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; font: 800 20px var(--display); color: var(--text); margin-bottom: 6px; text-transform: uppercase; }

/* ---------- Map ---------- */
.map-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; }
.map-bar { padding: 10px 16px 0; }
.map-bar .chips { margin-bottom: 6px; }
.viewport { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.viewport:active { cursor: grabbing; }
.map-content { transform-origin: 0 0; width: min(100%, 560px); margin: 0 auto; padding: 8px 12px 72px; will-change: transform; }
.floor { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; }
.floor .hall { fill: #1a1a20; stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; }
.floor .afk { fill: #a48bd0; opacity: 0.85; }
.floor .zone-label text { font: 800 15px var(--display); fill: #fff; letter-spacing: 0.08em; }
.floor .ff rect { fill: #f2b12522; stroke: #f2b12555; stroke-dasharray: 5 5; }
.floor .ff text, .floor .edge { font: 800 14px var(--display); fill: #f2b12599; text-anchor: middle; letter-spacing: 0.12em; }
.floor .edge { fill: #ffffff55; }
.floor .qh rect { fill: #2c2c34; }
.floor .pod { fill: #0d0d10; stroke: #f2b12555; stroke-width: 1.5; }
.floor .sl rect { fill: #3a3a44; }
.floor .sl text { font: 700 10px var(--body); fill: #ffffffaa; text-anchor: middle; letter-spacing: 0.1em; }
.floor .sect { font: 800 14px var(--display); fill: #ffffff80; letter-spacing: 0.1em; }
.floor .sect.light { fill: var(--pax); }
.floor .sect.small { font-size: 10.5px; fill: #ffffff70; }
.floor .brand { font: 800 26px var(--display); fill: #fff; letter-spacing: 0.06em; }
.floor .booth { cursor: pointer; transition: opacity 0.25s; }
.floor .booth rect { fill: #34343e; stroke: #4a4a56; stroke-width: 1.5; transition: fill 0.25s; }
.floor .booth text { text-anchor: middle; pointer-events: none; }
.floor .booth .bn { font: 800 16px var(--display); fill: #fff; }
.floor .booth .bt { font: 600 10px var(--body); fill: #ffffffb0; }
.floor .booth .bb { font: 800 12px var(--body); fill: #fff; text-anchor: end; }
.floor .booth.s-want rect { fill: var(--pax); stroke: #ffd673; }
.floor .booth.s-want .bn, .floor .booth.s-want .bt, .floor .booth.s-want .bb { fill: var(--pax-ink); }
.floor .booth.s-seen rect { fill: #1f8f82; stroke: var(--teal); }
.floor .booth.r-love rect { fill: var(--coral); stroke: #ff9d91; }
.floor .booth.r-nope rect { fill: #4a3a3e; stroke: #6b4e54; }
.floor .booth.interested:not(.s-want):not(.s-seen) rect { stroke: var(--pax); stroke-width: 3; }
.floor .booth.next rect { stroke: #fff; stroke-width: 3.5; animation: glow 1.6s ease-in-out infinite; }
.floor .booth.dim { opacity: 0.22; }
.floor .booth.hit rect { stroke: #fff; stroke-width: 4; }
.floor .booth:focus { outline: none; }
.floor .booth:focus-visible rect { stroke: #fff; stroke-width: 4; }
/* New Zealand pavilion (booth 1848): unconfirmed games (2025 line-up) get a dashed, dimmer tile. */
.floor .nz-edge { font-size: 12px; }
.floor .nz-key rect { fill: #34343e; fill-opacity: 0.55; stroke: #8f8c99; stroke-width: 1.2; stroke-dasharray: 3 2; }
.floor .booth.unconf rect { stroke-dasharray: 5 4; stroke: #8f8c99; fill-opacity: 0.55; }
.floor .booth.unconf .bn, .floor .booth.unconf .bt { opacity: 0.75; }
.floor .booth.unconf.next rect, .floor .booth.unconf.hit rect { stroke: #fff; }
.floor .booth.hidden-g rect { stroke: #e0605a; stroke-dasharray: 2 3; fill-opacity: 0.3; }
.pill.unconf { border: 1px dashed var(--dim); color: var(--muted); background: transparent; }
.pill.hidden-g { border: 1px solid #e0605a; color: #e0605a; background: transparent; }
.mod-nz { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zoom { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 8px; }
.zoom .icon-btn { background: #1f1f26ee; backdrop-filter: blur(8px); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font: 600 11.5px var(--body); color: var(--muted); padding: 0 2px 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@keyframes glow { 50% { stroke: var(--sky); } }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.scrim { position: absolute; inset: 0; background: #000a; animation: fade 0.2s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg2); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line);
  padding: 0 0 calc(28px + var(--safe-b)); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 -20px 60px #000a;
}
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; width: 640px; translate: -50% 0; bottom: 3vh; border-radius: 24px; max-height: 94vh; border: 1px solid var(--line); }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.grabber { position: sticky; top: 0; z-index: 3; height: 0; }
.grabber::before { content: ''; position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 42px; height: 5px; border-radius: 3px; background: #ffffff55; }
.sheet .close { position: sticky; top: 10px; float: right; margin: 10px 12px -50px 0; z-index: 4; background: #000a; border-color: #ffffff22; }
.hero { position: relative; aspect-ratio: 460 / 215; background: var(--card2); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .gen { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px var(--display); color: #fff; letter-spacing: 0.02em; text-shadow: 0 4px 20px #0006; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg2)); }
.sheet-body { padding: 0 18px; margin-top: -26px; position: relative; z-index: 2; }
.sheet h2 { font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1.02; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.booth-big { background: var(--pax); color: var(--pax-ink); font: 800 13px var(--display); letter-spacing: 0.06em; padding: 4px 10px; border-radius: 8px; border: 0; }
.sub { color: var(--muted); margin: 6px 0 14px; font-size: 14px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.section h4 { margin: 0 0 10px; font: 700 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg2); padding: 5px; border-radius: 14px; }
.seg button { border: 0; background: transparent; padding: 11px 6px; border-radius: 10px; font: 700 13.5px var(--body); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.seg button.on[data-v='none'] { background: var(--card2); color: var(--text); }
.seg button.on[data-v='want'] { background: var(--pax); color: var(--pax-ink); }
.seg button.on[data-v='seen'] { background: var(--teal); color: #052521; }
.react { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.react button { border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 9px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 11.5px var(--body); color: var(--muted); }
.react button span { font-size: 22px; line-height: 1.1; filter: grayscale(0.7); transition: transform 0.15s, filter 0.2s; }
.react button.on { border-color: var(--coral); background: rgba(239, 106, 91, 0.12); color: var(--text); }
.react button.on span { filter: none; transform: scale(1.18); }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tog { border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; font: 700 13.5px var(--body); color: var(--muted); text-align: left; }
.tog svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tog.on { color: var(--text); }
.tog.on[data-t='interested'] { border-color: var(--pax); background: rgba(242, 177, 37, 0.12); }
.tog.on[data-t='interested'] svg { fill: var(--pax); stroke: var(--pax); }
.tog.on[data-t='upNext'] { border-color: var(--sky); background: rgba(91, 184, 236, 0.12); }
.tog.on[data-t='wishlisted'] { border-color: #66c0f4; background: rgba(102, 192, 244, 0.12); }
.tog.on[data-t='wishlisted'] svg { fill: #66c0f4; stroke: #66c0f4; }
.tog.on[data-t='recommend'] { border-color: var(--lilac); background: rgba(173, 147, 220, 0.14); }
.people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person { border: 1px solid var(--line); background: var(--bg2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); }
.person.on { background: var(--lilac); color: #1b1230; border-color: var(--lilac); }
.desc { color: #dcd9e2; font-size: 14.5px; margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.facts dt { color: var(--dim); font-weight: 600; }
.facts dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { text-decoration: none; }
.mylinks { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.mylinks li { display: flex; gap: 8px; align-items: center; background: var(--bg2); border-radius: 10px; padding: 6px 6px 6px 12px; }
.mylinks a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; font-size: 13.5px; }
.mylinks a b { color: var(--pax); margin-right: 6px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.photos button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--card2); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steam-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.steam-card img { width: 120px; border-radius: 8px; display: block; }
.results { display: grid; gap: 6px; margin-top: 8px; }
.results button { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--bg2); border-radius: 10px; padding: 6px; font-size: 13.5px; }
.results img { width: 80px; border-radius: 6px; }
.saved-hint { font-size: 11.5px; color: var(--dim); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: #000e; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 12px calc(12px + var(--safe-b)); gap: 10px; }
.lightbox img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.lightbox .row { justify-content: center; flex-wrap: wrap; }

/* ---------- Plan / Recs / Me ---------- */
.list-compact { display: grid; gap: 8px; }
.li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.li .num { width: 44px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--card2); font: 800 13px var(--display); color: var(--pax); flex-shrink: 0; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font: 800 26px var(--display); }
.stat span { font: 700 10px var(--body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stat.want b { color: var(--pax); } .stat.seen b { color: var(--teal); } .stat.love b { color: var(--coral); } .stat.next b { color: var(--sky); }
h3.group { font-size: 18px; text-transform: uppercase; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
h3.group small { font: 600 12px var(--body); color: var(--muted); text-transform: none; }
.person-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.person-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--display); color: #1b1230; background: var(--lilac); }
.person-card h3 { font-size: 18px; flex: 1; }
.acct { background: linear-gradient(135deg, #2a2210, #1f1f26 60%); border: 1px solid rgba(242, 177, 37, 0.35); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.acct h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 4px; }
.acct p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.form-err { color: var(--coral); font-size: 13px; margin-top: 6px; min-height: 1em; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); translate: -50% 20px; z-index: 70; background: #f4f2ee; color: #111; font: 700 14px var(--body); padding: 11px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: 0.25s; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px #0008; }
.toast.show { opacity: 1; translate: -50% 0; }
.overview img { width: 100%; border-radius: 14px; display: block; }
.hide { display: none !important; }
.thumb img, .hero img { position: relative; z-index: 1; }
.booth-tag { z-index: 2; }
.hero::after { z-index: 1; }
.photos button { position: relative; }
.ph-status { position: absolute; right: 5px; bottom: 5px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font: 800 11px/22px var(--body); background: #000c; color: #fff; }
.ph-status.s-done { background: var(--teal); color: #052521; }
.ph-status.s-pending, .ph-status.s-reading, .ph-status.s-queued { background: var(--pax); color: var(--pax-ink); }
.ph-status.s-error, .ph-status.s-mismatch, .ph-status.s-nothing, .ph-status.s-nokey { background: #3a3a44; }
.lb-info { color: #ddd; font-size: 13.5px; max-height: 32vh; overflow: auto; background: #1f1f26; border-radius: 12px; padding: 10px 12px; }
.lb-info p { margin: 8px 0 0; }
.lb-info pre { white-space: pre-wrap; font: 13px/1.4 var(--body); margin: 6px 0 0; color: #bbb; }
.sheet label.small { display: grid; gap: 4px; }

.share-btn { width: 30px; height: 30px; border-radius: 50%; }
.share-btn svg { width: 16px; height: 16px; }
.progress .bar { width: 48px; }
.qr-card { background: #fff; border-radius: 22px; padding: 18px 18px 14px; margin: 6px auto 10px; width: min(100%, 300px); box-shadow: 0 0 0 4px var(--pax), 0 20px 50px -20px rgba(242, 177, 37, 0.6); text-align: center; }
.qr-card img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.qr-brand { font: 800 20px var(--display); color: #111; letter-spacing: 0.04em; margin-top: 6px; }
.qr-brand b { color: #d99a0f; margin-right: 3px; }
.qr-brand span { display: block; font: 600 11px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #666; }
.qr-url { text-align: center; font: 700 15px var(--body); color: var(--pax); margin: 4px 0 14px; }
.wordmark small, .progress { white-space: nowrap; }
@media (max-width: 430px) { .progress .bar { display: none; } .top-right { gap: 8px; } }

/* ---------- Plays on: platforms, controller, VR, Steam Deck ---------- */
.tech { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.tb { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; font: 700 10.5px var(--body); letter-spacing: 0.02em; color: #d6d3dc; background: #2a2a33; border: 1px solid #ffffff10; }
.tb svg, .chip svg, .plat-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb.ctl { color: #9fd3ff; background: rgba(91, 184, 236, 0.14); border-color: rgba(91, 184, 236, 0.25); }
.tb.vr { color: #d7c4ff; background: rgba(173, 147, 220, 0.16); border-color: rgba(173, 147, 220, 0.3); }
.tb.deck { color: #c7d5e0; background: #1b2838; border-color: #2a475e; }
.tb.deck.verified { color: #7ee2a8; border-color: rgba(89, 191, 64, 0.5); }
.tb.deck.playable { color: #ffd166; border-color: rgba(255, 209, 102, 0.45); }
.tb.deck.unsupported { color: #ff9b8f; }
.chips.plays { align-items: center; }
.chip-label { flex-shrink: 0; font: 700 10.5px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-right: 2px; }
.chip-sep { flex-shrink: 0; width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.plat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font: 700 13px var(--body); }
.plat-chip svg { width: 15px; height: 15px; color: var(--pax); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 11px 6px 10px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.tt-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-l { font: 700 10px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tt b { font: 700 13px var(--body); }
.tt.good { border-color: rgba(61, 191, 174, 0.45); background: rgba(61, 191, 174, 0.08); }
.tt.good .tt-ic, .tt.good b { color: var(--teal); }
.tt.warn { border-color: rgba(242, 177, 37, 0.45); background: rgba(242, 177, 37, 0.08); }
.tt.warn .tt-ic, .tt.warn b { color: var(--pax); }
.tt.bad { border-color: rgba(239, 106, 91, 0.45); }
.tt.bad .tt-ic, .tt.bad b { color: var(--coral); }
.tt.muted .tt-ic { color: var(--dim); }
.tt.muted b { color: var(--muted); font-weight: 600; }

/* ---------- Card actions: Check out / Played / Want it ---------- */
.card { grid-template-rows: auto auto; }
.card-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.act { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 6px 8px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg2); color: var(--muted); text-align: left; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.act:active { transform: scale(0.96); }
.act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.act span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.act b { font: 700 13.5px var(--body); color: var(--text); white-space: nowrap; }
.act small { font: 600 10.5px var(--body); color: var(--dim); white-space: nowrap; }
.act-want.on { background: var(--pax); border-color: var(--pax); color: var(--pax-ink); }
.act-seen.on { background: var(--teal); border-color: var(--teal); color: #052521; }
.act-wish.on { background: var(--pink); border-color: var(--pink); color: #2a0718; }
.act-wish.on svg { fill: currentColor; }
.act.on b, .act.on small { color: inherit; }
.act.on small { opacity: 0.75; }
.act-want:not(.on) svg { color: var(--pax); }
.act-seen:not(.on) svg { color: var(--teal); }
.act-wish:not(.on) svg { color: var(--pink); }
.card.s-want { border-color: rgba(242, 177, 37, 0.55); }
.tog small { display: block; font: 600 10.5px var(--body); color: var(--dim); margin-top: 1px; }
.tog { align-items: flex-start; }
.tog.on[data-t='wishlisted'] { border-color: var(--pink); background: rgba(236, 111, 168, 0.12); }
.tog.on[data-t='wishlisted'] svg { fill: var(--pink); stroke: var(--pink); }
.toggles { grid-template-columns: repeat(3, 1fr); }
.toggles .tog { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; }
@media (max-width: 360px) { .act small { display: none; } }

/* ---------- Per-game QR ---------- */
.game-qr { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; }
.qr-box { background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 0 0 3px var(--pax); }
.qr-box svg, .qr-box img { width: 100%; height: auto; display: block; }
.qr-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qr-side b { font: 800 18px var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.qr-link { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.qr-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- Sheet top actions ---------- */
.sheet-actions { display: grid; gap: 8px; margin: 4px 0 12px; }
.sheet-actions .card-actions { margin: 0; }
.sheet-actions .act { min-height: 56px; }
.sheet-actions .btn.steam { min-height: 50px; font-size: 15px; }
.steam-row.done { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.steam-row.done .btn.steam { background: linear-gradient(135deg, #1f4d2c, #2a6b3c); color: #c9f5d4; }
.wish-confirm { background: var(--card); border: 1.5px solid var(--pax); border-radius: 14px; padding: 12px; display: grid; gap: 10px; animation: up 0.25s; }
.wish-confirm b { font-size: 14.5px; }
.get-btn { background: var(--card2); min-height: 48px; }
.toggles.two { grid-template-columns: 1fr 1fr; }

/* Installed to the home screen: no browser bars, the status bar overlays the top. */
html.standalone .top { background: #141417; }
.install-tip { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid rgba(242, 177, 37, 0.4); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.install-tip b { color: var(--text); }
.install-tip .grow { min-width: 0; }

.steam-row.back { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.steam-row.back .btn.primary { min-height: 50px; padding: 0 16px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Come back later ---------- */
.sheet-back { margin: -4px 0 12px; }
.back-btn { min-height: 46px; border-style: dashed; }
.back-btn svg, .back-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.back-row { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(91, 184, 236, 0.1); border: 1.5px solid rgba(91, 184, 236, 0.45); }
.back-row .grow { display: flex; flex-direction: column; min-width: 0; }
.back-row small { color: var(--muted); font-size: 12px; }
.back-row .back-ic { color: var(--sky); display: grid; }
.back-row.due { background: rgba(242, 177, 37, 0.14); border-color: var(--pax); animation: glowbox 1.6s ease-in-out infinite; }
.back-row.due .back-ic { color: var(--pax); }
.back-row .icon-btn { width: 34px; height: 34px; }
@keyframes glowbox { 50% { box-shadow: 0 0 0 4px rgba(242, 177, 37, 0.18); } }
.back-picker { background: var(--card); border: 1.5px solid var(--sky); border-radius: 14px; padding: 12px; }
.back-picker input[type='datetime-local'] { color-scheme: dark; }
.back-time { font: 700 12px var(--body); color: var(--sky); white-space: nowrap; padding: 4px 8px; border-radius: 8px; background: rgba(91, 184, 236, 0.12); }
.back-time.due { color: var(--pax-ink); background: var(--pax); }
.floor.tabletop .tt-land text { font: 800 11px var(--display); fill: #ffffff99; text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.06em; pointer-events: none; }
.floor.tabletop .booth.tt rect { stroke-width: 1.2; }
.floor.tabletop .booth.tt .bn { dominant-baseline: auto; }
.floor.tabletop .booth.tt .bt { font-size: 8px; }
.floor.tabletop .edge { transform: none; text-anchor: middle; font-size: 12px; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; }
.mode-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 6px; border-radius: 10px; font: 800 13.5px var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.mode-switch button.on { background: var(--pax); color: var(--pax-ink); }
.mode-switch button.on.tt { background: var(--teal); color: #052521; }
.map-bar .mode-switch { margin-bottom: 8px; }

/* Four card actions: Check out / Seen / Played / Want it */
.card-actions { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.act { flex-direction: column; gap: 3px; min-height: 58px; padding: 7px 4px; text-align: center; }
.act span { align-items: center; }
.act b { font-size: 12.5px; }
.act small { font-size: 10px; }
.act-played.on { background: var(--sky); border-color: var(--sky); color: #04223a; }
.act-played.on svg { fill: currentColor; }
.act-played:not(.on) svg { color: var(--sky); }
.sheet-actions .act { min-height: 64px; }
@media (max-width: 360px) { .act small { display: none; } }
.stats { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }

/* ---------- Me tab role badge ---------- */
.tabs .me-ic { position: relative; display: grid; place-items: center; width: 34px; height: 26px; }
.tabs a.role-admin, .tabs a.role-mod { color: var(--text); }
.tabs a.role-admin .me-ic svg { stroke: #ffd56b; filter: drop-shadow(0 0 6px rgba(242, 177, 37, 0.7)); }
.tabs a.role-admin .me-ic .fill { fill: url(#none); fill: #f2b125; stroke: #ffe7a3; }
.tabs a.role-admin .me-ic .gem { fill: var(--coral); stroke: #fff; stroke-width: 1; }
.tabs a.role-admin span:last-child { background: linear-gradient(90deg, #f2b125, #fff1c2, #f2b125); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; animation: shimmer 2.4s linear infinite; }
.tabs a.role-admin .me-ic::after { content: ''; position: absolute; inset: -6px -4px; border-radius: 12px; background: radial-gradient(closest-side, rgba(242, 177, 37, 0.28), transparent); z-index: -1; animation: pulse 2.4s ease-in-out infinite; }
.tabs a.role-mod .me-ic svg { stroke: var(--lilac); filter: drop-shadow(0 0 6px rgba(173, 147, 220, 0.8)); }
.tabs a.role-mod .me-ic .fill { fill: var(--lilac); stroke: none; }
.tabs a.role-mod span:last-child { color: var(--lilac); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Friends ---------- */
.friend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.friend-row .fr { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.friend-row .fr b { color: var(--text); font-weight: 700; }
.friend-row .fsep { color: var(--dim); }
.friend-row .fmore { color: var(--dim); font-weight: 600; }
.friend-row.full { display: grid; gap: 8px; font-size: 13.5px; }
.friend-row.full .fr { gap: 7px; flex-wrap: wrap; }
.friend-row.full .fav { width: 26px; height: 26px; font-size: 13px; }
.fav, .avatar { font-style: normal; }
.fav { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 11px var(--display); color: #16121f; flex-shrink: 0; }
.fs { font-weight: 600; white-space: nowrap; }
.fs-played { color: var(--sky); }
.fs-seen { color: var(--teal); }
.fs-want { color: var(--pax); }
.fs-wish { color: var(--pink); }
.fsigs { display: inline-flex; gap: 6px; font-size: 14px; flex-shrink: 0; }
.friend-actions { margin-bottom: 4px; }
.friend-actions .btn svg { width: 18px; height: 18px; }
.friend-intro { border-color: rgba(242, 177, 37, 0.35); background: linear-gradient(135deg, #2a2210, var(--card) 65%); }
.friend-card .fcounts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; margin-top: 3px; }
.friend-card h3 { font-size: 18px; }
.friend-card.is-hidden { opacity: 0.6; }
.friend-card .row .btn[disabled] { opacity: 0.45; }
h3.group .btn { text-transform: none; font-family: var(--body); }
.sw-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: var(--text); }
.sw-row:first-of-type { border-top: 0; }
.sw-row b { display: block; font-size: 14.5px; }
.sw-row small { display: block; color: var(--dim); font-size: 12px; margin-top: 1px; }
.sw { width: 46px; height: 28px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background 0.2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.sw.on { background: var(--teal); border-color: var(--teal); }
.sw.on i { transform: translateX(18px); background: #fff; }
.sw-off { opacity: 0.45; }
.recs-wrap { margin-top: 26px; padding-top: 6px; border-top: 1px solid var(--line); }
.recs-head h2 { font-size: 24px; font-weight: 800; text-transform: uppercase; }
.recs-head h2 em { color: var(--pax); font-style: normal; }
.friend-qr svg { width: 100%; height: auto; display: block; }
.fadd-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.fadd-head h2 { font-size: 22px; }
.avatar.big { width: 52px; height: 52px; font-size: 22px; flex-shrink: 0; }
.scan-box { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 4px auto 10px; border-radius: 18px; overflow: hidden; background: #000; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 16%; border: 3px solid var(--pax); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); pointer-events: none; }
#scanPaste { margin-top: 10px; }

/* Email me my list + save-your-email prompt */
.no-spam { display: grid; gap: 4px; margin: 14px 0 4px; padding: 14px 14px 14px 16px; border-radius: 14px; background: rgba(61, 191, 174, 0.1); border: 2px solid rgba(61, 191, 174, 0.55); }
.no-spam b { font: 700 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); }
.no-spam span { font-size: 14px; color: var(--teal); font-weight: 600; }
.upd p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.upd p b { color: var(--text); }
.upd .upd-form { margin-bottom: 10px; }
.upd-saved b { color: var(--pax); word-break: break-all; }
.upd .form-err:empty, .ask-sheet .form-err:empty, .list-sheet .form-err:empty { display: none; }
.ask-sheet .upd-form { margin-top: 12px; }
.ask-sheet .upd-saved { margin: 12px 0 10px; color: var(--muted); }
.list-preview { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: #0b0b0e; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0 0; max-height: 42vh; overflow: auto; }
.plan-mail { margin-top: 10px; }

/* Not-affiliated notice (built by the inline script in index.html): small card above the tab bar,
   under sheets (z 40) and toasts (z 70). Only the card itself takes taps. */
.disclaimer { position: fixed; z-index: 30; left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 6px 8px 14px; border-radius: 14px; background: #26232d; border: 1px solid #ffffff1f; box-shadow: 0 10px 30px #0009;
  color: var(--text); font: 500 13px/1.35 var(--body); animation: dc-in 0.25s ease-out; transition: opacity 0.2s, translate 0.2s; }
.disclaimer p { margin: 0; flex: 1; min-width: 0; }
.disclaimer b { color: var(--pax); }
.disclaimer .dc-ok { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--pax); color: var(--pax-ink); font: 800 14px var(--body); cursor: pointer; }
.disclaimer .dc-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.disclaimer .dc-x svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.disclaimer.out { opacity: 0; translate: 0 10px; pointer-events: none; }
@keyframes dc-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .disclaimer { animation: none; transition: none; } }
.unofficial { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(242, 177, 37, 0.45); background: rgba(242, 177, 37, 0.08); font-size: 13.5px; color: var(--text); }
.unofficial b { color: var(--pax); }

/* ---------- 2026-10-09 review fixes ---------- */
/* Header: 44px touch areas without growing the buttons; short labels on small phones. */
.share-btn, .sync { position: relative; }
.share-btn::before, .sync::before { content: ''; position: absolute; inset: -7px; }
@media (max-width: 360px) { .progress .pw { display: none; } .wordmark { font-size: 18px; } .xmark { width: 26px; height: 26px; } .top { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 380px) { .mode-switch .ml { display: none; } }

/* Compact mode switch and chips so content starts higher. */
.mode-switch { margin-bottom: 8px; }
.mode-switch button { padding: 7px 6px; }
.chip { padding: 9px 13px; }
.map-bar { padding: 8px 16px 0; }
.map-bar .mode-switch { margin-bottom: 6px; }
.map-bar .chips { margin-bottom: 4px; }
.map-bar .legend { padding-bottom: 6px; }
.key-chip { font-weight: 700; }
.map-none { position: absolute; top: 10px; left: 50%; translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #1f1f26f2; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; font: 600 12.5px var(--body); color: var(--muted); box-shadow: 0 8px 24px #0008; }
.map-none[hidden] { display: none; }

/* Games: one-line heading, search + Filters on one row. */
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.games-head h1 { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.games-head h1 em { color: var(--pax); font-style: normal; }
.search-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.search-row .search { flex: 1; margin: 0; min-width: 0; }
.filters-btn { padding: 0 12px; min-height: 44px; border: 1px solid var(--line); background: var(--card); gap: 6px; flex-shrink: 0; }
.filters-btn.on { border-color: var(--pax); color: var(--pax); }
.fcount { min-width: 20px; height: 20px; border-radius: 10px; background: var(--pax); color: var(--pax-ink); font: 800 11.5px/20px var(--body); text-align: center; padding: 0 5px; }
.linkish { border: 0; background: none; color: var(--pax); font: 700 13px var(--body); padding: 10px 0 10px 10px; }
.count { margin: 0 0 8px; min-height: 24px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0 0 6px; padding: 0; }
.filters-sheet .fh { margin: 14px 0 8px; font: 700 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.filters-sheet .fh small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--dim); margin-left: 6px; }
.install-tip { padding: 6px 6px 6px 12px; margin-bottom: 10px; }
.install-tip .icon-btn { width: 36px; height: 36px; }
@media (max-width: 380px) { .games-head h1 { font-size: 20px; } }

/* Game sheet: Up next sits beside Come back later, under the card actions. */
.sheet-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 12px; align-items: stretch; }
.sheet-plan:has(.back-row, .back-picker) { grid-template-columns: 1fr; }
.sheet-plan .sheet-back { margin: 0; }
.sheet-plan .back-btn { height: 100%; }
.next-tog { width: 100%; min-height: 46px; align-items: center; }
.next-tog span { display: flex; flex-direction: column; }
.next-tog.on { border-color: var(--sky); background: rgba(91, 184, 236, 0.12); color: var(--text); }
.rec-tog { padding: 6px 10px; font-size: 12px; text-transform: none; letter-spacing: 0; min-height: 36px; }
.rec-tog.on { border-color: var(--lilac); background: rgba(173, 147, 220, 0.14); color: var(--text); }
.rec-tog svg { width: 16px; height: 16px; }

/* Touch targets. */
.back-row .icon-btn { width: 40px; height: 40px; }
.li .qbtn { min-width: 40px; height: 40px; }

/* "Made with T3 Code" */
.made-with { margin: 18px 0 4px; text-align: center; font: 600 12px var(--body); }
.made-with a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--dim); text-decoration: none; transition: color 0.15s, background 0.15s; }
.made-with a:hover, .made-with a:focus-visible { color: var(--text); background: var(--card); }
.made-with a:active { transform: scale(0.97); }
.t3-mark { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.games-head .gcount { font: 700 13px var(--body); color: var(--muted); letter-spacing: 0; vertical-align: middle; }

/* Me tab: name + email card */
.me-profile .fl { display: block; font: 600 13px var(--body); color: var(--text); margin-bottom: 10px; }
.me-profile .fl small { color: var(--dim); font-weight: 500; margin-left: 6px; }
.me-profile .fl input { margin-top: 6px; width: 100%; }
.me-profile #profSaved { color: var(--teal); }

/* Promotion pop-up */
.promo-sheet { text-align: center; }
.promo-sheet h2 { margin: 10px 0 6px; }
.promo-badge { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; background: radial-gradient(circle, rgba(173, 147, 220, 0.3), transparent 70%); }
.promo-badge svg { width: 56px; height: 56px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promo-mod .promo-badge svg { stroke: var(--lilac); filter: drop-shadow(0 0 10px rgba(173, 147, 220, 0.8)); }
.promo-mod .promo-badge .fill { fill: var(--lilac); stroke: none; }
.promo-mod h2 { color: var(--lilac); }
.promo-admin .promo-badge { background: radial-gradient(circle, rgba(242, 177, 37, 0.32), transparent 70%); }
.promo-admin .promo-badge svg { stroke: #ffd56b; filter: drop-shadow(0 0 10px rgba(242, 177, 37, 0.8)); }
.promo-admin .promo-badge .fill { fill: #f2b125; stroke: #ffe7a3; }
.promo-admin .promo-badge .gem { fill: var(--coral); stroke: #fff; stroke-width: 1; }
.promo-admin h2 { color: var(--pax); }
.promo-list { text-align: left; margin: 14px 0 16px; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.promo-list li { margin-bottom: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .promo-badge { animation: promo-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
  .promo-badge svg { animation: pulse 2.4s ease-in-out 0.7s infinite; }
}
@keyframes promo-pop { from { transform: scale(0.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Compact top controls: content first (2026-10-09). Small segmented hall switch that sits in a row. */
.mode-switch { display: inline-flex; grid-template-columns: none; gap: 2px; padding: 2px; margin: 0; border-radius: 999px; flex-shrink: 0; }
.mode-switch button { position: relative; padding: 0 10px; height: 32px; border-radius: 999px; font: 700 12px var(--body); letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
.mode-switch button::before { content: ''; position: absolute; inset: -4px 0; } /* 40px touch target */
.map-bar .mode-switch { margin: 0; }
.games-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.games-head .mini-title { flex: 1; min-width: 0; margin: 0; font: 700 13px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-mini { min-height: 36px; padding: 0 10px; gap: 4px; }
.add-mini svg { width: 16px; height: 16px; }
.search-row { margin-bottom: 8px; }
.search-row .search input { height: 40px; padding-top: 0; padding-bottom: 0; }
.filters-btn { min-height: 40px; padding: 0 10px; }
.chip { padding: 6px 12px; min-height: 34px; font-size: 12.5px; }
.chips { margin-bottom: 8px; }
.map-bar { padding: 6px 12px 0; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bar-row .chips { flex: 1; min-width: 0; margin: 0 -12px 0 0; padding: 2px 12px 2px 0; }
.key-chip { padding: 6px 10px; }
.stats.thin { display: flex; gap: 6px; margin: 0 0 10px; }
.stats.thin .stat { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 6px 4px; border-radius: 10px; }
.stats.thin .stat b { display: inline; font-size: 17px; }
.stats.thin .stat span { font-size: 9.5px; letter-spacing: 0.06em; }
main:not(.full) { padding-top: 10px; }
@media (max-width: 360px) { .mode-switch button { padding: 0 8px; font-size: 11.5px; } .add-mini span { display: none; } .stats.thin .stat span { font-size: 8.5px; } }

/* Android Chrome: no font boosting; header top inset only when installed. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.standalone { --safe-t: env(safe-area-inset-top, 0px); }
/* Header fits 320-412 px: smaller wordmark, progress shows just the numbers. */
@media (max-width: 430px) {
  .top { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .wordmark { font-size: 18px; }
  .wordmark small { font-size: 9.5px; }
  .xmark { width: 26px; height: 26px; }
  .brand { gap: 8px; min-width: 0; }
  .top-right { gap: 6px; flex-shrink: 0; }
  .progress { gap: 6px; }
  .progress .pw { display: none; }
  .progress .bar { width: 40px; }
}
@media (max-width: 345px) { .progress .bar { display: none; } }
main:not(.full) { padding-top: 8px; }
.games-head, .search-row { margin-bottom: 6px; }
#stChips { margin-bottom: 6px; }
.mode-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; line-height: 1; vertical-align: middle; }
.stats.thin .stat span { white-space: nowrap; }
@media (max-width: 360px) { .games-head .mini-title .lbl { display: none; } .stats.thin .stat { flex-direction: column; align-items: center; gap: 0; } }

/* Hall switch scrolls with the chips: a compact two-segment pill, a thin divider, then the filters. */
.chips .mode-switch { align-self: center; }
.chips .chip-sep { align-self: center; height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-row .add-mini { min-height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
@media (max-width: 360px) { .filters-btn span { display: none; } }

/* Developer role */
.pill.dev { background: rgba(61, 191, 174, 0.16); color: var(--teal); }
.dev-h { margin: 14px 0 6px; font: 700 11px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dev-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.dev-row small { display: block; color: var(--dim); font-size: 12px; overflow-wrap: anywhere; }
.tabs a.role-dev { color: var(--text); }
.tabs a.role-dev .me-ic svg { stroke: var(--teal); filter: drop-shadow(0 0 6px rgba(61, 191, 174, 0.7)); }
.tabs a.role-dev span:last-child { color: var(--teal); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }
.claim-card { text-align: center; }
.claim-card h1 { font-size: 24px; margin: 10px 0 6px; }
.promo-dev .promo-badge { background: radial-gradient(circle, rgba(61, 191, 174, 0.3), transparent 70%); }
.promo-dev .promo-badge svg { stroke: var(--teal); filter: drop-shadow(0 0 10px rgba(61, 191, 174, 0.8)); }
.promo-dev h2 { color: var(--teal); }

/* Friends: whose marks are whose */
.fr.you { color: var(--muted); }
.fr.you b, .fr.them b { color: var(--text); margin-right: 2px; }
.fs-rate { white-space: nowrap; }
.fli .t > span { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; }
.friend-row.full .fr.you { display: block; margin-top: 6px; }

/* Needs info */
.floor .booth.ni rect { stroke-width: 3; stroke-dasharray: none; fill-opacity: 1; }
.floor .booth.ni-1 rect { stroke: #f2b125; }
.floor .booth.ni-2 rect { stroke: #f08a4b; fill: #3e3226; }
.floor .booth.ni-3 rect { stroke: #e0605a; fill: #4a2a2e; }
.floor .booth.ni .bb { fill: #ffd673; font-size: 13px; }
.ni-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ni-chips .pill { font-size: 10.5px; padding: 2px 7px; }
.ni-pill { border: 1px solid #f08a4b88; color: #f6b08a; background: transparent; }
.ni-row.ni-3 .num { color: #e0605a; }
.ni-row .btn.sm { min-height: 36px; }
.ni-row { overflow: hidden; }
.ni-row .btn { flex-shrink: 0; width: 40px; padding: 0; justify-content: center; }
.ni-chips { min-width: 0; }
.ni-chips .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Admin tools (admin only) */
.pill.admin { background: rgba(239, 106, 91, 0.18); color: var(--coral); border: 1px solid rgba(239, 106, 91, 0.45); }
.pill.moved { background: rgba(91, 184, 236, 0.14); color: var(--sky); border: 1px dashed rgba(91, 184, 236, 0.5); }
.admin-tools { border: 1px solid rgba(239, 106, 91, 0.35); border-radius: 12px; padding: 12px; background: rgba(239, 106, 91, 0.05); }
.admin-steam .results { margin-top: 8px; }
.chk { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.chk input { width: auto; }
.photo-mode { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.photo-mode button { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13px var(--body); }
.photo-mode button.on { border-color: var(--coral); color: var(--text); background: rgba(239, 106, 91, 0.12); }
.diff-list { display: grid; gap: 8px; }
.diff-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.diff-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.diff-row .grow { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.diff-old { color: var(--dim); text-decoration: line-through; font-size: 13px; }
.diff-new { color: var(--text); font-size: 14px; }
.diff-new::before { content: '→ '; color: var(--coral); }
.admin-note { border-left: 3px solid var(--coral); padding: 6px 10px; margin: 0 0 10px; background: rgba(239, 106, 91, 0.06); border-radius: 6px; font-size: 13px; }
.admin-note p { margin: 4px 0 0; white-space: pre-wrap; }
.reader-note { display: block; margin-bottom: 8px; }
.reader-note textarea { margin-top: 4px; }

/* Friends on the map: booths coloured by a friend's marks (Friends highlight) */
.fpick { padding-top: 0; }
.fpick .chip.fchip { display: inline-flex; align-items: center; gap: 5px; }
.fpick .fav { width: 18px; height: 18px; font-size: 10px; }
.fleg { gap: 8px 12px; padding-top: 2px; }
.fmk { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.fm-love { background: var(--coral); } .fm-like { background: #8cc152; } .fm-nope { background: #4a3a3e; outline: 1px dashed #b07a84; }
.fm-played { background: var(--sky); } .fm-seen { background: #1f8f82; } .fm-want { background: var(--pax); } .fm-wish { background: #e57bb8; }
.floor .booth.fm rect { stroke: #fff; stroke-width: 2; }
.floor .booth.fm-love rect { fill: var(--coral); }
.floor .booth.fm-like rect { fill: #8cc152; }
.floor .booth.fm-nope rect { fill: #4a3a3e; stroke: #b07a84; stroke-dasharray: 4 3; }
.floor .booth.fm-played rect { fill: var(--sky); }
.floor .booth.fm-seen rect { fill: #1f8f82; }
.floor .booth.fm-want rect { fill: var(--pax); }
.floor .booth.fm-wish rect { fill: #e57bb8; }
.floor .booth.fm-want .bn, .floor .booth.fm-want .bt, .floor .booth.fm-want .bb, .floor .booth.fm-like .bn, .floor .booth.fm-like .bt, .floor .booth.fm-like .bb,
.floor .booth.fm-played .bn, .floor .booth.fm-played .bt, .floor .booth.fm-played .bb { fill: #16121f; }
.floor .booth.fm .bb { font-size: 13px; }
.fpick[hidden], .fleg[hidden] { display: none; }

/* Header: my marks summary (colours match the card actions and the map) */
.progress.marks { display: flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 6px; margin: 0 -4px; border: 0; background: transparent; border-radius: 12px; color: var(--text); font: 800 12.5px var(--body); cursor: pointer; }
.progress.marks:hover, .progress.marks[aria-expanded='true'] { background: var(--card); }
.mk { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.mk i, .mp-row i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.m-want i { background: var(--pax); } .m-seen i { background: var(--teal); } .m-played i { background: var(--sky); }
.m-wish i { background: #e57bb8; } .m-love i { background: var(--coral); } .m-like i { background: #8cc152; }
.m-nope i { background: #6b4e54; } .m-next i { background: #fff; } .m-back i { background: var(--lilac); }
@media (max-width: 339px) { .progress.marks { gap: 5px; } .mk { gap: 2px; } }
.marks-pop { position: fixed; z-index: 35; top: calc(var(--top-h) + var(--safe-t) - 4px); right: calc(10px + env(safe-area-inset-right, 0px)); width: min(260px, calc(100vw - 20px));
  background: #26232d; border: 1px solid #ffffff1f; border-radius: 14px; box-shadow: 0 14px 40px #000a; padding: 6px; animation: dc-in 0.15s ease-out; }
.mp-h { font: 700 12px var(--body); color: var(--muted); padding: 8px 10px 6px; display: flex; justify-content: space-between; gap: 8px; }
.mp-h small { font-weight: 600; color: var(--dim); }
.mp-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 600 14px var(--body); text-align: left; cursor: pointer; }
.mp-row span { flex: 1; }
.mp-row b { font-variant-numeric: tabular-nums; }
.mp-row:hover, .mp-row:focus-visible { background: #ffffff10; }
.mp-row i { width: 10px; height: 10px; }
@media (prefers-reduced-motion: reduce) { .marks-pop { animation: none; } }
/* The brand never shrinks under the counts; the summary drops dots first (then clips as a last resort). */
.top .brand { flex-shrink: 0; }
.top .top-right { flex-shrink: 1; min-width: 0; }
.top .top-right > .icon-btn, .top .top-right > .sync { flex-shrink: 0; }
.progress.marks { min-width: 44px; overflow: hidden; flex-shrink: 1; }
.mk.m-more { color: var(--muted); }
.mk[hidden] { display: none; }
@media (max-width: 374px) { .progress.marks { font-size: 12px; gap: 5px; } }

/* Game sheet: every moderator / admin / developer tool sits in one collapsible section at the bottom. */
.tools { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: #ffffff05; }
.tools > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font: 800 14px var(--body); color: var(--text); }
.tools > summary::-webkit-details-marker { display: none; }
.tools > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: rotate 0.2s; }
.tools[open] > summary::after { rotate: 180deg; }
.tools .tools-hint { font: 700 10.5px var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.tools > div { padding: 0 14px; }
.tools > div:last-child { padding-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .tools > summary::after { transition: none; } }

/* Map search (2026-10-09): button before the chip row, top sheet with instant results across both halls. */
.bar-row .map-search { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; color: var(--text); position: relative; }
.bar-row .map-search::before { content: ''; position: absolute; inset: -2px; } /* 44 px touch target */
.bar-row .map-search svg { width: 19px; height: 19px; stroke-width: 2.4; }
.srch-wrap { position: fixed; inset: 0; z-index: 39; }
.srch { position: absolute; top: 0; left: 0; right: 0; max-height: 100vh; max-height: 100dvh; display: flex; flex-direction: column; background: var(--bg2);
  border-radius: 0 0 22px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 60px #000c; padding-top: calc(10px + var(--safe-t)); animation: srch-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1); }
@media (min-width: 760px) { .srch { left: 50%; right: auto; width: 640px; translate: -50% 0; top: 2vh; border-radius: 22px; border: 1px solid var(--line); max-height: 90vh; } }
@keyframes srch-in { from { transform: translateY(-24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .srch { animation: none; } }
.srch-bar { display: flex; gap: 8px; align-items: center; padding: 0 12px 8px; }
.srch-bar .search { flex: 1; margin: 0; min-width: 0; }
.srch-bar .search input { height: 44px; padding-top: 0; padding-bottom: 0; }
.srch-x { min-height: 44px; padding: 0 12px; flex-shrink: 0; }
.chips.srch-chips { margin: 0; padding: 0 12px 8px; flex-shrink: 0; }
.srch-chips .chip .mk i { width: 8px; height: 8px; }
.srch-list { list-style: none; margin: 0; padding: 0 6px 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.sr { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 12px; cursor: pointer; min-height: 56px; }
.sr:hover, .sr:focus-visible { background: #ffffff0d; outline: none; }
.sr:active { background: #ffffff14; }
.thumb.sr-th { width: 72px; border-radius: 8px; flex-shrink: 0; align-self: center; }
.thumb.sr-th .gen { font-size: 15px; }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sr-t { font: 700 15px var(--body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-t mark { background: rgba(242, 177, 37, 0.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-m { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 11.5px; color: var(--dim); }
.sr-area { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sr-dots { display: inline-flex; gap: 3px; flex-shrink: 0; }
.sr-dots .mk i { width: 9px; height: 9px; }
.sr-fr { display: inline-flex; align-items: center; flex-shrink: 0; }
.sr-fr .fav { width: 16px; height: 16px; font-size: 9px; margin-left: -4px; border: 1px solid var(--bg2); }
.sr-fr .fav:first-child { margin-left: 0; }
.sr-fr small { margin-left: 3px; font-weight: 700; }
.sr-booth { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; min-height: 44px; min-width: 44px; padding: 0 9px; border-radius: 10px;
  border: 1px solid rgba(242, 177, 37, 0.35); background: #000; color: var(--pax); font: 800 12.5px var(--display); letter-spacing: 0.04em; justify-content: center; }
.sr-booth svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.sr-booth:active { background: #2a2208; }
.sr-h { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--body); color: var(--muted); padding: 6px 8px 2px; }
.sr-recent { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--text); font: 600 15px var(--body); text-align: left; border-radius: 10px; }
.sr-recent svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2; flex-shrink: 0; }
.sr-recent:active { background: #ffffff10; }
.sr-tip { padding: 14px 10px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.srch-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 14px 12px; border-top: 1px solid var(--line); flex-shrink: 0; }
.srch-foot:empty { display: none; }
.srch-foot .small { margin-right: auto; }
.srch-foot .linkish { min-height: 36px; font-weight: 700; }
/* Booth found from search or "Show on map": a pulsing outline, never dimmed by a highlight. */
.floor .booth.hit { opacity: 1; }
.floor .booth.hit rect { animation: hitpulse 0.9s ease-in-out infinite; }
@keyframes hitpulse { 50% { stroke: var(--pax); stroke-width: 7; } }
@media (prefers-reduced-motion: reduce) { .floor .booth.hit rect { animation: none; stroke: var(--pax); } }
