/* Klop/Blop: "neon rivals" look. Word one is cyan, word two is magenta, player submissions glow yellow. */
:root {
  --ink: #0A0618;
  --panel: #151032;
  --panel2: #1E1745;
  --text: #F4F1FF;
  --muted: #B9B3DA;
  --dim: #7D77A3;
  --cyan: #22E4FF;
  --mag: #FF3DA8;
  --glow: #FFE24A;
  --win: #7CFF6B;
  --lose: #FF5470;
  --line: rgba(255,255,255,.1);
  --display: Bungee, Outfit, system-ui, sans-serif;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text); }
body { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
a { color: var(--cyan); }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; }
.c1 { color: var(--cyan); } .c2 { color: var(--mag); } .cy { color: var(--glow); }
.neon1 { color: #E9FCFF; text-shadow: 0 0 6px var(--cyan), 0 0 22px var(--cyan); }
.neon2 { color: #FFEAF6; text-shadow: 0 0 6px var(--mag), 0 0 22px var(--mag); }
.logo { font-family: var(--display); line-height: 1; white-space: nowrap; }
.logo .k { color: var(--cyan); text-shadow: 0 0 8px rgba(34,228,255,.9), 0 0 28px rgba(34,228,255,.6); }
.logo .s { color: var(--glow); text-shadow: 0 0 10px rgba(255,226,74,.9); }
.logo .b { color: var(--mag); text-shadow: 0 0 8px rgba(255,61,168,.9), 0 0 28px rgba(255,61,168,.6); }
.flicker { animation: flicker 5s linear infinite; }
@keyframes flicker { 0%,92%,100% { opacity: 1 } 93% { opacity: .55 } 95% { opacity: 1 } 97% { opacity: .7 } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-10px) rotate(3deg) } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 4px var(--glow), 0 0 40px rgba(255,226,74,.6) } 50% { box-shadow: 0 0 0 4px var(--glow), 0 0 70px rgba(255,226,74,.95) } }
@keyframes blink { 0%,100% { opacity: .3 } 50% { opacity: 1 } }
@keyframes popIn { from { transform: scale(.3); opacity: 0 } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0 } }
.bob { animation: bob 3.2s ease-in-out infinite; }
.blink { animation: blink 1.4s ease-in-out infinite; }
.fade-up { animation: fadeUp .35s ease-out both; }

/* avatars & chips */
.av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av svg { display: block; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); font-weight: 800; }
.chip.off { opacity: .4; }
.tag { padding: 3px 9px; border-radius: 8px; background: var(--glow); color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }

