@font-face { font-family: 'Rajdhani'; font-weight: 600; src: url('./fonts/rajdhani-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Rajdhani'; font-weight: 700; src: url('./fonts/rajdhani-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Teko'; font-weight: 500 600; src: url('./fonts/teko.woff2') format('woff2'); font-display: swap; }

:root {
  --ink: #050509; --indigo: #0d1326; --cyan: #00f0ff; --blue: #1a4cff; --magenta: #ff007a; --gold: #ffc800;
  --text: #ffffff; --muted: #9aa6c8; --glow: rgba(0, 240, 255, 0.6); --dim: rgba(5, 5, 9, 0.88);
  --cell: 96px; --gap: 6px; --ctl: 48px;
  --head: 'Teko', 'Rajdhani', sans-serif; --ui: 'Rajdhani', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--text); font-family: var(--ui); -webkit-tap-highlight-color: transparent; user-select: none; }
button { font-family: var(--ui); color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage { position: relative; height: 100%; width: 100%; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.bg { position: absolute; inset: 0; z-index: -2; background: #070b18 url('./art/bg_village.webp') center 30% / cover no-repeat; }
.bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 45%, rgba(5, 8, 20, 0.15), rgba(5, 5, 9, 0.85) 75%), repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 7px); }
.ink-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(0, 0, 0, 0.8); }
.stage.bonus-1 .bg { filter: hue-rotate(-10deg) saturate(1.3) brightness(0.8); }
.stage.bonus-2 .bg { filter: hue-rotate(40deg) saturate(1.4) brightness(0.85); }
.stage.bonus-3 .bg { filter: hue-rotate(-40deg) saturate(1.6) brightness(0.9); }

.top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 0; height: 64px; }
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 0.78; font: 600 30px/0.8 var(--head); letter-spacing: 0.06em; color: #fff; transform: skewX(-8deg); text-shadow: 0 0 14px var(--cyan), 3px 3px 0 var(--blue), -1px -1px 0 #001; }
.logo span:last-child { color: var(--cyan); text-shadow: 0 0 16px var(--cyan), 3px 3px 0 #001a4d; margin-left: 0.6em; }
.top-info { display: flex; gap: 8px; }
.pill { display: flex; flex-direction: column; align-items: flex-end; padding: 4px 12px; min-width: 96px; border-radius: 8px; background: rgba(13, 19, 38, 0.78); border: 1px solid rgba(0, 240, 255, 0.35); }
.pill-k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill-v { font: 600 20px/1.05 var(--head); color: var(--text); white-space: nowrap; }
.pill-win .pill-v { color: var(--gold); }

.play { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 6px 12px; position: relative; }
.side { flex: 0 0 150px; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.buy-cta { min-height: 92px; padding: 10px; border-radius: 14px; border: 2px solid #ff4da6; background: linear-gradient(140deg, #3a001d, #b0005a 60%, var(--magenta)); box-shadow: 0 10px 30px rgba(255, 0, 122, 0.25); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform 140ms ease, filter 140ms ease; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.buy-cta:hover { transform: translateY(-2px); filter: brightness(1.12); }
.buy-cta:active { transform: scale(0.96); }
.buy-cta-k { font: 600 30px/0.9 var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.buy-cta-v { font-size: 13px; color: #ffd0e6; }
.boost-cta { min-height: 52px; border-radius: 12px; border: 2px solid var(--cyan); background: rgba(13, 19, 38, 0.8); cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 15px; font-weight: 700; transition: background-color 160ms ease, transform 140ms ease; }
.boost-cta b { font: 600 20px var(--head); color: var(--muted); }
.boost-cta[aria-pressed='true'] { background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(26, 76, 255, 0.6)); box-shadow: 0 0 22px var(--glow); }
.boost-cta[aria-pressed='true'] b { color: var(--text); }
.boost-cta:active { transform: scale(0.96); }
.jp-list { display: flex; flex-direction: column; gap: 8px; }
.jp { border-radius: 10px; padding: 6px 10px; background: rgba(5, 5, 9, 0.72); border: 1px solid rgba(255, 200, 0, 0.4); display: flex; justify-content: space-between; align-items: baseline; }
.jp b { font: 600 18px var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.jp span { font: 600 20px var(--head); color: var(--gold); }
.jp.j4 { border-color: var(--magenta); } .jp.j4 span { color: #ff7ab8; }

.board-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.board { position: relative; width: calc(var(--cell) * 5 + var(--gap) * 4 + 20px); height: calc(var(--cell) * 4 + 20px); padding: 10px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 12, 30, 0.86), rgba(4, 6, 16, 0.92)); border: 2px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(26, 76, 255, 0.5), 0 0 34px rgba(0, 240, 255, 0.25), inset 0 0 40px rgba(26, 76, 255, 0.18); }
.board.shake { animation: shake 420ms steps(6) 1; }
@keyframes shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4px,2px); } 40% { transform: translate(4px,-3px); } 60% { transform: translate(-3px,-2px); } 80% { transform: translate(3px,3px); } }
.reels { position: absolute; inset: 10px; display: flex; gap: var(--gap); }
.reel { position: relative; width: var(--cell); height: calc(var(--cell) * 4); overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, 0.025); }
.reel::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(4,6,16,0.75), transparent 14%, transparent 86%, rgba(4,6,16,0.75)); }
.strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.cell { width: var(--cell); height: var(--cell); display: flex; align-items: center; justify-content: center; padding: 7%; position: relative; }
.cell img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.7)); transition: transform 200ms ease, opacity 200ms ease; }
.spinning .cell img { filter: blur(1.5px) brightness(0.9); }
.reels.has-win .cell img { opacity: 0.38; }
.reels.has-win .cell.hit img { opacity: 1; transform: scale(1.1); }
.cell.hit::after { content: ''; position: absolute; inset: 4px; border-radius: 10px; border: 2px solid rgba(0, 240, 255, 0.9); box-shadow: 0 0 16px var(--glow), inset 0 0 14px rgba(0, 240, 255, 0.35); }
.cell.scat img { animation: thump 600ms ease 2; }
@keyframes thump { 50% { transform: scale(1.22) rotate(-6deg); } }

