*{box-sizing:border-box}
:root{--bg:#0c0f14;--panel:#141820;--muted:#8b95a7;--text:#e8edf5;--primary:#2563eb;--danger:#ef4444}
body{margin:0;font-family:Inter,'Noto Sans Bengali',system-ui,sans-serif;background:radial-gradient(1000px 600px at 30% 20%,#1f2937,#0b0f15);color:var(--text)}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:rgba(10,14,20,.9);border-bottom:1px solid #151b25;position:sticky;top:0;z-index:5;backdrop-filter:blur(6px)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand .dot{width:10px;height:10px;border-radius:50%;background:#ff4757;box-shadow:0 0 0 3px #2b0b10 inset}
.actions{display:flex;gap:8px}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:600;background:#1f2937;color:#e8edf5;cursor:pointer}.btn.primary{background:var(--primary)}.btn.small{padding:6px 10px;font-size:12px}.btn.danger{background:var(--danger)}
.layout{display:grid;grid-template-columns:1fr 380px;gap:16px;padding:16px}
.stage{display:flex;flex-direction:column;align-items:center;gap:12px}
.wheel-wrap{position:relative;width:min(720px,80vw);aspect-ratio:1/1}
#wheel{width:100%;height:100%;display:block;border-radius:50%;background:radial-gradient(#f5f7fb,#e7ecf6)}
.pointer{position:absolute;right:-10px;top:50%;transform:translateY(-50%);width:0;height:0;border-left:22px solid #f4c430;border-top:12px solid transparent;border-bottom:12px solid transparent;filter:drop-shadow(0 2px 0 rgba(0,0,0,.4))}
.controls{display:flex;align-items:center;gap:12px}.toggle{display:inline-flex;align-items:center;gap:8px;opacity:.85}.result{min-height:44px;display:grid;place-items:center;font-weight:800;font-size:22px}
.panel{background:var(--panel);border:1px solid #1f2735;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
#entries{width:100%;min-height:360px;resize:vertical;background:#0f1420;color:var(--text);border:1px solid #20293a;border-radius:12px;padding:12px}
.panel-foot{display:flex;justify-content:flex-end}.help{font-size:12px;color:var(--muted)}.foot{color:#95a0b3;text-align:center;padding:10px;font-size:12px}
@media(max-width:980px){.layout{grid-template-columns:1fr}.panel{order:-1}}


/* v6 visual adjustments */
.winner-modal.hidden{display:none}
.winner-modal{position:fixed;inset:0;display:grid;place-items:center;z-index:100}
.winner-modal .modal-bg{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.winner-modal .modal-box{width:min(720px,92vw);color:#e5e7eb;background:#0b0f14;border-radius:12px;box-shadow:0 12px 60px rgba(0,0,0,.6);overflow:hidden;animation:fadeGrow .18s ease-out}
.winner-modal .banner{background:#22c55e;color:#0b0f14;font-weight:700;padding:12px 16px;font-size:18px}
.winner-modal .modal-content{padding:20px 22px;text-align:center}
.winner-modal .winner-name{font-size:clamp(34px,6vw,60px);font-weight:800;color:#fff;margin:8px 0 18px}
.winner-modal .actions{display:flex;gap:10px;justify-content:center}
.winner-modal .actions .btn{background:#1f2937}
.winner-modal .actions .btn:hover{background:#253142}
.winner-modal .actions .btn.danger{background:#2563eb}
.winner-modal .actions .btn.danger:hover{background:#1e4fd6}
@keyframes fadeGrow{from{transform:scale(.98);opacity:0}to{transform:scale(1);opacity:1}}
