.lottery-body{--lottery-bg:#111318;--lottery-surface:#1a1d24;--lottery-surface-2:#232832;--lottery-line:#343b49;--lottery-text:#fffaf7;--lottery-muted:#c8c1ba;--lottery-gold:#f1bd52;--lottery-green:#2dc37e;--lottery-red:#ef6674;background:radial-gradient(circle at 15% 10%,color-mix(in srgb,var(--brand) 26%,transparent),transparent 34%),radial-gradient(circle at 85% 18%,#2dc37e24,transparent 28%),linear-gradient(180deg,#161922 0%,#0d0f14 100%);color:var(--lottery-text);min-height:100vh}
.lottery-shell{max-width:1440px;margin:auto;padding:1rem}
.lottery-head{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:.85rem;padding:.85rem 1.1rem;border:1px solid #ffffff14;border-radius:20px;background:#ffffff0b;backdrop-filter:blur(12px);box-shadow:0 18px 60px #00000022}
.lottery-brand{display:grid;gap:.4rem}
.lottery-brand .brand{justify-content:center;font-size:clamp(1.2rem,2.2vw,2rem)}
.lottery-brand small{color:var(--lottery-muted)}
.lottery-event-logo{width:auto;min-width:50px;max-width:110px;height:52px;border-radius:14px}
.lottery-actions select{min-width:240px;background:#222630;color:#fff;border-color:#444b58}
.lottery-actions .btn.ghost{background:#ffffff12;color:#fff;border-color:#ffffff1f}
.lottery-stage{position:relative;overflow:hidden;min-height:calc(100vh - 118px);display:grid;align-content:center;justify-items:center;gap:1rem;text-align:center;border:1px solid #ffffff16;border-radius:30px;padding:clamp(1rem,2vw,1.8rem);background:linear-gradient(155deg,#20242d,#151821 58%,#11141a);box-shadow:0 26px 90px #00000040}
.lottery-stage:before{content:"";position:absolute;inset:8% 12%;border:1px solid #ffffff10;border-radius:50%;background:radial-gradient(circle,#ffffff0d 0 15%,transparent 16% 100%);pointer-events:none}
.lottery-stage-copy,.lottery-participants,.lottery-reel,.lottery-winners{position:relative;z-index:1}
.lottery-stage .eyebrow{color:#ffe4ad}
.lottery-stage h1{font-size:clamp(1.8rem,4vw,3.6rem);line-height:1.25;margin-bottom:0;letter-spacing:0}
.lottery-participants{display:inline-flex;align-items:center;justify-content:center;gap:.65rem;max-width:100%;padding:.65rem 1rem;border:1px solid #ffffff18;border-radius:16px;background:#ffffff0d;color:var(--lottery-muted);box-shadow:inset 0 1px #ffffff10,0 14px 42px #00000022;font-weight:850}
.lottery-participants strong{direction:ltr;color:#dfffee;font-family:ui-monospace,Menlo,monospace;font-size:clamp(1.35rem,2.4vw,2.15rem);line-height:1}
.lottery-participants span{font-size:clamp(.95rem,1.5vw,1.2rem);white-space:nowrap}
.lottery-reel{width:min(920px,100%);min-height:170px;display:grid;place-items:center;gap:.3rem;padding:1rem;border:1px solid #ffffff18;border-radius:24px;background:#0c0f15cc;box-shadow:inset 0 1px #ffffff12,0 24px 70px #0000002c}
.lottery-reel span{direction:ltr;font-family:ui-monospace,Menlo,monospace;font-size:clamp(3rem,9vw,7.4rem);font-weight:900;line-height:1;color:#fff;letter-spacing:0;text-shadow:0 0 32px color-mix(in srgb,var(--lottery-gold) 32%,transparent)}
.lottery-reel small{min-height:1.8rem;color:var(--lottery-gold);font-size:clamp(1rem,2vw,1.35rem);font-weight:900}
.lottery-reel p{min-height:2.2rem;margin:0;color:var(--lottery-muted);font-size:clamp(1.15rem,2.4vw,1.7rem);font-weight:850}
.lottery-stage.has-winner .lottery-reel{border-color:color-mix(in srgb,var(--lottery-gold) 64%,transparent);box-shadow:inset 0 1px #ffffff18,0 0 0 6px #f1bd5215,0 30px 90px #00000045}
.lottery-winners{width:min(1020px,100%);display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.9rem}
.lottery-winner-card{display:grid;gap:.38rem;min-height:158px;align-content:center;padding:1.05rem 1.4rem;border:1px solid #f1bd5240;border-radius:18px;background:linear-gradient(150deg,#302919,#171b22);box-shadow:inset 0 1px #ffffff12}
.lottery-stage.has-winner .lottery-winner-card{border-color:#2dc37e7a;background:linear-gradient(145deg,#0f4b32,#14251f 62%,#121a18);box-shadow:inset 0 1px #ffffff18,0 0 0 5px #2dc37e18,0 18px 56px #00000032}
.lottery-winner-card span{color:#ffe3a8;font-size:clamp(1.1rem,1.8vw,1.55rem);font-weight:900}
.lottery-stage.has-winner .lottery-winner-card span{color:#dfffee}
.lottery-winner-card strong{direction:ltr;font-family:ui-monospace,Menlo,monospace;font-size:clamp(2.1rem,4.2vw,3.6rem);line-height:1.15}
.lottery-winner-message{display:grid;gap:.45rem;margin:0;color:#fff2df;line-height:1.9}
.lottery-winner-message b{font-size:clamp(1.05rem,1.7vw,1.45rem);font-weight:950}
.lottery-winner-message small{color:#e3f7ee;font-size:clamp(.88rem,1.25vw,1.08rem);font-weight:750;line-height:1.9}
.lottery-stage.has-winner .lottery-winner-message{color:#ffffff}
.lottery-controls{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr)) minmax(280px,auto);gap:.9rem;align-items:stretch;margin:1rem 0}
.lottery-stat,.lottery-form,.lottery-message{border:1px solid #ffffff14;border-radius:18px;background:#ffffff0c;box-shadow:0 18px 55px #00000020}
.lottery-stat{display:grid;gap:.35rem;padding:1rem}
.lottery-stat span{color:var(--lottery-muted);font-size:.82rem;font-weight:800}
.lottery-stat strong{font-size:2rem;line-height:1}
.lottery-stage>.lottery-form{position:relative;z-index:1;padding:0;background:transparent;border:0;box-shadow:none}
.lottery-stage>.lottery-form .btn{min-width:min(320px,80vw);height:auto;padding:.85rem 2.4rem;border-radius:18px;font-size:clamp(1.25rem,2.6vw,1.8rem);box-shadow:0 18px 45px color-mix(in srgb,var(--brand) 35%,transparent)}
.lottery-stage>.lottery-form{display:grid;justify-items:center;gap:.75rem}
.lottery-form{display:flex;align-items:end;gap:.7rem;padding:.8rem}
.lottery-form label{min-width:110px;color:var(--lottery-muted)}
.lottery-form input{height:44px;background:#10141b;color:#fff;border-color:#3a4250}
.lottery-form .btn{height:44px;white-space:nowrap}
.lottery-form .btn:disabled{opacity:.6;cursor:wait;transform:none}
.lottery-stage>.lottery-message{position:relative;z-index:1;min-height:34px;padding:0;background:transparent;border:0;box-shadow:none;justify-content:center}
.lottery-message{grid-column:1/-1;min-height:48px;display:flex;align-items:center;padding:.75rem 1rem;color:var(--lottery-muted)}
.lottery-message:empty{display:none}
.lottery-message.success{border-color:#2dc37e55;background:#2dc37e14;color:#d9ffec}
.lottery-message.pending{border-color:#f1bd5255;background:#f1bd5214;color:#ffe7b5}
.lottery-message.danger{border-color:#ef667455;background:#ef667414;color:#ffdce1}
.lottery-board{position:relative;z-index:1;width:min(1020px,100%);padding:.8rem;border:1px solid #ffffff14;border-radius:18px;background:#10141bcc;color:#fff;box-shadow:0 18px 55px #00000022}
.lottery-board-head{margin-bottom:.55rem;color:#dfffee;font-size:clamp(.95rem,1.25vw,1.2rem);font-weight:950;text-align:center}
.lottery-history{background:#171b22;border-color:#ffffff14;color:#fff}
.lottery-history .panel-title span{color:var(--lottery-muted)}
.lottery-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.55rem}
.lottery-history-list>div{display:grid;gap:.15rem;padding:.65rem .75rem;border:1px solid #ffffff10;border-radius:14px;background:#ffffff08}
.lottery-board .lottery-history-list>div{border-color:#2dc37e33;background:#0f4b321f}
.lottery-history-list strong{direction:ltr;font-family:ui-monospace,Menlo,monospace;color:#ffe2a2}
.lottery-history-list span{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lottery-history-list small{color:var(--lottery-muted);font-family:ui-monospace,Menlo,monospace;text-align:right}
.lottery-body .empty.panel{background:#171b22;border-color:#ffffff14;color:#fff}
@media(max-width:900px){.lottery-head{display:grid}.lottery-controls{grid-template-columns:repeat(3,1fr)}.lottery-form{grid-column:1/-1}.lottery-stage{min-height:calc(100vh - 150px)}.lottery-reel span{font-size:clamp(2.6rem,15vw,5.5rem)}}
@media(max-width:600px){.lottery-shell{padding:.85rem}.lottery-controls{grid-template-columns:1fr}.lottery-form{display:grid}.lottery-message{grid-column:auto}.lottery-stage{min-height:400px;border-radius:22px}.lottery-participants{width:100%}.lottery-reel{min-height:150px}.lottery-winners,.lottery-history-list{grid-template-columns:1fr}}
