:root {
  --bg: #090b15;
  --surface: rgba(21, 27, 44, .88);
  --surface-solid: #141a2a;
  --surface-deep: #0f1422;
  --line: rgba(255, 255, 255, .11);
  --text: #f7f8fe;
  --muted: #a7afc4;
  --quiet: #778198;
  --violet: #ae91ff;
  --violet-soft: rgba(174, 145, 255, .14);
  --lime: #c9ff70;
  --lime-deep: #a7e44b;
  --danger: #ff98a5;
  --success: #8bf1b3;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(174,145,255,.48); outline-offset: 2px; }

.app-loading { display: grid; min-height: 100dvh; place-items: center; color: var(--muted); font-size: 14px; }
.shell { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 78% 9%, rgba(135,88,238,.17), transparent 26rem), radial-gradient(circle at 3% 75%, rgba(50,98,174,.13), transparent 29rem), var(--bg); }
.shell::before { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.45) .45px, transparent .6px); background-size: 5px 5px; opacity: .1; content: ""; pointer-events: none; }
.glow { position: absolute; z-index: -1; width: 380px; aspect-ratio: 1; border-radius: 50%; filter: blur(30px); opacity: .42; pointer-events: none; }
.glow--one { top: 32%; left: 41%; background: rgba(155,107,255,.25); }
.glow--two { top: -130px; right: -100px; background: rgba(87,154,255,.2); }
.container { width: min(1480px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 78px; }

.topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; border: 0; padding: 0; color: var(--text); background: transparent; text-align: left; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #19162b; background: var(--lime); box-shadow: 0 0 30px rgba(201,255,112,.2); font-weight: 900; }
.brand strong { display: block; font-size: 13px; letter-spacing: .18em; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-button { display: inline-flex; min-height: 37px; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 0 13px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 800; transition: .18s ease; }
.nav-button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-button.is-active { color: var(--violet); background: var(--violet-soft); }
.icon { display: inline-grid; width: 1em; height: 1em; place-items: center; font-weight: 900; line-height: 1; }

.wheel-page { display: grid; min-height: calc(100dvh - 150px); grid-template-columns: minmax(270px, 1.02fr) minmax(330px, .86fr) minmax(310px, .84fr); align-items: center; gap: clamp(28px, 4vw, 70px); padding: 50px 0 42px; }
.hero { align-self: center; max-width: 490px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px rgba(201,255,112,.7); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .section-intro h1, .operator-heading h1, .auth-card h1 { margin-bottom: 19px; color: #fff; font-size: clamp(43px, 4.4vw, 73px); font-weight: 800; letter-spacing: -.075em; line-height: .96; }
h1 em, .operator-heading h1 em { color: var(--violet); font-style: normal; }
.hero-description, .section-intro > p:last-child, .operator-heading > div > p:last-child, .auth-card > p:not(.eyebrow) { max-width: 510px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 21px; padding-top: 21px; border-top: 1px solid var(--line); }
.hero-stats span { display: flex; align-items: baseline; gap: 7px; color: var(--quiet); font-size: 11px; font-weight: 800; }
.hero-stats b { color: var(--lime); font-size: 16px; }

.wheel-experience { position: relative; display: grid; min-height: 400px; place-items: center; }
.wheel-glow { position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; border-radius: 50%; background: rgba(168,114,255,.34); filter: blur(42px); opacity: .55; }
.wheel-stage { position: relative; display: grid; width: min(100%, 350px); aspect-ratio: 1; place-items: center; }
.wheel-rim { width: 100%; height: 100%; border-radius: 50%; padding: 10px; background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.17) 26%, rgba(255,255,255,.04) 67%, rgba(255,255,255,.25)); box-shadow: 0 25px 40px rgba(0,0,0,.38), inset 0 0 0 2px rgba(255,255,255,.16); }
.wheel-rotor { position: relative; width: 100%; height: 100%; overflow: hidden; border: 7px solid #111627; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.23), inset 0 0 32px rgba(0,0,0,.35); transition: transform 4.65s cubic-bezier(.12,.82,.16,1); }
.wheel-rotor::after { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.24), transparent 28%); content: ""; pointer-events: none; }
.wheel-label { position: absolute; top: 50%; left: 50%; width: 84px; margin: -10px 0 0 -42px; overflow: hidden; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.05; text-align: center; text-overflow: ellipsis; text-shadow: 0 2px 3px rgba(0,0,0,.58); white-space: nowrap; }
.wheel-pointer { position: absolute; z-index: 5; top: -4px; left: 50%; width: 30px; height: 39px; transform: translateX(-50%); clip-path: polygon(50% 100%, 0 0, 100% 0); background: var(--lime); filter: drop-shadow(0 4px 5px rgba(0,0,0,.55)); }
.wheel-core { position: absolute; z-index: 3; display: grid; width: 90px; height: 90px; place-items: center; align-content: center; gap: 3px; border: 5px solid rgba(255,255,255,.8); border-radius: 50%; color: #18152b; background: var(--lime); box-shadow: 0 8px 20px rgba(0,0,0,.38); transition: .3s ease; }
.wheel-core b { max-width: 58px; overflow: hidden; color: #242039; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wheel-core.is-spinning { transform: scale(1.08); box-shadow: 0 0 42px rgba(201,255,112,.55); }
.wheel-caption { position: absolute; bottom: -25px; color: var(--quiet); font-size: 8px; font-weight: 900; letter-spacing: .12em; white-space: nowrap; }

.card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(27,34,54,.92), rgba(15,20,34,.84)); box-shadow: var(--shadow); }
.access-card { width: 100%; border-radius: 22px; padding: 23px; }
.card-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin-bottom: 19px; }
.step-number { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(174,145,255,.35); border-radius: 9px; color: var(--violet); background: var(--violet-soft); font-size: 12px; font-weight: 800; }
.card-heading p { margin: 0 0 3px; color: var(--quiet); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.card-heading h2 { margin: 0; color: #fff; font-size: 17px; letter-spacing: -.04em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 15px rgba(139,241,179,.8); }

.form-grid { display: grid; gap: 13px; }
.form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; }
label > span { color: #c0c8dc; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
label > span i { color: var(--quiet); font-style: normal; font-weight: 500; }
input, select { width: 100%; min-height: 45px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; outline: none; padding: 0 13px; color: #f2f3fa; background: rgba(3,6,14,.36); font-size: 13px; transition: border .15s ease, background .15s ease, box-shadow .15s ease; }
input::placeholder { color: #697289; }
input:focus, select:focus { border-color: rgba(174,145,255,.82); background: rgba(22,17,48,.5); box-shadow: 0 0 0 3px rgba(174,145,255,.11); }
.code-field input { color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .075em; }
.checkbox-line { display: flex; grid-column: span 2; align-items: center; gap: 8px; min-height: 24px; }
.checkbox-line input { width: 15px; min-height: 15px; accent-color: var(--lime); }
.checkbox-line span { color: var(--muted); font-size: 10px; }

.button, .tiny-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; font-weight: 900; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button { min-height: 48px; width: 100%; border-radius: 12px; color: #171627; background: var(--lime); box-shadow: 0 10px 24px rgba(201,255,112,.15); }
.button:not(:disabled):hover { transform: translateY(-2px); background: #ddffa3; box-shadow: 0 13px 28px rgba(201,255,112,.26); }
.button--violet { color: #1d1532; background: var(--violet); box-shadow: 0 10px 24px rgba(174,145,255,.24); }
.button--violet:not(:disabled):hover { background: #dacfff; }
.button--outline { width: auto; min-height: 40px; border: 1px solid rgba(174,145,255,.34); border-radius: 10px; padding: 0 13px; color: var(--violet); background: var(--violet-soft); box-shadow: none; font-size: 12px; }
.button--outline:hover { background: rgba(174,145,255,.2); }
.tiny-button { min-height: 30px; border: 1px solid rgba(201,255,112,.28); border-radius: 7px; padding: 0 9px; color: var(--lime); background: transparent; font-size: 9px; }
.legal { display: flex; align-items: flex-start; gap: 6px; margin: 15px 0 0; color: var(--quiet); font-size: 9px; line-height: 1.5; }
.message { margin: 13px 0 0; color: var(--danger); font-size: 11px; line-height: 1.45; }
.message.success { color: var(--success); }
.link-button { border: 0; padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: 900; text-decoration: underline; }
.loader { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--lime); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(390px, calc(100% - 36px)); transform: translateY(20px); border: 1px solid rgba(255,152,165,.36); border-radius: 12px; padding: 13px 15px; color: #ffe9ed; background: rgba(64,24,37,.96); box-shadow: var(--shadow); font-size: 12px; line-height: 1.42; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast--success { border-color: rgba(139,241,179,.32); color: #e5ffef; background: rgba(20,68,49,.96); }

.section-page, .operator-page { min-height: calc(100dvh - 150px); padding: 58px 0 45px; }
.section-intro { max-width: 720px; }
.section-intro h1 { font-size: clamp(42px, 5.5vw, 78px); }
.lottery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; margin-top: 38px; }
.lottery-card, .empty-card { min-height: 225px; border-radius: 18px; padding: 21px; }
.lottery-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--violet); }
.lottery-tag { max-width: 165px; overflow: hidden; color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.lottery-card h2 { margin: 33px 0 7px; font-size: 22px; letter-spacing: -.05em; }
.lottery-card p { min-height: 38px; margin-bottom: 19px; color: var(--muted); font-size: 12px; line-height: 1.48; }
.lottery-card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.lottery-card-bottom b { color: var(--lime); font-size: 19px; }
.lottery-card-bottom span { color: var(--quiet); font-size: 9px; text-align: right; }
.empty-card { display: grid; grid-column: 1 / -1; min-height: 265px; max-width: 720px; place-items: center; align-content: center; margin: 0 auto; text-align: center; }
.empty-orb { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 12px; border-radius: 50%; color: var(--violet); background: var(--violet-soft); font-size: 28px; }
.empty-card h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.05em; }
.empty-card p { max-width: 410px; margin-bottom: 19px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.steps { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 43px; color: var(--muted); font-size: 11px; }
.steps span { display: flex; align-items: center; gap: 7px; }
.steps b { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(201,255,112,.22); border-radius: 50%; color: var(--lime); font-size: 9px; }
.steps i { width: 42px; height: 1px; background: var(--line); }

.operator-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.operator-heading h1 { margin-bottom: 12px; font-size: clamp(37px, 4.6vw, 59px); }
.operator-heading .button { flex: 0 0 auto; margin-top: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0 0 24px; }
.metric { position: relative; min-height: 112px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: rgba(21,27,43,.7); }
.metric-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--violet); background: var(--violet-soft); }
.metric b { display: block; margin-top: 12px; color: #fff; font-size: 25px; }
.metric small { color: var(--quiet); font-size: 10px; }
.tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 17px; scrollbar-width: none; }
.tabs button { min-height: 37px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; padding: 0 13px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 11px; font-weight: 900; }
.tabs button.is-active { border-color: rgba(201,255,112,.32); color: #1b202d; background: var(--lime); }
.operator-grid { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(280px,.84fr); gap: 17px; }
.operator-grid.single { grid-template-columns: 1fr; }
.operator-card { border-radius: 17px; padding: 20px; }
.card-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.card-title > span { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--lime); background: rgba(201,255,112,.1); font-weight: 900; }
.card-title h2 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.04em; }
.card-title p { margin: 0; color: var(--quiet); font-size: 10px; line-height: 1.4; }
.mini-list { display: grid; max-height: 330px; overflow: auto; }
.mini-list > div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.065); }
.mini-list > div:last-child { border-bottom: 0; }
.mini-list span { min-width: 0; display: grid; gap: 3px; }
.mini-list > div > div { min-width: 0; display: grid; gap: 3px; }
.mini-list b { overflow: hidden; color: #e9eaf1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mini-list small { overflow: hidden; color: var(--quiet); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mini-list > p { color: var(--quiet); font-size: 11px; }
.pill { flex: 0 0 auto; border-radius: 999px; padding: 4px 7px; color: var(--violet); background: var(--violet-soft); font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.pill.active, .pill.open { color: var(--success); background: rgba(139,241,179,.1); }
.pill.redeemed, .pill.issued { color: var(--quiet); background: rgba(255,255,255,.06); }
.pill.expired { color: var(--danger); background: rgba(255,152,165,.1); }
.created-codes { display: grid; gap: 7px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.created-codes b { color: var(--muted); font-size: 10px; }
.copy-code { display: flex; min-height: 34px; align-items: center; justify-content: space-between; border: 0; border-radius: 7px; padding: 0 10px; color: var(--lime); background: rgba(201,255,112,.07); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.recent { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.recent > p { color: var(--quiet); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.recent > div { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.055); padding: 10px 0; font-size: 11px; }
.recent b { color: var(--lime); }
.recent small { color: var(--quiet); text-align: right; }
.ticket-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-top: 9px; }
.ticket-row input { min-height: 34px; padding: 0 9px; font-size: 10px; }
.ticket-row .tiny-button { min-height: 34px; }
.prize-management-grid { grid-template-columns: minmax(0, 1.38fr) minmax(260px, .62fr); }
.prize-activity-picker { display: grid; max-width: 390px; gap: 6px; margin: -3px 0 12px; }
.prize-activity-picker > span { color: var(--quiet); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.prize-total { display: grid; gap: 3px; margin: 0 0 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 11px; background: rgba(255,255,255,.025); }
.prize-total b { color: var(--muted); font-size: 11px; }
.prize-total span { color: var(--quiet); font-size: 9px; line-height: 1.4; }
.prize-total.is-valid { border-color: rgba(139,241,179,.25); background: rgba(139,241,179,.06); }
.prize-total.is-valid b { color: var(--success); }
.prize-total.is-invalid { border-color: rgba(255,152,165,.28); background: rgba(255,152,165,.06); }
.prize-total.is-invalid b { color: var(--danger); }
.prize-list { display: grid; max-height: none; overflow: visible; }
.prize-list__save { width: fit-content; min-width: 220px; margin-top: 13px; }
.prize-editor { display: grid; grid-template-columns: 1.25fr 1.4fr .6fr 48px auto; gap: 7px; align-items: end; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.065); }
.prize-editor:last-child { border-bottom: 0; }
.prize-editor__summary { grid-column: 1 / -1; display: grid; gap: 3px; }
.prize-editor__summary b { color: #e9eaf1; font-size: 10px; }
.prize-editor__summary small { color: var(--quiet); font-size: 9px; }
.prize-editor label { display: grid; gap: 4px; min-width: 0; }
.prize-editor label > span { color: var(--quiet); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.prize-editor input { min-width: 0; min-height: 34px; padding: 0 8px; font-size: 10px; }
.prize-editor input[type="color"] { padding: 4px; }
.prize-editor .checkbox-line { display: flex; grid-column: auto; align-items: center; gap: 5px; min-height: 34px; }
.prize-editor .checkbox-line span { font-size: 8px; }
.prize-editor .tiny-button { min-height: 34px; }
.account-list { display: grid; gap: 10px; max-height: 560px; overflow: auto; }
.account-row { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px; background: rgba(255,255,255,.018); }
.account-row__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-row__header > span { display: grid; min-width: 0; gap: 3px; }
.account-row__header b { overflow: hidden; color: #e9eaf1; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-row__header small, .account-empty, .account-direction-note { margin: 0; color: var(--quiet); font-size: 9px; line-height: 1.45; }
.account-direction-note { margin-top: 10px; }
.account-direction-note b { color: var(--muted); }
.account-assignments { display: grid; gap: 7px; margin-top: 10px; }
.account-assignment-row, .account-add-assignment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .7fr) auto auto; align-items: end; gap: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); }
.account-assignment-row > span { display: grid; min-width: 0; gap: 3px; padding-bottom: 5px; }
.account-assignment-row b { overflow: hidden; color: #e9eaf1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-assignment-row small { color: var(--quiet); font-size: 8px; }
.account-assignment-row label, .account-add-assignment label { display: grid; min-width: 0; gap: 4px; }
.account-assignment-row label > span, .account-add-assignment label > span { color: var(--quiet); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.account-assignment-row select, .account-add-assignment select { min-width: 0; min-height: 34px; padding: 0 8px; font-size: 10px; }
.account-assignment-row .tiny-button, .account-add-assignment .tiny-button { min-height: 34px; }
.tiny-button--danger { border-color: rgba(255,152,165,.35); color: var(--danger); }
.account-add-assignment { grid-template-columns: minmax(0, 1fr) minmax(110px, .8fr) auto; }
.form-hint { margin: 12px 0 0; color: var(--quiet); font-size: 9px; line-height: 1.45; }
.form-hint b { color: var(--muted); }

.auth-page { display: grid; min-height: calc(100dvh - 150px); place-items: center; padding-top: 25px; }
.auth-card { width: min(100%, 440px); border-radius: 22px; padding: 31px; }
.auth-symbol { display: grid; width: 49px; height: 49px; place-items: center; margin-bottom: 20px; border-radius: 14px; color: var(--lime); background: rgba(201,255,112,.11); font-size: 24px; }
.auth-card h1 { margin-bottom: 11px; font-size: 38px; }

.mobile-nav { display: none; }
.overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,4,10,.74); backdrop-filter: blur(11px); animation: fade .25s ease both; }
.result-card { position: relative; width: min(100%, 390px); overflow: hidden; border: 1px solid rgba(201,255,112,.34); border-radius: 25px; padding: 38px 29px 27px; background: linear-gradient(155deg, #24203f, #121827); box-shadow: 0 35px 100px rgba(0,0,0,.55); animation: pop .38s cubic-bezier(.2,.86,.24,1.23) both; text-align: center; }
.result-card > p { margin: 0 0 16px; color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.result-icon { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto; border-radius: 50%; color: #18152c; background: var(--lime); box-shadow: 0 0 0 7px rgba(201,255,112,.12); font-size: 32px; }
.result-card h2 { margin: 15px 0 7px; color: #fff; font-size: 32px; letter-spacing: -.06em; }
.result-card > span { display: block; min-height: 36px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.result-card .button { margin-top: 20px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.75) translateY(14px); } to { transform: scale(1) translateY(0); } }

@media (max-width: 1220px) {
  .wheel-page { grid-template-columns: minmax(275px,1fr) minmax(320px,.93fr); }
  .access-card { width: min(100%,720px); grid-column: 1 / -1; margin: 0 auto; }
  .access-card .form-grid { grid-template-columns: repeat(3,1fr); align-items: end; }
  .access-card .form-grid .button { grid-column: 1 / -1; }
  .lottery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .container { width: min(100% - 32px, 620px); padding: 16px 0 88px; }
  .topbar { min-height: 52px; }
  .desktop-nav { display: none; }
  .wheel-page { display: flex; min-height: 0; flex-direction: column; align-items: stretch; gap: 30px; padding: 34px 0 26px; }
  .hero { max-width: none; text-align: center; }
  .eyebrow { justify-content: center; }
  .hero h1, .section-intro h1 { font-size: clamp(43px,13vw,62px); }
  .hero-description { margin-right: auto; margin-left: auto; font-size: 13px; }
  .hero-stats { justify-content: center; }
  .wheel-experience { order: 2; min-height: 345px; }
  .wheel-stage { width: min(81vw,330px); }
  .access-card { order: 3; }
  .access-card .form-grid { grid-template-columns: 1fr; }
  .access-card .form-grid .button { grid-column: auto; }
  .mobile-nav { position: fixed; z-index: 20; bottom: 11px; left: 50%; display: grid; width: min(calc(100% - 24px),430px); grid-template-columns: repeat(3,1fr); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.12); border-radius: 17px; padding: 7px; background: rgba(18,23,37,.9); box-shadow: 0 15px 35px rgba(0,0,0,.4); backdrop-filter: blur(18px); }
  .mobile-nav button { display: grid; min-height: 43px; place-items: center; gap: 3px; border: 0; border-radius: 11px; color: var(--quiet); background: transparent; font-size: 9px; font-weight: 900; }
  .mobile-nav button.is-active { color: #202531; background: var(--lime); }
  .toast { right: 12px; bottom: 80px; max-width: calc(100% - 24px); }
  .section-page, .operator-page { min-height: 0; padding: 36px 0 35px; }
  .lottery-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .steps { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 11px; }
  .steps i { display: none; }
  .operator-heading { display: grid; gap: 10px; }
  .operator-heading .button { width: fit-content; margin: 0; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .operator-grid { grid-template-columns: 1fr; }
  .form-grid.compact { grid-template-columns: 1fr 1fr; }
  .recent > div { grid-template-columns: 1fr 1fr; }
  .recent small { display: none; }
}
@media (max-width: 430px) {
  .container { width: calc(100% - 26px); }
  .brand strong { font-size: 11px; }
  .wheel-experience { min-height: 315px; }
  .wheel-stage { width: min(84vw,305px); }
  .wheel-label { width: 67px; margin-left: -33px; font-size: 7px; }
  .access-card { border-radius: 18px; padding: 18px; }
  .operator-card, .auth-card { padding: 17px; }
  .metric { min-height: 96px; padding: 13px; }
  .metric b { margin-top: 8px; font-size: 21px; }
  .form-grid.compact { grid-template-columns: 1fr; }
  .checkbox-line { grid-column: auto; }
  .auth-card h1 { font-size: 33px; }
  .result-card { padding: 33px 23px 23px; }
  .ticket-row { grid-template-columns: 1fr auto; }
  .ticket-row input:first-child { grid-column: 1 / -1; }
  .prize-editor { grid-template-columns: 1fr 1fr; }
  .prize-editor label:first-of-type, .prize-editor label:nth-of-type(2) { grid-column: 1 / -1; }
  .prize-editor .tiny-button { min-width: 90px; }
  .account-assignment-row, .account-add-assignment { grid-template-columns: 1fr; }
  .account-assignment-row > span { padding-bottom: 0; }
  .account-assignment-row .tiny-button, .account-add-assignment .tiny-button { width: 100%; }
}
