/* Free Spins Zone - premium 3D slots */
body.slot-page.s3d-page { background: var(--g-bg); }
.s3d-page .frame { padding: 3px; background: linear-gradient(180deg, #FFF3C4, #E3A93A 35%, #8A560E 70%, #FFE39A); box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 40px rgba(255,190,70,.25); }
.s3d-page .stage-title { font-weight: 900; letter-spacing: .06em; filter: drop-shadow(0 3px 10px rgba(0,0,0,.7)); }
.s3d { position: relative; height: 100%; border-radius: 19px; overflow: hidden; background: #07040E; }
.s3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s3d-float { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); pointer-events: none; font: 900 clamp(30px, 7vw, 66px)/1 "Cinzel", serif; background: linear-gradient(180deg, #FFFDF0, #FFD860 55%, #E2901A); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 14px rgba(0,0,0,.85)); opacity: 0; white-space: nowrap; z-index: 3; }
.s3d-float.on { animation: s3dFloat 1.3s ease-out; }
@keyframes s3dFloat { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.s3d-buy, .s3d-badge { position: absolute; z-index: 3; border-radius: 14px; font-family: "Cinzel", serif; text-align: center; }
.s3d-buy { left: 10px; bottom: 10px; border: 0; padding: 7px 14px; cursor: pointer; color: #2A1400; font-weight: 900; font-size: 13px; line-height: 1.1; background: linear-gradient(160deg, #FFF3C4, #F2C14E 45%, #C07A12); box-shadow: 0 6px 18px rgba(0,0,0,.55), inset 0 1px 0 #fff; }
.s3d-buy small { display: block; font: 800 10px "Manrope", sans-serif; opacity: .8; }
.s3d-buy:disabled { opacity: .4; cursor: not-allowed; }
.s3d-badge { right: 10px; bottom: 10px; padding: 6px 14px; color: #fff; background: rgba(20,10,4,.82); box-shadow: inset 0 0 0 1.5px #FFD45C, 0 0 22px rgba(255,170,40,.55); display: none; min-width: 74px; }
.s3d-badge.on { display: block; }
.s3d-badge.at-top { top: 10px; bottom: auto; }
.s3d-badge.at-left { left: 10px; right: auto; }
.s3d-badge small { display: block; font: 800 10px "Manrope", sans-serif; color: #FFE9B0; letter-spacing: .08em; }
.s3d-badge b { font-size: 22px; color: #FFD860; }
.s3d-badge.bump { animation: s3dBump .6s; }
@keyframes s3dBump { 40% { transform: scale(1.3); } }
.s3d-ladder { position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.s3d-ladder span { font: 900 14px "Cinzel", serif; color: #C9B48A; background: rgba(15,8,2,.78); padding: 4px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,212,92,.35); transition: all .25s; }
.s3d-ladder span.on { color: #2A1400; background: linear-gradient(160deg, #FFF3C4, #F2C14E 45%, #C07A12); box-shadow: 0 0 18px rgba(255,200,80,.8); transform: scale(1.15); }
.s3d-jps { position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: nowrap; }
.s3d-jps div { min-width: 70px; text-align: center; padding: 3px 8px; border-radius: 10px; background: rgba(10,4,2,.8); box-shadow: inset 0 0 0 1.5px var(--jc, #FFD45C); }
.s3d-jps small { display: block; font: 900 9px "Manrope", sans-serif; letter-spacing: .12em; color: var(--jc, #FFD45C); }
.s3d-jps b { font: 900 13px "Cinzel", serif; color: #fff; }
.s3d-err, .s3d-load { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #fff; font: 700 15px "Manrope", sans-serif; }
.s3d-load { place-content: center; gap: 12px; color: #FFE9B0; }
.s3d-load i { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255,212,92,.25); border-top-color: #FFD45C; animation: rot .8s linear infinite; }
.pt-item .s img { width: 56px; height: 56px; object-fit: contain; }

/* jackpot pick game (cards / gongs) */
.jpp, .jpw { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: radial-gradient(circle at 50% 40%, rgba(40,16,4,.82), rgba(4,2,0,.94)); opacity: 0; transition: opacity .35s; }
.jpp.on, .jpw.on { opacity: 1; }
.jpp-title, .jpw-title { font: 900 clamp(22px, 4.4vw, 38px)/1 "Cinzel", serif; background: linear-gradient(180deg, #FFFDF0, #FFD860 55%, #E2901A); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 10px rgba(0,0,0,.8)); text-align: center; }
.jpp-sub { font: 700 13px "Manrope", sans-serif; color: #FFE9B0; opacity: .85; }
.jpp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(5px, 1.2vw, 10px); width: min(92%, 620px); perspective: 900px; }
.jpp-tile { position: relative; aspect-ratio: 0.72; border: 0; padding: 0; background: none; cursor: pointer; }
.jpp.gongs .jpp-tile { aspect-ratio: 1; }
.jpp-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,.7,.2,1.2); }
.jpp-tile:hover .jpp-in { transform: translateY(-4px) rotateX(8deg); }
.jpp-tile.open .jpp-in { transform: rotateY(180deg); }
.jpp-back, .jpp-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; border-radius: 10px; }
.jpp-back { background: linear-gradient(145deg, #FFF3C4, #E3A93A 40%, #8A560E 75%, #FFE39A); box-shadow: 0 8px 18px rgba(0,0,0,.6), inset 0 0 0 3px rgba(90,40,0,.55); font: 900 clamp(16px, 3.4vw, 30px) "Cinzel", serif; color: #6A1238; }
.jpp.gongs .jpp-back, .jpp.gongs .jpp-face { border-radius: 50%; }
.jpp-face { transform: rotateY(180deg); background: radial-gradient(circle at 40% 30%, #FFFDF4, #EDE2C8); box-shadow: 0 8px 18px rgba(0,0,0,.6), inset 0 0 0 3px #C9A24A; font: 900 clamp(22px, 5vw, 44px)/1 "Cinzel", serif; }
.jpp.gongs .jpp-face { background: radial-gradient(circle at 40% 30%, #FFF3C4, #C9921E 60%, #6A3A04); }
.jpp-face small { display: block; font: 900 clamp(8px, 1.5vw, 12px) "Manrope", sans-serif; letter-spacing: .08em; margin-top: 4px; }
.jpp-tile.win .jpp-face { box-shadow: 0 0 0 3px #FFD45C, 0 0 30px #FFD45C, inset 0 0 0 3px #C9A24A; animation: jppWin .7s ease-in-out infinite alternate; }
.jpp-tile.dim { opacity: .38; }
@keyframes jppWin { to { filter: brightness(1.25); } }
.jpp-tally { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.jpp-tally span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(255,212,92,.35); font: 800 12px "Manrope", sans-serif; color: #C9B48A; }
.jpp-tally span.on { color: #FFE9B0; box-shadow: inset 0 0 0 1.5px #FFD45C; }
.jpp-tally b { font-weight: 900; }

/* triple-ring jackpot wheel */
.jpw-wrap { position: relative; height: min(64%, 420px); width: auto; max-width: 92%; aspect-ratio: 1; }
.jpw-ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)) brightness(.62) saturate(.7); transition: filter .3s; }
.jpw-ring.live, .jpw-ring.hit { filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)) brightness(1.05); }
.jpw-ptr { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 36px solid #FFD45C; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.7)); }
.jpw-hub { position: absolute; left: 50%; top: 50%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6D0, #F6C64E 45%, #8A560E); box-shadow: 0 6px 18px rgba(0,0,0,.6); display: grid; place-items: center; font: 900 clamp(9px, 1.8vw, 14px)/1.1 "Cinzel", serif; color: #3A1A00; text-align: center; z-index: 2; }
.jpw-msg { min-height: 26px; font: 900 clamp(16px, 2.6vw, 22px) "Cinzel", serif; color: #FFE9B0; text-shadow: 0 2px 8px #000; opacity: 0; transition: opacity .3s; }
.jpw-msg.on { opacity: 1; }
@media (max-width: 720px) {
  .s3d-buy { font-size: 11px; padding: 6px 10px; }
  .s3d-badge b { font-size: 18px; }
  .s3d-ladder span { font-size: 11px; padding: 3px 7px; }
  .s3d-jps div { min-width: 52px; padding: 2px 5px; }
  .s3d-jps b { font-size: 11px; }
}
