/* Shared slot interactions, history and compact cabinets. */
.cab.mm-scene #lsAutoBtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;border-radius:8px;padding:8px 12px;white-space:nowrap;font:800 clamp(12px,1.05cqw,20px)/1 system-ui;appearance:none}
.cab.mm-scene #lsAutoBtn .slot-auto-icon{display:block;flex:0 0 auto;width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.cab.mm-scene #lsAutoBtn span{pointer-events:none}
.cab.mm-scene:not(.snow-scene):not(.savanna-scene) #lsAutoBtn{background:linear-gradient(#21170e,#090705);color:#ffe5a2;border:1px solid #cba45c;border-radius:8px;box-shadow:none;outline:none}
.cab.mm-scene:not(.snow-scene):not(.savanna-scene) #lsAutoBtn:hover{background:linear-gradient(#352718,#120d07);border-color:#ffe3a0;box-shadow:none}
.cab.mm-scene:not(.snow-scene):not(.savanna-scene) #lsAutoBtn[aria-pressed=true]{background:linear-gradient(#5b3c13,#241706);color:#fff0bd;border-color:#ffe3a0;box-shadow:none}
.cab.mm-scene.archive-scene #lsAutoBtn{background:linear-gradient(#343434,#121212);border-color:#aaa69f;color:#eee9dd}
.cab.mm-scene.archive-scene #lsAutoBtn:is(:hover,[aria-pressed=true]){background:linear-gradient(#55534e,#252421);border-color:#eee9dd}
.cab.mm-scene #lsAutoBtn:focus-visible{outline:2px solid currentColor;outline-offset:-5px}
/* Text and controls size themselves inside their own cabinet, including old themes. */
.cab-side{min-width:0}
.cab .cab-logo,.sl .sl-logo{flex:0 0 auto;box-sizing:border-box;max-width:100%;min-height:min-content;overflow:visible;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;line-height:1.3;padding:8px 6px 10px;background:none;-webkit-background-clip:border-box;background-clip:border-box;color:#ffd35b;-webkit-text-fill-color:currentColor;filter:none;text-shadow:0 2px #6b3200,0 4px 8px #0009}
.cab .cab-side .cab-logo{width:100%;font-size:clamp(15px,1.45vw,24px)}
.game.oc .otitle{box-sizing:border-box;max-width:100%;padding:4px 8px 8px;line-height:1.2;overflow-wrap:anywhere;text-wrap:balance}
.sl-spin,.snow-spin-key{padding:0;box-sizing:border-box;place-content:center;place-items:center;grid-template:1fr/1fr;flex-shrink:0}
.sl-spin svg,.snow-spin-key svg{display:block;grid-area:1/1;align-self:center;justify-self:center;margin:0}
.snow-spin-key span:not(:empty){grid-area:1/1;font:800 clamp(11px,1.1cqw,19px)/1 system-ui}
.sl-win{container-type:inline-size}
#tWinBox .t{box-sizing:border-box;max-width:94%;text-align:center;text-wrap:balance;line-height:1.2}
#tWinBox .v{box-sizing:border-box;max-width:94%;white-space:nowrap;font-size:clamp(18px,8cqw,80px);line-height:1.15;font-variant-numeric:tabular-nums}
body[data-skin=chain] .chm-side .chbar{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"balance win" "bet bet" "spin opts";gap:14px;padding:16px;align-items:center}
body[data-skin=chain] .chm-side .chbar>.cb-cell:first-child{grid-area:balance}
body[data-skin=chain] .chm-side .chbar>.cb-win{grid-area:win}
body[data-skin=chain] .chm-side .chbar>.cb-bet{grid-area:bet}
body[data-skin=chain] .chm-side .chbar>.sl-spin{grid-area:spin;justify-self:center;align-self:center;width:52px;height:52px;margin:8px}
body[data-skin=chain] .chm-side .chbar>.cb-opts{grid-area:opts;min-width:0;flex-direction:row;justify-content:center}
body[data-skin=chain] .chm-side .chbar .sl-spin svg{width:28px;height:28px}
.mm-scene:not(.snow-scene) .mm-spin::before{inset:auto;left:50%;top:50%;width:78%;height:auto;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%}
.mm-scene:not(.snow-scene) .mm-spin span{font-size:clamp(12px,2.9cqw,60px);line-height:1;max-width:82%}
.mm-scene:not(.snow-scene) .mm-spin.mm-busy,.mm-scene:not(.snow-scene) #lsAutoBtn[aria-pressed=true]{box-shadow:none;background:transparent}
.mm-scene:not(.snow-scene) #lsAutoBtn{border-radius:16px}
.mm-scene.archive-scene .mm-spin::before{inset:12% 11%;width:auto;height:auto;aspect-ratio:auto;transform:none;border-radius:14px;background:linear-gradient(155deg,#d8d5cd,#aaa8a0 38%,#d0cdc4 72%,#88867e)}
.mm-scene.archive-scene .mm-spin span{font-size:clamp(12px,3cqw,60px)}
.snow-key#tTurbo .snow-turbo-icon{display:block;width:clamp(20px,1.65cqw,32px);height:clamp(20px,1.65cqw,32px);fill:currentColor;stroke:none;justify-self:center;align-self:center;pointer-events:none}
.splash{background:radial-gradient(ellipse at 50% 44%,#3d1748 0,#170d30 32%,#07051a 70%);transition:opacity .45s ease,visibility .45s ease}
.splash .sp-mark{width:120px;height:120px;transform-origin:50% 50%;animation:splash-turn 2.2s linear infinite;will-change:transform;backface-visibility:hidden;overflow:visible;opacity:1}
.splash .sp-word{animation:splash-word .65s .15s ease-out both}.splash .sp-bar i{animation:spbar 1s ease-out forwards}
@keyframes splash-turn{from{transform:rotate(0deg) translateZ(0)}to{transform:rotate(360deg) translateZ(0)}}
.splash .sp-bar i{width:100%;transform-origin:left center;animation:splash-progress 1s ease-out both;will-change:transform}
@keyframes splash-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes splash-arrive{from{transform:translateY(9px) scale(.9) rotate(-7deg);opacity:0}to{transform:translateY(0) scale(1) rotate(0);opacity:1}}
@keyframes splash-float{from{transform:translateY(0) rotate(0)}to{transform:translateY(-6px) rotate(4deg)}}
@keyframes splash-word{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.game.oc{aspect-ratio:3/4}
.candy-scene::before{background-image:url('slots/candy-mutants/stage.png')}
.candy-scene .mm-reels,.candy-scene>.sl-win{inset:18.2% 16.7% 23.6% 18%}
.candy-scene .snow-bonus-panel{aspect-ratio:1024/1536}
.candy-scene .snow-panel-art{left:0;width:100%}
.candy-scene .snow-panel-super{left:2%;top:37%;width:96%;height:17%}
.candy-scene .snow-panel-super span{left:23%;top:45%;width:54%;height:40%}
.candy-scene .snow-panel-double{left:2%;top:54%;width:96%;height:18%}
.candy-scene .snow-panel-double .dblch-sw{left:23%;top:54%;width:54%;height:36%}
.candy-scene .snow-panel-token{left:2%;top:73%;width:96%;height:19%}
.candy-scene .snow-panel-token span{left:23%;top:47%;width:54%;height:38%}
.candy-scene .lc>.bl-sym{inset:0}
.candy-scene .ls-col,.candy-scene .ls-col:nth-child(2n){background:radial-gradient(ellipse at 50% 25%,#350c30,#100315 80%);box-shadow:inset 1px 0 #cb4b93,inset -1px 0 #572142}
.candy-scene .snow-toolbar{background:linear-gradient(#3c123c,#1d0826 45%,#100316);border-color:#b6ff32}
.candy-scene .snow-key,.candy-scene .snow-extra-bonuses .buy{background:linear-gradient(#69204f,#24072e);border-color:#f251bd}
.candy-scene .snow-spin-key{background:radial-gradient(circle at 35% 25%,#f74da9,#7b1962 58%,#2b0832);border-color:#b6ff32}
.candy-scene .mm-dialog{background:radial-gradient(ellipse at top,#57194c,#17051e 75%);border-color:#aeff37;color:#fff0f8}
.ls-lines polyline{stroke-dasharray:800;stroke-dashoffset:800;animation:slot-line-draw .65s ease forwards;filter:drop-shadow(0 0 3px currentColor)}
@keyframes slot-line-draw{to{stroke-dashoffset:0}}
.lc.land .bl-sym{animation:slot-land .25s ease-out}
@keyframes slot-land{0%{transform:translateY(-7%)}65%{transform:translateY(3%)}100%{transform:translateY(0)}}
.slot-history{width:min(1000px,calc(100vw - 24px));max-height:85dvh;box-sizing:border-box;padding:20px;background:#100b24;color:#eee8ff;border:1px solid #6b4ca4;border-radius:18px}
.slot-history::backdrop{background:#03020acc}
.history-heading,.history-filters{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.history-heading h2{margin:0;font-size:24px}.history-filters{justify-content:flex-start;margin:16px 0;font-size:13px;color:#bcb0d5}
.history-scroll{max-height:55dvh;overflow:auto}.slot-history table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.slot-history th,.slot-history td{padding:12px 9px;text-align:left;border-bottom:1px solid #382858;white-space:nowrap}
.slot-history th{background:#211637;position:sticky;top:0}.slot-history small{display:block;color:#a99cc0;margin-top:4px}
.slot-history .positive{color:#3de7ac}.history-note{font-size:13px;color:#bcb0d5;line-height:1.5}
.snow-scene>.sl-win.bonus-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqw;padding:1.3cqw;box-sizing:border-box;background:radial-gradient(ellipse at center,#214128,#06140b);overflow:hidden}
.bonus-title{position:relative;z-index:2;font:800 clamp(13px,1.8cqw,34px)/1.15 system-ui;color:#ffe29a;text-align:center}
.bonus-choices{display:flex;align-items:center;justify-content:center;gap:1.5cqw;width:100%;position:relative;z-index:2}
.bonus-choices button{flex:1;min-width:0;max-width:28%;position:relative;display:grid;justify-items:center;gap:.5cqw;padding:1cqw .5cqw;min-height:44px;background:linear-gradient(#224e36,#08190f);border:1px solid #d0ac50;border-radius:1cqw;color:#ffe8aa;font:700 clamp(12px,1.2cqw,22px)/1.2 system-ui;cursor:pointer}
.bonus-choices button:focus-visible{outline:3px solid #b5ffce;outline-offset:3px}.bonus-choices button:disabled:not(.chosen){opacity:.35}
.bonus-object{display:block;width:100%;aspect-ratio:1;max-height:12cqw;position:relative}.bonus-object .snow-symbol{height:100%;width:100%}
.bonus-result{position:relative;z-index:2;font:800 clamp(13px,1.6cqw,30px)/1.3 system-ui;color:#ffe49b;text-align:center;min-height:1.4em}
.bonus-help{font:12px/1.2 system-ui;color:#c3d3c7;position:relative;z-index:2;min-height:1.2em}
.bonus-treasure.revealed .chosen{box-shadow:0 0 2cqw #a7ff57;background:radial-gradient(#76a93c,#183824)}
.bonus-treasure.revealed .chosen .bonus-object{animation:treasure-reveal .7s ease-out both}
@keyframes treasure-reveal{from{transform:translateY(18%) scale(.3);opacity:0}to{transform:none;opacity:1}}
.snow-scene>.sl-win.bonus-dragon{background:radial-gradient(#77290f,#190503)}
.bonus-dragon .bonus-choices button{background:linear-gradient(#5c2515,#1c0805)}
.dragon-awakening{width:17cqw;height:13cqw;filter:grayscale(1) brightness(.45);transition:filter .5s;position:relative;z-index:1}
.bonus-dragon .bonus-object{max-height:5cqw}.bonus-dragon.revealed .dragon-awakening{filter:drop-shadow(0 0 1cqw #ffae27);animation:dragon-awake 1s ease-out both}
@keyframes dragon-awake{0%{transform:scale(.7) rotate(-8deg)}60%{transform:scale(1.15) rotate(3deg)}100%{transform:scale(1)}}
.snow-scene>.sl-win.bonus-penalty{background:linear-gradient(#15354d 0 25%,#21502d 26%,#092913)}
.penalty-pitch{position:relative;width:82%;height:15cqw;flex:none;background:repeating-linear-gradient(0deg,#1c6032 0 2cqw,#245d33 2cqw 4cqw);border-bottom:1px solid #bed3b9;perspective:500px}
.penalty-goal{position:absolute;left:18%;right:18%;top:0;height:70%;border:solid #fff;border-width:.35cqw .35cqw 0;background:repeating-linear-gradient(0deg,transparent 0 1cqw,#ffffff33 1cqw 1.1cqw),repeating-linear-gradient(90deg,transparent 0 1cqw,#ffffff33 1cqw 1.1cqw)}
.penalty-keeper{position:absolute;left:calc(50% - .8cqw);bottom:0;width:1.6cqw;height:4cqw;background:#ffd42a;border-radius:1cqw 1cqw 0 0;transition:transform .55s .12s ease-out}
.penalty-keeper::before{content:'';position:absolute;left:.2cqw;top:-1cqw;width:1.2cqw;height:1.2cqw;background:#f2c1a0;border-radius:50%}
.penalty-keeper::after{content:'';position:absolute;left:-1.3cqw;top:.7cqw;width:4.2cqw;height:.7cqw;background:#ffd42a;border-radius:1cqw}
.penalty-ball{position:absolute;left:calc(50% - 1.5cqw);bottom:0;width:3cqw;height:3cqw;transition:transform .7s cubic-bezier(.2,.7,.5,1);z-index:3}
.penalty-ball svg{width:100%;height:100%}.bonus-penalty.revealed .penalty-ball{transform:translate(var(--shot-x),-10cqw) scale(.55) rotate(270deg)}
.bonus-penalty.revealed .penalty-keeper{transform:translateX(var(--keeper-x)) rotate(35deg)}
.bonus-penalty .bonus-choices button{font-size:clamp(18px,1.8cqw,32px);padding:.4cqw}.bonus-penalty .choice-label{font-size:clamp(12px,.8cqw,16px)}
.snow-scene>.sl-win.bonus-candy{background:radial-gradient(#6a155e,#13051b)}.bonus-candy .bonus-choices button{background:linear-gradient(#58304b,#1d0725);border-color:#abff2e}
.bonus-candy.revealed .chosen{box-shadow:0 0 2cqw #b2ff29}.bonus-candy.revealed .chosen .bonus-object{animation:treasure-reveal .8s ease-out}
@media(max-width:700px){
  #gpPlay.fs:has(.snow-scene){display:block;overflow-y:auto;overflow-x:hidden;padding:0}
  #gpPlay.fs:has(.snow-scene) #gpStage{display:block;height:auto;min-height:0;container-type:inline-size}
  #gpPlay.fs:has(.snow-scene) #gpInner{height:auto;min-height:0}
  #gpPlay.fs:has(.snow-scene) #gameArt{min-height:0!important;overflow:visible!important}
  .cab.mm-scene.snow-scene,.gp-play.fs .cab.mm-scene.snow-scene:not(.cab-bighero){display:flex;flex-direction:column;width:100%;min-height:0;height:auto;aspect-ratio:auto;overflow:hidden;padding-top:56px;border-radius:14px;container-type:inline-size}
  .cab.mm-scene.snow-scene::before{inset:0;background-size:auto 380px;background-position:center top;opacity:.55}
  .cab.mm-scene.snow-scene .mm-reels{position:relative;inset:auto;margin:0 8px;width:calc(100% - 16px);height:auto;aspect-ratio:5/3;flex:none;order:1;border:1px solid #c99e58;border-radius:10px;overflow:hidden;box-sizing:border-box}
  .cab.mm-scene.snow-scene>.sl-win{inset:56px 8px auto;height:calc((100cqw - 16px)*.6);width:auto;box-sizing:border-box;border-radius:10px;z-index:5}
  .cab.mm-scene.snow-scene .snow-toolbar{position:relative;inset:auto;order:2;display:grid;grid-template-rows:minmax(20px,auto) auto;width:100%;max-width:none;align-self:stretch;flex:none;padding:10px;gap:8px;border-top:0;border-radius:0 0 14px 14px}
  .snow-toolbar-main{width:100%;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px 4px}
  .snow-toolbar-main>.snow-tools{display:contents}
  .snow-toolbar-main>.snow-money:nth-child(2){grid-row:1;grid-column:1/7;justify-items:start;padding:0 2px}
  .snow-toolbar-main>.snow-stake{grid-row:2;grid-column:1/10;justify-content:space-between;padding-right:8px;gap:4px}
  .snow-toolbar-main>.snow-spin-key{grid-row:2;grid-column:10/13;align-self:center}
  .snow-toolbar-main>.snow-money:nth-child(5){grid-row:1;grid-column:7/13;justify-items:end;padding:0 2px}
  .snow-toolbar-main>.snow-tools .snow-key{grid-row:3;grid-column:span 2;min-width:0;width:100%;font-size:18px;padding:4px}
  .snow-toolbar-main>.snow-tools #lsAutoBtn,.snow-toolbar-main>.snow-tools #mmBonus{min-width:0;font-size:10px;letter-spacing:0}
  .snow-key,.snow-stake .snow-key{min-width:44px;height:44px;padding:8px;font-size:14px;border-radius:10px}
  .snow-tools{gap:8px}.snow-tools .snow-key:first-child,.snow-key#tTurbo,.snow-stake .snow-key{font-size:22px}
  .snow-key#lsAutoBtn,.snow-key#mmBonus{font-size:13px;min-width:78px}
  .snow-spin-key{width:64px;height:64px;border-radius:50%}.snow-money{gap:5px}.snow-money small{font-size:10px}.snow-money b{font-size:clamp(12px,3.7cqw,20px)}
  .snow-stake .snow-money b{font-size:clamp(15px,5cqw,20px)}
  .cab.mm-scene.snow-scene .mm-status{font-size:12px;gap:8px;min-width:0;justify-content:center}.snow-scene .mm-status .sl-msg{white-space:normal;text-align:center}
  .cab.mm-scene.snow-scene .snow-side{display:none;position:relative;inset:auto;order:3;width:100%;padding:10px 0;background:transparent;z-index:2}
  .cab.mm-scene.snow-scene.bonuses-open .snow-side{display:flex}
  .snow-bonus-panel{width:240px;max-width:90%;aspect-ratio:740/1536}.dynasty-scene .snow-bonus-panel{aspect-ratio:850/1536}.candy-scene .snow-bonus-panel{aspect-ratio:1024/1536}
  .snow-bonus-panel button span,.snow-panel-double .dblch-sw{font-size:14px!important}.snow-bonus-panel button .dblch-sw::before{width:7px;height:7px}
  .snow-extra-bonuses{width:100%;max-width:320px;gap:8px;padding:0 8px}.snow-extra-bonuses .buy{font-size:13px;padding:10px 5px;min-height:48px;border-radius:8px}.snow-extra-bonuses .buy span{font-size:13px}
  .cab.mm-scene.snow-scene .ice-evolution{display:flex;position:relative;inset:auto;order:3;flex-direction:row;flex-wrap:wrap;width:calc(100% - 16px);margin:8px;height:auto;min-height:64px;padding:8px;gap:6px;border-radius:10px}
  .ice-evolution h3{font-size:11px}.ice-evolution .ice-step{width:42px;height:auto;gap:3px}.ice-evolution .ice-step .snow-symbol{width:32px;height:32px}.ice-evolution .ice-step span,.ice-evolution b,.ice-evolution small{font-size:10px}.ice-evolution .ice-arrow{font-size:14px}.ice-evolution progress{height:5px;width:70px}
  .snow-scene .sl-win.win-hd{padding:6px 8px 18px;gap:4px}.snow-scene .sl-win.win-hd .mm-win-icon{width:24cqw;height:24cqw;max-height:43%;min-height:0}.snow-scene .sl-win.win-hd .t{font-size:14px}.snow-scene .sl-win.win-hd .v{font-size:24px}
  .snow-scene>.sl-win.bonus-stage{gap:5px;padding:8px}.bonus-title{font-size:14px}.bonus-result{font-size:13px}.bonus-help{font-size:10px}
  .bonus-choices{gap:8px}.bonus-choices button{padding:7px 3px;border-radius:8px;max-width:31%;min-height:44px;font-size:12px}.bonus-object{max-height:20cqw}
  .penalty-pitch{height:19cqw}.penalty-goal{height:70%;border-width:2px 2px 0}.penalty-keeper{width:8px;height:18px;left:calc(50% - 4px)}.penalty-keeper::before{width:7px;height:7px;left:1px;top:-6px}.penalty-keeper::after{width:24px;height:4px;left:-8px;top:4px}.penalty-ball{width:18px;height:18px;left:calc(50% - 9px)}
  .dragon-awakening{width:24cqw;height:16cqw}.bonus-dragon .bonus-object{max-height:7cqw}
  .slot-history{padding:12px}.history-heading h2{font-size:20px}.slot-history .btn{min-height:44px}
}
@media(max-width:359px){
  .snow-toolbar-main>.snow-tools .snow-key{grid-column:span 4}
  .snow-toolbar-main>.snow-tools:last-child .snow-key{grid-row:4}
}
@media(prefers-reduced-motion:reduce){
  .splash .sp-word,.splash .sp-bar i{animation:none;will-change:auto}.splash .sp-bar i{width:100%}.splash .sp-mark{animation:splash-turn 4s linear infinite}
  .ls-lines polyline{animation:none;stroke-dashoffset:0}.lc.land .bl-sym,.dragon-awakening,.bonus-object{animation:none!important}.penalty-ball,.penalty-keeper{transition:none}
}
