:root {
  --bg: #07060f;
  --bg2: #0d0b1d;
  --card: rgba(255, 255, 255, 0.04);
  --card-b: rgba(255, 255, 255, 0.08);
  --text: #f4f2ff;
  --muted: #9a95b8;
  --gold: #f5b93a;
  --gold2: #ffe9a3;
  --gold3: #d9961c;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --green: #22c55e;
  --red: #f43f5e;
  --r: 20px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #241b4d 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; }

/* background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; animation: float 14s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { width: 320px; height: 320px; background: #7c3aed; top: -80px; left: -100px; }
.bg-orbs span:nth-child(2) { width: 280px; height: 280px; background: #f59e0b; top: 40%; right: -120px; animation-delay: -5s; }
.bg-orbs span:nth-child(3) { width: 260px; height: 260px; background: #ec4899; bottom: -60px; left: 20%; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-40px) } }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 16px; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #2a1f5e, #4c1d95); box-shadow: 0 0 24px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255,255,255,.15); }
.brand-logo svg { width: 24px; height: 24px; }
.brand-name { font-family: Sora, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand-sub { font-size: 11px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-b); font-weight: 700; font-size: 14px; }
.chip-tickets { background: linear-gradient(135deg, rgba(245,185,58,.2), rgba(245,185,58,.05)); border-color: rgba(245,185,58,.35); color: var(--gold2); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-b); font-size: 12px; font-weight: 700; }
.icon-btn svg { width: 18px; height: 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--card-b); border-radius: 16px; padding: 12px 8px; text-align: center; backdrop-filter: blur(10px); }
.stat-v { font-family: Sora, sans-serif; font-weight: 800; font-size: 16px; display: flex; justify-content: center; align-items: center; gap: 6px; background: linear-gradient(90deg, #fff, #ffe9a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-v .dot-live { flex: none; }
.stat-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6) } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0) } }

/* Hero */
.hero { text-align: center; padding-top: 6px; }
.hero-title { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; background: linear-gradient(180deg, #fff 0%, #ffe9a3 55%, #f5b93a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(245,185,58,.25)); }
.hero-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }

.wheel-wrap { position: relative; width: min(86vw, 340px); aspect-ratio: 1; margin: 26px auto 10px; }
.wheel-ring { position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, #f5b93a, #ffe9a3, #d9961c, #ffe9a3, #f5b93a); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(245,185,58,.25), inset 0 0 0 6px #1a1433; animation: ringSpin 12s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg) } }
.wheel-lights { position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; }
.wheel-lights i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff7d6; box-shadow: 0 0 8px #fff, 0 0 14px var(--gold); animation: blink 1s infinite; }
.wheel-lights i:nth-child(odd) { animation-delay: .5s; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.wheel-pointer { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 40px solid #ffe9a3; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); z-index: 5; }
.wheel-pointer::after { content: ""; position: absolute; left: -9px; top: -46px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #f5b93a); }
.wheel { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transition: transform 5.2s cubic-bezier(.12,.7,.08,1); box-shadow: inset 0 0 0 4px rgba(255,255,255,.08), inset 0 0 40px rgba(0,0,0,.6); }
.wheel-seg { position: absolute; left: 50%; top: 50%; width: 50%; height: 50%; transform-origin: 0 0; display: flex; }
.wheel-label { position: absolute; left: 50%; top: 50%; width: 50%; height: 40px; margin-top: -20px; transform-origin: 0 50%; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-right: 14px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; pointer-events: none; }
.wheel-label .em { font-size: 18px; }
.wheel-label .txt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.wheel-label .txt small { font-weight: 600; opacity: .85; font-size: 9px; }
.wheel-center { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #f5b93a 45%, #b87514 100%); box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 5px #1a1433, 0 0 0 7px rgba(255,233,163,.6), 0 0 30px rgba(245,185,58,.5); color: #2a1a05; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 6; transition: transform .15s; }
.wheel-center:active { transform: translate(-50%, -50%) scale(.95); }
.wheel-center:disabled { filter: grayscale(.4); opacity: .75; }
.wc-top { font-family: Sora, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.wc-bot { font-size: 10px; font-weight: 700; opacity: .8; }
.hero-note { font-size: 12px; color: var(--muted); min-height: 18px; }
.hero-note b { color: var(--gold2); }

/* Ticker */
.ticker-card { background: var(--card); border: 1px solid var(--card-b); border-radius: 16px; padding: 10px 14px; backdrop-filter: blur(10px); }
.ticker-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.ticker { height: 26px; overflow: hidden; position: relative; }
.ticker ul { list-style: none; transition: transform .5s ease; }
.ticker li { height: 26px; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker li .flag { font-size: 15px; }
.ticker li b { color: var(--gold2); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--card-b); border-radius: var(--r); padding: 16px; backdrop-filter: blur(12px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.card-hint { font-size: 12px; color: var(--muted); }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.3); border-radius: 999px; overflow-x: auto; max-width: 100%; }
.seg button { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.active { background: linear-gradient(135deg, #f5b93a, #d9961c); color: #1a1000; }

/* Tasks */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--card-b); }
.task-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(236,72,153,.2)); }
.task-body { flex: 1; min-width: 0; }
.task-body b { display: block; font-size: 14px; }
.task-body span { font-size: 12px; color: var(--muted); }
.task-btn { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #f5b93a, #d9961c); color: #1a1000; white-space: nowrap; }
.task-btn.done { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.35); }

/* Prize grid */
.prize-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prize { position: relative; border-radius: 16px; padding: 14px 12px; border: 1px solid var(--card-b); overflow: hidden; background: rgba(255,255,255,.03); transition: transform .2s; }
.prize:active { transform: scale(.97); }
.prize::before { content: ""; position: absolute; inset: 0; background: var(--pc, #8b5cf6); opacity: .18; }
.prize::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: var(--pc, #8b5cf6); filter: blur(30px); opacity: .5; }
.prize > * { position: relative; }
.prize-ico { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.prize-name { font-weight: 800; font-size: 14px; }
.prize-val { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prize-tag { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); text-transform: uppercase; letter-spacing: .4px; }
.prize.hot .prize-tag { background: linear-gradient(135deg, #f5b93a, #d9961c); color: #1a1000; border: 0; }
.prize.big { grid-column: span 2; display: flex; align-items: center; gap: 14px; }
.prize.big .prize-ico { font-size: 44px; margin: 0; }

/* Records */
.records .record-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rs { background: rgba(0,0,0,.3); border-radius: 12px; padding: 10px; text-align: center; }
.rs b { display: block; font-size: 16px; font-family: Sora, sans-serif; }
.rs span { font-size: 11px; color: var(--muted); }
.record-list { display: flex; flex-direction: column; gap: 10px; }
.record { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--card-b); }
.record-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(0,0,0,.35); flex: none; }
.record-body { flex: 1; min-width: 0; }
.record-body b { display: block; font-size: 15px; }
.record-body .meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.record-body .id { font-family: ui-monospace, monospace; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.badge.pending { background: rgba(245,185,58,.15); color: var(--gold2); border: 1px solid rgba(245,185,58,.4); }
.badge.submitted { background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.4); }
.badge.completed { background: rgba(34,197,94,.12); color: var(--green); border: 1px solid rgba(34,197,94,.4); }
.badge.expired { background: rgba(244,63,94,.12); color: var(--red); border: 1px solid rgba(244,63,94,.4); }
.record-act { padding: 9px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.record-act.primary { background: linear-gradient(135deg, #f5b93a, #d9961c); color: #1a1000; box-shadow: 0 4px 14px rgba(245,185,58,.3); }
.record-act.ghost { background: rgba(255,255,255,.06); border: 1px solid var(--card-b); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); font-size: 13px; }
.empty .em { font-size: 40px; margin-bottom: 10px; }

/* Footer */
.footer { text-align: center; color: var(--muted); font-size: 11px; padding: 10px 0 0; }
.footer-badges { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; font-size: 12px; }

/* Bottom nav */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50; display: flex; justify-content: space-around; align-items: center; padding: 0 8px env(safe-area-inset-bottom); background: rgba(13,11,29,.85); backdrop-filter: blur(20px); border-top: 1px solid var(--card-b); max-width: 520px; margin: 0 auto; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); padding: 8px 12px; border-radius: 12px; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--gold2); }

/* Toast */
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -30px); opacity: 0; background: rgba(20,17,40,.95); border: 1px solid var(--card-b); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 300; transition: .3s; pointer-events: none; max-width: 90vw; text-align: center; backdrop-filter: blur(10px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { border-color: rgba(244,63,94,.5); color: #ffb3c0; }
.toast.success { border-color: rgba(34,197,94,.5); color: #b6f5c9; }

/* Modal */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(3,2,10,.75); backdrop-filter: blur(8px); animation: fade .25s; }
@keyframes fade { from { opacity: 0 } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: linear-gradient(180deg, #17132d, #0d0b1d); border-radius: 26px 26px 0 0; border: 1px solid var(--card-b); border-bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; animation: up .35s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 4px; }
.sheet-head h3 { font-size: 18px; font-weight: 800; }
.close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 18px; color: var(--muted); }
.sheet-body { padding: 8px 18px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; border-top: 1px solid var(--card-b); }

.btn { flex: 1; padding: 14px; border-radius: 14px; font-weight: 800; font-size: 15px; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #ffe9a3, #f5b93a 50%, #d9961c); color: #1a1000; box-shadow: 0 8px 24px rgba(245,185,58,.35); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--card-b); }
.btn-sm { flex: none; padding: 10px 14px; font-size: 13px; border-radius: 10px; }

/* Language list */
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lang-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--card-b); text-align: left; font-size: 14px; }
.lang-item .flag { font-size: 20px; }
.lang-item.active { border-color: var(--gold); background: rgba(245,185,58,.12); }
.lang-item small { display: block; color: var(--muted); font-size: 11px; }

/* Captcha */
.captcha { text-align: center; }
.captcha-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.captcha-hint { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.puzzle { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #2a1f5e, #4c1d95 40%, #831843 80%, #b45309); border: 1px solid var(--card-b); margin-bottom: 14px; }
.puzzle::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 6px, transparent 6px 14px); }
.puzzle-hole, .puzzle-piece { position: absolute; top: 50px; width: 50px; height: 50px; border-radius: 10px; }
.puzzle-hole { background: rgba(0,0,0,.55); border: 2px dashed rgba(255,255,255,.35); }
.puzzle-piece { background: linear-gradient(135deg, #ffe9a3, #f5b93a); box-shadow: 0 6px 16px rgba(0,0,0,.5); display: grid; place-items: center; font-size: 22px; transition: none; }
.slider { position: relative; height: 50px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid var(--card-b); user-select: none; touch-action: none; }
.slider-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(245,185,58,.35), rgba(245,185,58,.15)); width: 0; }
.slider-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); pointer-events: none; }
.slider-handle { position: absolute; left: 0; top: 3px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #ffe9a3, #f5b93a); display: grid; place-items: center; color: #1a1000; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.5); cursor: grab; }
.slider.ok .slider-handle { background: linear-gradient(135deg, #86efac, #22c55e); }
.slider.bad { animation: shake .4s; }
.slider.bad .slider-handle { background: linear-gradient(135deg, #fda4af, #f43f5e); }
@keyframes shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }

/* Result */
.result { text-align: center; padding: 10px 0 4px; }
.result-burst { width: 130px; height: 130px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle, rgba(245,185,58,.35), transparent 70%); animation: pop .6s cubic-bezier(.2,1.4,.4,1); position: relative; }
.result-burst::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,233,163,.25) 20deg 40deg, transparent 40deg 60deg, rgba(255,233,163,.25) 60deg 80deg, transparent 80deg 100deg, rgba(255,233,163,.25) 100deg 120deg, transparent 120deg 140deg, rgba(255,233,163,.25) 140deg 160deg, transparent 160deg 180deg, rgba(255,233,163,.25) 180deg 200deg, transparent 200deg 220deg, rgba(255,233,163,.25) 220deg 240deg, transparent 240deg 260deg, rgba(255,233,163,.25) 260deg 280deg, transparent 280deg 300deg, rgba(255,233,163,.25) 300deg 320deg, transparent 320deg 340deg, rgba(255,233,163,.25) 340deg 360deg); animation: ringSpin 8s linear infinite; z-index: -1; }
@keyframes pop { from { transform: scale(.3); opacity: 0 } }
.result h2 { font-size: 24px; background: linear-gradient(90deg, #fff, #ffe9a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.result .prize-big { font-family: Sora, sans-serif; font-size: 32px; font-weight: 800; margin: 12px 0 4px; color: var(--gold2); text-shadow: 0 0 30px rgba(245,185,58,.5); }
.result .prize-sub { font-size: 14px; color: var(--muted); }
.result .expire { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.35); color: #ffb3c0; font-size: 12px; font-weight: 600; }

/* Claim flow */
.steps { display: flex; align-items: center; gap: 4px; margin: 6px 0 16px; }
.step { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; }
.step.done { background: var(--gold); }
.step.cur { background: linear-gradient(90deg, var(--gold), rgba(245,185,58,.3)); }
.step-label { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; }
.step-label b { color: var(--text); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field label .req { color: var(--red); }
.input { width: 100%; padding: 13px 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--card-b); color: var(--text); outline: none; transition: border .2s; }
.input:focus { border-color: var(--gold); }
.input.err { border-color: var(--red); }
.input::placeholder { color: rgba(154,149,184,.6); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select.input { background-position: 20px 50%, 15px 50%; }
.err-msg { font-size: 11px; color: #ffb3c0; margin-top: 5px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.net { padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--card-b); font-size: 12px; font-weight: 700; text-align: center; }
.net small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; margin-top: 2px; }
.net.active { border-color: var(--gold); background: rgba(245,185,58,.12); color: var(--gold2); }
.warn { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(245,185,58,.08); border: 1px solid rgba(245,185,58,.3); font-size: 12px; color: #ffe9a3; line-height: 1.45; margin-bottom: 12px; }
.warn.red { background: rgba(244,63,94,.08); border-color: rgba(244,63,94,.35); color: #ffb3c0; }
.prize-summary { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(245,185,58,.18), rgba(139,92,246,.12)); border: 1px solid rgba(245,185,58,.3); margin-bottom: 14px; }
.prize-summary .ico { font-size: 40px; }
.prize-summary b { font-size: 18px; display: block; font-family: Sora, sans-serif; }
.prize-summary span { font-size: 12px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 13px; }
.kv span { color: var(--muted); flex: none; }
.kv b { text-align: right; word-break: break-all; font-weight: 600; }
[dir="rtl"] .kv b { text-align: left; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 14px 0; direction: ltr; }
.otp input { width: 44px; height: 54px; text-align: center; font-size: 22px; font-weight: 800; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--card-b); color: var(--text); outline: none; }
.otp input:focus { border-color: var(--gold); }
.otp.bad input { border-color: var(--red); animation: shake .4s; }
.link { color: var(--gold2); font-weight: 700; font-size: 13px; background: none; }
.link:disabled { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--card-b); margin-top: 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.success { text-align: center; padding: 10px 0; }
.success .ok { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.35), transparent 70%); display: grid; place-items: center; font-size: 44px; animation: pop .6s cubic-bezier(.2,1.4,.4,1); }
.success h3 { font-size: 22px; }
.claim-id { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--card-b); font-family: ui-monospace, monospace; font-size: 14px; font-weight: 700; letter-spacing: .5px; direction: ltr; }
.timeline { text-align: left; margin-top: 16px; }
[dir="rtl"] .timeline { text-align: right; }
.tl { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 28px; bottom: -8px; width: 2px; background: rgba(255,255,255,.1); }
[dir="rtl"] .tl::before { left: auto; right: 9px; }
.tl:last-child::before { display: none; }
.tl .d { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: 11px; background: var(--bg2); }
.tl.done .d { background: var(--green); border-color: var(--green); color: #052e16; }
.tl.cur .d { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,185,58,.2); }
.tl b { font-size: 13px; display: block; }
.tl span { font-size: 11px; color: var(--muted); }
.tl.cur b { color: var(--gold2); }

/* RTL tweaks */
[dir="rtl"] .wheel-label { direction: ltr; }
[dir="rtl"] .otp, [dir="rtl"] .claim-id { direction: ltr; }

@media (min-width: 520px) {
  .hero-title { font-size: 40px; }
}
