/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0e0520;
  --purple:   #46178f;
  --purple2:  #1a0740;
  --red-l:    #ff3355;
  --blue-l:   #2d8ef5;
  --yellow-l: #ffd60a;
  --green-l:  #3dc91e;
  --white:    #ffffff;
  --shadow:   0 8px 32px rgba(0,0,0,.5);
  --radius:   16px;
  --glass:    rgba(255,255,255,.07);
  --glass-border: rgba(255,255,255,.12);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ── Animated background orbs ────────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(109,40,217,.6), transparent 70%);
  top: -250px; left: -250px;
  animation: moveOrb1 18s ease-in-out infinite;
}
.orb-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(37,99,235,.5), transparent 70%);
  bottom: -200px; right: -200px;
  animation: moveOrb2 22s ease-in-out infinite;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(219,39,119,.4), transparent 70%);
  top: 40%; left: 55%;
  animation: moveOrb3 14s ease-in-out infinite;
}
@keyframes moveOrb1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(120px,80px) scale(1.1); }
  66%     { transform: translate(60px,160px) scale(.9); }
}
@keyframes moveOrb2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(-100px,-60px) scale(1.15); }
  66%     { transform: translate(-50px,-130px) scale(.95); }
}
@keyframes moveOrb3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-80px,60px) scale(1.2); }
}

/* Everything above orbs */
.screen, .card, header { position: relative; z-index: 1; }

