/* Show Me Love look: the 3D world fills the screen; dark glass panels, Luckiest Guy headlines. */
:root {
  --panel: rgba(18, 18, 22, 0.74);
  --panel-solid: rgb(20, 20, 25);
  --edge: rgba(255, 255, 255, 0.09);
  --soft: rgba(255, 255, 255, 0.07);
  --soft2: rgba(255, 255, 255, 0.13);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --green: #22c55e;
  --green-d: #15803d;
  --amber: #f5b82e;
  --red: #ef4444;
  --ink: #111216;
  --c: #22c55e;
  --display: 'Luckiest Guy', 'Lilita One', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: max(10px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #cfe0ee; color: var(--text); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.note { font-size: 13px; color: var(--muted); line-height: 1.4; }
.err { color: #ff8a8a; font-size: 14px; min-height: 1em; }
.glass { background: var(--panel); border: 1px solid var(--edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

#world { position: fixed; inset: 0; }
#world canvas { display: block; touch-action: none; }
.banner { position: fixed; top: 0; left: 0; right: 0; z-index: 50; font-size: 10.5px; font-weight: 700; text-align: center; padding: 5px 12px;
  padding-top: max(5px, env(safe-area-inset-top)); background: var(--green-d); color: #eafff0; }

.btn { background: #fff; color: var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn.go { background: var(--green); color: #06230f; box-shadow: 0 4px 0 var(--green-d); }
.btn.camp-btn { background: var(--c); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.btn.big { width: 100%; padding: 16px; font-family: var(--display); font-size: 22px; letter-spacing: .02em; font-weight: 400; }
.btn.ghost { background: var(--soft); color: #fff; box-shadow: inset 0 0 0 1.5px var(--soft2); }
.btn:disabled { opacity: .45; }
.link { color: var(--muted); font-weight: 700; padding: 8px; text-decoration: underline; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

/* loading */
.loading { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 40%, #1e2a22, #0b0c0f); display: grid; place-content: center; gap: 18px; text-align: center; }
.logo { font-family: var(--display); font-size: 40px; }
.logo em, h1 em { font-style: normal; color: var(--green); }
.lbar { width: 220px; height: 10px; border-radius: 99px; background: var(--soft2); overflow: hidden; margin: 0 auto; }
.lbar i { display: block; height: 100%; width: 5%; background: var(--green); border-radius: 99px; transition: width .3s; }
.loading p { color: var(--muted); font-weight: 600; }

/* screens over the world */
.screen { position: fixed; inset: 0; z-index: 10; }
#s-hook, #s-pick { background: linear-gradient(180deg, rgba(10,10,14,.15) 0%, rgba(10,10,14,.55) 45%, rgba(10,10,14,.92) 100%); overflow: auto; }
.hero { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 20px calc(28px + var(--safe-b)); display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 17vw, 88px); line-height: .9; text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.hero .sub { font-size: 17px; color: rgba(255,255,255,.85); max-width: 22em; font-weight: 600; }
.count { font-weight: 700; color: var(--muted); text-align: center; }

.pick { max-width: 520px; margin: 0 auto; padding: 46vh 16px calc(24px + var(--safe-b)); }
.pick h2 { font-family: var(--display); font-weight: 400; font-size: 34px; margin-bottom: 12px; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.camps { display: grid; gap: 10px; }
.camp { text-align: left; display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 14px; background: var(--panel-solid);
  border: 1px solid var(--edge); border-radius: 18px; padding: 12px; transition: transform .12s; }
.camp:active { transform: scale(.98); }
.camp .party { grid-row: span 2; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-size: 20px;
  border-radius: 14px; height: 58px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.camp b { font-size: 18px; align-self: end; }
.camp small { color: var(--muted); font-weight: 600; }

/* sheets */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.sheet-card { background: var(--panel-solid); border: 1px solid var(--edge); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0;
  padding: 22px 18px calc(18px + var(--safe-b)); display: grid; gap: 14px; max-height: 92dvh; overflow: auto; animation: up .22s ease-out; }
.sheet-card.center { text-align: center; justify-items: center; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3, .panel h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .01em; }
.sheet label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.sheet input, .sheet select { border: 1.5px solid var(--soft2); border-radius: 12px; padding: 13px; background: var(--soft); font-size: 16px; color: #fff; }
.sheet select option { color: #111; }

.speaker { display: flex; gap: 12px; align-items: center; }
.speaker .badge { width: 50px; height: 50px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.speaker b { font-size: 19px; }
.speaker span { color: var(--muted); }
.bubble { position: relative; background: var(--c); color: #fff; border-radius: 20px; padding: 18px; font-family: var(--display); font-size: 30px;
  line-height: 1.05; min-height: 76px; letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bubble::before { content: ''; position: absolute; top: -8px; left: 18px; border: 8px solid transparent; border-bottom-color: var(--c); border-top: 0; }
.caret { display: inline-block; width: 3px; height: .9em; background: #fff; margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.roles { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); }
.record { list-style: none; padding: 0; display: grid; gap: 8px; }
.record li { font-size: 14px; padding: 10px 12px 10px 34px; border-radius: 12px; position: relative; line-height: 1.35; background: var(--soft); }
.record li::before { position: absolute; left: 12px; font-weight: 900; }
.record li.good::before { content: '+'; color: var(--green); }
.record li.bad::before { content: '−'; color: var(--red); }

.seg { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; padding: 8px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); }
.seg.small button { padding: 5px; font-size: 11px; }

/* HUD */
.hud-top { position: fixed; top: calc(28px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 12; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.me { display: grid; grid-template-columns: 12px auto; column-gap: 8px; align-items: center; border-radius: 14px; padding: 7px 12px; }
.me i { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.me b { font-size: 15px; }
.me span { font-size: 11px; color: var(--muted); font-weight: 600; }
.np { font-family: var(--display); font-size: 18px; background: var(--amber); color: #3a2600; border-radius: 999px; padding: 7px 14px 5px; box-shadow: 0 3px 0 #b07c0f; }
.score { position: fixed; top: calc(80px + env(safe-area-inset-top)); left: 10px; width: min(250px, 62vw); z-index: 12; border-radius: 16px; padding: 8px 10px; display: grid; gap: 6px; }
.barrow { display: grid; grid-template-columns: 58px 1fr 40px; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 800; }
.barrow.mine span { color: var(--amber); }
.barrow b { text-align: right; }
.bar { height: 8px; background: var(--soft2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .5s; }
.online { position: fixed; top: calc(84px + env(safe-area-inset-top)); right: 10px; z-index: 12; font-size: 11px; font-weight: 800; background: var(--panel); padding: 5px 10px; border-radius: 99px; }
.online::before { content: ''; display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 5px; }
.ticker { position: fixed; left: 10px; right: 10px; bottom: calc(126px + var(--safe-b)); z-index: 11; list-style: none; padding: 0; display: grid; gap: 4px; pointer-events: none; max-width: 420px; }
.ticker li { background: var(--panel); border-radius: 12px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; animation: up .3s ease-out; }
.ticker li i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ticker li.boost { background: rgba(245,184,46,.92); color: #2a1c00; }
.ticker time { display: none; }
.dock { position: fixed; left: 10px; right: 10px; bottom: var(--safe-b); z-index: 12; display: grid; gap: 8px; max-width: 520px; margin: 0 auto; }
.shout { display: flex; gap: 8px; }
.shout input { flex: 1; border: 1px solid var(--edge); border-radius: 999px; padding: 12px 16px; background: var(--panel); font-size: 16px; min-width: 0; color: #fff; backdrop-filter: blur(10px); }
.shout input::placeholder { color: var(--muted); }
.tabs { display: flex; border-radius: 999px; padding: 4px; }
.tabs button { flex: 1; color: var(--muted); font-size: 12px; font-weight: 800; padding: 10px 0; border-radius: 999px; }
.tabs button.on { background: #fff; color: var(--ink); }

/* panels (bottom sheets over the world) */
.panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 520px; margin: 0 auto; max-height: calc(100dvh - 70px);
  background: var(--panel-solid); border: 1px solid var(--edge); border-radius: 24px 24px 0 0; padding: 0 16px calc(120px + var(--safe-b));
  overflow: auto; display: grid; gap: 12px; align-content: start; animation: up .22s ease-out; }
.panel header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 8px; background: linear-gradient(var(--panel-solid) 80%, transparent); z-index: 1; }
.panel .x { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); font-weight: 900; }
.panel h4 { font-size: 12px; color: var(--amber); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }

.rankcard { background: var(--soft); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.rankcard h3 { font-size: 30px; margin: 0; }
.rankcard small { color: var(--muted); font-weight: 600; }
.rankcard .kicker { color: var(--muted); }
.mission, .boost { display: grid; grid-template-columns: 1fr auto; text-align: left; background: var(--soft); border: 1px solid var(--edge);
  border-radius: 18px; padding: 14px 16px; gap: 2px 12px; width: 100%; margin-bottom: 10px; }
.mission b, .boost b { font-size: 17px; }
.mission span, .boost span { grid-column: 1; font-size: 13px; color: var(--muted); }
.mission em, .boost em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 900; background: var(--green); color: #06230f;
  border-radius: 99px; padding: 8px 14px; font-size: 13px; box-shadow: 0 3px 0 var(--green-d); }
.boost em { background: var(--amber); color: #3a2600; box-shadow: 0 3px 0 #b07c0f; }

#map { width: 100%; height: auto; }
#map .tile { cursor: pointer; }
#map text { font-size: 8px; font-weight: 800; text-anchor: middle; fill: #fff; pointer-events: none; font-family: var(--body); }
#map .tile.mine rect { stroke: #fff; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.state-detail { background: var(--soft); border-radius: 16px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.state-detail .barrow { grid-template-columns: 70px 1fr; font-size: 13px; }

.preview { border-radius: 18px; background: radial-gradient(circle at 50% 75%, rgba(255,255,255,.18), rgba(255,255,255,.03) 60%); height: 300px; }
#preview { width: 100%; height: 100%; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--edge); background: var(--soft); border-radius: 12px; padding: 9px 12px; font-weight: 800; font-size: 14px; display: grid; text-align: left; }
.chip small { font-size: 11px; color: var(--muted); font-weight: 600; }
.chip.on { border-color: var(--green); background: rgba(34,197,94,.18); }
.chip.locked { opacity: .5; }

.testmode { background: rgba(245,184,46,.16); border: 1px solid rgba(245,184,46,.5); color: var(--amber); border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 800; text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { background: var(--soft); border: 1.5px solid var(--edge); border-radius: 16px; padding: 14px 8px; display: grid; gap: 2px; }
.pack b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--amber); }
.pack span { font-size: 13px; color: var(--muted); font-weight: 700; }
.patrons { padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.patrons li span { float: right; font-weight: 800; color: var(--amber); }

#card { width: 100%; border-radius: 18px; }

.overlay { position: fixed; inset: 0; background: #0b0c0f; z-index: 45; display: grid; grid-template-rows: auto 1fr; }
.game-top { display: flex; justify-content: space-between; align-items: center; padding: 34px 16px 10px; font-family: var(--display); font-size: 20px; }
#game-canvas { width: 100%; height: 100%; touch-action: none; display: block; }

#rw-avatar { width: 180px; height: 220px; }
.rw-list { list-style: none; padding: 0; display: grid; gap: 6px; font-weight: 800; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: calc(130px + env(safe-area-inset-top)); background: var(--panel-solid); color: #fff; padding: 10px 16px;
  border-radius: 14px; font-weight: 800; font-size: 14px; z-index: 55; max-width: calc(100% - 32px); text-align: center; border: 1px solid var(--edge); }

/* landing pops */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; animation: livepulse 1.4s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.hero h1 .w { display: inline-block; animation: popin .7s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--d) * .14s + .2s); }
@keyframes popin { from { transform: scale(.2) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
#hero-stand { transition: color .35s; }
#hero-stand.bump { animation: bump .35s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 50% { transform: scale(1.12) rotate(-3deg); } }
.campstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; animation: up .5s .7s both; }
.campstrip button { background: var(--c); border-radius: 12px; padding: 7px 2px 6px; text-align: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); transition: transform .12s; }
.campstrip button:active { transform: scale(.94); }
.campstrip b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1; color: #fff; }
.campstrip small { font-size: 11px; font-weight: 900; color: rgba(255,255,255,.92); }
.btn.pulse { position: relative; overflow: hidden; animation: glow 2s infinite, up .5s .85s both; }
.btn.pulse::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.6s 1.4s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 4px 0 var(--green-d), 0 0 0 0 rgba(34,197,94,.55); } 50% { box-shadow: 0 4px 0 var(--green-d), 0 0 0 12px rgba(34,197,94,0); } }
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.pops { position: fixed; top: calc(40px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 11; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.pop { background: var(--panel-solid); border: 1px solid var(--edge); border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 800;
  animation: popslide .5s cubic-bezier(.2,1.5,.4,1) both; max-width: 100%; }
.pop.out { animation: popout .4s ease-in forwards; }
@keyframes popslide { from { transform: translateX(-30px) scale(.8); opacity: 0; } }
@keyframes popout { to { transform: translateY(-10px); opacity: 0; } }
#hero-stand { -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
.dock { z-index: 25; }
body.panel-open .shout, body.panel-open .ticker { display: none; }
body.panel-open .panel { padding-bottom: calc(80px + var(--safe-b)); }

/* chat + voice */
.hud-right { display: flex; gap: 8px; align-items: center; }
.sharebtn { background: var(--panel); border: 1px solid var(--edge); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13px; backdrop-filter: blur(10px); }
.tabs button { position: relative; }
.tabs .dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.mic { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--panel); border: 1px solid var(--edge); color: var(--muted); display: grid; place-items: center; backdrop-filter: blur(10px); }
.mic.on { background: var(--green); color: #06230f; border-color: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livepulse 1.6s infinite; }
.mic i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--amber); color: #3a2600; font-size: 11px; font-weight: 900; font-style: normal; display: grid; place-items: center; padding: 0 4px; }
.mic i:empty { display: none; }
.chatpanel { grid-template-rows: auto auto auto 1fr auto; height: calc(100dvh - 70px); }
.rooms button { font-size: 12px; padding: 7px 2px; }
.msgs { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; min-height: 120px; }
.msgs li { background: var(--soft); border-radius: 14px; padding: 8px 12px; max-width: 86%; align-self: flex-start; }
.msgs li.mine { align-self: flex-end; background: rgba(34,197,94,.18); }
.msgs li b { font-size: 12px; color: var(--c); }
.msgs li small { font-size: 11px; color: var(--muted); margin-left: 6px; }
.msgs li p { font-size: 14.5px; font-weight: 600; margin-top: 2px; word-wrap: break-word; }
.msgs .empty { background: none; border: 0; color: var(--muted); font-size: 13px; align-self: center; text-align: center; max-width: 100%; }
.chatform { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 8px 0 4px; background: var(--panel-solid); }
.chatform input { flex: 1; border: 1px solid var(--edge); border-radius: 999px; padding: 12px 16px; background: var(--soft); font-size: 16px; min-width: 0; color: #fff; }
body.panel-open .chatpanel { padding-bottom: calc(76px + var(--safe-b)); }
/* the HUD layer lets taps through to the 3D square; only its controls catch them */
#s-app { pointer-events: none; }
#s-app .score, #s-app .online, #s-app .dock, #s-app .panel, #s-app .hud-top > * { pointer-events: auto; }

/* touch controls */
.joy { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); z-index: 9; pointer-events: none; }
.joy i { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.jumpbtn { position: fixed; right: 14px; bottom: calc(196px + var(--safe-b)); width: 72px; height: 72px; border-radius: 50%; z-index: 13; pointer-events: auto;
  background: var(--panel); border: 2px solid rgba(255,255,255,.4); font-family: var(--display); font-size: 16px; color: #fff; backdrop-filter: blur(8px); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.jumpbtn:active { transform: translateY(2px); }
body.panel-open .jumpbtn { display: none; }
/* phone HUD: compact scoreboard (top 3, tap for all), ticker clear of the jump button */
.score:not(.open) .barrow:nth-child(n+4) { display: none; }
.score { cursor: pointer; }
@media (pointer: coarse) {
  .ticker { right: 96px; }
  .ticker li:nth-child(1) { display: none; }
}

/* health ("belle") + feeding */
.mebox { display: grid; gap: 6px; justify-items: start; }
.belle { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 5px 10px; font-size: 11px; font-weight: 800; }
.belle .bar { width: 90px; height: 8px; }
.belle b { min-width: 30px; text-align: right; }
.belle.low { animation: hungry 1s infinite; border-color: var(--red); }
@keyframes hungry { 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.35); } }
.score { top: calc(118px + env(safe-area-inset-top)); }
.feedbtn { position: fixed; right: 12px; bottom: calc(132px + var(--safe-b)); z-index: 13; pointer-events: auto; display: grid; justify-items: center;
  width: 74px; height: 74px; border-radius: 50%; background: var(--amber); color: #3a2600; font-family: var(--display); font-size: 15px; line-height: 1;
  box-shadow: 0 4px 0 #b07c0f, 0 0 0 0 rgba(245,184,46,.6); animation: feedglow 2.2s infinite; align-content: center; }
.feedbtn span { font-size: 26px; margin-bottom: 2px; }
.feedbtn:active { transform: translateY(2px); }
@keyframes feedglow { 50% { box-shadow: 0 4px 0 #b07c0f, 0 0 0 10px rgba(245,184,46,0); } }
body.panel-open .feedbtn { display: none; }
@media (pointer: coarse) { .feedbtn { bottom: calc(282px + var(--safe-b)); width: 64px; height: 64px; } }
.hungry { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; }
.food { display: grid; grid-template-columns: 46px 1fr auto; gap: 2px 12px; align-items: center; text-align: left; width: 100%; background: var(--soft);
  border: 1px solid var(--edge); border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; }
.food .em { grid-row: 1 / span 2; grid-column: 1; font-size: 34px; text-align: center; }
.food b { font-size: 17px; }
.food b { grid-column: 2; }
.food .desc { font-size: 13px; color: var(--muted); grid-column: 2; }
.food em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-weight: 900; background: var(--amber); color: #3a2600; border-radius: 99px; padding: 8px 14px; box-shadow: 0 3px 0 #b07c0f; }
.food:disabled { opacity: .5; }
.center-note { text-align: center; }

/* candidate showcase */
#s-pick { background: #0b0c0f; overflow: hidden; display: grid; grid-template-rows: minmax(300px, 46dvh) 1fr; }
.pick-bg { position: absolute; inset: -30px; background-size: cover; background-position: center 20%; filter: blur(7px) saturate(1.15) brightness(.82); transform: scale(1.04); transition: background-image .4s; }
.pick-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 25%, transparent) 0%, rgba(11,12,15,.1) 35%, rgba(11,12,15,.92) 60%); transition: background .4s; }
.pick-stage { position: relative; touch-action: pan-y; }
.pick-top { position: absolute; top: calc(34px + env(safe-area-inset-top)); left: 0; right: 0; display: grid; justify-items: center; gap: 8px; z-index: 2; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .2s; }
.dots i.on { width: 22px; border-radius: 4px; background: #fff; }
#podium { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav { position: absolute; top: 50%; width: 46px; height: 46px; border-radius: 50%; background: var(--panel); border: 1px solid var(--edge); font-size: 30px; line-height: 1; z-index: 2; backdrop-filter: blur(8px); }
.nav.prev { left: 12px; } .nav.next { right: 12px; }
.credit { position: absolute; left: 12px; bottom: 6px; font-size: 9.5px; color: rgba(255,255,255,.5); z-index: 2; }
.pick-card { position: relative; z-index: 2; overflow: auto; padding: 4px 16px calc(18px + var(--safe-b)); display: grid; gap: 12px; align-content: start; max-width: 560px; width: 100%; margin: 0 auto; }
.pick-card .speaker small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.pick-card.swap { animation: cardin .35s ease-out; }
@keyframes cardin { from { opacity: 0; transform: translateX(var(--from, 30px)); } }
@media (min-width: 900px) {
  #s-pick { grid-template-rows: 1fr; grid-template-columns: 1.1fr 1fr; }
  .pick-card { align-self: center; max-height: 100dvh; padding-top: 60px; }
  .pick-shade { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent) 0%, rgba(11,12,15,.05) 40%, rgba(11,12,15,.88) 58%, rgba(11,12,15,.96) 70%); }
  .pick-bg { background-size: auto 115%; background-position: 18% 20%; background-repeat: no-repeat; background-color: #111; }
}
.hungry.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); }

.terms { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.88); }
.check { display: flex !important; gap: 10px; align-items: center; font-weight: 800; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.purchases { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.purchases li { display: flex; justify-content: space-between; background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.purchases li span { color: var(--muted); }

/* candidate profile (tap a candidate on stage) */
.candpanel { padding-top: 0; }
.cand-hero { position: relative; height: 210px; margin: 0 -16px; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--c); }
.cand-photo { position: absolute; inset: -20px; background-size: cover; background-position: center 20%; filter: blur(6px) brightness(.8); }
.cand-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--panel-solid)); }
#cand-portrait { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: 170px; height: 220px; z-index: 1; }
.cand-title { display: flex; gap: 12px; align-items: center; }
.cand-title small { color: var(--muted); font-weight: 700; font-size: 12px; }
.party-sym { width: 48px; height: 48px; border-radius: 14px; background: var(--c); display: grid; place-items: center; flex: none; overflow: hidden; }
.party-sym canvas { width: 48px; height: 48px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.src { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--amber); text-decoration: none; white-space: nowrap; }
.src:hover { text-decoration: underline; }
.record li .src, .facts .src { vertical-align: 1px; }
.sources-note { font-size: 11.5px; color: var(--muted); }
.speaker .badge { overflow: hidden; } .speaker .badge canvas { width: 100%; height: 100%; display: block; }
.punchbtn { position: fixed; right: 94px; bottom: calc(206px + var(--safe-b)); width: 60px; height: 60px; border-radius: 50%; z-index: 13; pointer-events: auto;
  background: rgba(239,68,68,.85); border: 2px solid rgba(255,255,255,.4); font-size: 26px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.punchbtn:active { transform: translateY(2px) scale(.95); }
body.panel-open .punchbtn { display: none; }
.mic.talking { background: var(--red); color: #fff; border-color: var(--red); }

/* the biggest: leaders + the new No. 1 moment */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.board { background: var(--soft); border: 1px solid var(--edge); border-radius: 16px; padding: 10px 12px; }
.board b { display: block; font-size: 13px; margin-bottom: 6px; }
.board ol { padding-left: 18px; display: grid; gap: 3px; font-size: 12.5px; }
.board li span { float: right; color: var(--amber); font-weight: 800; }
.board li.mine { color: var(--green); font-weight: 800; }
.board .none { color: var(--muted); font-size: 12px; }
.crownbar { position: fixed; left: 0; right: 0; top: 38%; z-index: 56; text-align: center; padding: 18px 12px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(18,18,22,.92) 15%, rgba(18,18,22,.92) 85%, transparent);
  font-family: var(--display); font-size: clamp(22px, 5vw, 44px); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); animation: crownin .5s cubic-bezier(.2,1.6,.4,1); }
.crownbar small { display: block; font-size: .5em; color: var(--amber); letter-spacing: .08em; }
@keyframes crownin { from { transform: scale(.4); opacity: 0; } }

@media (pointer: coarse) {
  /* phones: fight buttons own the right edge, the ticker keeps to the left of them */
  .ticker { right: 172px; }
  .ticker li:nth-child(2) { display: none; }
  .ticker li { font-size: 12px; }
}

/* character maker */
.maker { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; }
#maker-preview { width: 130px; height: 190px; border-radius: 16px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.optrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.optrow > b { width: 100%; font-size: 11px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.opt { border: 1.5px solid var(--edge); background: var(--soft); border-radius: 10px; padding: 6px 9px; font-size: 12.5px; font-weight: 800; }
.opt.on { border-color: var(--green); background: rgba(34,197,94,.2); }
.opt.sw { width: 28px; height: 28px; padding: 0; border-radius: 50%; }
.opt.sw.on { box-shadow: 0 0 0 3px var(--green); }
/* class ladder */
.classcard { background: var(--soft); border-radius: 18px; padding: 14px; display: grid; gap: 8px; }
.classcard .lad { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 6px 8px; border-radius: 10px; }
.classcard .lad.on { background: rgba(245,184,46,.18); outline: 1.5px solid var(--amber); }
.classcard .lad.got { opacity: .65; }
.classcard .lad span { color: var(--muted); font-size: 12px; }
.classcard .lad em { font-style: normal; font-weight: 900; color: var(--amber); }

/* landing: who is who, cycling quietly behind the headline */
.hook-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hb-photo { position: absolute; inset: -30px; background-size: cover; background-position: center 22%; filter: blur(5px) saturate(1.1); opacity: 0; transition: opacity .9s ease, background-image .01s .45s; }
.hb-photo.on { opacity: .42; }
.hook-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--hc, #111) 55%, transparent) 0%, transparent 35%, rgba(10,10,14,.6) 60%); transition: background .9s; }
.hb-mark { position: absolute; right: -6vmin; top: 8vh; width: 62vmin; height: 62vmin; opacity: .14; transition: opacity .9s; }
.hb-mark canvas { width: 100%; height: 100%; }
.factcard { display: flex; gap: 12px; align-items: center; background: rgba(18,18,22,.78); border: 1px solid var(--edge);
  border-radius: 16px; padding: 10px 14px; backdrop-filter: blur(8px); min-height: 66px; transition: border-color .6s; }
.factcard.swap { animation: factin .6s ease-out; }
@keyframes factin { from { opacity: 0; transform: translateY(8px); } }
.fc-sym { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.fc-sym canvas { width: 100%; height: 100%; display: block; }
.factcard b { font-size: 13px; letter-spacing: .04em; }
.factcard p { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); line-height: 1.3; margin-top: 2px; }
.campstrip button { display: grid; justify-items: center; gap: 2px; }
.campstrip canvas { width: 30px; height: 30px; }

/* bank transfer */
.xf-box { background: var(--soft); border: 1px solid var(--edge); border-radius: 16px; padding: 4px 14px; }
.xf-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--edge); font-size: 14px; }
.xf-row:last-child { border-bottom: 0; }
.xf-row span { color: var(--muted); font-weight: 700; }
.xf-row.big b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .04em; }
.xf-copy { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 12px; }
.xf-copy.done { background: var(--green); }
.xf-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.xf-meta b { color: var(--amber); }
.xf-checking { display: flex; gap: 10px; align-items: center; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); border-radius: 14px; padding: 12px; font-size: 13.5px; font-weight: 700; }
.spin { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--green); border-radius: 50%; animation: sp .8s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.xf-done { text-align: center; font-family: var(--display); font-size: 26px; color: var(--green); padding: 10px; }
.purchases li .reopen { background: var(--amber); color: #3a2600; border-radius: 99px; padding: 3px 10px; font-weight: 900; font-size: 12px; margin-left: 8px; }

/* ---------- responsive fixes ---------- */
.dock { left: 10px; right: 10px; width: auto; max-width: 520px; box-sizing: border-box; }
.shout { min-width: 0; }
.shout .btn { padding: 12px 16px; flex: none; }
.mic { flex: none; }
.tabs button { min-width: 0; padding-left: 2px; padding-right: 2px; }
@media (max-width: 380px) {
  .shout { gap: 6px; }
  .shout input { padding: 11px 12px; font-size: 15px; }
  .shout .btn { padding: 11px 12px; }
  .mic { width: 42px; height: 42px; }
  .tabs button { font-size: 11px; }
  .score { width: min(220px, 60vw); }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .campstrip b { font-size: 13px; }
}
/* phones held sideways: short screen, push everything to the edges and shrink */
@media (orientation: landscape) and (max-height: 500px) {
  .banner { font-size: 9.5px; padding: 3px 10px; }
  .hud-top { top: 22px; }
  .me { padding: 4px 10px; } .me b { font-size: 13px; } .me span { font-size: 10px; }
  .belle { padding: 3px 8px; } .belle .bar { width: 60px; }
  .score { top: 96px; width: 200px; padding: 6px 8px; gap: 3px; }
  .score .seg { display: none; }
  .barrow { font-size: 10.5px; grid-template-columns: 50px 1fr 32px; }
  .online { top: 60px; font-size: 10px; }
  .ticker { display: none; }
  .dock { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 62vw); bottom: 6px; gap: 5px; }
  .shout input { padding: 8px 14px; } .shout .btn { padding: 8px 14px; } .mic { width: 38px; height: 38px; }
  .tabs { padding: 3px; } .tabs button { padding: 6px 0; font-size: 11px; }
  .feedbtn { right: 12px; bottom: 150px; top: auto; width: 56px; height: 56px; font-size: 12px; }
  .feedbtn span { font-size: 20px; }
  .jumpbtn { right: 14px; bottom: 16px; width: 64px; height: 64px; }
  .punchbtn { right: 88px; bottom: 24px; width: 54px; height: 54px; }
  .joy { width: 100px; height: 100px; margin: -50px 0 0 -50px; } .joy i { left: 27px; top: 27px; }
  /* landing: headline and buttons side by side */
  .hero { padding: 26px 20px 12px; max-width: none; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: end; top: 0; }
  .hero > * { grid-column: 2; }
  .hero h1, .hero .kicker { grid-column: 1; }
  .hero h1 { font-size: clamp(40px, 11vh, 64px); grid-row: 2 / span 4; align-self: center; }
  .hero .kicker { grid-row: 1; }
  .factcard { min-height: 0; padding: 6px 10px; } .factcard p { font-size: 12px; }
  .hero .sub { font-size: 13px; }
  .btn.big { padding: 10px; font-size: 18px; }
  .pops { display: none; }
  /* candidate showcase: podium left, card right */
  #s-pick { grid-template-rows: 1fr; grid-template-columns: 1fr 1.1fr; }
  .pick-card { max-height: 100dvh; padding-top: 34px; gap: 8px; }
  .pick-card .bubble { font-size: 20px; padding: 10px 14px; min-height: 0; }
  .pick-top { top: 22px; }
  .sheet-card { max-height: 96dvh; padding-top: 14px; gap: 8px; }
  .panel { max-height: calc(100dvh - 30px); }
}

/* ---------- clean look: no drop shadows, glows or lips on the UI ---------- */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
.btn:active, .feedbtn:active, .jumpbtn:active, .punchbtn:active { transform: scale(.97); }
.btn.pulse, .feedbtn, .mic.on, .live-dot, .belle.low { animation: none !important; }
.btn.pulse::after { display: none; }
#hero-stand { -webkit-text-stroke: 0; }
.glass, .shout input, .sharebtn, .mic, .jumpbtn, .online, .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.camp .party, .campstrip button { box-shadow: none; }
/* no coloured side strips on notifications, cards or chat */
.msgs li { border: 1px solid var(--edge); }
.pop::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }

.emailstep, .namestep { display: grid; gap: 12px; }
.verified { font-size: 13px; font-weight: 800; color: var(--green); }
.signin-link { justify-self: center; color: rgba(255,255,255,.75); }
#em-code, #si-code { font-size: 24px; letter-spacing: .3em; text-align: center; font-weight: 900; }
body:has(.sheet:not(.hidden)) .toast { top: auto; bottom: calc(24px + var(--safe-b)); }

/* ---------- clean landing: a moving slideshow of the candidates ---------- */
#s-hook { background: #0b0c0f; overflow: hidden; }
.reel { position: absolute; inset: 0; }
.reel .slide { position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: 0; transition: opacity 1.4s ease; will-change: transform, opacity; }
.reel .slide.on { opacity: 1; animation: kenburns 7s linear forwards; }
.reel .slide.alt.on { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.18) translate(-2%, -2%); } }
@keyframes kenburns2 { from { transform: scale(1.18) translate(2%, -1%); } to { transform: scale(1.04) translate(0, 0); } }
.reel .slide.noimg { background: var(--c); display: grid; place-items: center; }
.reel .slide.noimg canvas { width: min(60vmin, 360px); height: auto; opacity: .9; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,.15) 0%, rgba(11,12,15,.1) 35%, rgba(11,12,15,.75) 62%, rgba(11,12,15,.97) 100%); }
.reel-cap { position: absolute; left: 20px; top: calc(40px + env(safe-area-inset-top)); z-index: 2; color: #fff; transition: opacity .6s; }
.reel-cap b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; }
.reel-cap span { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.8); letter-spacing: .08em; }
.reel-cap small { display: block; font-size: 10px; color: rgba(255,255,255,.45); margin-top: 4px; }
#s-hook .hero { gap: 12px; }
@media (orientation: landscape) and (max-height: 500px) {
  #s-hook .hero { grid-template-columns: 1fr; max-width: 460px; left: auto; right: 0; }
  #s-hook .hero > * { grid-column: 1; }
  #s-hook .hero h1 { grid-row: auto; }
}
.reel .slide.noimg { place-items: start center; padding-top: calc(110px + env(safe-area-inset-top)); }
.reel .slide.noimg canvas { width: auto; height: min(46dvh, 420px); max-width: 80vw; }
.reel .slide.noimg { padding-top: calc(170px + env(safe-area-inset-top)); }
.reel .slide.noimg canvas { height: min(30dvh, 300px); }

.opt-note { color: var(--muted); font-weight: 600; font-size: 12px; }
.me { cursor: pointer; }
