/* Generic slot cabinet styles (theme colors come from CSS vars set by theme.json) */
#game { background: var(--slot-bg, #1a0638) center/cover no-repeat; }
#game .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); animation: bgDrift 30s ease-in-out infinite alternate; }
@keyframes bgDrift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
#game .vignette { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 45%, transparent 40%, rgba(5,0,20,.65) 100%); pointer-events: none; }
.slot-wrap { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.slot-head { position: relative; display: flex; align-items: center; justify-content: center; height: var(--head-h, 96px); margin-top: -6px; }
.slot-head .logo { height: 100%; max-width: 70%; margin-right: 24%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); animation: logoBob 3.4s ease-in-out infinite; }
.slot-head .mascot { position: absolute; right: 2px; bottom: -14px; height: 112%; transform-origin: 50% 100%; animation: mascotIdle 2.6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); z-index: 3; }
.slot-head .mascot.cheer { animation: mascotCheer .6s cubic-bezier(.2,1.6,.4,1) 3; }
.slot-head .mascot.slurp { animation: mascotSlurp .32s ease-in-out infinite; }
@keyframes mascotIdle { 0%,100% { transform: translateY(0) rotate(-2deg) scaleY(1); } 50% { transform: translateY(-5px) rotate(2deg) scaleY(1.02); } }
@keyframes mascotCheer { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.12) rotate(-6deg); } 70% { transform: translateY(0) scale(.96, 1.05); } }
@keyframes mascotSlurp { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08, .94); } }

