:root{ --bg:#0f172a; --card:#0b1220; --text:#e5e7eb; --muted:#9ca3af; --outline: rgba(255,255,255,0.10); --A:#60a5fa; --B:#34d399; --C:#f59e0b; --D:#f87171; }
*{box-sizing:border-box} html,body{margin:0;padding:0;min-height:100%;font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:radial-gradient(1200px 600px at 50% -200px,#1f2937 0%,#0f172a 35%,#0b1220 100%),var(--bg)}
.container{width:100%;max-width:1100px;margin:0 auto;padding:20px} .card{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0));border:1px solid var(--outline);border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05)}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.actions{display:flex;gap:10px;margin-left:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;background:#111827;border:1px solid var(--outline);color:var(--text);padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:700} .btn-primary{background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff}.btn-success{background:linear-gradient(180deg,#10b981,#059669);color:#fff}.btn-danger{background:linear-gradient(180deg,#ef4444,#dc2626);color:#fff}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:rgba(56,189,248,.10);border:1px solid rgba(56,189,248,.35);color:#bae6fd}
.choice-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px} @media(max-width:640px){.choice-grid{grid-template-columns:1fr}}
.choice{position:relative;padding:16px;border-radius:16px;background:#0b1220;border:2px solid var(--outline);cursor:pointer;transition:transform .08s ease,background .2s ease;border-color:var(--outline)} .choice .label{font-weight:900;margin-bottom:4px} .choice:hover{transform:translateY(-1px) scale(1.01)} .choice:active{transform:translateY(0) scale(.98);background:#374151} .choice.clicked{background:#4b5563;border-color:#6b7280}
.chart{margin-top:12px;background:#0b1220;border:1px solid var(--outline);border-radius:16px;padding:10px}
.bar{display:grid;grid-template-columns:60px 1fr 110px;gap:10px;align-items:center;margin:10px 0;border-radius:12px;padding:2px 4px}.bar .label{font-weight:800;text-align:right}.bar .track{height:22px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid var(--outline);border-radius:999px;overflow:hidden}.bar .fill{height:100%;width:0%;transition:width .4s cubic-bezier(.2,.8,.2,1)}.bar .count{text-align:left}.bar.winner{outline:2px solid rgba(255,255,255,.45);box-shadow:0 0 18px rgba(255,255,255,.25)}.bar.correct{outline:2px solid #22c55e;box-shadow:0 0 18px rgba(34,197,94,.35)}
#fx-layer{position:fixed;inset:0;pointer-events:none;z-index:9999}.fx-bubble{position:absolute;width:12px;height:12px;border-radius:50%;opacity:.9;animation:rise 1200ms ease-out forwards;box-shadow:0 2px 8px rgba(0,0,0,.25)} @keyframes rise{0%{transform:translateY(0) scale(1);opacity:.95}100%{transform:translateY(-80px) scale(1.6);opacity:0}} .fx-flash{position:absolute;inset:0;background:rgba(255,255,255,.08);animation:flash 280ms ease-out forwards}@keyframes flash{0%{opacity:0}25%{opacity:.12}100%{opacity:0}}


/* Glow effect for correct bar on host and display screens */
/*
 * Additional emphasis on the coloured portion of the correct bar.
 * The `.glow-correct` class is applied to the bar itself; this rule
 * targets its `.fill` child to emit a stronger inner glow, drawing
 * the eye to the correct answer whether or not it received votes.
 */
.bar.glow-correct .fill {
  box-shadow:
    0 0 0 5px rgba(250, 204, 21, 0.45),
    0 0 24px rgba(250, 204, 21, 0.8),
    0 0 36px rgba(250, 204, 21, 0.5);
  transform-origin: left center;
}

/* Override correct bar styling to gold (yellow) glow */
/*
 * Styling for the correct answer bar
 * When the poll ends the host and display UIs apply both the
 * `correct` and `glow-correct` classes to the answer bar.  This
 * section makes the bar stand out with a warm yellow border and
 * multiple glow layers.  Without this override the bar would
 * default to a green outline that is easy to miss.
 */
.bar.correct {
  /* Draw a solid yellow outline around the entire bar */
  outline: 3px solid #facc15;
  /* Add multiple glow layers: one tight and one soft */
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.35),
    0 0 18px rgba(250, 204, 21, 0.55),
    0 0 28px rgba(250, 204, 21, 0.25);
}