/* ── Screen transitions ───────────────────────────────────── */
.screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh; width: 100%;
  padding: 1.5rem 1rem;
  gap: 1rem;
}
.screen.hidden { display: none !important; }
.screen-anim {
  animation: screenIn .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  user-select: none;
  text-shadow: 0 0 40px rgba(255,214,10,.3);
  animation: logoPulse 4s ease-in-out infinite;
}
.logo .accent {
  background: linear-gradient(135deg, #ffd60a, #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes logoPulse {
  0%,100% { text-shadow: 0 0 40px rgba(255,214,10,.25); }
  50%     { text-shadow: 0 0 70px rgba(255,214,10,.5); }
}
.tagline {
  font-size: .95rem;
  opacity: .6;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

/* ── Cards (glassmorphism) ───────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.card h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  text-align: center;
  opacity: .9;
}

/* ── Forms ────────────────────────────────────────────────── */
input[type=text], input[type=number], textarea, select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
  margin-bottom: .75rem;
}
input[type=text]::placeholder,
input[type=number]::placeholder,
textarea::placeholder { color: rgba(255,255,255,.35); }
input[type=text]:focus,
input[type=number]:focus,
textarea:focus {
  border-color: var(--yellow-l);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(255,214,10,.15);
}
textarea { resize: vertical; min-height: 70px; }
label { font-size: .85rem; opacity: .7; display: block; margin-bottom: .35rem; }
select option { background: #1a0740; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  text-decoration: none;
  user-select: none;
  letter-spacing: .3px;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(.96) translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #ffd60a, #ff9d00);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(255,214,10,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255,214,10,.55); filter: brightness(1.05); }

.btn-success {
  background: linear-gradient(135deg, #3dc91e, #1fa806);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61,201,30,.35);
}
.btn-success:hover { box-shadow: 0 6px 28px rgba(61,201,30,.55); }
.btn-success:disabled {
  background: rgba(255,255,255,.15);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
  color: rgba(255,255,255,.4);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-full { width: 100%; margin-top: .5rem; }
.btn-lg { font-size: 1.15rem; padding: 1rem 2rem; border-radius: 12px; }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,.06);
  padding: .3rem;
  border-radius: 12px;
}
.tab {
  flex: 1; padding: .55rem; border-radius: 9px; text-align: center;
  cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: background .2s, color .2s, box-shadow .2s;
  color: rgba(255,255,255,.6);
}
.tab.active {
  background: linear-gradient(135deg, #ffd60a, #ff9d00);
  color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(255,214,10,.4);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── PIN display ──────────────────────────────────────────── */
.pin-display {
  text-align: center;
  background: rgba(255,255,255,.95);
  color: #1a0740;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 3px rgba(255,214,10,.5), 0 8px 24px rgba(0,0,0,.3);
  animation: pinGlow 2.5s ease-in-out infinite;
}
@keyframes pinGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,214,10,.4), 0 8px 24px rgba(0,0,0,.3); }
  50%     { box-shadow: 0 0 0 5px rgba(255,214,10,.7), 0 8px 30px rgba(255,214,10,.2); }
}
.pin-display .pin-label {
  font-size: .75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  opacity: .5; margin-bottom: .25rem;
}
.pin-display .pin-number {
  font-size: 3.8rem; font-weight: 900;
  letter-spacing: 8px; line-height: 1;
  color: #1a0740;
}

/* ── Player chips ─────────────────────────────────────────── */
.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 60px;
  margin-bottom: 1rem;
  align-content: flex-start;
}
.player-chip {
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .88rem;
  font-weight: 700;
  animation: chipPop .35s cubic-bezier(.34,1.56,.64,1);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
@keyframes chipPop {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

/* ── Question text (host) ────────────────────────────────── */
.q-meta {
  font-size: .85rem;
  opacity: .6;
  margin-bottom: .25rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.q-text {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 800;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.4rem 2.2rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 900px;
  width: 100%;
  animation: questionDrop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes questionDrop {
  from { opacity: 0; transform: translateY(-20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Timer ────────────────────────────────────────────────── */
.timer-ring {
  position: relative;
  display: inline-block;
  transition: transform .2s;
}
.timer-ring.urgent { animation: timerUrgent .45s ease-in-out infinite; }
@keyframes timerUrgent {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}
.timer-svg { transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: rgba(255,255,255,.1); }
.timer-fg {
  fill: none;
  stroke: var(--yellow-l);
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear, stroke .4s;
  filter: drop-shadow(0 0 6px currentColor);
}
.timer-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900;
  transition: color .4s;
}
.timer-text.urgent { color: var(--red-l); text-shadow: 0 0 12px var(--red-l); }

/* ── Answer grid (host display) ──────────────────────────── */
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  width: 100%;
  max-width: 920px;
  padding: 0 1rem;
}
.answer-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  text-align: left;
  transition: transform .15s, box-shadow .2s, filter .15s, opacity .3s;
  min-height: 76px;
  word-break: break-word;
  animation: answerSlide .4s cubic-bezier(.22,1,.36,1) both;
}
.answer-btn:nth-child(1) { animation-delay: .05s; }
.answer-btn:nth-child(2) { animation-delay: .12s; }
.answer-btn:nth-child(3) { animation-delay: .19s; }
.answer-btn:nth-child(4) { animation-delay: .26s; }
@keyframes answerSlide {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.answer-btn:hover  { transform: translateY(-3px); }
.answer-btn:active { transform: scale(.97); }
.answer-btn .shape { font-size: 1.5rem; flex-shrink: 0; }

.answer-btn.a0 {
  background: linear-gradient(135deg, #ff3355, #cc0033);
  box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 8px 20px rgba(255,51,85,.25);
}
.answer-btn.a0:hover { box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 28px rgba(255,51,85,.45); }

.answer-btn.a1 {
  background: linear-gradient(135deg, #2d8ef5, #0063d4);
  box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 8px 20px rgba(45,142,245,.25);
}
.answer-btn.a1:hover { box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 28px rgba(45,142,245,.45); }

.answer-btn.a2 {
  background: linear-gradient(135deg, #ffd60a, #e6a800);
  color: #1a1a1a;
  box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 8px 20px rgba(255,214,10,.25);
}
.answer-btn.a2:hover { box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 28px rgba(255,214,10,.45); }

.answer-btn.a3 {
  background: linear-gradient(135deg, #3dc91e, #1fa806);
  box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 8px 20px rgba(61,201,30,.25);
}
.answer-btn.a3:hover { box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 28px rgba(61,201,30,.45); }

.answer-btn.correct {
  outline: 3px solid #fff;
  outline-offset: 2px;
  filter: brightness(1.2);
  box-shadow: 0 0 30px rgba(255,255,255,.4) !important;
  animation: correctPulse .5s ease !important;
}
@keyframes correctPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.answer-btn.wrong { opacity: .3; filter: saturate(.3); }
.answer-btn:disabled { cursor: default; }

/* ── Progress bar ─────────────────────────────────────────── */
.answer-progress {
  width: 100%;
  max-width: 920px;
  padding: 0 1rem;
  margin-bottom: .6rem;
}
.progress-bar {
  height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 5px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd60a, #ff9d00);
  border-radius: 5px;
  transition: width .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 10px rgba(255,214,10,.5);
}
.progress-label { font-size: .8rem; opacity: .6; margin-top: .35rem; text-align: right; }

/* ── Leaderboard ──────────────────────────────────────────── */
.leaderboard { width: 100%; max-width: 500px; padding: 0 1rem; }
.lb-title {
  font-size: 1.5rem; font-weight: 900; text-align: center;
  margin-bottom: 1rem; opacity: .9;
  text-transform: uppercase; letter-spacing: 1px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .85rem 1.25rem;
  margin-bottom: .5rem;
  font-weight: 700;
  animation: slideIn .4s cubic-bezier(.22,1,.36,1) both;
  backdrop-filter: blur(8px);
}
.lb-row:nth-child(1) {
  background: linear-gradient(135deg, rgba(255,214,10,.2), rgba(255,157,0,.1));
  border-color: rgba(255,214,10,.3);
  box-shadow: 0 0 20px rgba(255,214,10,.15);
}
.lb-row:nth-child(2) {
  background: linear-gradient(135deg, rgba(200,200,210,.15), rgba(180,180,200,.08));
  border-color: rgba(200,200,210,.25);
}
.lb-row:nth-child(3) {
  background: linear-gradient(135deg, rgba(205,127,50,.2), rgba(180,100,30,.1));
  border-color: rgba(205,127,50,.25);
}
@keyframes slideIn {
  from { transform: translateX(-30px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.lb-rank { font-size: 1.3rem; width: 2.2rem; text-align: center; }
.lb-name { flex: 1; font-size: 1rem; }
.lb-score { font-size: 1.05rem; color: var(--yellow-l); text-shadow: 0 0 10px rgba(255,214,10,.4); }

/* ── Player shape buttons ────────────────────────────────── */
.shape-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
  padding: 0 .75rem;
}
.shape-btn {
  aspect-ratio: 1.5;
  border: none;
  border-radius: 16px;
  font-size: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s, box-shadow .15s, filter .15s;
  animation: shapePop .4s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
  overflow: hidden;
}
.shape-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.shape-btn:hover::after { background: rgba(255,255,255,.1); }
.shape-btn:nth-child(1) { animation-delay: .05s; }
.shape-btn:nth-child(2) { animation-delay: .12s; }
.shape-btn:nth-child(3) { animation-delay: .19s; }
.shape-btn:nth-child(4) { animation-delay: .26s; }
@keyframes shapePop {
  from { opacity: 0; transform: scale(.6) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
.shape-btn:active { transform: scale(.93); }
.shape-btn:hover  { transform: scale(1.05); }

.shape-btn.s0 {
  background: linear-gradient(145deg, #ff3355, #cc0033);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 12px 24px rgba(255,51,85,.3);
}
.shape-btn.s1 {
  background: linear-gradient(145deg, #2d8ef5, #0063d4);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 12px 24px rgba(45,142,245,.3);
}
.shape-btn.s2 {
  background: linear-gradient(145deg, #ffd60a, #e6a800);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 12px 24px rgba(255,214,10,.3);
}
.shape-btn.s3 {
  background: linear-gradient(145deg, #3dc91e, #1fa806);
  box-shadow: 0 8px 0 rgba(0,0,0,.35), 0 12px 24px rgba(61,201,30,.3);
}
.shape-btn:disabled {
  opacity: .45; cursor: default;
  transform: none !important; filter: saturate(.4);
}

/* ── Points flash ─────────────────────────────────────────── */
.points-flash {
  font-size: 3.5rem;
  font-weight: 900;
  animation: pointsFlash .6s cubic-bezier(.34,1.56,.64,1);
  color: var(--yellow-l);
  text-shadow: 0 0 30px rgba(255,214,10,.6);
}
@keyframes pointsFlash {
  0%   { transform: scale(.3) rotate(-5deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* ── Countdown overlay ────────────────────────────────────── */
#countdown-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,3,25,.8);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
#countdown-overlay.hidden { display: none !important; }
.countdown-num {
  font-size: 10rem;
  font-weight: 900;
  color: var(--yellow-l);
  text-shadow: 0 0 60px rgba(255,214,10,.7);
  animation: countNum .85s cubic-bezier(.34,1.56,.64,1);
}
.countdown-go {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd60a, #3dc91e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countNum .85s cubic-bezier(.34,1.56,.64,1);
}
@keyframes countNum {
  from { transform: scale(2.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Waiting spinner ──────────────────────────────────────── */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,.1);
  border-top-color: var(--yellow-l);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  margin: .75rem auto;
  box-shadow: 0 0 16px rgba(255,214,10,.3);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Result screen (player) ───────────────────────────────── */
.result-icon {
  font-size: 5rem;
  animation: resultBounce .6s cubic-bezier(.34,1.56,.64,1);
  display: block;
  margin-bottom: .5rem;
}
@keyframes resultBounce {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  padding: .5rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: .75rem;
  animation: rankSlide .5s .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes rankSlide {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Total score display ──────────────────────────────────── */
.total-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yellow-l);
  text-shadow: 0 0 16px rgba(255,214,10,.5);
  animation: rankSlide .5s .5s cubic-bezier(.22,1,.36,1) both;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ff3355, #cc0033);
  color: #fff;
  padding: .8rem 1.6rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow);
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 999;
  white-space: nowrap;
}
.toast.success {
  background: linear-gradient(135deg, #3dc91e, #1fa806);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ── Quiz builder editor ──────────────────────────────────── */
.q-editor {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: .75rem;
  position: relative;
  transition: border-color .2s;
}
.q-editor:focus-within { border-color: rgba(255,214,10,.4); }
.q-editor-num {
  font-size: .7rem; font-weight: 800; opacity: .45;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem;
}
.q-editor .answer-row {
  display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem;
}
.q-editor .answer-row input { margin-bottom: 0; flex: 1; }
.correct-radio { width: 18px; height: 18px; accent-color: var(--yellow-l); flex-shrink: 0; }
.remove-q {
  position: absolute; top: .85rem; right: .85rem;
  background: none; border: none; color: rgba(255,255,255,.3);
  font-size: 1.1rem; cursor: pointer; padding: 0;
  transition: color .2s, transform .2s;
}
.remove-q:hover { color: #ff3355; transform: scale(1.2); }

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gap-row { display: flex; gap: .75rem; }
.glow-text {
  text-shadow: 0 0 20px currentColor;
}

/* ── Lobby player count badge ────────────────────────────── */
.player-count-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .75rem;
  opacity: .8;
}

/* ── Game over podium ────────────────────────────────────── */
.podium-top {
  font-size: 5rem;
  animation: podiumDrop .7s cubic-bezier(.34,1.56,.64,1);
  display: block;
}
@keyframes podiumDrop {
  from { transform: translateY(-40px) scale(1.5); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.winner-name {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd60a, #ff9d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: screenIn .5s .2s both;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .answer-grid { grid-template-columns: 1fr; }
  .shape-grid  { gap: .7rem; }
  .logo        { font-size: 2.4rem; }
  .q-text      { font-size: 1.25rem; padding: 1rem 1.25rem; }
  .countdown-num { font-size: 7rem; }
  .orb-1 { width: 350px; height: 350px; }
  .orb-2 { width: 280px; height: 280px; }
  .orb-3 { width: 200px; height: 200px; }
}