.frames, .labels { position: absolute; inset: 10px; pointer-events: none; }
.frame { position: absolute; width: var(--cell); height: var(--cell); border-radius: 12px; border: 3px solid var(--cyan);
  box-shadow: 0 0 14px var(--glow), inset 0 0 16px rgba(0, 240, 255, 0.4); animation: frame-in 380ms cubic-bezier(.2,1.6,.4,1) both; }
.frame.jp-frame { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 200, 0, 0.7), inset 0 0 16px rgba(255, 200, 0, 0.35); }
.frame.jp4 { border-color: var(--magenta); box-shadow: 0 0 20px rgba(255, 0, 122, 0.8), inset 0 0 18px rgba(255, 0, 122, 0.4); }
.frame b { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 35%); padding: 1px 8px; border-radius: 999px; background: #04121f; border: 2px solid currentColor; color: var(--cyan);
  font: 600 calc(var(--cell) * 0.2)/1.1 var(--head); white-space: nowrap; text-shadow: 0 0 8px currentColor; min-width: 36%; text-align: center; }
.frame.jp-frame b { color: var(--gold); }
.frame.jp4 b { color: #ff7ab8; }
.frame.zap { animation: zap 520ms ease forwards; }
@keyframes frame-in { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes zap { 40% { transform: scale(1.15); filter: brightness(2); } 100% { transform: scale(0.6); opacity: 0.2; } }
.frames.moon .frame { border-width: 2px; }
.frames.moon .frame b { font-size: calc(var(--cell) * 0.17); }

.paylines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; overflow: visible; }
.paylines polyline { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--cyan)); stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 520ms ease-out forwards; }
.paylines polyline.alt { stroke: var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lbl { position: absolute; transform: translate(-50%, -50%); padding: 2px 9px; border-radius: 8px; background: rgba(4, 8, 20, 0.92); border: 1px solid var(--cyan); font: 600 calc(var(--cell) * 0.22)/1.1 var(--head); color: var(--text); white-space: nowrap; animation: pop 300ms ease both; }
.lbl.mult { border-color: var(--gold); color: var(--gold); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }

.win-banner { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); z-index: 5; padding: 6px 26px 2px; border-radius: 12px; background: rgba(4, 6, 16, 0.9); border: 2px solid var(--gold); box-shadow: 0 0 28px rgba(255, 200, 0, 0.35); display: flex; align-items: baseline; gap: 12px; animation: pop-b 280ms ease both; }
.win-banner .wb-k { font: 600 22px var(--head); letter-spacing: 0.1em; color: var(--muted); }
.win-banner .wb-v { font: 600 40px/1 var(--head); color: var(--gold); text-shadow: 0 0 16px rgba(255, 200, 0, 0.6); white-space: nowrap; }
@keyframes pop-b { from { transform: translateX(-50%) scale(0.5); opacity: 0; } }
.toast { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 9; padding: 8px 14px; border-radius: 10px; background: rgba(40, 0, 20, 0.95); border: 1px solid var(--magenta); font-size: 15px; font-weight: 700; max-width: 92%; text-align: center; }