/* ring timer */
.ring { display: block; }
.ring .track { stroke: rgba(255,255,255,.12); }
.ring .bar { stroke: var(--glow); transition: stroke-dashoffset .25s linear; }
.ring.low .bar { stroke: var(--lose); }
.ring.low { animation: throb .9s ease-in-out infinite; }
.ring text { font-family: Outfit, sans-serif; font-weight: 900; fill: var(--text); }
.ring.low text { fill: #FF8A9C; }
@keyframes throb { 50% { transform: scale(1.08) } }

/* ================= PHONE ================= */
.phone { position: relative; overflow-x: clip; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 20px 18px 24px; display: flex; flex-direction: column; gap: 18px; }
.phone.has-dock { padding-bottom: 230px; }
.halos { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.halos .halo { position: absolute; width: 380px; height: 380px; border-radius: 50%; }
.halos .halo.l { left: -140px; top: -150px; background: radial-gradient(circle, rgba(34,228,255,.18), rgba(34,228,255,0) 65%); }
.halos .halo.r { right: -150px; top: -110px; background: radial-gradient(circle, rgba(255,61,168,.16), rgba(255,61,168,0) 65%); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; min-width: 0; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pts { font-weight: 800; font-size: 15px; color: var(--muted); white-space: nowrap; }
.lbl { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input { height: 56px; width: 100%; border-radius: 16px; border: 2px solid rgba(255,255,255,.14); background: var(--panel); color: var(--text); font-size: 20px; font-weight: 700; padding: 0 16px; }
.input::placeholder { color: var(--dim); font-weight: 600; }
.input:focus { outline: none; border-color: var(--glow); }
.input.code { font-size: 32px; font-weight: 900; letter-spacing: 16px; text-align: center; text-transform: uppercase; padding-left: 16px; }
.input.w1 { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34,228,255,.35); background: #0F1A33; color: #E9FCFF; font-weight: 900; letter-spacing: 1px; }
.input.w2 { border-color: var(--mag); box-shadow: 0 0 14px rgba(255,61,168,.35); background: #2A0F2A; color: #FFEAF6; font-weight: 900; letter-spacing: 1px; }
.input.t1 { border-color: var(--glow); box-shadow: 0 0 16px rgba(255,226,74,.3); background: #211C10; color: #FFF8D6; }
.input.t2 { border-style: dashed; border-color: rgba(255,255,255,.22); }
.hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; min-height: 20px; }
.check.ok { color: var(--win); } .check.bad { color: #FF8A9C; }
.btn { height: 60px; border-radius: 18px; font-size: 21px; font-weight: 900; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn.primary { background: var(--glow); color: var(--ink); box-shadow: 0 0 28px rgba(255,226,74,.45); }
.btn.primary:disabled { background: var(--muted); box-shadow: none; opacity: 1; }
.btn.ghost { border: 1.5px solid rgba(255,255,255,.2); color: var(--text); font-size: 17px; height: 52px; font-weight: 800; }
.btn.block { width: 100%; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.swatch { height: 46px; border-radius: 14px; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--text), 0 0 18px var(--c); }
.iconbtn { height: 46px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); background: var(--panel); display: flex; align-items: center; justify-content: center; }
.error { background: rgba(255,84,112,.15); border: 1px solid var(--lose); color: #FFC2CC; padding: 10px 14px; border-radius: 14px; font-weight: 700; }
.banner { padding: 10px 14px; border-radius: 14px; background: rgba(255,226,74,.08); border: 1px solid rgba(255,226,74,.35); font-weight: 700; }
.banner.warn { background: rgba(255,84,112,.15); border-color: var(--lose); color: #FFC2CC; text-align: center; }
.big-title { font-size: 30px; font-weight: 900; line-height: 1.1; }
.center { text-align: center; align-items: center; }
.card-panel { padding: 16px 18px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }

/* swipe voting */
.vote { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; overflow: hidden; user-select: none; -webkit-user-select: none; }
.vote .side { position: absolute; top: 0; bottom: 0; width: 50%; opacity: 0; pointer-events: none; transition: opacity .15s; }
.vote .side.l { left: 0; background: linear-gradient(90deg, rgba(34,228,255,.38), rgba(34,228,255,0)); }
.vote .side.r { right: 0; background: linear-gradient(270deg, rgba(255,61,168,.38), rgba(255,61,168,0)); }
.vote .head { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; justify-content: space-between; }
.pips { display: flex; gap: 5px; margin-top: 8px; }
.pips i { width: 20px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.vote .words { position: absolute; left: 18px; right: 18px; top: 92px; display: flex; justify-content: space-between; font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.vote .words span { max-width: 48%; overflow-wrap: anywhere; }
@keyframes nudgeL { 50% { transform: translateX(-6px) } } @keyframes nudgeR { 50% { transform: translateX(6px) } }
.nl { animation: nudgeL 1.6s ease-in-out infinite; } .nr { animation: nudgeR 1.6s ease-in-out infinite; }
.vote .stage { position: absolute; left: 0; right: 0; top: 140px; bottom: 190px; display: flex; align-items: center; justify-content: center; }
.vcard-wrap { position: relative; width: min(290px, 78vw); height: min(360px, 100%); }
.vcard-wrap .behind { position: absolute; inset: 14px -8px -10px 8px; border-radius: 28px; background: var(--panel2); transform: rotate(4deg); }
.vcard { position: absolute; inset: 0; border-radius: 28px; background: var(--text); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; touch-action: none; cursor: grab; }
.vcard.glow { background: #FFF8D6; animation: pulseGlow 1.6s ease-in-out infinite; }
.vcard .item { font-size: 40px; font-weight: 900; line-height: 1.05; letter-spacing: -.5px; overflow-wrap: anywhere; }
.vcard .item.long { font-size: 32px; }
.vcard .drag-hint { font-size: 14px; font-weight: 600; color: #5B5480; }
.fromplayer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--glow); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; }
.stamp { position: absolute; top: 18px; padding: 4px 10px; border-radius: 10px; border: 3px solid; font-weight: 900; font-size: 17px; opacity: 0; text-transform: uppercase; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp.l { left: 18px; border-color: var(--cyan); color: #0A8FA3; transform: rotate(-12deg); }
.stamp.r { right: 18px; border-color: var(--mag); color: #C4127A; transform: rotate(12deg); }
.vote .below { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.vote .google { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
.vote .nav { display: flex; justify-content: space-between; }
.vote .nav button { color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 4px; }
.pick2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pickbtn { height: 78px; border-radius: 22px; border: 2px solid; font-size: 21px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.pickbtn.l { border-color: var(--cyan); background: rgba(34,228,255,.12); color: #E9FCFF; box-shadow: 0 0 18px rgba(34,228,255,.3); }
.pickbtn.r { border-color: var(--mag); background: rgba(255,61,168,.12); color: #FFEAF6; box-shadow: 0 0 18px rgba(255,61,168,.3); }
.pickbtn.on { outline: 3px solid var(--text); }
.vote.warn::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: edge 1s ease-in-out infinite; }
@keyframes edge { 0%,100% { box-shadow: inset 0 0 0 0 rgba(255,84,112,0) } 50% { box-shadow: inset 0 0 40px 6px rgba(255,84,112,.45) } }
.warnbar { position: absolute; left: 14px; right: 14px; top: 92px; display: none; }
.vote.warn .warnbar { display: block; }
.vote.warn .words { top: 150px; }
.vote.warn .stage { top: 196px; }

/* summary */
.sumlist { border-radius: 20px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.sumrow { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 6px 8px 6px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sumrow:first-child { border-top: 0; }
.sumrow.glow { background: rgba(255,226,74,.06); }
.sumrow.missing { background: rgba(255,84,112,.1); }
.sumrow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sumrow .txt b { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sumrow.glow .txt b { color: #FFF1A8; }
.sumrow .txt small { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--ink); border: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.sumrow.missing .seg { border-color: var(--lose); }
.seg button { width: 76px; height: 40px; border-radius: 9px; font-size: 12px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.seg .l { color: #7FA7B3; } .seg .r { color: #B87A9C; }
.seg .l[aria-pressed="true"] { background: var(--cyan); color: var(--ink); box-shadow: 0 0 14px rgba(34,228,255,.6); }
.seg .r[aria-pressed="true"] { background: var(--mag); color: var(--ink); box-shadow: 0 0 14px rgba(255,61,168,.6); }

/* waiting + zaps */
.locked { font-family: var(--display); font-size: 34px; color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.6); text-align: center; }
.waiting-on { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.waiting-on .chip { font-size: 14px; padding: 3px 10px 3px 3px; border-width: 1.5px; color: var(--text); }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.08); }
.split .a { background: var(--cyan); } .split .b { background: var(--mag); }
.zapzone { position: relative; flex: 1; min-height: 240px; border-radius: 24px; border: 1.5px dashed rgba(255,255,255,.12); background: rgba(21,16,50,.5); overflow: hidden; }
.zapzone .slash { position: absolute; width: 84px; height: 106px; padding: 0; transition: left .18s cubic-bezier(.3,1.4,.5,1), top .18s cubic-bezier(.3,1.4,.5,1); touch-action: manipulation; }
.zapzone .slash svg { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.zapcount { text-align: center; min-height: 54px; }
.zapcount b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--glow); display: block; }
.zapcount span { font-size: 15px; font-weight: 600; color: var(--muted); }
.zap-burst { position: absolute; pointer-events: none; font-family: var(--display); color: var(--glow); font-size: 22px; animation: burst .6s ease-out forwards; }
@keyframes burst { to { transform: translateY(-40px) scale(1.4); opacity: 0 } }

/* reveal on phone */
.myresult { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.myresult .item { font-size: 34px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.yousaid { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--muted); }
.wordpill { padding: 5px 13px; border-radius: 12px; color: var(--ink); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.wordpill.l { background: var(--cyan); box-shadow: 0 0 18px rgba(34,228,255,.6); }
.wordpill.r { background: var(--mag); box-shadow: 0 0 18px rgba(255,61,168,.6); }
.bigpts { font-family: var(--display); font-size: 64px; line-height: 1; animation: popIn .4s cubic-bezier(.2,1.6,.4,1); }
.bigpts.up { color: var(--win); text-shadow: 0 0 22px rgba(124,255,107,.7); }
.bigpts.down { color: var(--lose); text-shadow: 0 0 22px rgba(255,84,112,.6); }
.bigpts.zero { color: var(--muted); }

/* favorite pair voting */
.pairbtn { width: 100%; min-height: 64px; border-radius: 18px; background: var(--panel); border: 2px solid rgba(255,255,255,.12); font-size: 22px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; flex-wrap: wrap; }
.pairbtn[aria-pressed="true"] { border-color: var(--glow); box-shadow: 0 0 22px rgba(255,226,74,.45); background: #211C10; }

/* host dock & sheets */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.dock .inner { max-width: 480px; margin: 0 auto; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--panel2); border-top: 2px solid var(--glow); box-shadow: 0 -10px 40px rgba(255,226,74,.12); display: flex; flex-direction: column; gap: 10px; }
.dock .row1 { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; min-height: 30px; }
.dock .sq { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.dock .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dock details summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 4px 2px; }
.dock select { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.16); background: var(--ink); padding: 0 12px; font-weight: 700; margin-top: 4px; }
.dock .setgrid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0 4px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(10,6,24,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; }
.sheet .inner { max-width: 480px; margin: 0 auto; padding: 18px 18px calc(26px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--panel2); border-top: 2px solid var(--glow); box-shadow: 0 -10px 40px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 14px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); align-self: center; }
.offbadge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--lose); border: 3px solid var(--panel2); }

/* ================= TV / SHARED SCREEN ================= */
.tv { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
.stage16 { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }
.tv .orb { position: absolute; border-radius: 50%; pointer-events: none; }
.tv .netbar { position: absolute; left: 0; right: 0; top: 0; z-index: 50; }
.drift { position: absolute; opacity: .55; animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0) rotate(var(--r)) } to { transform: translateY(-40px) rotate(calc(var(--r) + 40deg)) } }
.codebox { width: 96px; height: 116px; border-radius: 20px; background: var(--panel); border: 3px solid var(--glow); display: flex; align-items: center; justify-content: center; font-size: 76px; font-weight: 900; color: #FFF6C4; text-shadow: 0 0 14px rgba(255,226,74,.8); animation: codePulse 2.4s ease-in-out infinite; }
@keyframes codePulse { 0%,100% { box-shadow: 0 0 24px rgba(255,226,74,.35) } 50% { box-shadow: 0 0 0 6px rgba(255,226,74,.12), 0 0 36px rgba(255,226,74,.6) } }
.pill { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 15px; font-weight: 600; }
.slot { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 9px; border-radius: 18px; background: var(--panel2); border: 2px solid; }
.slot .nm { font-size: 24px; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.empty { border: 2px dashed rgba(255,255,255,.16); background: none; color: rgba(255,255,255,.35); font-size: 18px; font-weight: 600; padding: 0 22px; }
.slot.off { opacity: .45; }
.bubble { position: absolute; padding: 10px 16px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--ink); font-weight: 800; font-size: 17px; box-shadow: 0 0 24px rgba(255,255,255,.25); white-space: nowrap; }
.sway1 { animation: sway1 4s ease-in-out infinite; } .sway2 { animation: sway2 4s ease-in-out infinite; }
@keyframes sway1 { 0%,100% { transform: rotate(-4deg) scale(1) } 50% { transform: rotate(-2deg) scale(1.04) } }
@keyframes sway2 { 0%,100% { transform: rotate(4deg) scale(1) } 50% { transform: rotate(2deg) scale(1.04) } }
.hum { animation: hum 2.2s ease-in-out infinite; }
@keyframes hum { 0%,100% { filter: drop-shadow(0 0 10px rgba(255,226,74,.5)) } 50% { filter: drop-shadow(0 0 24px rgba(255,226,74,.9)) } }
.mote { position: absolute; top: 740px; border-radius: 50%; animation: rise 9s linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: .7 } 100% { transform: translateY(-760px); opacity: 0 } }
.pcard { width: 150px; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(21,16,50,.85); border: 2px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
.pcard.done { background: var(--panel2); border-color: var(--win); }
.pcard.off { opacity: .4; }
.pcard .top { display: flex; align-items: center; gap: 8px; }
.pcard .nm { font-size: 18px; font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .pp { display: flex; gap: 3px; }
.pcard .pp i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background .2s; }
.itemcard { padding: 20px 52px; border-radius: 28px; background: var(--text); color: var(--ink); box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--text), 0 0 50px rgba(255,255,255,.35); font-size: 68px; font-weight: 900; letter-spacing: -1px; max-width: 1100px; text-align: center; line-height: 1.05; animation: tilt 5s ease-in-out infinite, popIn .45s cubic-bezier(.2,1.5,.4,1); }
.itemcard.glow { background: #FFF8D6; animation: glowTv 1.8s ease-in-out infinite, popIn .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes tilt { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(1deg) } }
@keyframes glowTv { 0%,100% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--glow), 0 0 50px rgba(255,226,74,.55) } 50% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--glow), 0 0 90px rgba(255,226,74,.95) } }
.vbar { flex: 1; height: 26px; border-radius: 13px; overflow: hidden; display: flex; background: var(--panel); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.vbar .a { background: linear-gradient(90deg, #0E8FA3, var(--cyan)); transition: width .9s cubic-bezier(.2,.9,.3,1); }
.vbar .mid { width: 4px; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.vbar .b { flex: 1; background: linear-gradient(90deg, var(--mag), #FF8FCB); }
.vbar.pre .a { width: 50% !important; opacity: .35; } .vbar.pre .b { opacity: .35; }
.voters { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.voter { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .3s; }
.voter .chip { font-size: 22px; padding: 7px 16px 7px 7px; transition: background .3s, border-color .3s; }
.voter .vp { font-family: var(--display); font-size: 30px; line-height: 1; height: 32px; opacity: 0; }
.voter.win .chip { background: rgba(124,255,107,.14); border-color: var(--win); box-shadow: 0 0 20px rgba(124,255,107,.35); color: #E6FFE0; }
.voter.win .vp { color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.8); opacity: 1; }
.voter.win { animation: floatUp 1.8s ease-in-out infinite; }
.voter.lose .chip { background: rgba(255,84,112,.16); border-color: var(--lose); color: #FFC2CC; }
.voter.lose .vp { color: var(--lose); opacity: 1; order: 2; }
.voter.lose { animation: deflate 2.4s ease-in-out infinite; }
@keyframes floatUp { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes deflate { 0% { transform: none } 30%,100% { transform: scale(.9) translateY(8px) } }
.x2 { position: absolute; right: -18px; top: -6px; padding: 3px 8px; border-radius: 8px; background: var(--glow); color: var(--ink); font-family: var(--display); font-size: 15px; box-shadow: 3px 3px 0 var(--mag); transform: rotate(-10deg); }
.takes { padding: 14px 30px; background: var(--glow); color: var(--ink); border-radius: 14px; font-family: var(--display); font-size: 36px; box-shadow: 0 0 40px rgba(255,226,74,.6), 6px 6px 0 var(--mag); animation: popIn .4s cubic-bezier(.2,1.6,.4,1), pop 1.4s ease-in-out .4s infinite; white-space: nowrap; }
@keyframes pop { 0%,100% { transform: scale(1) rotate(-4deg) } 50% { transform: scale(1.06) rotate(-2deg) } }
.coin { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; background: linear-gradient(135deg, #FFE98A, #E2A800); color: #3B2800; box-shadow: 0 0 40px rgba(255,226,74,.7); animation: flip .22s linear infinite; }
@keyframes flip { 50% { transform: scaleX(.05) } }
.conf { position: absolute; width: 10px; height: 14px; border-radius: 2px; animation: confetti 2.2s ease-out forwards; }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 1 } 100% { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0 } }
.srow { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 18px 0 12px; border-radius: 16px; background: rgba(21,16,50,.8); border: 2px solid rgba(255,255,255,.06); animation: fadeUp .4s ease-out both; }
.srow.lead { background: var(--panel2); border-color: var(--glow); box-shadow: 0 0 22px rgba(255,226,74,.25); }
.srow .rk { width: 34px; font-size: 26px; font-weight: 900; text-align: center; color: var(--muted); }
.srow.lead .rk { color: var(--glow); }
.srow .nm { width: 150px; font-size: 24px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .track { flex: 1; height: 14px; border-radius: 7px; background: rgba(255,255,255,.07); overflow: hidden; }
.srow .fill { height: 100%; border-radius: 7px; transition: width 1s cubic-bezier(.2,.9,.3,1); }
.srow .dl { width: 80px; text-align: right; font-family: var(--display); font-size: 18px; }
.srow .sc { width: 70px; text-align: right; font-size: 28px; font-weight: 900; }
.srow .zp { width: 110px; text-align: right; font-family: var(--display); font-size: 16px; color: var(--glow); }
.qbox { width: 84px; height: 84px; border-radius: 20px; border: 3px solid; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 46px; animation: bob 2.2s ease-in-out infinite; }
.bonus { width: 250px; padding: 18px 20px; border-radius: 20px; background: var(--panel); border: 2px solid; display: flex; flex-direction: column; gap: 4px; align-items: center; animation: popIn .5s cubic-bezier(.2,1.5,.4,1) both; }
.bonus b { font-family: var(--display); font-weight: 400; font-size: 48px; color: var(--win); text-shadow: 0 0 16px rgba(124,255,107,.7); }
.bonus small { font-size: 15px; color: var(--muted); }
.bonus .t { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.maker { display: flex; align-items: center; gap: 24px; padding: 20px 46px 20px 20px; border-radius: 999px; background: var(--panel2); border: 4px solid; animation: popIn .6s cubic-bezier(.2,1.6,.4,1) both, zoom 2.6s ease-in-out .6s infinite; }
@keyframes zoom { 0%,100% { transform: scale(1) rotate(-2deg) } 50% { transform: scale(1.04) rotate(1deg) } }
.beam { position: absolute; top: -40px; width: 260px; height: 900px; clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform-origin: 50% 0; }
.beam.l { left: 220px; background: linear-gradient(rgba(34,228,255,.28), rgba(34,228,255,0) 85%); animation: sweepL 4s ease-in-out infinite; }
.beam.r { right: 220px; background: linear-gradient(rgba(255,61,168,.28), rgba(255,61,168,0) 85%); animation: sweepR 4s ease-in-out infinite; }
@keyframes sweepL { 0%,100% { transform: rotate(18deg) } 50% { transform: rotate(8deg) } }
@keyframes sweepR { 0%,100% { transform: rotate(-18deg) } 50% { transform: rotate(-8deg) } }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: blink 2s ease-in-out infinite; }
.zapbanner { font-family: var(--display); font-size: 40px; color: var(--glow); text-shadow: 0 0 20px rgba(255,226,74,.8); animation: popIn .5s cubic-bezier(.2,1.6,.4,1) both; }
.landing-links { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 10px; }
