.hw{--hw-bg:#0b0716;--hw-bg-2:#160c2e;--hw-surface:#ffffff0f;--hw-surface-2:#ffffff1a;--hw-border:#ffffff1f;--hw-text:#fff;--hw-muted:#ffffff9e;--hw-pink:#ff3d81;--hw-violet:#7c5cff;--hw-yellow:#ffd166;--hw-green:#22e58a;--hw-red:#ff4757;--hw-radius:22px;--hw-safe-top:env(safe-area-inset-top,0px);--hw-safe-bottom:env(safe-area-inset-bottom,0px);min-height:100dvh;color:var(--hw-text);background:radial-gradient(900px 600px at 10% -10%,#ff3d8152,transparent 60%),radial-gradient(800px 700px at 100% 100%,#7c5cff59,transparent 60%),linear-gradient(160deg,var(--hw-bg-2),var(--hw-bg)55%);font-family:var(--font-space),ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;-webkit-user-select:none;user-select:none;position:relative}.hw *,.hw :before,.hw :after{box-sizing:border-box}.hw input,.hw textarea{-webkit-user-select:text;user-select:text}.hw-screen{width:100%;max-width:560px;min-height:100dvh;padding:calc(18px + var(--hw-safe-top))18px calc(24px + var(--hw-safe-bottom));flex-direction:column;gap:18px;margin:0 auto;animation:.45s cubic-bezier(.2,.8,.2,1) both hw-fade-up;display:flex}.hw-screen--center{text-align:center;justify-content:center}.hw-grow{flex:auto}.hw-eyebrow{letter-spacing:.22em;text-transform:uppercase;color:var(--hw-muted);font-size:12px;font-weight:700}.hw-title{letter-spacing:-.03em;background:linear-gradient(120deg,#fff 0%,#ffd166 45%,#ff3d81 100%);color:#0000;-webkit-background-clip:text;background-clip:text;margin:0;font-size:clamp(40px,12vw,64px);font-weight:800;line-height:.95}.hw-h2{letter-spacing:-.02em;margin:0;font-size:clamp(26px,7vw,34px);font-weight:800;line-height:1.05}.hw-lead{color:var(--hw-muted);margin:0;font-size:18px;line-height:1.45}.hw-muted{color:var(--hw-muted)}.hw-small{font-size:14px;line-height:1.4}.hw-btn{border-radius:var(--hw-radius);width:100%;min-height:64px;font:inherit;letter-spacing:-.01em;color:#fff;background:var(--hw-surface-2);cursor:pointer;touch-action:manipulation;border:0;justify-content:center;align-items:center;gap:10px;padding:14px 22px;font-size:20px;font-weight:800;transition:transform .12s,filter .12s,opacity .2s;display:inline-flex;box-shadow:inset 0 1px #ffffff1f}.hw-btn:active{transform:scale(.97)}.hw-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.hw-btn--primary{color:#1a0326;background:linear-gradient(120deg,#ffd166,#ff8fab 60%,#ff3d81);box-shadow:0 14px 40px -14px #ff3d81bf}.hw-btn--violet{background:linear-gradient(120deg,#7c5cff,#a78bfa);box-shadow:0 14px 40px -14px #7c5cffcc}.hw-btn--green{color:#04150c;background:linear-gradient(120deg,#22e58a,#a3f7c8);box-shadow:0 14px 40px -14px #22e58abf}.hw-btn--danger{background:linear-gradient(120deg,#ff4757,#ff7a45)}.hw-btn--ghost{box-shadow:none;border:2px solid var(--hw-border);color:var(--hw-muted);background:0 0}.hw-btn--sm{border-radius:14px;width:auto;min-height:44px;padding:8px 16px;font-size:15px}.hw-btn--pulse{animation:1.6s ease-in-out infinite hw-pulse}.hw-field{flex-direction:column;gap:8px;display:flex}.hw-label{letter-spacing:.08em;text-transform:uppercase;color:var(--hw-muted);font-size:13px;font-weight:700}.hw-input{border:2px solid var(--hw-border);width:100%;min-height:60px;font:inherit;color:#fff;background:#00000040;border-radius:18px;outline:none;padding:14px 18px;font-size:20px;font-weight:600;transition:border-color .15s}.hw-input::placeholder{color:#ffffff59;font-weight:500}.hw-input:focus{border-color:var(--hw-yellow)}.hw-input--code{text-align:center;letter-spacing:.35em;font-variant-numeric:tabular-nums;font-size:40px;font-weight:800}.hw-input--sm{min-height:50px;font-size:17px}.hw-segmented{background:#0000004d;border-radius:16px;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.hw-segmented button{min-height:46px;font:inherit;color:var(--hw-muted);cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:12px;font-size:15px;font-weight:700}.hw-segmented button[aria-pressed=true]{color:#1a0326;background:linear-gradient(120deg,#ffd166,#ff8fab)}.hw-segmented button:disabled{cursor:default}.hw-switch{width:100%;font:inherit;text-align:left;color:#fff;background:var(--hw-surface);cursor:pointer;touch-action:manipulation;border:0;border-radius:18px;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;display:flex}.hw-switch strong{font-size:17px;display:block}.hw-switch span.hw-small{color:var(--hw-muted)}.hw-switch-knob{background:#ffffff2e;border-radius:999px;flex:none;width:54px;height:32px;transition:background .2s;position:relative}.hw-switch-knob:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .2s;position:absolute;top:4px;left:4px}.hw-switch[aria-checked=true] .hw-switch-knob{background:var(--hw-green)}.hw-switch[aria-checked=true] .hw-switch-knob:after{transform:translate(22px)}.hw-card{border:1px solid var(--hw-border);border-radius:var(--hw-radius);background:var(--hw-surface);-webkit-backdrop-filter:blur(14px);padding:18px}.hw-card--tight{padding:14px 16px}.hw-row{align-items:center;gap:12px;display:flex}.hw-row--between{justify-content:space-between}.hw-row--wrap{flex-wrap:wrap}.hw-stack{flex-direction:column;gap:12px;display:flex}.hw-grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.hw-code{letter-spacing:.18em;font-variant-numeric:tabular-nums;text-align:center;color:var(--hw-yellow);text-shadow:0 10px 40px #ffd16659;font-size:clamp(56px,20vw,88px);font-weight:800;line-height:1}.hw-qr{background:#fff;border-radius:18px;width:min(62vw,240px);margin:0 auto;padding:10px}.hw-qr svg{width:100%;height:auto;display:block}.hw-players{flex-direction:column;gap:8px;display:flex}.hw-player{background:var(--hw-surface);border-radius:16px;align-items:center;gap:12px;padding:12px 14px;display:flex}.hw-player--out{opacity:.55}.hw-avatar{color:#1a0326;background:linear-gradient(135deg,#ffd166,#ff8fab);border-radius:14px;flex:none;place-items:center;width:44px;height:44px;font-size:18px;font-weight:800;display:grid}.hw-avatar--spectator{color:#fff;background:linear-gradient(135deg,#7c5cff,#a78bfa)}.hw-player-name{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:18px;font-weight:700;overflow:hidden}.hw-player-name small{color:var(--hw-muted);font-size:12px;font-weight:600;display:block}.hw-chip{letter-spacing:.06em;text-transform:uppercase;color:#fff;background:#ffffff24;border-radius:999px;flex:none;padding:6px 10px;font-size:12px;font-weight:800}.hw-chip--green{color:#04150c;background:var(--hw-green)}.hw-chip--yellow{color:#1a0326;background:var(--hw-yellow)}.hw-chip--red{background:var(--hw-red)}.hw-chip--violet{background:var(--hw-violet)}.hw-chip--ghost{color:var(--hw-muted);border:1px solid var(--hw-border);background:0 0}.hw-kick{width:36px;height:36px;font:inherit;color:var(--hw-muted);cursor:pointer;background:0 0;border:0;border-radius:12px;flex:none;font-size:18px}.hw-timer{letter-spacing:-.04em;font-variant-numeric:tabular-nums;text-align:center;color:#fff;text-shadow:0 20px 60px #ff3d8159;font-size:clamp(64px,24vw,132px);font-weight:800;line-height:1}.hw-timer--target{color:var(--hw-yellow)}.hw-countdown{color:var(--hw-yellow);font-size:clamp(140px,50vw,260px);font-weight:800;line-height:1;animation:.9s cubic-bezier(.2,.8,.2,1) both hw-pop}.hw-flip{letter-spacing:-.02em;font-size:clamp(38px,11vw,60px);font-weight:800;line-height:1;animation:.6s cubic-bezier(.2,.8,.2,1) both hw-pop}.hw-flip-icon{width:120px;height:120px;margin:0 auto;animation:1.6s ease-in-out infinite hw-flip;display:block}.hw-stake-box{text-align:center;border:1px solid var(--hw-border);background:#00000047;border-radius:18px;padding:16px 18px}.hw-stake-box strong{font-size:20px;line-height:1.3;display:block}.hw-status-dots{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.hw-dot{background:var(--hw-surface);border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:14px;font-weight:700;display:inline-flex}.hw-dot:before{content:"";background:var(--hw-muted);border-radius:50%;width:10px;height:10px}.hw-dot--in:before{background:var(--hw-green);box-shadow:0 0 12px var(--hw-green)}.hw-dot--out:before{background:var(--hw-red)}.hw-dot--wait:before{background:var(--hw-yellow)}.hw-dot--offline:before{background:#64748b}.hw-overlay{z-index:50;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;display:flex;position:fixed;inset:0}.hw-overlay--lost{background:radial-gradient(circle at 50% 30%,#ff4757 0%,#7a0d22 45%,#1a0308 100%);animation:.7s cubic-bezier(.36,.07,.19,.97) both hw-shake}.hw-overlay--win{background:radial-gradient(circle at 50% 30%,#22e58a 0%,#0c5a3a 45%,#04150c 100%)}.hw-overlay-title{letter-spacing:-.03em;font-size:clamp(48px,15vw,88px);font-weight:800;line-height:.95;animation:.5s cubic-bezier(.2,.8,.2,1) both hw-pop}.hw-overlay-emoji{font-size:96px;line-height:1;animation:.6s cubic-bezier(.2,.8,.2,1) both hw-pop}.hw-flash{z-index:49;pointer-events:none;background:#fff;animation:.6s ease-out both hw-flash;position:fixed;inset:0}.hw-toast{left:50%;bottom:calc(24px + var(--hw-safe-bottom));z-index:60;color:#1a0326;background:var(--hw-yellow);border-radius:16px;max-width:calc(100% - 32px);padding:12px 18px;font-size:15px;font-weight:700;animation:.3s both hw-fade-up;position:fixed;transform:translate(-50%)}.hw-error{color:#fff;background:#ff475738;border:1px solid #ff475780;border-radius:16px;padding:14px 16px;font-size:15px;font-weight:600;line-height:1.4}.hw-hint{color:var(--hw-muted);background:#00000040;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.45}.hw-confetti{z-index:48;pointer-events:none;position:fixed;inset:0;overflow:hidden}.hw-confetti i{border-radius:3px;width:10px;height:16px;animation:2.8s linear infinite hw-confetti;position:absolute;top:-20px}.hw-result-canvas{border-radius:18px;width:100%;height:auto;display:block;box-shadow:0 30px 80px -40px #000c}.hw-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.hw-list li{background:var(--hw-surface);border-radius:14px;justify-content:space-between;gap:12px;padding:10px 14px;font-size:16px;display:flex}.hw-meter{background:#ffffff1a;border-radius:999px;height:8px;overflow:hidden}.hw-meter>i{border-radius:inherit;background:linear-gradient(90deg,#22e58a,#ffd166 60%,#ff3d81);height:100%;transition:width .15s linear;display:block}.hw-spinner{border:4px solid #ffffff26;border-top-color:var(--hw-yellow);border-radius:50%;width:40px;height:40px;margin:0 auto;animation:.8s linear infinite hw-spin}.hw-footer{text-align:center;color:#ffffff59;padding-top:8px;font-size:12px}.hw-footer a{color:inherit}@keyframes hw-fade-up{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes hw-pop{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.12)}to{transform:scale(1)}}@keyframes hw-pulse{0%,to{box-shadow:0 0 #ff3d818c}50%{box-shadow:0 0 0 14px #ff3d8100}}@keyframes hw-shake{10%,90%{transform:translate(-2px)}20%,80%{transform:translate(4px)}30%,50%,70%{transform:translate(-8px)}40%,60%{transform:translate(8px)}}@keyframes hw-flash{0%{opacity:.9}to{opacity:0}}@keyframes hw-flip{0%,to{transform:rotateX(0)}50%{transform:rotateX(180deg)}}@keyframes hw-confetti{0%{opacity:1;transform:translateY(-20px)rotate(0)}to{opacity:.6;transform:translateY(110vh)rotate(720deg)}}@keyframes hw-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.hw *,.hw :before,.hw :after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