.jackpots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 8px; margin-top: 2px; }
.jp { position: relative; border-radius: 12px; padding: 3px 4px 4px; text-align: center; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 3px 10px rgba(0,0,0,.35); }
.jp b { display: block; font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: 1px; line-height: 1.1; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.jp span { display: block; font-family: var(--display); font-size: 14px; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.jp.GRAND { grid-column: 1 / -1; padding: 4px 6px 5px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.jp.GRAND b { font-size: 16px; } .jp.GRAND span { font-size: 22px; }
.jp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); animation: shine 5s infinite; }
.jp.MINOR::after { animation-delay: .6s; } .jp.MAJOR::after { animation-delay: 1.2s; } .jp.MAXI::after { animation-delay: 1.8s; } .jp.GRAND::after { animation-delay: 2.4s; }
.jp.hit { animation: jpHit .35s ease-in-out 8; }
@keyframes jpHit { 50% { transform: scale(1.08); filter: brightness(1.6); } }

.frame-zone { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 6px; }
.frame { position: relative; padding: 7px; border-radius: 22px; background: var(--frame-grad, linear-gradient(180deg,#ffd93b,#ff3fa4 50%,#29e6ff)); box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 0 28px var(--frame-glow, rgba(255,63,164,.7)), 0 18px 40px rgba(0,0,0,.6); }
.frame::before { content: ""; position: absolute; inset: 3px; border-radius: 19px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); opacity: .45; pointer-events: none; }
.frame canvas { display: block; position: relative; border-radius: 15px; background: var(--reel-bg, linear-gradient(180deg,#2a0b5e,#140433)); box-shadow: inset 0 0 22px rgba(0,0,0,.7); }
.frame.bonus { --frame-grad: linear-gradient(180deg,#fff2a8,#ffc928 45%,#ff7a1f); --frame-glow: rgba(255,201,40,.85); animation: bonusPulse 1.2s ease-in-out infinite; }
@keyframes bonusPulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 46px rgba(255,201,40,1), 0 18px 40px rgba(0,0,0,.6); } }
.respins { position: absolute; top: -2px; left: 50%; transform: translate(-50%, -50%); z-index: 4; display: none; padding: 4px 14px; border-radius: 99px; font-family: var(--display); font-size: 16px; background: linear-gradient(180deg,#ff5fb8,#c40f6c); box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.4); white-space: nowrap; }
.respins.show { display: block; }
.respins i { font-style: normal; display: inline-block; min-width: 18px; color: var(--yellow); font-size: 20px; }
.respins.reset i { animation: pop .4s cubic-bezier(.2,1.8,.4,1); }
@keyframes pop { 0% { transform: scale(2.2); } 100% { transform: scale(1); } }

.winbar { height: 40px; margin: 0 auto; min-width: 58%; padding: 0 18px; border-radius: 99px; background: linear-gradient(180deg, rgba(20,2,50,.72), rgba(40,6,90,.72)); box-shadow: inset 0 0 0 1.5px rgba(255,217,59,.45); display: flex; align-items: center; justify-content: center; color: #ffe9fb; font-family: var(--display); font-size: 17px; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.winbar .amt { display: inline-block; color: var(--yellow); font-size: 26px; margin-left: 10px; text-shadow: 0 0 14px rgba(255,217,59,.8), 0 2px 0 #8a3d00; }
.winbar.pulse .amt { animation: pop .45s cubic-bezier(.2,1.8,.4,1); }
.winbar .msg { opacity: .9; font-size: 15px; }

.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 4px 12px calc(12px + var(--safe-bot)); }
.betbox { display: flex; align-items: center; gap: 6px; }
.betbox .val { flex: 1; text-align: center; border-radius: 14px; padding: 4px 2px; background: rgba(10,0,30,.6); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.betbox .val small { display: block; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; opacity: .7; }
.betbox .val b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900; background: linear-gradient(180deg, #ff74c0, #d5127a); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.4); }
.round:disabled { filter: grayscale(1) brightness(.6); }
.spin-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #b8ff7a 0%, #3ee05c 45%, #0f9a36 100%); box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(255,217,59,.9), 0 0 30px rgba(120,255,120,.75), 0 10px 20px rgba(0,0,0,.5), inset 0 -6px 0 rgba(0,0,0,.2); display: grid; place-items: center; animation: spinIdle 1.8s ease-in-out infinite; }
.spin-btn svg { width: 50px; height: 50px; filter: drop-shadow(0 2px 0 rgba(0,40,10,.5)); transition: transform .4s; }
.spin-btn.spinning svg { animation: rot .5s linear infinite; }
.spin-btn.stop { background: radial-gradient(circle at 50% 35%, #ff9ad0 0%, #ff3fa4 45%, #b0005a 100%); box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(255,217,59,.9), 0 0 30px rgba(255,63,164,.8), 0 10px 20px rgba(0,0,0,.5); }
.spin-btn:active { transform: scale(.93); }
.spin-btn .auto-n { position: absolute; bottom: 12px; font-family: var(--display); font-size: 14px; }
@keyframes spinIdle { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(255,217,59,.9), 0 0 46px rgba(120,255,120,1), 0 10px 20px rgba(0,0,0,.5), inset 0 -6px 0 rgba(0,0,0,.2); } }
@keyframes rot { to { transform: rotate(360deg); } }
.side { display: flex; gap: 8px; justify-content: flex-end; }
.toggle { width: 52px; height: 52px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; letter-spacing: .5px; background: rgba(10,0,30,.6); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.toggle span { font-size: 20px; line-height: 1.1; }
.toggle.on { background: linear-gradient(180deg, #ffe46b, #ff9a1f); color: #5a1c00; box-shadow: 0 0 16px rgba(255,201,40,.8); }

/* overlays */
.overlay { position: absolute; inset: 0; z-index: 30; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: auto; }
.overlay.show { display: flex; }
.bigwin { background: radial-gradient(70% 50% at 50% 50%, rgba(80,10,140,.55), rgba(5,0,20,.85)); }
.bigwin .rays { position: absolute; width: 180vmax; height: 180vmax; left: 50%; top: 50%; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(from 0deg, rgba(255,217,59,.18) 0 10deg, transparent 10deg 20deg); animation: rot 14s linear infinite; mask-image: radial-gradient(circle, #000 0%, transparent 55%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%); }
.bigwin .title { position: relative; font-family: var(--display); font-size: 64px; line-height: .95; background: linear-gradient(180deg, #fff 0%, #fff6a0 30%, #ffc928 60%, #ff7a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #b0005a) drop-shadow(0 0 24px rgba(255,63,164,.9)); animation: titleIn .6s cubic-bezier(.2,1.7,.4,1); }
.bigwin .title.tier { animation: titleIn .6s cubic-bezier(.2,1.7,.4,1); }
.bigwin .count { position: relative; margin-top: 14px; font-family: var(--display); font-size: 46px; color: #fff; text-shadow: 0 0 20px rgba(255,217,59,.95), 0 4px 0 #8a3d00; }
.bigwin .tap { position: relative; margin-top: 26px; font-size: 13px; opacity: .7; }
@keyframes titleIn { 0% { transform: scale(.2) rotate(-10deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.banner { background: rgba(5,0,20,.55); }
.banner .card2 { position: relative; padding: 22px 26px; border-radius: 28px; background: linear-gradient(180deg, #ff5fb8, #8a3dff); box-shadow: 0 0 0 4px #fff, 0 0 0 9px rgba(255,217,59,.9), 0 0 60px rgba(255,63,164,.9); animation: titleIn .55s cubic-bezier(.2,1.7,.4,1); }
.banner h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: #fff; text-shadow: 0 4px 0 #6a0a8a, 0 0 20px rgba(255,255,255,.6); }
.banner p { margin: 8px 0 0; font-family: var(--display); font-size: 20px; color: var(--yellow); text-shadow: 0 2px 0 #6a0a8a; }
.banner .jpamt { font-size: 40px; margin-top: 6px; color: #fff; }
.paytable { background: rgba(8,0,24,.92); justify-content: flex-start; overflow-y: auto; padding: calc(16px + var(--safe-top)) 16px 30px; }
.paytable h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 6px 0 10px; color: var(--yellow); }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 420px; }
.pt-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.07); text-align: left; font-size: 12px; font-weight: 800; }
.pt-item img { width: 46px; height: 46px; }
.pt-text { max-width: 420px; font-size: 13px; line-height: 1.5; text-align: left; margin-top: 12px; }
.pt-close { position: sticky; top: 0; align-self: flex-end; }
#fx { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
