:root{color-scheme:dark;--gold:#ed9419;--gold2:#bf5a0e;--ink:#120d08;--paper:#fff;--line:rgba(255,255,255,.24)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,"Segoe UI",sans-serif}button,input{font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-page{min-height:100vh;color:#fff;background:#120d08;overflow-x:hidden}.page-background{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.game-page:after{content:"";position:fixed;inset:0;background:radial-gradient(circle at 58% 50%,transparent 5%,rgba(0,0,0,.08) 48%,rgba(0,0,0,.52) 100%);z-index:-1;pointer-events:none}
.landing-shell,.play-shell{min-height:100vh;width:min(1480px,96vw);margin:auto;display:grid;grid-template-columns:minmax(520px,1.08fr) minmax(430px,.92fr);align-items:center;gap:3rem;padding:2rem 1rem 4rem}.wheel-column{display:grid;place-items:center}.wheel-stage{width:min(710px,48vw);aspect-ratio:1;position:relative;display:grid;place-items:center;filter:drop-shadow(0 25px 26px rgba(0,0,0,.45))}.wheel-stage canvas{display:block;width:100%;height:100%}.spin-button-image,.spin-button{position:absolute;left:50%;top:50%;width:15%;aspect-ratio:1;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;border-radius:50%;filter:drop-shadow(0 4px 7px #000);z-index:4}.spin-button img,.spin-button-image{object-fit:contain}.spin-button{cursor:pointer;transition:transform .18s ease,filter .18s}.spin-button:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.06);filter:drop-shadow(0 0 18px rgba(255,204,67,.8))}.spin-button:disabled{cursor:not-allowed;opacity:.8}.preview-spin{pointer-events:none}
.redeem-column,.result-column{display:flex;flex-direction:column;align-items:center}.brand-logo{width:min(360px,75%);max-height:150px;object-fit:contain;margin:0 auto 1.1rem;filter:drop-shadow(0 8px 8px #000)}.headline-card{width:100%;padding:1.25rem;border:2px solid #ffb33b;border-radius:18px;background:linear-gradient(135deg,#ef951c,#d65d13);text-align:center;box-shadow:0 14px 28px rgba(0,0,0,.2)}.headline-card p{margin:0 0 .4rem;font-size:1.18rem}.headline-card span{color:#ffd971;font-size:1rem}.alert,.admin-alert{margin:1rem 0 0;width:100%;padding:.85rem 1rem;border:1px solid #ff7b68;border-radius:10px;background:rgba(125,17,7,.82);color:#fff;text-align:center}
.redeem-form{width:100%;display:grid;gap:1.1rem;margin-top:1.35rem}.redeem-form input{width:100%;height:58px;border:2px solid rgba(255,184,64,.55);border-radius:7px;background:#fff;color:#333;text-align:center;font-size:1.23rem;outline:none;box-shadow:0 8px 22px rgba(0,0,0,.2)}.redeem-form input:focus{border-color:#ffd978;box-shadow:0 0 0 4px rgba(255,187,54,.22)}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.gold-button{border:1px solid #ffb53d;border-radius:999px;min-height:58px;padding:.8rem 1.3rem;color:#fff;font-weight:800;font-size:1.18rem;letter-spacing:.02em;background:linear-gradient(#eda228,#dd7b0d 52%,#ca6108);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 9px 18px rgba(0,0,0,.25);cursor:pointer;text-shadow:0 2px 2px #8e3c06;transition:transform .16s,filter .16s}.gold-button:hover{filter:brightness(1.1);transform:translateY(-1px)}.gold-button.full{width:100%}.link-button{display:inline-grid;place-items:center;text-decoration:none;margin-top:1rem}
.social-button,.audio-toggle{position:fixed;bottom:22px;width:58px;height:58px;border:2px solid #e7b52a;border-radius:50%;background:rgba(15,15,14,.76);display:grid;place-items:center;z-index:8}.social-button{left:22px}.social-button img{width:40px;height:40px;object-fit:contain}.audio-toggle{right:22px;color:#f8cb44;font-size:1.45rem;cursor:pointer}.audio-toggle.active{background:#e58d10;color:#fff}
.welcome-dialog{width:min(600px,92vw);max-height:92vh;overflow:auto;border:1px solid #45494b;border-radius:18px;padding:0;background:#252728;color:#f5f5f5;box-shadow:0 28px 80px rgba(0,0,0,.72)}.welcome-dialog::backdrop{background:rgba(0,0,0,.79);backdrop-filter:blur(1px)}.welcome-dialog__content{padding:2.1rem 2rem 1.9rem;text-align:center}.welcome-dialog h1{margin:0;color:#ffd42e;font-size:clamp(1.45rem,3vw,1.9rem);font-weight:900;line-height:1.15;text-transform:uppercase}.welcome-dialog__brand{margin:.65rem 0 0;font-size:1.28rem;font-weight:700}.welcome-dialog__tagline{margin:.8rem 0 1.45rem;font-size:1.08rem;font-weight:700;color:#d9d9d9}.welcome-dialog__message{margin:0 auto 1.25rem;max-width:470px;line-height:1.45;font-weight:600}.welcome-dialog__instructions{padding:1rem 1.1rem;border:1px solid #4d5152;border-radius:14px;background:#2b2e2f;text-align:left}.welcome-dialog__instructions h2{margin:0 0 .7rem;text-align:center;color:#ffd42e;font-size:1rem}.welcome-dialog__instructions ul{margin:0;padding-left:1.25rem;display:grid;gap:.62rem}.welcome-dialog__luck{margin:1.35rem 0 1.1rem;color:#ffd42e;font-size:1.18rem;font-weight:900}.welcome-dialog form{margin:0}.welcome-start-button{min-width:210px;min-height:58px;padding:.85rem 1.5rem;border:0;border-radius:999px;background:#ffd42e;color:#9b4e0d;font-weight:900;font-size:1.05rem;cursor:pointer;box-shadow:0 7px 18px rgba(0,0,0,.3);transition:transform .16s,filter .16s}.welcome-start-button:hover{filter:brightness(1.07);transform:translateY(-1px)}.welcome-start-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.game-dialog{width:min(720px,92vw);max-height:85vh;overflow:auto;border:1px solid #ef9d29;border-radius:18px;padding:1.4rem;background:linear-gradient(155deg,#24170d,#100b08 70%);color:#fff;box-shadow:0 26px 70px #000}.game-dialog::backdrop{background:rgba(0,0,0,.74);backdrop-filter:blur(4px)}.game-dialog.wide{width:min(960px,94vw)}.game-dialog h2{text-align:center;color:#ffc44b;margin:.4rem 2rem 1.2rem}.dialog-close-form{position:absolute;right:12px;top:8px}.dialog-close-form button{border:0;background:transparent;color:#fff;font-size:2rem;cursor:pointer}.history-search label{display:block;margin-bottom:.5rem}.history-search>div{display:grid;grid-template-columns:1fr auto;gap:.65rem}.history-search input{min-height:48px;border-radius:8px;border:1px solid var(--line);padding:.75rem;color:#222}.history-search .gold-button{min-height:48px;font-size:1rem}.table-wrap{margin-top:1rem;overflow:auto}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:.75rem;border-bottom:1px solid var(--line);text-align:left}.prize-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.prize-groups section{padding:1rem;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.05)}.prize-groups h3{text-align:center;color:#ffc44b}.prize-groups ul{padding:0;margin:0;list-style:none;display:grid;gap:.55rem}.prize-groups li{display:flex;gap:.55rem;align-items:center;font-size:.86rem}.prize-groups img{width:38px;height:38px;object-fit:contain}
.play-shell{grid-template-columns:minmax(540px,1.2fr) minmax(390px,.8fr)}.status-card{width:100%;padding:2rem;border:1px solid rgba(255,190,59,.55);border-radius:20px;background:linear-gradient(150deg,rgba(25,17,10,.9),rgba(65,31,8,.78));box-shadow:0 24px 55px rgba(0,0,0,.42);backdrop-filter:blur(8px)}.status-card .eyebrow{color:#ffbe3f;font-weight:900;letter-spacing:.16em}.status-card h1{font-size:clamp(2rem,3vw,3.6rem);margin:.4rem 0}.status-card>p{line-height:1.6;color:#f2dfc7}.outcome-card{margin:1.4rem 0;display:flex;gap:1rem;align-items:center;padding:1rem;border-radius:14px;background:linear-gradient(135deg,rgba(255,190,52,.2),rgba(255,255,255,.07));border:1px solid #d99925}.outcome-card[hidden]{display:none}.outcome-card img{width:88px;height:88px;object-fit:contain}.outcome-card span,.outcome-card small{display:block;color:#e7c28d}.outcome-card strong{display:block;font-size:1.35rem;margin:.35rem 0}.fullscreen-tip{font-size:.82rem}.fullscreen-tip kbd{border:1px solid #ad7b36;border-radius:5px;padding:.1rem .35rem;background:#17100b}.wheel-column:fullscreen{background:#120d08 url('/assets/background.jpg') center/cover no-repeat;display:grid;place-items:center}.wheel-column:fullscreen .wheel-stage{width:min(92vh,92vw)}
.plain-error{background:#160e08;color:#fff;display:grid;place-items:center;min-height:100vh}.plain-error main{text-align:center;max-width:540px;padding:2rem}.plain-error h1{color:#f7aa25}.plain-error p{line-height:1.7}
@media(max-width:980px){.landing-shell,.play-shell{grid-template-columns:1fr;gap:.5rem;padding-top:1rem}.wheel-stage{width:min(650px,88vw)}.redeem-column,.result-column{width:min(650px,94vw);margin:auto 0 4rem}.brand-logo{width:min(300px,65%)}.prize-groups{grid-template-columns:1fr}.game-page{background-attachment:fixed}}
@media(max-width:560px){.landing-shell,.play-shell{width:100%;padding:.5rem 1rem 5rem}.wheel-stage{width:100vw;margin-left:-1rem}.redeem-column{margin-top:-1.5rem}.brand-logo{max-height:100px;margin-bottom:.6rem}.headline-card{padding:.85rem}.headline-card p{font-size:.93rem}.headline-card span{font-size:.82rem}.redeem-form input{height:52px;font-size:1rem}.button-row{gap:.7rem}.gold-button{min-height:52px;font-size:1rem}.status-card{padding:1.3rem}.social-button,.audio-toggle{width:48px;height:48px;bottom:12px}.social-button{left:12px}.audio-toggle{right:12px}.welcome-dialog__content{padding:1.45rem 1.1rem 1.3rem}.welcome-dialog__tagline{margin-bottom:1rem}.welcome-dialog__message{font-size:.92rem;margin-bottom:1rem}.welcome-dialog__instructions{padding:.85rem}.welcome-dialog__instructions ul{gap:.45rem;font-size:.9rem}.welcome-dialog__luck{margin:1rem 0}.welcome-start-button{min-width:190px;min-height:52px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.spin-button img{display:block;width:100%;height:100%;object-fit:contain}
