 :root {
     --bg-page: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
     --bg-nav: rgba(15, 23, 42, 0.9);
     --text-main: #f8fafc;
     --text-muted: #94a3b8;
     --accent: #38bdf8;
     --accent-glow: #0ea5e9;
     --card-bg: rgba(30, 41, 59, 0.7);
     --card-border: rgba(255, 255, 255, 0.1);
     --viewport-bg: rgba(255, 255, 255, 0.02);
     --cta-bg: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
     --cta-text: #000;
     --panel-bg: #0f172a;
     --overlay-bg: rgba(2, 6, 23, 0.9);
     --footer-bg: rgba(2, 6, 23, 0.88);

     --card-w: 130px;
     --gap: 15px;
 }

 [data-theme="light"] {
     --bg-page: radial-gradient(circle at center, #f7f9ff 0%, #fcf9f8 100%);
     --bg-nav: rgba(255, 255, 255, 0.9);
     --text-main: #180a00;
     --text-muted: #695247;
     --accent: #ff5e00;
     --accent-glow: #fd943e;
     --card-bg: rgba(255, 255, 255, 0.85);
     --card-border: rgba(0, 0, 0, 0.05);
     --viewport-bg: rgba(0, 0, 0, 0.02);
     --cta-bg: linear-gradient(135deg, #f86b29 0%, #f77440 100%);
     --cta-text: #fff;
     --panel-bg: #ffffff;
     --overlay-bg: rgba(255, 255, 255, 0.9);
     --footer-bg: rgba(255, 255, 255, 0.75);
 }

 [data-theme="light"][data-light-theme="aurora"] {
     --bg-page: linear-gradient(180deg, #f3e8ff 0%, #e0f2fe 50%, #f5f3ff 100%);
     --accent: #7c3aed;
     --accent-glow: #06b6d4;
 }

 [data-theme="light"][data-light-theme="sunset"] {
     --bg-page: linear-gradient(180deg, #fff7ed 0%, #ffedd5 45%, #ffe4e6 100%);
     --accent: #ea580c;
     --accent-glow: #ec4899;
 }

 [data-theme="light"][data-light-theme="mint"] {
     --bg-page: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 48%, #dcfce7 100%);
     --accent: #0d9488;
     --accent-glow: #14b8a6;
 }

 [data-theme="light"][data-light-theme="peach"] {
     --bg-page: linear-gradient(180deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
     --accent: #f97316;
     --accent-glow: #fb7185;
 }

 [data-theme="light"][data-light-theme="ocean"] {
     --bg-page: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 48%, #e0e7ff 100%);
     --accent: #2563eb;
     --accent-glow: #0ea5e9;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Inter", -apple-system, system-ui, sans-serif;
 }

 body {
     background: var(--bg-page);
     color: var(--text-main);
     min-height: calc(var(--vh, 1vh) * 100);
     display: flex;
     flex-direction: column;
     align-items: center;
     overflow-x: hidden;
     -webkit-font-smoothing: antialiased;
     transition: background 0.35s ease;
 }

 .site-header {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 120;
     background: rgba(2, 6, 23, 0.78);
     border-bottom: 1px solid rgba(148, 163, 184, 0.28);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
 }

 [data-theme="light"] .site-header {
     background: rgba(255, 255, 255, 0.82);
     border-bottom-color: rgba(148, 163, 184, 0.45);
 }

 .site-header__inner {
     width: min(100%, 920px);
     margin: 0 auto;
     min-height: 44px;
     padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
 }

 .site-brand {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-size: 0.95rem;
     font-weight: 800;
     letter-spacing: 0.3px;
     color: #e2e8f0;
     text-transform: uppercase;
 }

 [data-theme="light"] .site-brand {
     color: #0f172a;
 }

 .site-brand__emoji {
     font-size: 1rem;
     line-height: 1;
 }

 .site-status {
     font-size: 0.72rem;
     font-weight: 700;
     letter-spacing: 0.6px;
     text-transform: uppercase;
     color: var(--text-muted);
     white-space: nowrap;
 }

 .main-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     width: 100%;
     padding: 20px;
     margin: 10px 0;
     padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
 }

 .header-title {
     text-align: center;
     margin-bottom: 30px;
 }

 .header-title .kicker {
     font-size: 0.8rem;
     letter-spacing: 4px;
     color: var(--accent);
     font-weight: 800;
     text-transform: uppercase;
     margin-bottom: 10px;
 }

 .header-title h1 {
     font-size: clamp(1.3rem, 6.5vw, 1.8rem);
     font-weight: 900;
     line-height: 1.1;
     color: var(--text-main);
 }

 .viewport {
     position: relative;
     width: 100vw;
     height: 180px;
     background: var(--viewport-bg);
     border-top: 1px solid var(--card-border);
     border-bottom: 1px solid var(--card-border);
     display: flex;
     align-items: center;
     overflow: hidden;
     box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
 }

 .selector-container {
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     height: 150px;
     width: 140px;
     z-index: 100;
     pointer-events: none;
 }

 .selector-frame {
     position: absolute;
     inset: 0;
     border-left: 4px solid var(--accent);
     border-right: 4px solid var(--accent);
     border-radius: 20px;
     filter: drop-shadow(0 0 8px var(--accent-glow));
 }

 .reel {
     display: flex;
     position: absolute;
     left: 0;
     will-change: transform;
     gap: var(--gap);
     transform: translateZ(0);
 }

 .prize-card {
     min-width: var(--card-w);
     max-width: var(--card-w);
     height: 120px;
     background: var(--card-bg);
     border-radius: 24px;
     border: 1px solid var(--card-border);
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 10px;
     text-align: center;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
 }

 .prize-card span {
     font-size: 2.2rem;
     margin-bottom: 5px;
 }

 .prize-card b {
     font-size: 0.75rem;
     color: var(--text-muted);
     text-transform: uppercase;
     line-height: 1.2;
 }

 [data-theme="light"] .prize-card b {
     color: var(--text-main);
     font-weight: 700;
 }

 .spin-btn {
     margin-top: 40px;
     width: min(92%, 360px);
     min-height: 120px;
     padding: 12px 58px 12px 24px;
     background: linear-gradient(135deg, #22c55e, #16a34a);
     border: none;
     color: #fff;
     font-size: 1.6rem;
     font-weight: 900;
     cursor: pointer;
     border-radius: 16px;
     text-transform: uppercase;
     text-align: center;
     line-height: 1.6;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     position: relative;
     z-index: 20;
     box-shadow: 0 10px 22px rgba(22, 163, 74, 0.3);
     transition: transform 0.2s ease, opacity 0.2s ease;
 }

 .spin-btn::after {
     content: "➜";
     position: absolute;
     right: 25px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 2rem;
     line-height: 1;
 }

 .spin-btn:active {
     transform: scale(0.98);
 }

 .spin-btn:disabled {
     opacity: 0.5;
     cursor: wait;
 }

 .desktop-footer {
     display: none;
     width: calc(100% - 32px);
     max-width: 720px;
     margin: 24px auto 16px;
     padding: 16px;
     border-top: 1px solid rgba(148, 163, 184, 0.4);
     border-radius: 12px;
     background: var(--footer-bg);
     backdrop-filter: blur(8px);
     color: var(--text-main);
     font-size: 12px;
     line-height: 1.5;
 }

 .desktop-footer p+p {
     margin-top: 10px;
 }

 .desktop-footer a {
     color: inherit;
 }

 .term-legal {
     margin-top: 10px;
     font-weight: 700;
 }

 @media (min-width: 769px) {
     .desktop-footer {
         display: block;
     }
 }

 #winner-panel {
     position: fixed;
     bottom: -110%;
     left: 0;
     right: 0;
     background: var(--panel-bg);
     border-top: 3px solid var(--accent);
     border-radius: 30px 30px 0 0;
     padding: 40px 20px;
     z-index: 2000;
     text-align: center;
     transition: bottom 0.6s cubic-bezier(0.22, 1, 0.36, 1);
     box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
 }

 #winner-panel.active {
     bottom: 0;
 }

 .winner-kicker {
     color: var(--accent);
     font-size: 0.8rem;
     letter-spacing: 3px;
     font-weight: 800;
     margin-bottom: 40px;
 }

 .winner-icon {
     font-size: 4rem;
     margin: 10px 0;
 }

.winner-val {
    font-size: 2.4rem;
    font-weight: 950;
    color: var(--accent);
    margin: 10px 0;
    display: block;
}

[data-theme="dark"] .winner-val {
    color: #fff;
}

 .winner-desc {
     color: var(--text-muted);
     font-size: 0.9rem;
 }

 .btn-collect {
     display: block;
     width: 100%;
     max-width: 340px;
     min-height: 100px;
     margin: 20px auto 0;
     padding: 16px 56px 16px 22px;
     background: #22c55e;
     color: #fff;
     border-radius: 16px;
     text-decoration: none;
     font-weight: 900;
     font-size: 1.4rem;
     line-height: 1.2;
     text-transform: uppercase;
     border: 0;
     cursor: pointer;
     font-family: inherit;
     text-align: center;
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35);
 }

 .btn-collect::after {
     content: "➜";
     position: absolute;
     right: 30px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 1.4rem;
     line-height: 1;
 }

 .dim-overlay {
     position: fixed;
     inset: 0;
     background: var(--overlay-bg);
     opacity: 0;
     pointer-events: none;
     z-index: 1500;
     backdrop-filter: blur(4px);
     transition: opacity 0.2s ease;
 }

 .dim-overlay.active {
     opacity: 1;
     pointer-events: auto;
 }
