:root{color-scheme:dark;--bg:#100b1a;--ink:#fcf8ff;--muted:#b9abc9;--line:#332344;--purple:#af83ff;--pink:#f0a6df;--mint:#9ceee2;--gold:#ffe5a6;--display:'Barlow Condensed','Arial Narrow',Impact,sans-serif;--copy:'Space Grotesk',system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{margin:0;background:radial-gradient(ellipse at 53% 0,#241139 0,transparent 54rem),var(--bg);color:var(--ink);font:1rem/1.5 var(--copy)}
a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}
:focus-visible{outline:3px solid var(--mint);outline-offset:4px}
.wrap{width:min(1180px,calc(100% - 5rem));margin-inline:auto}
.topbar{border-bottom:1px solid var(--line);background:#120d1bbb}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:76px}
.brand{display:flex;align-items:center;gap:.65rem;font:800 1.85rem/1 var(--display);letter-spacing:.045em;white-space:nowrap}
.brand em{font-style:normal;color:var(--purple)}.brand-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#a879ff;color:#1c0e30;font:900 1.6rem/1 var(--display);transform:rotate(-7deg)}
nav,.nav-actions{display:flex;align-items:center;gap:1.4rem}nav a{color:var(--muted);font-size:.95rem;font-weight:600}nav a:hover,nav a[aria-current]{color:var(--ink)}.nav-actions{gap:.55rem}
.button{display:inline-flex;justify-content:center;align-items:center;border:1px solid #644b85;border-radius:10px;padding:.59rem .87rem;color:var(--ink);background:#2c1d42;font-weight:700;font-size:.9rem;text-align:center;min-height:42px}
.button:hover:not(:disabled){background:#422764}.login{background:#38225b;border-color:#68459a}.quiet{background:#1b1426;border-color:#473455;color:#d9c9ee}.primary{background:#b28aff;color:#1b092b;border-color:#d2baff}.primary:hover:not(:disabled){background:#c7a6ff}.danger{color:#ffb1cc}
.hero{display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1.13fr);align-items:center;gap:clamp(2rem,6vw,6.5rem);padding:3rem 0 3.4rem}
.eyebrow{color:var(--purple);font-size:.8rem;font-weight:700;letter-spacing:.13em}.eyebrow span,.stage-top i{display:inline-block;width:8px;height:8px;margin-right:.35rem;border-radius:50%;background:var(--mint);box-shadow:0 0 12px #9ceee277;vertical-align:1px}
h1{margin:.16em 0 .12em;font:900 clamp(6.5rem,11.8vw,11.25rem)/.72 var(--display);letter-spacing:-.045em;color:#f6efff}h1 em{font-style:normal;color:var(--purple)}h1 span{color:var(--pink)}
.intro{font-size:clamp(1.08rem,1.8vw,1.31rem);max-width:28ch;margin:1.65rem 0 1.35rem;color:#dbcee8}
.muted{color:var(--muted)}.note{font-size:.9rem;margin:.45rem 0 0}.roundbox{display:grid;gap:.42rem;max-width:375px;background:#1d132c;border:1px solid #46315d;border-radius:16px;padding:1.05rem 1.15rem}.roundbox strong{font-size:1.28rem}.round-info{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.status{font-size:.86rem;font-weight:700;color:var(--mint)}.timer{font-size:.91rem;font-variant-numeric:tabular-nums;min-height:1.3em;color:var(--gold)}.roundbox .primary{width:100%;margin-top:.45rem}
.stage{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:.8rem;border-radius:23px;background:radial-gradient(ellipse at 50% 58%,#392462,#1e142e 63%,#191222);border:1px solid #5e437e;padding:1.02rem 1.1rem;box-shadow:0 20px 65px -35px #8d53dd77}
.stage::before{content:'';position:absolute;z-index:-1;inset:0;background-image:radial-gradient(circle,#d6a9ff44 1px,transparent 1px);background-size:21px 21px;mask-image:radial-gradient(ellipse,#000,transparent 80%)}
.stage-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:#e5d3f8;font-size:.8rem;font-weight:700;letter-spacing:.095em}.stage-top .button{min-height:34px;padding:.25rem .64rem;font-size:.8rem;letter-spacing:0}.steps{display:flex;gap:.4rem;text-align:center;background:#100a1ade;border:1px solid #46315c;padding:.25rem;border-radius:10px;color:#b9aace;font-size:.87rem}.steps span{padding:.35rem .65rem;border-radius:7px}.steps b{margin-left:.24rem}.steps .current{color:#f9f1ff;background:#4b2b76}
.wheel-area{position:relative;display:grid;place-items:center;width:min(100%,28.8rem);padding:1rem 1.2rem .2rem}.wheel{position:relative;width:100%;aspect-ratio:1;border:clamp(6px,.85vw,12px) solid #352051;border-radius:50%;outline:1px solid #9775c7;box-shadow:0 0 0 5px #a580ff25,0 0 32px #af71ff4a;isolation:isolate}.wheel canvas{width:100%;height:100%;display:block;border-radius:50%;outline:1px solid #d2b6ff88}.hub{position:absolute;display:grid;place-items:center;left:50%;top:50%;transform:translate(-50%,-50%);width:17%;aspect-ratio:1;border-radius:50%;background:#211133;color:#e2cbff;border:3px solid #ceb0ff;box-shadow:0 0 0 5px #21113366;font:900 clamp(1.5rem,4vw,3.1rem)/1 var(--display)}.pointer{position:absolute;top:-5%;left:50%;transform:translateX(-50%);width:11%;height:13%;background:var(--gold);clip-path:polygon(15% 0,85% 0,100% 29%,50% 100%,0 29%)}
.spark{position:absolute;font-size:1.8rem;line-height:1}.spark-a{color:var(--pink);left:-.1em;top:19%}.spark-b{color:var(--mint);right:-.12em;bottom:19%}
.stage-bottom{display:grid;justify-items:center;text-align:center;color:#d8c8ee;gap:.14rem;min-height:3.2rem}.stage-bottom strong{color:#faf4ff;font-size:1.24rem}.stage-bottom span{font-size:.88rem}
.section{padding:1.55rem 0 2.4rem;border-top:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1rem}.section-head p{margin:0;color:var(--muted)}h2{font:800 clamp(2.15rem,4.4vw,3rem)/1 var(--display);margin:.19rem 0 0}
.prize-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.prize,.history-row,.empty,.control-box{background:#1b1327;border:1px solid var(--line);border-radius:13px;padding:.9rem 1rem}.prize{border-top:2px solid var(--tint);min-width:0;overflow-wrap:anywhere}.prize strong,.history-row strong{display:block}.prize .swatch{color:var(--tint);margin-right:.4rem}.history{display:grid;gap:.5rem}.history-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.person{display:flex;align-items:center;gap:.65rem;min-width:0}.person div{min-width:0;overflow-wrap:anywhere}.avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;background:#463063;display:grid;place-items:center;color:#f3ddff;flex:none;font-weight:700}.delivery{color:var(--gold);font-size:.88rem;text-align:right}.delivery.done{color:var(--mint)}
footer{padding:1.2rem 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:.5rem;font-size:.88rem}footer b{color:var(--purple)}
dialog{width:min(680px,calc(100% - 1.25rem));max-height:88vh;max-height:88dvh;overflow:auto;color:var(--ink);background:#1b1327;border:1px solid #725591;border-radius:18px;padding:1.15rem 1.25rem;box-shadow:0 24px 110px #000b}dialog::backdrop{background:#0b0613b3;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:.6rem;margin-bottom:1rem}#dialog-content{display:grid;gap:.65rem}#dialog-error{color:#ffb1cc}.control-box{background:#20152e}.control-box h3{margin:0 0 .55rem}.controls{display:flex;align-items:end;flex-wrap:wrap;gap:.45rem}.controls label{display:grid;gap:.25rem;flex:1;min-width:85px}.controls label.wide{min-width:145px;flex:2}.controls input{min-width:0;width:100%;color:var(--ink);background:#100a1a;border:1px solid #674d82;border-radius:8px;padding:.48rem}.roster{max-height:9rem;overflow:auto;margin:.5rem 0 0;padding-left:1.3rem}.panel-prizes{display:grid;gap:.38rem;margin:.6rem 0 0}.manage-row{display:flex;align-items:center;justify-content:space-between;gap:.35rem}.toast{position:fixed;z-index:2;bottom:1rem;right:1rem;max-width:calc(100% - 2rem);border:1px solid #7353a2;border-radius:12px;padding:.65rem 1rem;background:#32204b}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.confetti i{position:absolute;left:var(--x);width:8px;height:14px;background:var(--c);animation:fall 1.75s var(--d) both ease-in;top:-20px}@keyframes fall{to{transform:translate(var(--dx),68vh) rotate(490deg);opacity:.15}}
.obs{background:transparent}.obs .topbar,.obs .hero-copy,.obs .section,.obs footer,.obs #sound,.obs .toast{display:none!important}.obs .wrap{width:100%}.obs .hero{display:grid;min-height:100vh;place-items:center;padding:.7rem}.obs .stage{width:min(100%,52rem);min-width:0}.obs .wheel-area{width:min(100%,62vh)}
.stage-bottom strong{display:flex;align-items:center;justify-content:center;gap:.55rem;overflow-wrap:anywhere;max-width:100%}.stage-bottom .avatar{width:30px;height:30px;font-size:.9rem}.controls .check{justify-items:start;min-width:62px;flex:.6}.controls .check input{width:1.12rem;height:1.12rem;accent-color:var(--purple);margin:.3rem 0 .52rem}.control-box details{margin-top:.55rem;color:var(--muted)}.control-box summary{cursor:pointer}
@media(max-width:920px){.wrap{width:calc(100% - 2.6rem)}.hero{gap:2rem}.prize-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.wrap{width:calc(100% - 1.6rem)}.nav{min-height:0;padding:.65rem 0;gap:.65rem;flex-wrap:wrap}.nav nav{order:3;width:100%;justify-content:center;gap:1.45rem;padding-top:.35rem;border-top:1px solid var(--line)}.brand{font-size:1.5rem}.brand-icon{width:29px;height:29px}.nav-actions .button{font-size:.8rem;padding:.4rem .5rem;min-height:36px}.hero{grid-template-columns:1fr;padding:2rem 0;gap:1.2rem}h1{font-size:clamp(5.4rem,17vw,8rem)}.intro{margin:1.2rem 0 1rem}.roundbox{max-width:none}.stage-top{letter-spacing:.04em}.section-head{display:block}.section-head p{margin-top:.45rem}.obs .hero{padding:.4rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.confetti{display:none}}

:root {
  --bg: #12091f;
  --ink: #fff5ff;
  --muted: #c9b9db;
  --line: #523569;
  --purple: #c5a0ff;
  --pink: #ff81cb;
  --mint: #93f3df;
  --gold: #ffdc91;
}
body {
  background:
    radial-gradient(ellipse at 16% 28%, #6d23843d, transparent 37rem),
    radial-gradient(ellipse at 85% 19%, #7537d457, transparent 41rem),
    radial-gradient(ellipse at 68% 73%, #42206058, transparent 39rem), var(--bg);
}
.topbar { background: #160d24; border-bottom-color: #553870; }
.brand { letter-spacing: .035em; }
.brand-icon {
  font-size: 1.68rem;
  color: #210d35;
  background: linear-gradient(138deg, #e8b9ff, #a77afc 70%, #ff99d7);
  box-shadow: 0 0 18px #ad74ff6b;
  border: 1px solid #f6d2ff;
}
.nav nav { gap: 1.55rem; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: .47em; text-decoration-color: var(--pink); }
.nav .brand { text-decoration: none; }
.login { background: #3f225f; border-color: #9368ca; }
.hero {
  position: relative;
  grid-template-columns: minmax(0,.89fr) minmax(0,1.11fr);
  gap: clamp(1.7rem,5vw,5.1rem);
  padding: 2.6rem 0 1.65rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy::before {
  content: '';
  z-index: -1;
  position: absolute;
  inset: .5rem -1rem 12% -1.4rem;
  background: repeating-linear-gradient(138deg, transparent 0 24px, #c684ff22 25px 26px, transparent 27px 47px);
  mask-image: radial-gradient(ellipse at 55% 41%, #000, transparent 67%);
  pointer-events: none;
}
.host-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #ead8ff;
  padding: .38rem .65rem;
  border: 1px solid #9262be;
  border-radius: 8px;
  background: #31164a;
  letter-spacing: .07em;
}
.host-tag b { color: #f6a5de; font-weight: 600; margin-left: .3rem; }
.hero h1 {
  font-size: clamp(6.2rem,10.8vw,10rem);
  line-height: .77;
  white-space: nowrap;
  margin: .18em 0 .13em;
  text-shadow: 0 4px 0 #46186b, 0 12px 36px #14091f95;
}
.hero h1 em {
  background: linear-gradient(176deg,#e5ceff 2%,#bc87ff 48%,#ed9ae3 88%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(2px 5px 0 #612485);
}
.hero h1 em span { -webkit-text-fill-color: #ffe0a0; }
.intro { font-weight: 600; margin-bottom: 1rem; }
.join-gate { margin-bottom: .9rem; }
#hero-auth {
  min-height: 52px;
  padding: .77rem 1.1rem;
  gap: .7rem;
  background: linear-gradient(103deg,#e4bbff,#b390fc 68%,#f5abeb);
  border-color: #efccff;
  font-size: 1rem;
  box-shadow: 0 5px 0 #6f449c, 0 0 32px #bd83ff39;
}
#hero-auth:hover { filter: brightness(1.12); }
.twitch-mark {
  position: relative;
  width: 19px;
  height: 19px;
  background: #2b1448;
  clip-path: polygon(17% 1%,100% 1%,100% 66%,70% 89%,52% 89%,39% 100%,32% 100%,32% 89%,3% 89%,3% 24%);
}
.twitch-mark::before { content: ''; position: absolute; inset: 5px 5px 8px 6px; border-inline: 2px solid #e6c8ff; }
.join-gate .note { margin-top: .8rem; }
.demo-link { font-size: .88rem; color: var(--mint); text-decoration: underline; }
.roundbox {
  background: linear-gradient(120deg,#2c153f,#231333 72%);
  border-color: #674881;
  border-left: 3px solid #bc85fa;
  box-shadow: 0 8px 26px #0d061e80;
}
.stage {
  border: 1px solid #ab7bd5;
  padding: 1.02rem 1.28rem 1.18rem;
  background: radial-gradient(ellipse at 50% 56%,#6d32a0,#3b1d60 56%,#241337 80%);
  box-shadow: inset 0 0 0 5px #c39af20e, 0 18px 70px #7133b34d;
}
.stage::before {
  background-image: repeating-conic-gradient(from 0deg,#e5b2ff29 0 1deg,transparent 1deg 16deg), linear-gradient(#d9afff1e 1px, transparent 1px), linear-gradient(90deg,#d9afff1e 1px,transparent 1px);
  background-size: auto,26px 26px,26px 26px;
  mask-image: radial-gradient(ellipse,#000,transparent 77%);
}
.stage-top { border-bottom: 1px solid #e3b3ff3e; padding-bottom: .68rem; }
.steps { background: #1c0e2e; border-color: #8a58b5; }
.steps .current { background: linear-gradient(135deg,#7e3ebe,#572790); color: #fff4ff; }
.steps span:last-child.current { background: linear-gradient(135deg,#bc4f93,#823373); }
.wheel-area { width: min(100%,28.4rem); padding-inline: 1.45rem; }
.wheel {
  border-color: #2e1146;
  outline: 2px solid #deb2fc;
  box-shadow: 0 0 0 5px #7044a6, 0 0 0 7px #e7b0fc59, 0 0 42px #fd91ed6e;
}
.hub { background: linear-gradient(145deg,#7433aa,#211135 70%); box-shadow: 0 0 0 5px #21113366,0 2px 12px #1b0d36; }
.pointer { background: linear-gradient(#fff3c9,#ffb565); }
.spark { text-shadow: 0 0 18px currentColor; }
.stage-bottom { min-height: 3.65rem; }
.obs .flow-strip { display: none; }
.flow-strip {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: .75rem 0 1.75rem;
  background: linear-gradient(105deg,#351949,#261338 58%,#432052);
  border: 1px solid #644481;
  border-radius: 13px;
}
.flow-strip div { min-width: 0; padding: .88rem .95rem; display:flex; align-items:center; gap:.6rem; }
.flow-strip div+div { border-left: 1px solid #644481; }
.flow-strip span { color: var(--mint); font-size: .87rem; font-weight: 700; }
.flow-strip div:nth-child(2) span { color: var(--pink); }
.flow-strip div:nth-child(3) span { color: var(--gold); }
.prize { background: linear-gradient(142deg,color-mix(in srgb,var(--tint) 15%,#281538),#241331 75%); border-top: 2px solid var(--tint); }
.private-panel { padding: 2.6rem 0 3rem; }
.panel-hero { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.25rem 1.5rem; border:1px solid #785296; border-radius:16px; background:linear-gradient(110deg,#40205c,#28163d); }
.panel-hero h1 { font-size: clamp(2.8rem,8vw,5rem); line-height: .95; margin: .15em 0 .1em; }
.panel-hero p { margin: 0; }
.panel-error { color: #ffaccb; }
.panel-error:empty { display: none; }
.panel-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.9rem; margin-top:1rem; }
.panel-content .control-box { background: #2a153e; border-color: #6a4784; }
.panel-content>button { justify-self:start; }
@media(max-width:1000px) { .hero h1 { font-size:clamp(4.6rem,11vw,7.6rem); } }
@media(max-width:680px) {
  .hero { grid-template-columns:1fr; padding:1.45rem 0 1rem; }
  .hero h1 { font-size:clamp(4.8rem,19vw,7.65rem); }
  .stage { padding:.78rem .8rem; }
  .flow-strip { grid-template-columns:1fr; }
  .flow-strip div+div { border-left:0; border-top:1px solid #644481; }
  .panel-hero { align-items:start; flex-direction:column; padding:1rem; }
  .panel-content { grid-template-columns:1fr; }
  .nav .brand { font-size:1.35rem; }
  .nav-actions { margin-left:auto; }
  .obs .hero { padding:.4rem; }
}