.bonus-hud { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 3px 14px; border-radius: 999px; background: rgba(4, 6, 16, 0.92); border: 1px solid var(--cyan); white-space: nowrap; z-index: 4; }
.bonus-hud span { font: 600 20px/1.1 var(--head); letter-spacing: 0.06em; }
#hud-name { color: var(--cyan); } #hud-total { color: var(--gold); }

.controls { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px 12px; position: relative; z-index: 3; }
.ctl { width: var(--ctl); height: var(--ctl); min-width: 44px; min-height: 44px; border-radius: 12px; border: 2px solid rgba(0, 240, 255, 0.7); background: rgba(13, 19, 38, 0.82); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.ctl svg { width: 55%; height: 55%; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { background: rgba(26, 76, 255, 0.4); }
.ctl:active { transform: scale(0.93); }
.ctl[aria-pressed='true'] { background: linear-gradient(135deg, rgba(0, 240, 255, 0.45), rgba(26, 76, 255, 0.7)); box-shadow: 0 0 16px var(--glow); }
#sound-btn[aria-pressed='false'] #snd-wave { opacity: 0.15; }
.ctl-sm { font: 700 26px/1 var(--ui); }
.ctl-buy { border-color: #ff4da6; background: linear-gradient(135deg, #4d0026, var(--magenta)); font: 600 20px var(--head); letter-spacing: 0.06em; display: none; }
#auto-left { position: absolute; top: -8px; right: -8px; min-width: 22px; padding: 0 5px; border-radius: 999px; background: var(--magenta); font: 600 14px/22px var(--head); }
#auto-left:empty { display: none; }
.bet-box { display: flex; align-items: center; gap: 6px; padding: 0 6px; height: var(--ctl); border-radius: 12px; background: rgba(5, 5, 9, 0.6); border: 1px solid rgba(0, 240, 255, 0.3); }
.bet-box .ctl { border-width: 1px; }
.bet-val { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.bet-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
#bet-v { font: 600 22px/1 var(--head); white-space: nowrap; }
hb-bet#spin { width: 84px; height: 84px; margin: -18px 6px -6px; --hb-bet-bg: radial-gradient(circle at 35% 30%, #7ff8ff, var(--cyan) 30%, var(--blue) 78%); --hb-bet-color: #fff; --hb-bet-radius: 50%; --hb-bet-font: 'Teko', sans-serif; }
hb-bet#spin::part(button) { padding: 0; border: 3px solid #bdfcff; box-shadow: 0 0 26px var(--glow), inset 0 -6px 12px rgba(0, 0, 60, 0.45); }
.spin-in { display: flex; width: 54%; height: 54%; transition: transform 500ms ease; }
.spin-in svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,60,0.7)); }
.stage.busy .spin-in { transform: rotate(360deg); transition-duration: 900ms; }

.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

.bigwin { position: absolute; inset: 0; z-index: 18; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 50%, rgba(10, 30, 80, 0.7), rgba(5, 5, 9, 0.92) 70%); cursor: pointer; overflow: hidden; }
.bw-rays { position: absolute; width: 160vmax; height: 160vmax; background: repeating-conic-gradient(from 0deg, rgba(0, 240, 255, 0.16) 0 8deg, transparent 8deg 20deg); animation: spin-rays 9s linear infinite; }
@keyframes spin-rays { to { transform: rotate(360deg); } }
.bw-ink { position: absolute; width: 90vmin; height: 90vmin; border-radius: 50%; background: radial-gradient(circle, rgba(26, 76, 255, 0.55), transparent 60%); animation: inkpulse 1.2s ease-in-out infinite alternate; }
@keyframes inkpulse { to { transform: scale(1.15); opacity: 0.7; } }
.bw-title { position: relative; font: 600 clamp(44px, 13vmin, 150px)/0.9 var(--head); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; -webkit-text-stroke: 2px #001; text-shadow: 0 0 24px var(--cyan), 6px 6px 0 var(--blue); animation: slam 520ms cubic-bezier(.2,1.8,.4,1) both; }
.bw-amount { position: relative; margin-top: 8px; font: 600 clamp(36px, 10vmin, 110px)/1 var(--head); color: var(--gold); text-shadow: 0 0 30px rgba(255, 200, 0, 0.7), 3px 3px 0 #000; white-space: nowrap; }
.bw-x { position: relative; font: 600 clamp(18px, 4vmin, 34px) var(--head); color: var(--cyan); letter-spacing: 0.1em; }
.bw-tap { position: absolute; bottom: 6%; font-size: 14px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }
@keyframes slam { from { transform: scale(3) rotate(-8deg); opacity: 0; } }
.bigwin.t2 .bw-title { text-shadow: 0 0 24px var(--magenta), 6px 6px 0 var(--magenta); }
.bigwin.t3 .bw-title, .bigwin.t4 .bw-title { color: var(--gold); text-shadow: 0 0 34px var(--gold), 6px 6px 0 #a35a00; }
.bigwin.t3 .bw-rays { background: repeating-conic-gradient(rgba(255, 200, 0, 0.2) 0 8deg, transparent 8deg 20deg); }
.bigwin.t4 { animation: invert 700ms steps(2) 1; }
.bigwin.t4 .bw-rays { background: repeating-conic-gradient(rgba(0, 240, 255, 0.3) 0 5deg, rgba(255, 0, 122, 0.18) 5deg 10deg, transparent 10deg 18deg); }
.bigwin.t5 { background: radial-gradient(circle, #ffffff 0%, #9ff 18%, rgba(26, 76, 255, 0.9) 45%, #050509 80%); }
.bigwin.t5 .bw-title { color: #fff; text-shadow: 0 0 40px #fff, 0 0 80px var(--cyan), 8px 8px 0 var(--magenta); }
@keyframes invert { 50% { filter: invert(1) hue-rotate(180deg); } }
.saver .bw-rays, .saver .bw-ink { animation: none; }

.feature-card { position: absolute; inset: 0; z-index: 16; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(3, 6, 18, 0.86); text-align: center; padding: 16px; }
.fc-kicker { font: 600 22px var(--head); letter-spacing: 0.3em; color: var(--cyan); text-transform: uppercase; }
.fc-title { font: 600 clamp(48px, 12vmin, 130px)/0.95 var(--head); text-transform: uppercase; color: #fff; text-shadow: 0 0 28px var(--cyan), 5px 5px 0 var(--blue); animation: slam 600ms cubic-bezier(.2,1.6,.4,1) both; }
.fc-sub { margin-top: 8px; font-size: 18px; font-weight: 700; color: #dfe8ff; max-width: 640px; }

.dialog { position: absolute; z-index: 30; }
.dialog[hidden] { display: none !important; }
.intro { inset: 0; display: flex; align-items: stretch; background: var(--ink); }
.intro-art { flex: 1 1 55%; background: #050509 url('./art/intro_keyart.webp') center / cover no-repeat; position: relative; }
.intro-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--ink)); }
.intro-body { flex: 1 1 45%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 32px; max-width: 560px; }
.intro-logo { font-size: clamp(54px, 9vw, 96px); }
.intro-load { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; max-width: 360px; }
.intro-load i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 300ms ease; }
.intro-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.intro-points li { font-size: 16px; line-height: 1.3; padding-left: 16px; border-left: 3px solid var(--cyan); color: #dfe8ff; }
.intro-points b { color: var(--cyan); }
.btn-primary { min-height: 52px; min-width: 160px; align-self: flex-start; border: 0; border-radius: 999px; padding: 0 40px; cursor: pointer; font: 600 28px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 26px var(--glow); transition: transform 140ms ease, filter 140ms ease; }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled { filter: grayscale(0.7) brightness(0.7); cursor: progress; }
.btn-ghost { min-height: 44px; border-radius: 10px; border: 1px solid var(--cyan); background: transparent; color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 14px; }

.sheet { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, 94%); max-height: 90%; display: flex; flex-direction: column; border-radius: 16px; background: rgba(8, 11, 26, 0.97); border: 2px solid rgba(0, 240, 255, 0.55); box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 30px rgba(0, 240, 255, 0.2); }
.sheet.small { width: min(440px, 94%); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px 20px; border-bottom: 1px solid rgba(0, 240, 255, 0.25); }
.sheet-head h2 { margin: 0; font: 600 30px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.x { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: transparent; font-size: 28px; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 14px 20px 18px; font-size: 15px; line-height: 1.45; color: #dfe8ff; user-select: text; }
.sheet-body h3 { font: 600 24px/1.1 var(--head); letter-spacing: 0.06em; color: var(--cyan); margin: 18px 0 6px; text-transform: uppercase; }
.sheet-body p { margin: 6px 0; }
.sheet-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-body td, .sheet-body th { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
.pt { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pt-i { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.pt-i img { width: 52px; height: 52px; object-fit: contain; }
.pt-i div { font-size: 14px; line-height: 1.3; }
.pt-i b { color: var(--gold); }
.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.lines-grid svg { width: 100%; height: auto; background: rgba(255,255,255,0.04); border-radius: 6px; }
.set-list { display: flex; flex-direction: column; gap: 6px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 4px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 16px; font-weight: 700; cursor: pointer; }
.set { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: left; color: var(--text); }
.sw { flex: 0 0 auto; width: 46px; height: 26px; border-radius: 99px; background: rgba(255,255,255,0.15); position: relative; transition: background-color 160ms ease; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.set[aria-checked='true'] .sw { background: var(--cyan); }
.set[aria-checked='true'] .sw::after { transform: translateX(20px); }
.set-note { font-size: 13px; color: var(--muted); }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.buy-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 2px solid rgba(0, 240, 255, 0.5); background: linear-gradient(170deg, rgba(26, 76, 255, 0.25), rgba(5, 5, 9, 0.9)); text-align: left; cursor: pointer; transition: transform 140ms ease, box-shadow 160ms ease; min-height: 180px; }
.buy-card:hover { transform: translateY(-3px); box-shadow: 0 0 24px var(--glow); }
.buy-card:active { transform: scale(0.97); }
.buy-card:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.buy-card.hot { border-color: var(--magenta); background: linear-gradient(170deg, rgba(255, 0, 122, 0.3), rgba(5, 5, 9, 0.92)); }
.buy-card.gold { border-color: var(--gold); background: linear-gradient(170deg, rgba(255, 200, 0, 0.25), rgba(5, 5, 9, 0.92)); }
.buy-card .bc-name { font: 600 28px/1 var(--head); text-transform: uppercase; color: #fff; }
.buy-card .bc-desc { font-size: 13px; color: #cdd7f5; flex: 1; line-height: 1.3; }
.buy-card .bc-cost { font: 600 26px/1 var(--head); color: var(--gold); }
.buy-card .bc-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.buy-card .bc-on { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: var(--cyan); color: #001; font-weight: 700; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips-k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chip { min-width: 60px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(0, 240, 255, 0.5); background: rgba(13, 19, 38, 0.8); font: 600 22px var(--head); cursor: pointer; }
.chip[aria-pressed='true'] { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; border-color: transparent; }

/* phones and short frames */
@media (max-width: 760px) {
  .side { display: none; }
  .ctl-buy { display: inline-flex; }
  .top { height: 42px; padding: 4px 8px 0; }
  .logo { font-size: 21px; }
  .pill { min-width: 72px; padding: 2px 8px; }
  .pill-v { font-size: 17px; }
  .controls { gap: 4px; padding: 4px 4px 6px; flex-wrap: wrap; }
  .ctl { --ctl: 44px; border-radius: 10px; }
  #fs-btn { display: none; }
  .bet-box { gap: 2px; padding: 0 2px; height: 44px; }
  .bet-val { min-width: 62px; }
  #bet-v { font-size: 18px; }
  hb-bet#spin { width: 60px; height: 60px; margin: -6px 2px 0; }
  .win-banner .wb-v { font-size: 28px; } .win-banner .wb-k { font-size: 16px; }
  .bonus-hud { top: -26px; gap: 8px; padding: 2px 10px; } .bonus-hud span { font-size: 16px; }
  .intro { flex-direction: column; }
  .intro-art { flex: 0 0 26%; }
  .intro-art::after { background: linear-gradient(180deg, transparent 50%, var(--ink)); }
  .intro-body { padding: 8px 16px 14px; gap: 8px; max-width: none; }
  .intro-logo { font-size: 46px; }
  .intro-points li { font-size: 13px; }
  .btn-primary { min-height: 46px; font-size: 24px; align-self: stretch; }
  .sheet-head h2 { font-size: 24px; }
  .sheet-body { font-size: 13px; padding: 10px 12px 14px; }
  .buy-card { min-height: 130px; } .buy-card .bc-name { font-size: 22px; }
}
@media (max-height: 520px) and (min-width: 761px) {
  .top { height: 46px; } .logo { font-size: 24px; }
  .controls { padding: 4px 10px 6px; }
  hb-bet#spin { width: 68px; height: 68px; margin: -10px 6px -4px; }
  .buy-cta { min-height: 70px; } .buy-cta-k { font-size: 24px; }
  .intro-points li { font-size: 14px; }
}
@media (max-height: 470px) and (max-width: 760px) {
  .intro-art { display: none; }
}
