/* Romanian Golden Mile — dark pub-night UI, phone first */
:root {
  --bg: #120c1a;
  --bg2: #1b1326;
  --card: #231a30;
  --card2: #2d2240;
  --line: #3a2d4f;
  --text: #f4ecff;
  --muted: #a999bd;
  --gold: #f5c542;
  --gold2: #c99a12;
  --red: #e4393c;
  --blue: #2a63d8;
  --yellow: #f8d32e;
  --green: #3fc380;
  --danger: #ff5a5f;
  --radius: 16px;
  --nav-h: 64px;
  --tap: 48px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
body { min-height: 100dvh; line-height: 1.45; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; }
h1:focus, h1:focus-visible { outline: none; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6rem; }
.display { font-family: 'Bebas Neue', 'Inter', sans-serif; font-weight: 400; letter-spacing: .04em; font-size: 2.9rem; color: var(--gold); text-shadow: 0 2px 0 #6b4e00, 0 6px 18px rgba(245,197,66,.25); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.tiny { font-size: .75rem; }
.mono { font-variant-numeric: tabular-nums; }

.page { padding: 16px; max-width: 980px; margin: 0 auto; }
.page.narrow { max-width: 560px; }
.hero { text-align: center; padding: 20px 0 10px; }
.hero .tagline { color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.flag { display: inline-flex; width: 72px; height: 16px; border-radius: 4px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.flag span { flex: 1; }
.flag span:nth-child(1) { background: #0a2fa8; }
.flag span:nth-child(2) { background: var(--yellow); }
.flag span:nth-child(3) { background: #d8232a; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.card.compact { padding: 12px 14px; }
.card.notice { border-color: var(--gold2); }
.card.highlight { border-color: var(--gold); background: linear-gradient(160deg, #2c2238, #1f1630); }
.card.danger { border-color: var(--danger); }
.card h2 { display: flex; align-items: center; gap: .4rem; }
.section-title { margin: 22px 0 10px; font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .05em; color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

/* Forms */
.form label { display: block; margin-bottom: 12px; }
.form label > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.form label > span small { color: var(--gold); }
input:not([type]), input[type=text], input[type=tel], input[type=password], input[type=number], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); min-height: var(--tap);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
label.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
label.check input { flex: 0 0 22px; width: 22px; height: 22px; min-width: 22px; aspect-ratio: 1; margin: 0; accent-color: var(--gold); }
label.check { align-items: flex-start; }
label.check > span { padding-top: 1px; }
.alert { background: rgba(228,57,60,.18); border: 1px solid var(--red); color: #ffd6d7; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px); z-index: 50; background: #3b1620; border: 1px solid var(--danger); color: #ffe1e3; padding: 12px 16px; border-radius: 12px; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.toast.ok { background: #13331f; border-color: var(--green); color: #d6ffe6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--tap); padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .06s ease, filter .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: #1a1200; border-color: #8a6600; }
.btn.danger { background: linear-gradient(180deg, #ff6b6f, #c7262a); color: #fff; border-color: #7a1416; }
.btn.ghost { background: transparent; }
.btn.good { background: linear-gradient(180deg, #4ad48f, #23995c); color: #04200f; border-color: #137040; }
.btn.block { display: flex; width: 100%; }
.btn.big { font-size: 1.15rem; min-height: 56px; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn.selected { outline: 3px solid var(--gold); outline-offset: -1px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 auto; }

/* Badges / pills */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--card2); color: var(--muted); border: 1px solid var(--line); }
.badge.gold { background: rgba(245,197,66,.15); color: var(--gold); border-color: var(--gold2); }
.badge.red { background: rgba(228,57,60,.18); color: #ffb3b5; border-color: var(--red); }
.badge.green { background: rgba(63,195,128,.15); color: #9ff0c4; border-color: #2b8a5c; }
.badge.blue { background: rgba(42,99,216,.2); color: #bcd0ff; border-color: var(--blue); }
.pts { display: inline-block; min-width: 2.4rem; text-align: center; font-weight: 800; border-radius: 8px; padding: 1px 6px; margin-right: .5rem; }
.pts.plus { background: rgba(63,195,128,.18); color: #9ff0c4; }
.pts.minus { background: rgba(228,57,60,.2); color: #ffb3b5; }
.pts.zero { background: var(--card2); color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: linear-gradient(145deg, var(--blue), #6a3fd8); color: #fff; flex: none; font-size: .9rem; }
.avatar.gold { background: linear-gradient(145deg, var(--gold), #b7791f); color: #221700; }
.avatar.red { background: linear-gradient(145deg, var(--red), #8a1a1c); }

/* Rules */
.rules .card h2 { font-size: 1.1rem; }
.rules ul { padding-left: 1.2rem; margin: 0; }
.rules ul.points { list-style: none; padding: 0; }
.rules ul.points li { display: flex; align-items: center; padding: 4px 0; }
.rules .card.doom { border-color: var(--red); }
.rules .card.finale { border-color: var(--blue); }
.rules .card.safety { border-color: var(--green); }

/* Room shell */
.room { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(18,12,26,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar .brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; letter-spacing: .05em; color: var(--gold); white-space: nowrap; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #0e0914; border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.bottomnav button { flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bottomnav button .ico { font-size: 1.3rem; line-height: 1; }
.bottomnav button.active { color: var(--gold); }
.bottomnav button .dot { position: absolute; margin-left: 26px; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.tab { padding: 14px 16px; max-width: 760px; margin: 0 auto; }

/* Lobby */
.players { display: flex; flex-wrap: wrap; gap: 10px; }
.player { display: flex; align-items: center; gap: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; animation: pop .35s ease; }
.player.left { opacity: .45; text-decoration: line-through; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bigcount { font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem; color: var(--gold); line-height: 1; }

/* Tonight */
.barcard .seq { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.barcard .name { font-size: 1.35rem; font-weight: 800; }
.barcard .addr { color: var(--muted); font-size: .9rem; }
.times { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.times div { font-size: .85rem; color: var(--muted); }
.times strong { display: block; color: var(--text); font-size: 1.05rem; }
.pace.ahead { color: #9ff0c4; } .pace.behind { color: #ffb3b5; } .pace.ontime { color: var(--gold); }

/* Route */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.timeline .dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: var(--card2); border: 2px solid var(--line); color: var(--muted); }
.timeline li.complete .dot { background: #1f5a3a; border-color: var(--green); color: #d6ffe6; }
.timeline li.active .dot { background: var(--gold); border-color: #fff2b3; color: #1a1200; box-shadow: 0 0 0 4px rgba(245,197,66,.25); }
.timeline li.skipped .dot { background: #4a2a2a; border-color: var(--red); text-decoration: line-through; }
.timeline .tname { font-weight: 700; }
.timeline .tmeta { font-size: .8rem; color: var(--muted); }
.timeline .ttime { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.timeline .ttime strong { display: block; color: var(--text); }
.timeline li.active .ttime strong { color: var(--gold); }
#route-map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }

/* Challenge */
.challenge h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: .04em; color: var(--gold); }
.challenge .theme { color: var(--muted); margin-top: -.4rem; }
.challenge dl { margin: 10px 0 0; }
.challenge dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }
.challenge dd { margin: 2px 0 0; }
.votegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.votegrid .btn { min-height: 64px; flex-direction: column; gap: 2px; }
.votegrid .btn small { font-weight: 400; color: var(--muted); }
.votegrid .btn.selected small { color: inherit; }
.resultpick { display: grid; grid-template-columns: 1fr; gap: 8px; }
.resultpick label > span { font-size: .8rem; color: var(--muted); }

/* Wheel */
.wheelwrap { position: relative; width: min(100%, 400px); margin: 0 auto; }
.wheelwrap canvas { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 0 0 6px #2a1d3a, 0 0 40px rgba(228,57,60,.35); }
.wheelwrap .pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 34px solid var(--gold); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); z-index: 2; }
.wheelwrap .hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffe28a, #b7791f); border: 4px solid #3a2a00; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; z-index: 2; }
.doomtitle { font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; letter-spacing: .1em; text-align: center; margin: 4px 0 14px; }
.doomresult { text-align: center; }
.doomresult .pname { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold); letter-spacing: .04em; }
.doomresult .victim { font-size: 1.1rem; }
.reveal { animation: reveal .5s ease; }
@keyframes reveal { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.punish { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.punish:last-child { border-bottom: 0; }
.punish .pt { font-weight: 700; }
.punish .pi { font-size: .9rem; color: var(--muted); }
.punish.mine { background: rgba(245,197,66,.08); margin: 0 -10px; padding: 10px; border-radius: 10px; border: 1px solid var(--gold2); }
.punish.done { opacity: .55; }
.awk { color: var(--red); letter-spacing: -2px; }

/* Leaderboard */
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 4px; }
.lb td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.lb td.num { text-align: center; font-variant-numeric: tabular-nums; }
.lb .rank { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--muted); width: 2rem; }
.lb tr.top1 .rank { color: var(--gold); } .lb tr.top2 .rank { color: #d9d9d9; } .lb tr.top3 .rank { color: #d08a4a; }
.lb tr.me td { background: rgba(245,197,66,.07); }
.lb .score { font-size: 1.35rem; font-weight: 800; color: var(--gold); }
.lb tr.left td { opacity: .45; }
.podium { display: flex; gap: 8px; }
.podium .spot { flex: 1; text-align: center; background: var(--card2); border-radius: 12px; padding: 10px 6px; border: 1px solid var(--line); }
.podium .spot .n { font-weight: 700; font-size: .9rem; }
.podium .spot .s { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); line-height: 1; }

/* Awards */
.award { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.award:last-child { border-bottom: 0; }
.award .rt { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .04em; color: var(--gold); line-height: 1.1; }
.award .en { color: var(--muted); font-size: .85rem; }
.award .winner { font-size: 1.15rem; font-weight: 800; margin-top: 4px; }
.award .noms { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* Log */
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.log .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; padding-top: 2px; }
.log .a { color: var(--gold); font-weight: 600; }

/* Finale */
.finale-hero { text-align: center; padding: 14px 0; }
.finale-hero .display { font-size: 3.2rem; }
.triton { font-size: 4rem; line-height: 1; }

/* Blazor plumbing */
#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; color: #222; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
#route-map .leaflet-tile-pane { filter: invert(1) hue-rotate(190deg) brightness(.8) contrast(.95) saturate(.6); }
#route-map .leaflet-control-attribution { background: rgba(18,12,26,.8); color: var(--muted); font-size: .65rem; }

/* ───── Icons ───── */
.ico-svg { vertical-align: -0.22em; flex: none; }
.btn .ico-svg { width: 1.15em; height: 1.15em; }
h2 .ico-svg, h3 .ico-svg { width: 1.1em; height: 1.1em; color: var(--gold); }
.bottomnav .ico { display: flex; }
.bottomnav .ico .ico-svg { width: 22px; height: 22px; }
.awk .ico-svg { color: var(--red); margin-right: -4px; }
.ico-svg.silver { color: #cfcfcf; }
.logico { color: var(--gold); }
.doomtitle .ico-svg { vertical-align: -0.12em; }
.triton .ico-svg { color: var(--gold); }
.hub .ico-svg { color: #2a1a00; }
.punish > .ico-svg { color: var(--gold); margin-top: 2px; }

/* ───── Ticket (landing page) ───── */
.ticket { position: relative; display: flex; margin: 6px auto 14px; max-width: 420px; color: #1a1200; text-align: left;
  background: linear-gradient(135deg, #ffe08a 0%, #f5c542 45%, #d9a51d 100%); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.25); transform: rotate(-1.5deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; right: 86px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); transform: translateX(50%); }
.ticket::before { top: -13px; }
.ticket::after { bottom: -13px; }
.ticket-main { flex: 1; padding: 16px 18px 14px; min-width: 0; }
.ticket-kicker { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #5a3f00; }
.ticket-kicker .flag { width: 42px; height: 10px; margin: 0; box-shadow: 0 0 0 1.5px rgba(40,25,0,.55); border-radius: 2px; }
.ticket .display { color: #1a1200; text-shadow: none; font-size: 2.6rem; margin: 6px 0 4px; line-height: .95; }
.ticket-meta { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5a3f00; }
.ticket-stub { width: 86px; border-left: 2px dashed rgba(60,40,0,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; }
.ticket-stub .stub-text { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .14em; color: #3a2a00; }
.ticket-stub .stub-no { font-size: .65rem; font-weight: 800; letter-spacing: .12em; color: #5a3f00; }
@media (max-width: 420px) { .ticket .display { font-size: 2.1rem; } .ticket-stub { width: 70px; } .ticket::before, .ticket::after { right: 70px; } }

/* ───── Phone tuning ───── */
@media (max-width: 480px) {
  .page { padding: 12px; }
  .card { padding: 14px; border-radius: 14px; }
  .bottomnav button { font-size: .62rem; }
  .topbar .brand { font-size: 1.15rem; }
  .times { gap: 10px; }
  .podium .spot .n { font-size: .8rem; }
  .lb th:nth-child(5), .lb td:nth-child(5) { display: none; }
  .votegrid { grid-template-columns: 1fr 1fr; }
  .wheelwrap .hub { width: 52px; height: 52px; }
}
.room, .tab { max-width: 100vw; overflow-x: hidden; }
.card, .tab > * { min-width: 0; max-width: 100%; }
.lb { table-layout: auto; width: 100%; }
.hero { overflow: visible; }
@media (max-width: 480px) { .ticket { transform: rotate(-1deg); margin-left: 6px; margin-right: 6px; } }

/* ───── Motion ───── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab > .card, .tab > .wheelwrap, .tab > .doomtitle, .tab > details { animation: rise .35s ease both; }
.tab > .card:nth-child(2) { animation-delay: .05s; }
.tab > .card:nth-child(3) { animation-delay: .1s; }
.tab > .card:nth-child(4) { animation-delay: .15s; }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shimmer 3.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { left: -80%; } 100% { left: 140%; } }
.badge.gold, .badge.blue { animation: badgepulse 2.4s ease-in-out infinite; }
@keyframes badgepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,66,0); } 50% { box-shadow: 0 0 10px 0 rgba(245,197,66,.35); } }

/* Neon sign: Wheel of Doom */
.doomtitle { display: inline-block; width: 100%; padding: 6px 0; color: #ffd6d7;
  text-shadow: 0 0 4px #fff, 0 0 10px #ff2d37, 0 0 22px #ff2d37, 0 0 44px #e4393c, 0 0 80px #b4151b;
  animation: neonflicker 4s infinite; }
.doomtitle .ico-svg { color: #ffb3b5; filter: drop-shadow(0 0 6px #ff2d37) drop-shadow(0 0 14px #e4393c); }
@keyframes neonflicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #ff2d37, 0 0 22px #ff2d37, 0 0 44px #e4393c, 0 0 80px #b4151b; }
  20%, 24%, 55% { opacity: .55; text-shadow: 0 0 2px #fff, 0 0 4px #ff2d37; }
  56% { opacity: .8; }
}
.neon-gold { color: #fff3c4; text-shadow: 0 0 4px #fff, 0 0 10px #f5c542, 0 0 24px #f5c542, 0 0 50px #c99a12; animation: neonflickergold 5s infinite; }
@keyframes neonflickergold {
  0%, 30%, 33%, 70%, 100% { opacity: 1; }
  31%, 71% { opacity: .6; }
  32% { opacity: .85; }
}
.finale-hero .display.neon-gold { text-shadow: 0 0 4px #fff, 0 0 10px #f5c542, 0 0 24px #f5c542, 0 0 50px #c99a12; }

/* Wheel while spinning: glow pulse + pointer wobble */
.wheelwrap canvas { transition: box-shadow .4s; }
.wheelwrap.spinning canvas { animation: wheelglow .5s ease-in-out infinite alternate; }
@keyframes wheelglow { from { box-shadow: 0 0 0 6px #2a1d3a, 0 0 30px rgba(228,57,60,.35); } to { box-shadow: 0 0 0 6px #4a1d2a, 0 0 70px rgba(228,57,60,.85), 0 0 120px rgba(245,197,66,.35); } }
.wheelwrap.spinning .pointer { animation: wobble .12s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes wobble { from { transform: translateX(-50%) rotate(-7deg); } to { transform: translateX(-50%) rotate(7deg); } }
.wheelwrap .hub { transition: transform .3s; }
.wheelwrap.spinning .hub { animation: hubspin 1s linear infinite; }
@keyframes hubspin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.doomresult .pname { animation: neonflickergold 5s infinite; text-shadow: 0 0 8px rgba(245,197,66,.6), 0 0 22px rgba(245,197,66,.35); }
@media (prefers-reduced-motion: reduce) { .doomtitle, .neon-gold, .btn.primary::after, .badge.gold, .badge.blue, .tab > * { animation: none !important; } }

/* Dark, thin scrollbars (desktop / in-app browsers) */
html { scrollbar-width: thin; scrollbar-color: #3a2d4f var(--bg); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2d4f; border-radius: 6px; }
/* Phones: no visible scrollbar at all (desktop keeps the thin dark one) */
@media (max-width: 768px) {
  html { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; width: 0; height: 0; }
  body { -ms-overflow-style: none; }
}

/* ───── Edit tab ───── */
.editcard { padding: 0; overflow: hidden; }
.editcard.off { opacity: .6; }
.editsummary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 12px 14px; cursor: pointer; min-height: var(--tap); }
.editsummary:active { background: rgba(255,255,255,.04); }
.editform { padding: 4px 14px 14px; border-top: 1px dashed var(--line); animation: rise .25s ease both; }
.editform textarea { resize: vertical; min-height: 44px; line-height: 1.4; }
.editform label { margin-bottom: 10px; }

/* ───── Place suggestions (add a stop) ───── */
.suggest-wrap { position: relative; display: block; }
.suggest { list-style: none; margin: 4px 0 0; padding: 4px; background: var(--bg2); border: 1px solid var(--gold2); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.5); max-height: 260px; overflow-y: auto; }
.suggest li { display: flex; gap: 8px; align-items: center; padding: 10px 10px; border-radius: 8px; cursor: pointer; min-height: var(--tap); font-size: .95rem; }
.suggest li:hover, .suggest li:active { background: rgba(245,197,66,.12); }
.suggest li .ico-svg { color: var(--gold); flex: none; }
.suggest-status { padding: 6px 4px 0; }
