/* SOYU Backstage — app styles. Brand tokens follow the live site (site/style.css): dark, gold accents, party red/blue. */
:root {
  --bg: #121212; --s1: #181818; --s2: #1f1f1f; --s3: #252525; --s4: #2a2a2a; --s5: #333;
  --text: #fff; --muted: #b3b3b3; --dim: #7c7c7c; --line: #2f2f2f;
  --gold: #e3b85a; --gold-2: #d4a945; --gold-t: rgba(227,184,90,.14); --navy: #0c1535; --navy-2: #1b2547;
  --R: #d22532; --D: #1f5fbf; --R-t: #ff6b75; --D-t: #6ea3ff; --ok: #3bc47a; --no: #ef5a5a;
  --f-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-disp: 'Archivo', 'DM Sans', system-ui, sans-serif;
  --f-num: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 480px; --top-h: 56px; --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --r: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: #0b0b0b; color: var(--text); font: 400 15px/1.4 var(--f-ui); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.fab-space { height: 76px; }

/* ---------- app frame (phone width, centred on desktop) ---------- */
.app { position: relative; max-width: var(--w); min-height: 100%; margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 1px #1c1c1c, 0 0 80px rgba(0,0,0,.6); }
@media (min-width: 600px) { body { background: radial-gradient(1200px 600px at 50% -10%, #1b2547 0%, #0b0b0b 60%); } }
.view { position: relative; min-height: 100vh; min-height: 100dvh; padding: calc(var(--top-h) + var(--safe-t)) 0 calc(var(--tab-h) + var(--safe-b) + 16px); overflow-x: clip; }
.app.bare .view { padding: 0; }
.page { padding: 12px 16px 0; animation: pageIn .32s var(--ease) both; }
.page.out { position: absolute; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-t)); animation: pageOut .16s ease-in both; pointer-events: none; }
.page.from-r { animation-name: pageInR; } .page.from-l { animation-name: pageInL; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes pageInR { from { opacity: 0; transform: translateX(28px); } }
@keyframes pageInL { from { opacity: 0; transform: translateX(-28px); } }
@keyframes pageOut { to { opacity: 0; } }

/* boot */
.boot { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.boot img { border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
.boot-bar { width: 120px; height: 3px; border-radius: 3px; background: var(--s4); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: slide 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .8; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- top bar ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--w); height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 14px;
  display: flex; align-items: center; gap: 10px; background: rgba(18,18,18,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255,255,255,.05); }
.top-brand img { display: block; border-radius: 50%; }
.top-title { flex: 1; min-width: 0; font: 900 22px/1 var(--f-disp); font-stretch: 75%; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border: 0; border-radius: 99px; background: var(--s3); cursor: pointer; font: 700 14px/1 var(--f-num); }
.coin-pill b { font-weight: 500; font-variant-numeric: tabular-nums; }
.coin-pill.pop { animation: coinPop .5s var(--spring); }
@keyframes coinPop { 40% { transform: scale(1.15); background: #3a3220; } }
.coin-ic { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4 0 12%, #f1cb6d 30%, #c9962f 70%, #9c7020 100%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); position: relative; }
.coin-ic::after { content: '★'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: #7a5410; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--R); box-shadow: 0 0 0 2px var(--bg); animation: dotIn .4s var(--spring); }
@keyframes dotIn { from { transform: scale(0); } }

/* ---------- tab bar ---------- */
.tabs { position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--w); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(16,16,16,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid rgba(255,255,255,.06); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .3px; transition: color .2s; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.tab.on { color: var(--gold); }
.tab.on svg { transform: translateY(-1px) scale(1.08); }
.tab-ink { position: absolute; top: 0; left: 0; width: 20%; height: 3px; display: flex; justify-content: center; transition: transform .38s var(--spring); pointer-events: none; }
.tab-ink::before { content: ''; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); box-shadow: 0 0 12px rgba(227,184,90,.6); }

/* ---------- micro-interactions ---------- */
.tap { transition: transform .14s var(--ease), background-color .2s, box-shadow .2s, opacity .2s; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tap:active { transform: scale(.96); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); transform: scale(0); animation: ripple .5s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 99px; cursor: pointer;
  font: 700 14px/1 var(--f-ui); letter-spacing: 1.2px; text-transform: uppercase; background: var(--s4); color: var(--text); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold { background: var(--gold); color: #121212; }
.btn-gold:hover { background: #f0c96c; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px #555; }
.btn-ok { background: var(--ok); color: #08140d; } .btn-no { background: var(--no); color: #1a0606; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 12px; letter-spacing: 1px; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 11px; letter-spacing: .8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--gold); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- cards, sections ---------- */
.sec { margin: 18px 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec h2 { font: 900 20px/1 var(--f-disp); font-stretch: 75%; text-transform: uppercase; letter-spacing: .3px; }
.sec .hint { color: var(--dim); font-size: 12px; }
.card { position: relative; background: var(--s1); border-radius: var(--r); padding: 14px; }
.card + .card { margin-top: 10px; }
.card-tap { cursor: pointer; }
.card-tap:active { background: var(--s2); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .gold { color: var(--gold); }
.small { font-size: 13px; } .tiny { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 8px; border-radius: 99px; font: 700 11px/1.2 var(--f-ui); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; font: 800 10px/1.3 var(--f-ui); letter-spacing: .6px; text-transform: uppercase; background: var(--s4); color: var(--muted); }
.badge.senator { background: var(--gold); color: #121212; }
.badge.candidate { background: #3a3220; color: var(--gold); }
.badge.admin { background: #4a1820; color: #ff9aa3; }
.badge.lobbyist { background: #1c2b4a; color: #9ec1ff; }
.badge.activist { background: #183526; color: #8ee0b0; }
.empty { padding: 28px 16px; text-align: center; color: var(--dim); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* avatar */
.av { --c: #555; position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, #1a1a1a); box-shadow: inset 0 0 0 2px var(--c);
  font: 800 14px/1 var(--f-ui); letter-spacing: .3px; color: #fff; text-transform: uppercase; }
.av-lg { width: 84px; height: 84px; font-size: 30px; box-shadow: inset 0 0 0 3px var(--c), 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--c) 50%, transparent); }
.av-sm { width: 30px; height: 30px; font-size: 11px; }

/* platform marks */
.plat { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font: 800 8px/1 var(--f-ui); color: #fff; flex: none; }
.plat-tiktok { background: #000; box-shadow: inset 0 0 0 1px #444; } .plat-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }

/* skeleton */
.sk { position: relative; overflow: hidden; background: var(--s2); border-radius: 10px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 14px; margin: 8px 0; } .sk-card { height: 96px; margin-bottom: 10px; border-radius: var(--r); } .sk-hemi { height: 210px; border-radius: 210px 210px 12px 12px; margin: 8px 10px 16px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #333; background: var(--s2); outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-t); }
textarea.input { resize: none; min-height: 96px; line-height: 1.4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-err { min-height: 18px; color: var(--no); font-size: 13px; margin: -4px 0 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--s2); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 40px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); transition: color .2s; }
.seg button.on { color: #121212; }
.seg .seg-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--gold); transition: transform .35s var(--spring), width .35s var(--spring); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + 64px); transform: translateX(-50%); width: min(92vw, 440px); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: #2b2b2b; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 600; font-size: 14px; animation: toastIn .35s var(--spring) both; display: flex; gap: 10px; align-items: center; }
.toast.err { background: #3a1518; color: #ffc2c6; } .toast.ok { background: #12301f; color: #b8f2cf; } .toast.gold { background: #3a3020; color: #ffe3a3; }
.toast.bye { animation: toastOut .25s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- sheets ---------- */
.backdrop { position: fixed; z-index: 60; inset: 0; background: rgba(0,0,0,.55); animation: fadeIn .25s ease both; }
.backdrop.bye { animation: fadeOut .22s ease both; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; width: 100%; max-width: var(--w); max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; transform: translateX(-50%);
  background: var(--s1); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.5); animation: sheetIn .42s var(--spring) both; padding-bottom: var(--safe-b); }
.sheet.bye { animation: sheetOut .24s ease-in both; }
@keyframes sheetIn { from { transform: translate(-50%, 100%); } }
@keyframes sheetOut { to { transform: translate(-50%, 100%); } }
.sheet-grip { flex: none; padding: 10px 0 6px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet-grip i { width: 40px; height: 5px; border-radius: 5px; background: #444; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px 10px; touch-action: none; }
.sheet-head h3 { flex: 1; font: 900 22px/1.05 var(--f-disp); font-stretch: 75%; text-transform: uppercase; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 20px; -webkit-overflow-scrolling: touch; }
.x-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--s3); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.x-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

/* ---------- onboarding ---------- */
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #1b2547 0%, #141a2c 40%, var(--bg) 100%); padding: calc(var(--safe-t) + 14px) 0 calc(var(--safe-b) + 18px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.ob-top img { border-radius: 50%; }
.ob-skip { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.ob-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-card { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; padding: 8px 28px; }
.ob-art { height: 230px; display: grid; place-items: center; margin-bottom: 18px; }
.ob-art svg { width: 100%; height: 100%; max-width: 320px; }
.ob-card h2 { font: 900 44px/.9 var(--f-disp); font-stretch: 65%; text-transform: uppercase; margin-bottom: 12px; }
.ob-card h2 em { font-style: normal; color: var(--gold); }
.ob-card p { color: #cfd6ea; font-size: 16px; line-height: 1.5; }
.ob-card .role-list { margin-top: 14px; display: grid; gap: 8px; }
.ob-card .role-list div { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ob-dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 16px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 8px; background: #3d4560; transition: width .35s var(--spring), background .3s; }
.ob-dots i.on { width: 26px; background: var(--gold); }
.ob-cta { padding: 0 20px; }
.auth { padding: calc(var(--safe-t) + 18px) 20px calc(var(--safe-b) + 24px); min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, #1b2547 0%, var(--bg) 55%); }
.auth h1 { font: 900 46px/.88 var(--f-disp); font-stretch: 62%; text-transform: uppercase; margin: 26px 0 8px; }
.auth h1 span { color: var(--gold); }
.auth .lead { color: #cfd6ea; margin-bottom: 20px; }
.auth .seg { margin-bottom: 18px; }
.auth-alt { margin-top: 14px; text-align: center; color: var(--dim); font-size: 12px; }

/* ---------- capitol ---------- */
.cd-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(100deg, #0b1534 0%, #12224f 60%, #0b1534 100%); position: relative; overflow: hidden; }
.cd-strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--R) 0 50%, var(--D) 50% 100%); }
.cd-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 4px; background: var(--R); font: 900 11px/1 var(--f-disp); letter-spacing: 1.3px; text-transform: uppercase; }
.cd-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cd-lab { font-size: 10.5px; color: #a9b6dc; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.cd-lab .num { color: #fff; font-size: 10px; letter-spacing: .2px; }
@media (max-width: 360px) { .cd-live { display: none; } }
.cd-clock { margin-left: auto; display: flex; gap: 6px; }
.cd-clock div { text-align: center; }
.cd-clock b { display: block; min-width: 34px; font: 900 26px/1 var(--f-disp); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.cd-clock span { font: 700 9px/1 var(--f-ui); letter-spacing: 1.3px; color: #8d9bc6; text-transform: uppercase; }
.cd-clock b.bump { animation: bump .35s ease-out; }
@keyframes bump { from { color: #ffd77a; transform: translateY(-2px); } }
.hemi-card { padding: 10px 6px 14px; margin-top: 12px; background: radial-gradient(120% 90% at 50% 100%, #1b2547 0%, var(--s1) 70%); }
.hemi { display: block; width: 100%; height: auto; }
.hemi .seat { cursor: pointer; transform-box: fill-box; transform-origin: center; animation: seatIn .5s var(--spring) both; transition: opacity .2s; }
.hemi .seat:hover { stroke: #fff; stroke-width: 1.5; }
.hemi .seat.sel { stroke: #fff; stroke-width: 2.4; }
.hemi.dim-others .seat:not(.hl) { opacity: .22; }
@keyframes seatIn { from { transform: scale(0); opacity: 0; } }
.hemi-mid { text-anchor: middle; }
.hemi-num { font: 900 46px var(--f-disp); font-stretch: 75%; fill: #fff; }
.hemi-lab { font: 700 9.5px var(--f-ui); letter-spacing: 1.6px; fill: #a9b6dc; text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; padding: 6px 6px 0; }
.legend button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.05); cursor: pointer; font-size: 12px; font-weight: 600; color: #ddd; }
.legend button.on { background: rgba(255,255,255,.16); color: #fff; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend b { font-family: var(--f-num); font-weight: 500; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.race { flex: 0 0 82%; scroll-snap-align: start; background: var(--s1); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.race-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.race-st { font: 900 18px/1 var(--f-disp); font-stretch: 75%; text-transform: uppercase; }
.race-gap { font: 700 11px/1 var(--f-ui); letter-spacing: .6px; text-transform: uppercase; color: #121212; background: var(--gold); padding: 4px 7px; border-radius: 4px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.vs-side { min-width: 0; } .vs-side.r { text-align: right; }
.vs-side .nick { font-weight: 700; font-size: 13px; }
.vs-side .lk { font: 500 20px/1.1 var(--f-num); }
.vs-x { font: 900 14px/1 var(--f-disp); color: var(--dim); }
.vs-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 10px; background: var(--s4); gap: 2px; }
.vs-bar i { display: block; height: 100%; width: 0; transition: width 1.1s var(--ease); }
.floor-teaser .meter { margin-top: 10px; }

/* senator card */
.sen-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sen-name { font: 900 26px/1 var(--f-disp); font-stretch: 75%; word-break: break-word; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--s2); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font: 500 20px/1.1 var(--f-num); }
.stat span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.agenda { background: var(--s2); border-left: 3px solid var(--gold); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #ddd; margin: 10px 0; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gift-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gift-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 99px; background: var(--s2); font-size: 12px; }
.gift-tag svg { width: 20px; height: 20px; }

/* ---------- states ---------- */
.tilemap { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 6px 0 4px; }
.tilemap button { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 7px; color: #fff; font: 800 12px/1 var(--f-ui); cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; animation: seatIn .45s var(--spring) both; }
.tilemap button small { font: 500 8.5px/1 var(--f-num); opacity: .85; }
.tilemap button.empty { background: #262626; color: #777; }
.tilemap button.mine { box-shadow: 0 0 0 2px var(--gold); }
.search { display: block; position: sticky; top: calc(var(--top-h) + var(--safe-t) + 6px); z-index: 5; margin: 14px 0 10px; }
.search .input { padding-left: 42px; background-color: #1c1c1c; }
.search .input { display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1; width: 20px; height: 20px; stroke: var(--dim); fill: none; stroke-width: 2; }
.st-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.st-row:active { background: var(--s2); }
.st-code { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font: 900 15px/1 var(--f-disp); font-stretch: 85%; }
.st-row .sub { font-size: 12px; color: var(--dim); }
.chev { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.st-hero { border-radius: var(--r); padding: 16px; background: linear-gradient(135deg, var(--c1, #1b2547), #141a2c 75%); margin-bottom: 12px; position: relative; overflow: hidden; }
.st-hero h2 { font: 900 40px/.9 var(--f-disp); font-stretch: 65%; text-transform: uppercase; }
.st-hero .back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: #cfd6ea; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.seats2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seatcard { background: var(--s1); border-radius: var(--r); padding: 12px; cursor: pointer; position: relative; overflow: hidden; border-top: 3px solid var(--c, #444); }
.seatcard .lab { font: 800 10px/1 var(--f-ui); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.seatcard .nick { font-weight: 700; font-size: 14px; margin: 6px 0 2px; }
.seatcard .lk { font: 500 22px/1 var(--f-num); }
.seatcard.open { border-top-color: #333; color: var(--dim); }
.cand { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cand:last-child { border-bottom: 0; }
.cand .rk { width: 22px; font: 500 13px var(--f-num); color: var(--dim); text-align: center; }
.cand .bar { height: 4px; border-radius: 4px; background: var(--s4); margin-top: 6px; overflow: hidden; }
.cand .bar i { display: block; height: 100%; width: 0; transition: width .9s var(--ease); }
.back-btn { min-width: 74px; }
.back-btn.on { background: var(--gold-t); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.endorse-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.pips { display: inline-flex; gap: 4px; } .pips i { width: 10px; height: 10px; border-radius: 3px; background: var(--s5); } .pips i.on { background: var(--gold); }

/* ---------- floor ---------- */
.bill { background: var(--s1); border-radius: var(--r); padding: 14px; margin-bottom: 10px; position: relative; overflow: hidden; }
.bill.passed { box-shadow: inset 0 0 0 1px rgba(227,184,90,.5); }
.bill-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.bill h3 { font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.bill p { color: var(--muted); font-size: 14px; }
.meter { margin-top: 12px; }
.meter-bar { position: relative; display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--s4); }
.meter-bar i { height: 100%; transition: width 1s var(--ease); }
.meter-bar .a { background: linear-gradient(90deg, #2fa866, var(--ok)); } .meter-bar .r { background: linear-gradient(90deg, var(--no), #c43e3e); margin-left: auto; }
.meter-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: rgba(255,255,255,.5); }
.meter-nums { display: flex; justify-content: space-between; margin-top: 6px; font: 500 13px var(--f-num); }
.meter-nums .a { color: var(--ok); } .meter-nums .r { color: var(--no); }
.bill-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bill-acts .btn.picked { box-shadow: inset 0 0 0 2px #fff; }
.bill-acts .btn.faded { opacity: .35; }
.banner { display: flex; align-items: center; gap: 8px; margin: -14px -14px 12px; padding: 9px 14px; background: linear-gradient(90deg, var(--gold), #f3d58c); color: #121212; font: 900 13px/1.1 var(--f-disp); letter-spacing: 1px; text-transform: uppercase; }
.banner svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.banner.failed { background: var(--s4); color: var(--muted); }
.timeleft { margin-left: auto; font: 500 12px var(--f-num); color: var(--gold); }
.topic { display: flex; align-items: center; gap: 12px; background: var(--s1); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
.topic .rk { font: 900 22px/1 var(--f-disp); font-stretch: 75%; color: var(--dim); width: 24px; text-align: center; }
.topic:nth-child(-n+3) .rk { color: var(--gold); }
.up-btn { flex: none; min-width: 56px; min-height: 52px; border: 0; border-radius: 12px; background: var(--s3); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 500 13px var(--f-num); color: var(--text); }
.up-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.up-btn.on { background: var(--gold-t); color: var(--gold); }
.up-btn.on svg { animation: upJump .45s var(--spring); }
@keyframes upJump { 40% { transform: translateY(-5px) scale(1.2); } }
.pred { background: var(--s1); border-radius: var(--r); padding: 14px; margin-bottom: 10px; }
.pred h3 { font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 8px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--s3); cursor: pointer; overflow: hidden; text-align: left; font-weight: 600; }
.opt .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(227,184,90,.16); transition: width 1s var(--ease); }
.opt > span { position: relative; } .opt .pct { margin-left: auto; font: 500 13px var(--f-num); color: var(--muted); }
.opt.mine { box-shadow: inset 0 0 0 2px var(--gold); }
.opt.win { background: #1d3527; box-shadow: inset 0 0 0 2px var(--ok); }
.opt.win .fill { background: rgba(59,196,122,.18); }
.opt[disabled] { cursor: default; }
.payout { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #1d3527; color: #b8f2cf; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.payout.lost { background: var(--s2); color: var(--muted); }
.stake-amt { text-align: center; font: 900 64px/1 var(--f-disp); font-stretch: 75%; color: var(--gold); margin: 6px 0; }
input[type=range] { width: 100%; accent-color: var(--gold); height: 44px; }
.fab { position: fixed; z-index: 30; right: max(16px, calc(50% - var(--w) / 2 + 16px)); bottom: calc(var(--tab-h) + var(--safe-b) + 16px); height: 54px; padding: 0 20px 0 16px; border-radius: 99px; border: 0; background: var(--gold); color: #121212; font: 800 14px/1 var(--f-ui); letter-spacing: .6px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); cursor: pointer; animation: fabIn .45s .15s var(--spring) both; }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
@keyframes fabIn { from { transform: scale(0); } }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--tab-h) - var(--safe-b)); padding: 0; }
.page.chat { padding: 0; }
.rooms { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.rooms::-webkit-scrollbar { display: none; }
.rooms button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--s3); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rooms button.on { background: var(--text); color: #121212; }
.msgs { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 8px; align-items: flex-start; padding: 5px 4px; border-radius: 12px; animation: msgIn .3s var(--ease) both; cursor: pointer; }
.msg:active { background: var(--s2); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.mine { flex-direction: row-reverse; }
.msg .bub { max-width: 78%; background: var(--s3); border-radius: 4px 16px 16px 16px; padding: 7px 11px 8px; }
.msg.mine .bub { background: #3a3020; border-radius: 16px 4px 16px 16px; }
.msg .who { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; margin-bottom: 2px; color: var(--muted); }
.msg .who time { font: 500 10.5px var(--f-num); color: var(--dim); font-weight: 400; }
.msg .txt { font-size: 15px; line-height: 1.35; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.gift { justify-content: center; }
.msg.gift .gift-line { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: linear-gradient(90deg, #3a3020, #2a2418); box-shadow: inset 0 0 0 1px rgba(227,184,90,.35); font-size: 13px; color: #f6e2b0; max-width: 92%; }
.msg.gift svg { width: 32px; height: 32px; animation: giftWiggle 1s var(--spring) both; }
@keyframes giftWiggle { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.2) rotate(8deg); } }
.msg.gone .txt { color: var(--dim); font-style: italic; }
.composer { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bg); }
.composer .input { min-height: 46px; border-radius: 99px; padding: 10px 16px; }
.send-btn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #121212; cursor: pointer; display: grid; place-items: center; }
.send-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ro-note { flex: none; padding: 12px 16px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.day-sep { align-self: center; margin: 8px 0; font: 700 11px var(--f-ui); color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- me ---------- */
.me-hero { text-align: center; padding: 14px 0 4px; }
.me-hero .av-lg { margin: 0 auto 10px; animation: seatIn .5s var(--spring) both; }
.me-hero h2 { font: 900 32px/1 var(--f-disp); font-stretch: 75%; }
.me-hero .row { justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.lvl { margin: 14px 0 0; }
.lvl-bar { height: 8px; border-radius: 8px; background: var(--s4); overflow: hidden; margin-top: 6px; }
.lvl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), #ffe08f); border-radius: 8px; transition: width 1.2s var(--ease); }
.wallet { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #3a3020, #1e1b14 70%); box-shadow: inset 0 0 0 1px rgba(227,184,90,.25); }
.wallet .big { font: 500 34px/1 var(--f-num); }
.wallet .coin-ic { width: 40px; height: 40px; } .wallet .coin-ic::after { font-size: 20px; }
.daily { display: flex; align-items: center; gap: 12px; }
.streak-dots { display: flex; gap: 4px; margin-top: 6px; }
.streak-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--s5); }
.streak-dots i.on { background: var(--gold); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bdg { background: var(--s2); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 700; animation: seatIn .45s var(--spring) both; }
.bdg .ic { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-t); color: var(--gold); }
.bdg .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hist { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hist:last-child { border-bottom: 0; }
.hist .d { font: 500 14px var(--f-num); } .hist .d.p { color: var(--ok); } .hist .d.m { color: var(--no); }
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.menu-row:last-child { border-bottom: 0; }
.menu-row .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--s3); }
.menu-row .mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code-box { margin: 12px 0; padding: 18px; text-align: center; border-radius: 14px; background: var(--s2); border: 1.5px dashed var(--gold); }
.code-box b { display: block; font: 500 34px/1 var(--f-num); letter-spacing: 2px; color: var(--gold); margin-bottom: 6px; }
.status { display: inline-flex; align-items: center; gap: 5px; font: 800 10.5px/1 var(--f-ui); letter-spacing: .8px; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; }
.status.pending { background: #3a3020; color: var(--gold); } .status.approved { background: #12301f; color: #8ee0b0; } .status.rejected { background: #3a1518; color: #ff9aa3; }
.status.pending::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2, jump-none) infinite; }

/* store */
.packs { display: grid; gap: 10px; }
.pack { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--s2); border: 0; cursor: pointer; text-align: left; position: relative; overflow: hidden; width: 100%; }
.pack .stack { position: relative; width: 52px; height: 44px; }
.pack .stack .coin-ic { position: absolute; width: 30px; height: 30px; }
.pack .amt { font: 500 24px/1 var(--f-num); }
.pack .price { margin-left: auto; padding: 10px 14px; border-radius: 99px; background: var(--gold); color: #121212; font-weight: 800; font-size: 14px; }
.pack .tagx { position: absolute; top: 0; right: 0; padding: 3px 9px; border-radius: 0 0 0 10px; background: var(--R); font: 800 10px/1.3 var(--f-ui); letter-spacing: .6px; text-transform: uppercase; }
.testmode { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #2b2412; color: #f3d58c; font-size: 12.5px; line-height: 1.4; }

/* notifications */
.notif { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif .ni { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--s3); }
.notif .ni svg { width: 22px; height: 22px; }
.notif.unread { background: linear-gradient(90deg, rgba(227,184,90,.08), transparent); }
.notif.unread .txt { font-weight: 700; }
.notif time { display: block; font: 500 11px var(--f-num); color: var(--dim); margin-top: 3px; }

/* gift picker + FX */
.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 14px; border: 0; background: var(--s2); cursor: pointer; font-size: 12px; font-weight: 700; }
.gift-opt svg { width: 46px; height: 46px; transition: transform .3s var(--spring); }
.gift-opt:hover svg, .gift-opt.on svg { transform: scale(1.12) rotate(-4deg); }
.gift-opt.on { background: var(--gold-t); box-shadow: inset 0 0 0 2px var(--gold); }
.gift-opt .cost { display: inline-flex; align-items: center; gap: 4px; font: 500 12px var(--f-num); color: var(--gold); }
.gift-opt .cost .coin-ic { width: 13px; height: 13px; } .gift-opt .cost .coin-ic::after { content: ''; }
.fx { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(227,184,90,.3), rgba(0,0,0,.72) 60%); animation: fadeIn .2s ease both; }
.fx.bye { animation: fadeOut .4s ease both; }
.fx-inner { text-align: center; }
.fx-icon { width: 180px; height: 180px; margin: 0 auto; animation: fxPop .9s var(--spring) both; filter: drop-shadow(0 10px 30px rgba(227,184,90,.55)); }
.fx-icon svg { width: 100%; height: 100%; }
@keyframes fxPop { 0% { transform: scale(0) rotate(-25deg); } 55% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.fx-text { margin-top: 18px; font: 900 30px/1 var(--f-disp); font-stretch: 75%; text-transform: uppercase; color: #fff; animation: pageIn .5s .25s var(--ease) both; padding: 0 20px; }
.fx-sub { margin-top: 6px; color: var(--gold); font-weight: 700; animation: pageIn .5s .35s var(--ease) both; }
.fx-rays { position: absolute; width: 520px; height: 520px; left: 50%; top: 45%; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgba(227,184,90,.16) 0 8deg, transparent 8deg 22deg); border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 8s linear infinite; }
.particle { position: fixed; z-index: 96; pointer-events: none; will-change: transform, opacity; }
.fly-coin { position: fixed; z-index: 96; width: 22px; height: 22px; pointer-events: none; will-change: transform; }

/* admin */
.adm-item { background: var(--s2); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.adm-item .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kpis div { background: var(--s2); border-radius: 10px; padding: 10px 6px; text-align: center; }
.kpis b { display: block; font: 500 18px/1 var(--f-num); } .kpis span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
