.spin-page .spin-main { max-width: 1240px; padding-top: 54px; }
.spin-page .topbar-right { gap: 10px; }
.spin-intro { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(400px, 1.1fr); gap: 34px; align-items: center; min-height: 600px; padding: 28px 0 48px; border-bottom: 1px solid var(--line); }
.spin-copy { max-width: 520px; padding: 20px 0; }
.spin-copy h1 { max-width: 520px; margin: 17px 0; font-size: 58px; line-height: 1.04; }
.spin-copy h1 span { color: var(--gold-bright); }
.spin-copy > p { max-width: 465px; color: #c9bea7; font-size: 14px; line-height: 1.8; }
.spin-odds { display: flex; align-items: center; gap: 16px; max-width: 420px; margin: 24px 0; padding: 14px 16px; border: 1px solid rgba(233,189,98,.2); border-left: 3px solid #e9bd62; border-radius: 4px; background: linear-gradient(110deg, rgba(233,189,98,.09), rgba(255,255,255,.018)); }
.odds-number { display: flex; align-items: baseline; gap: 5px; color: var(--gold-bright); font-family: var(--mono); }
.odds-number strong { font-size: 31px; font-weight: 500; }
.odds-number span { color: var(--muted); font-size: 9px; }
.spin-odds > div:last-child { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.spin-odds b { color: var(--paper); font-size: 12px; }
.spin-odds > div:last-child span { color: var(--muted); font-size: 11px; }
.spin-attempt-progress { display: grid; max-width: 420px; gap: 8px; margin: -10px 0 24px; }
.spin-attempt-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font: 9px var(--mono); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.spin-attempt-label strong { flex: 0 0 auto; margin-left: auto; color: var(--gold-bright); font-weight: 500; text-align: right; }
.spin-attempt-track { height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.spin-attempt-track span { display: block; height: 100%; background: linear-gradient(90deg, #b77b28, #ffe3a0); transition: width .3s ease; }
.spin-attempt-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.spin-attempt-status strong { color: #c9bea7; font-size: 10px; font-weight: 600; text-align: right; }
.spin-attempt-status strong[data-state="ready"] { color: #c5d59a; }
.spin-attempt-status strong[data-state="blocked"] { color: #e1bd72; }
.spin-button { display: inline-flex; min-width: 220px; align-items: center; justify-content: space-between; gap: 26px; padding: 15px 18px; border: 1px solid #ffe2a0; color: #201708; background: linear-gradient(135deg, #ffe6a6, #d19d40); box-shadow: 0 8px 25px rgba(206,157,64,.18); font-size: 13px; font-weight: 800; touch-action: none; user-select: none; transition: transform .2s, box-shadow .2s, filter .2s; }
.spin-button span { font-size: 19px; }
.spin-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(206,157,64,.3); }
.spin-button.is-charging { transform: translateY(1px); filter: brightness(1.08); box-shadow: inset 0 2px 8px rgba(64,37,5,.22), 0 0 22px rgba(255,226,160,.26); }
.spin-button:disabled { cursor: progress; opacity: .72; }
.spin-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.spin-countdown[hidden] { display: none; }
.spin-countdown { display: grid; gap: 3px; min-width: 105px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); }
.spin-countdown span { font: 8px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.spin-countdown strong { color: var(--gold-bright); font: 13px var(--mono); white-space: nowrap; }
.spin-countdown .spin-charge-track { display: block; width: 100%; height: 3px; overflow: hidden; background: rgba(255,255,255,.1); }
.spin-charge-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #b77b28, #ffe3a0); transition: width .05s linear; }
.spin-feedback { min-height: 20px; margin: 11px 0 0 !important; color: var(--gold-bright) !important; font-size: 11px !important; }
.spin-access { display: flex; gap: 10px; align-items: center; margin: 22px 0; }
.spin-access a { text-decoration: none; }
.spin-plan-required { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 14px; max-width: 520px; }
.spin-plan-required .spin-feedback { min-height: 0; margin: 0 !important; }
.spin-plan-required .primary-button { width: 220px; min-height: 54px; padding: 14px 18px; border: 1px solid #ffe2a0; font-size: 13px; line-height: 1.35; text-align: center; }
.spin-unlock-countdown { display: grid; gap: 6px; max-width: 360px; padding: 12px 14px; border: 1px solid rgba(233,189,98,.24); border-left: 2px solid var(--gold); background: rgba(233,189,98,.06); }
.spin-unlock-countdown strong { color: var(--gold-bright); font: 700 16px var(--mono); }
.spin-legal { max-width: 430px; margin-top: 18px !important; color: #95876e !important; font-size: 10px !important; line-height: 1.7 !important; }
.wheel-column { display: grid; justify-items: center; gap: 18px; }
.wheel-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 10px var(--mono); letter-spacing: 1.4px; }
.wheel-meta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px rgba(168,202,137,.65); }
.wheel-meta-divider { color: var(--gold); }
.wheel-stage { position: relative; display: grid; width: min(100%, 510px); aspect-ratio: 1; place-items: center; padding: 23px; }
.wheel-outer-ring { position: absolute; inset: 3%; border: 1px solid rgba(255,235,178,.72); border-radius: 50%; box-shadow: 0 0 0 5px rgba(144,92,17,.3), 0 0 0 7px rgba(255,224,139,.22), 0 0 42px rgba(233,189,98,.16), inset 0 0 24px rgba(0,0,0,.72); pointer-events: none; }
.prize-wheel { position: relative; width: 100%; height: 100%; overflow: hidden; border: 7px solid #e0b74f; border-radius: 50%; background: #b77b1e; box-shadow: inset 0 0 0 2px rgba(255,249,214,.9), inset 0 0 26px rgba(91,49,0,.38), 0 0 0 2px rgba(104,65,11,.8), 0 20px 48px rgba(0,0,0,.45), 0 0 34px rgba(225,171,55,.24); transform: rotate(0deg); transition: transform 5.4s cubic-bezier(.12,.72,.08,1); will-change: transform; }
.prize-wheel::before { content: ""; position: absolute; z-index: 1; inset: 9%; border: 1px solid rgba(255,245,197,.55); border-radius: 50%; box-shadow: inset 0 0 20px rgba(91,49,0,.25); pointer-events: none; }
.prize-wheel::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: 50%; background: linear-gradient(118deg, rgba(255,255,255,.3), transparent 18% 46%, rgba(87,48,0,.12) 72%, rgba(255,245,197,.16)); mix-blend-mode: screen; pointer-events: none; }
.wheel-numbers { position: absolute; z-index: 2; inset: 0; overflow: hidden; border-radius: 50%; pointer-events: none; }
.wheel-number { position: absolute; display: block; min-width: 18px; color: #eff2e8; font: 700 8px var(--mono); text-align: center; text-shadow: 0 1px rgba(0,0,0,.78), 0 -1px rgba(255,255,255,.12); transition: scale .18s ease, color .2s ease, text-shadow .2s ease; }
.wheel-number.is-winning { color: #382406; text-shadow: 0 1px rgba(255,255,255,.76), 0 -1px rgba(112,69,6,.28); }
.wheel-number.is-result { z-index: 4; color: #fff9e5; scale: 1.35; text-shadow: 0 0 5px #6c430a, 0 0 11px rgba(255,249,218,.95); }
.wheel-number.is-result.is-winning { color: #302006; text-shadow: 0 0 5px rgba(255,249,218,.95), 0 1px #fff; }
.wheel-pointer { position: absolute; z-index: 4; top: 0; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-right: 16px solid transparent; border-left: 16px solid transparent; border-top: 33px solid #fff0ba; filter: drop-shadow(0 1px 1px rgba(255,255,255,.58)) drop-shadow(0 4px 6px rgba(0,0,0,.65)); }
.wheel-hub { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 25%; aspect-ratio: 1; place-content: center; gap: 3px; border: 3px solid #fff0b2; border-radius: 50%; color: #382307; background: radial-gradient(circle at 35% 25%, #fff0b2 0, #e1b447 38%, #a46c16 73%, #70440b 100%); box-shadow: 0 4px 18px rgba(0,0,0,.5), inset 0 1px 3px rgba(255,255,255,.72), inset 0 -5px 10px rgba(83,48,3,.35); text-align: center; transform: translate(-50%, -50%); }
.wheel-hub span { font: 17px var(--mono); }
.wheel-hub small { color: #513607; font: 8px var(--mono); letter-spacing: 1.5px; }
.wheel-legend { display: flex; width: min(100%, 430px); align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; color: #c9bea7; font-size: 10px; }
.wheel-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 11px; height: 11px; border: 1px solid #fff0ba; background: linear-gradient(135deg, #fff0ba, #ba781d); box-shadow: 0 0 9px rgba(255,226,160,.3); }
.legend-swatch-other { border-color: #bc812b; background: linear-gradient(135deg, #b47822, #835117); box-shadow: none; }
.legend-odds { margin-left: auto; color: var(--gold-bright); font: 11px var(--mono); }
.wheel-result-strip { display: flex; width: min(100%, 430px); align-items: center; justify-content: space-between; gap: 12px; min-width: 180px; padding: 10px 14px; border: 1px solid rgba(255, 232, 170, .38); background: rgba(28, 22, 15, .94); color: var(--paper); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.wheel-result-strip.is-winner { border-color: rgba(233,189,98,.8); box-shadow: 0 0 22px rgba(233,189,98,.25); transform: translateY(-1px); }
.result-label { color: var(--muted); font: 9px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; }
.wheel-result-strip strong { margin-left: auto; color: var(--gold-bright); font: 26px var(--mono); letter-spacing: 2px; text-align: right; }
.prize-wheel.is-winning-glow { box-shadow: inset 0 0 0 2px rgba(255,240,190,.6), inset 0 0 26px rgba(0,0,0,.58), 0 0 0 4px rgba(233,189,98,.18), 0 20px 48px rgba(0,0,0,.45), 0 0 38px rgba(233,189,98,.28); }
.spin-result { display: grid; gap: 6px; max-width: 420px; margin-top: 20px; padding: 16px 18px; border-left: 2px solid var(--muted); background: rgba(255,255,255,.035); }
.spin-result.is-win { border-color: var(--gold-bright); background: linear-gradient(100deg, rgba(233,189,98,.12), rgba(255,255,255,.04)); box-shadow: 0 0 22px rgba(233,189,98,.12); }
.spin-result.is-win strong { color: #fff1bb; }
.spin-result.is-loss { border-color: #9c8d73; background: rgba(255,255,255,.025); }
.spin-result.is-win { border-color: var(--gold-bright); background: linear-gradient(100deg, rgba(233,189,98,.13), rgba(233,189,98,.02)); }
.spin-result.is-loss { border-color: #8c806b; }
.spin-result.is-revealed { animation: spin-result-reveal .28s ease-out both; }
@keyframes spin-result-reveal {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}
.result-kicker { color: var(--gold); font: 9px var(--mono); letter-spacing: 1.4px; }
.spin-result strong { color: var(--paper); font-size: 17px; }
.spin-result > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.spin-steps { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 28px 0; }
.spin-steps > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.step-number { color: var(--gold); font: 11px var(--mono); }
.spin-steps strong { color: var(--paper); font-size: 12px; }
.spin-steps p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.spin-recent-history { margin: 0 0 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.spin-recent-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.spin-recent-heading h2 { margin: 5px 0 0; color: var(--paper); font-size: 18px; }
.spin-recent-heading > a { color: var(--gold-bright); font-size: 10px; text-decoration: none; }
.spin-recent-heading > a:hover { text-decoration: underline; }
.spin-history-list { display: grid; border-top: 1px solid rgba(233,189,98,.16); }
.spin-history-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid rgba(233,189,98,.13); border-top: 0; background: rgba(255,255,255,.018); }
.spin-history-number { color: var(--gold-bright); font: 11px var(--mono); }
.spin-history-detail { display: grid; gap: 4px; min-width: 0; }
.spin-history-detail strong { color: var(--paper); font-size: 11px; }
.spin-history-detail time { color: var(--muted); font-size: 10px; }
.spin-history-outcome { padding: 4px 7px; border: 1px solid rgba(245,234,210,.16); color: #c9bea7; font: 9px var(--mono); text-transform: uppercase; }
.spin-history-outcome.is-win { border-color: rgba(233,189,98,.38); color: var(--gold-bright); }
.spin-history-outcome.is-loss { border-color: rgba(201,190,167,.22); color: #b6aa94; }
.spin-history-empty { margin: 0; padding: 16px; border: 1px solid rgba(233,189,98,.13); border-top: 0; color: var(--muted); font-size: 11px; }
.spin-result-receipt { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; padding-top: 8px; border-top: 1px solid rgba(245,234,210,.1); color: var(--muted); font: 9px var(--mono); }
.spin-result-receipt a { color: var(--gold-bright); text-decoration: none; }
.spin-result-receipt a:hover { text-decoration: underline; }
.spin-page .footer { border-top: 1px solid var(--line); }
.spin-win-overlay[hidden] { display: none; }
.spin-win-overlay { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,6,3,.82); backdrop-filter: blur(7px); }
.spin-win-dialog { position: relative; isolation: isolate; width: min(100%, 440px); overflow: hidden; padding: 25px 28px 24px; border: 1px solid #f4d783; border-radius: 8px; background: radial-gradient(ellipse at 50% 0, rgba(215,170,76,.16), transparent 42%), linear-gradient(155deg, #302515, #17120b 72%); box-shadow: 0 26px 90px rgba(0,0,0,.68), 0 0 0 4px rgba(233,189,98,.07), 0 0 46px rgba(233,189,98,.2); text-align: center; animation: spin-win-arrive .32s cubic-bezier(.2,.75,.25,1) both; }
.spin-win-dialog::before { position: absolute; z-index: -1; inset: 8px; border: 1px solid rgba(255,226,160,.2); border-radius: 4px; content: ""; pointer-events: none; }
.spin-win-dialog::after { position: absolute; z-index: -1; top: -45%; left: -20%; width: 55%; height: 190%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, rgba(255,249,218,.055), transparent); content: ""; pointer-events: none; }
.spin-win-card-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,226,160,.24); text-align: left; }
.spin-win-card-seal { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #fff0b2; border-radius: 50%; color: #382406; background: radial-gradient(circle at 32% 25%, #fff7cf, #d6a843 72%, #8f5c13); box-shadow: inset 0 1px 2px rgba(255,255,255,.72), 0 3px 10px rgba(0,0,0,.3); font: 700 9px var(--mono); }
.spin-win-card-brand-copy { display: grid; gap: 4px; }
.spin-win-card-brand-copy strong { color: #f7dfa0; font: 9px var(--mono); letter-spacing: 1.4px; }
.spin-win-card-brand-copy small,.spin-win-card-serial { color: #aa9975; font: 8px var(--mono); letter-spacing: 1px; }
.spin-win-card-serial { margin-left: auto; text-align: right; }
.spin-win-card-serial strong { display: block; margin-top: 4px; color: #f3d88e; font-size: 11px; }
.spin-brick-icon { display: block; width: 92px; height: 80px; margin: 16px auto 8px; filter: drop-shadow(0 10px 14px rgba(231,178,77,.42)) drop-shadow(0 2px 3px rgba(0,0,0,.46)); }
.spin-win-kicker { color: #d2b76f; font: 8px var(--mono); letter-spacing: 1.7px; }
.spin-win-dialog h2 { margin: 7px 0 13px; color: #fff0b8; font-size: 25px; line-height: 1.18; }
.spin-win-prize-label { margin: 0 0 4px; color: #aa9868; font: 8px var(--mono); letter-spacing: 1.8px; }
.spin-win-prize { margin: 0; color: #f3d782; font: 700 17px/1.4 var(--mono); text-shadow: 0 2px 12px rgba(233,189,98,.2); }
.spin-win-dialog > p#spin-win-description { margin: 12px auto 18px; max-width: 330px; color: #b9ad94; font-size: 10px; line-height: 1.65; }
.spin-win-dismiss { min-height: 42px; padding: 0 22px; border: 1px solid #ffe2a0; background: linear-gradient(135deg, #ffe6a6, #d19d40); color: #201708; font-size: 12px; font-weight: 800; }
@keyframes spin-win-arrive { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 900px) {
	.spin-page .spin-main { padding-top: 30px; }
	.spin-intro { grid-template-columns: 1fr; gap: 22px; }
	.spin-copy { max-width: none; }
	.wheel-stage { width: min(100%, 470px); }
}
@media (max-width: 600px) {
	.spin-page .topbar-right { justify-content: flex-start; margin-top: 12px; }
	.spin-page .spin-main { padding-top: 18px; }
	.spin-intro { min-height: 0; padding-top: 12px; }
	.spin-copy { padding: 10px 0; }
	.spin-copy h1 { font-size: 42px; }
	.spin-copy > p { font-size: 13px; }
	.spin-plan-required { grid-template-columns: 1fr; gap: 11px; }
	.spin-plan-required .primary-button { width: 100%; min-height: 56px; }
	.spin-odds { margin: 20px 0; }
	.wheel-stage { width: 100%; padding: 19px; }
	.prize-wheel { border-width: 5px; }
	.wheel-number { width: 14px; height: 10px; font-size: 6px; }
	.wheel-pointer { border-right-width: 13px; border-left-width: 13px; border-top-width: 27px; }
	.wheel-legend { font-size: 10px; }
	.spin-steps { grid-template-columns: 1fr; gap: 16px; }
	.spin-recent-heading { align-items: flex-start; }
	.spin-history-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; padding: 12px 9px; }
	.spin-history-detail time { font-size: 9px; }
	.spin-attempt-status { align-items: flex-start; flex-direction: column; gap: 4px; }
	.spin-attempt-status strong { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.prize-wheel { transition-duration: .01ms; }
	.spin-win-dialog { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
	.spin-result.is-revealed,
	.spin-attempt-track span { animation: none; transition: none; }
}
