/* OCTOPOTS - the house cabinet (design 1) in deep water and brass. Every utility control is a dark glass disc with a
   thin brass rim and an SVG glyph; SPIN (the porthole) and BUY (the treasure chest) are painted. Colours are tokens
   on :root; positions come from layout.js (stage px). */
@font-face{font-family:"Fredoka";src:url("assets/fonts/fredoka-700.woff2?v=8adf2df55f") format("woff2");font-weight:700;font-display:block}
@font-face{font-family:"LuckiestGuy";src:url("assets/fonts/LuckiestGuy.ttf?v=0bcd76d964") format("truetype");font-weight:400;font-display:block}

:root{
  --ink:#04202c; --deep:#02141c; --glass:rgba(4,30,42,.88); --glass2:rgba(2,18,26,.94);
  --brass:#e2a93e; --brass2:#8a5714; --gold:#ffd45a; --cream:#fff4d6; --cyan:#7fe7ff;
  --coral:#ff5a4a; --violet:#c46bff; --blue:#4aa8ff; --mute:#9cc3cc;
  --ui:"Fredoka","Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;
  --title:"LuckiestGuy","Fredoka","Arial Black",system-ui,sans-serif;
  --lbl:22px; --minfs:12px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--ink);overflow:hidden;touch-action:none;user-select:none;
  -webkit-user-select:none;font-family:var(--ui);color:var(--cream)}
/* the body pinned to the window and never scrolled: after the window shrinks, Chromium keeps the scroll area of the
   larger stage, and window.scrollTo / scrollIntoView could shift the page (or, the body being the stage's containing
   block, the body itself) with nothing to bring it back. clip forbids even a script's scroll; an older Safari without
   it is reset by main.js */
body{position:fixed;inset:0;overflow:hidden;overflow:clip}
button{font-family:var(--ui);color:inherit;border:0;background:none;padding:0;cursor:pointer}
/* touch-action is not inherited: every element drops the double-tap zoom (manipulation keeps taps and panning; the
   dialogs' bodies scroll with pan-y). iOS also re-sizes text when a block's width changes, unless told not to. */
*{touch-action:manipulation}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.hidden{display:none!important}

/* ---- loading screen ---- */
#loader{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:12px;padding:24px 20px calc(15vh + env(safe-area-inset-bottom,0px));background:#021019;transition:opacity .5s ease;overflow:hidden}
#ldArt{position:absolute;inset:0;background:center top/100% auto no-repeat url("assets/img/loader_art.webp?v=4109733dbf");
  animation:ldDrift 14s ease-in-out infinite alternate}
#ldArt::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,16,25,0) 30%,rgba(2,16,25,.82) 62%,#021019 88%)}
@keyframes ldDrift{from{transform:scale(1.04)}to{transform:scale(1.1) translateY(-1.5%)}}
#loader>*:not(#ldArt){position:relative}
#loader.gone{opacity:0;pointer-events:none}
/* the loading screen sells the game: the cast's key art drifting slowly, bubbles rising, the logo dropping in and
   floating, PLAY on the gold button breathing */
#ldArt{background:center top/cover no-repeat url("assets/img/loader_art.webp?v=4109733dbf") #021019;animation:ldDrift 16s ease-in-out infinite alternate}
#ldArt::after{background:linear-gradient(180deg,rgba(2,16,25,.25) 0%,rgba(2,16,25,0) 22%,rgba(2,16,25,0) 58%,rgba(2,16,25,.75) 80%,#021019 100%)}
@media (min-aspect-ratio:3/4){#ldArt{background-image:url("assets/img/loader_art_land.webp?v=8aa5fca17e");background-size:cover;background-position:center 60%}}
#ldLogo{position:absolute!important;top:max(2vh,10px);left:50%;width:min(66vw,520px);transform:translateX(-50%);
  animation:ldLogoIn .9s cubic-bezier(.2,1.5,.4,1) both}
@keyframes ldLogoIn{from{opacity:0;transform:translateX(-50%) translateY(-40px) scale(.6)}to{opacity:1;transform:translateX(-50%) scale(1)}}
/* landscape: the cast in the middle of the key art, the logo top left, the max win and PLAY at the bottom right */
@media (min-aspect-ratio:3/4){
  #loader{align-items:flex-end;padding:0 5vw 9vh}
  #ldLogo{left:3vw;top:3vh;width:min(26vw,400px);transform:none;animation:ldLogoInL .9s cubic-bezier(.2,1.5,.4,1) both}
  #ldBar{width:min(26vw,380px)}
  #ldGo{min-width:min(24vw,320px)}
  #ldTxt{align-self:flex-end}
}
@keyframes ldLogoInL{from{opacity:0;transform:translateY(-40px) scale(.6)}to{opacity:1;transform:none}}
/* portrait: the logo a little narrower */
@media (max-aspect-ratio:3/4){#ldLogo{width:min(58vw,460px)}
  #loader{padding-bottom:calc(5vh + env(safe-area-inset-bottom,0px))}}
@keyframes ldWinIn{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
#ldGo{background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968");box-shadow:none;
  min-width:min(62vw,300px);padding:20px 60px 16px;font-size:clamp(30px,8vw,46px)}
#ldGo.ready{animation:goPulse 1.4s ease-in-out infinite}
@keyframes goPulse{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,214,110,0))}
  50%{transform:scale(1.06);filter:drop-shadow(0 0 18px rgba(255,214,110,.85))}}
#ldBar{height:12px;box-shadow:inset 0 0 0 2px rgba(242,197,92,.7)}
#ldBubbles{position:absolute!important;inset:0;pointer-events:none;overflow:hidden}
#ldBubbles i{position:absolute;bottom:-40px;width:var(--s,14px);height:var(--s,14px);border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.95) 0 14%,rgba(220,250,255,.25) 32%,rgba(220,250,255,.08) 62%,rgba(255,255,255,.6) 70%,rgba(255,255,255,0) 74%);
  animation:ldBub var(--d,7s) linear var(--w,0s) infinite}
@keyframes ldBub{0%{transform:translate(0,0);opacity:0}10%{opacity:1}50%{transform:translate(12px,-55vh)}100%{transform:translate(-6px,-115vh);opacity:.9}}
#ldBubbles i:nth-child(1){left:6%;--s:12px;--d:7s;--w:0s}#ldBubbles i:nth-child(2){left:12%;--s:20px;--d:9s;--w:2s}
#ldBubbles i:nth-child(3){left:22%;--s:10px;--d:6s;--w:4s}#ldBubbles i:nth-child(4){left:35%;--s:16px;--d:8s;--w:1s}
#ldBubbles i:nth-child(5){left:48%;--s:9px;--d:6.5s;--w:3s}#ldBubbles i:nth-child(6){left:61%;--s:18px;--d:9.5s;--w:.5s}
#ldBubbles i:nth-child(7){left:72%;--s:11px;--d:7.5s;--w:2.5s}#ldBubbles i:nth-child(8){left:83%;--s:22px;--d:10s;--w:1.5s}
#ldBubbles i:nth-child(9){left:91%;--s:13px;--d:6s;--w:3.5s}#ldBubbles i:nth-child(10){left:96%;--s:9px;--d:8s;--w:5s}
#loader.gone #ldBubbles i,#loader.gone #ldLogo{animation:none}

#ldLogo{width:min(80vw,520px);height:auto;filter:drop-shadow(0 8px 24px rgba(0,0,0,.6))}
#loader.gone #ldArt{animation:none}
#ldBar{width:min(64vw,420px);height:10px;border-radius:6px;background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px rgba(226,169,62,.5);overflow:hidden}
#ldFill{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--brass),var(--gold));transition:width .25s}
#ldInfo{max-width:min(86vw,560px);text-align:center;color:var(--mute);font-size:clamp(13px,3.4vw,17px);line-height:1.45}
#ldInfo .f{display:flex;gap:18px;justify-content:center;color:var(--cream)}
#ldInfo b{color:var(--gold)}
#ldGo{opacity:0;pointer-events:none;font-family:var(--title);font-size:clamp(26px,7vw,40px);letter-spacing:.04em;
  padding:12px 54px 8px;border-radius:40px;color:#3b1d00;background:linear-gradient(180deg,#ffe48a,#f2b53a 55%,#c27a16);
  box-shadow:0 6px 0 #7a4508,0 10px 24px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.6);transition:opacity .3s}
#ldGo.ready{opacity:1;pointer-events:auto;animation:goPulse 1.6s ease-in-out infinite}
@keyframes goPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
#ldTxt{font-size:14px;letter-spacing:.2em;color:var(--mute)}

/* ---- stage ---- */
/* clip: the stage never scrolls, not even after a click or Tab on SPIN (SPIN reaches 0.4 px past its bottom and the
   SPIN rig's canvas gives it hidden height, so a focus scroll left the stage 1 px off until a reload) */
#stage{position:absolute;left:0;top:0;overflow:hidden;overflow:clip}
#cv{position:absolute;left:0;top:0}
#sdkpanel{position:absolute;border-radius:26px 26px 0 0;background:linear-gradient(180deg,rgba(3,28,40,.86),rgba(1,12,18,.95));
  box-shadow:0 -2px 0 rgba(226,169,62,.55),0 -10px 30px rgba(0,0,0,.35)}
#sdkstep{position:absolute;border-radius:18px;background:var(--glass2);box-shadow:inset 0 0 0 2px rgba(226,169,62,.55),0 4px 12px rgba(0,0,0,.35)}

/* the wallet plaques */
.plq,#winBox{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border-radius:18px;background:var(--glass2);box-shadow:inset 0 0 0 2px rgba(226,169,62,.55),0 4px 12px rgba(0,0,0,.35)}
.plq b,#winBox b{font-size:calc(var(--lbl) * .78);letter-spacing:.12em;color:var(--mute);line-height:1}
.plq span,#winBox span{font-size:calc(var(--lbl) * 1.35);color:var(--cream);line-height:1.15;white-space:nowrap}
#winBox.flash span{color:var(--gold);text-shadow:0 0 14px rgba(255,212,90,.9)}
#betBox{background:transparent;box-shadow:none}

/* round utility buttons */
.rbtn{position:absolute;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--cream);
  background:radial-gradient(60% 60% at 50% 35%,#0f4558 0%,#062634 70%,#031820 100%);
  box-shadow:inset 0 0 0 3px rgba(226,169,62,.85),inset 0 0 0 5px rgba(40,20,4,.6),0 4px 12px rgba(0,0,0,.45)}
.rbtn .glyph{width:52%;height:52%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rbtn:active{transform:scale(.94)}
#betDown::after,#betUp::after,#menuBtn::after,#soundBtn::after{content:"";position:absolute;inset:-14px;border-radius:50%}
/* AUTO and SPEED take a tap 3 px round their disc too (at least 44 px on a short phone); their ::after holds the count */
#autoBtn::before,#speedBtn::before{content:"";position:absolute;inset:-3px;border-radius:50%}
.rbtn.disabled{opacity:.4;pointer-events:none}
.rbtn.on{color:var(--gold);box-shadow:inset 0 0 0 3px var(--gold),0 0 18px rgba(255,212,90,.6)}
#autoBtn[data-left]:not([data-left=""])::after{content:attr(data-left);position:absolute;right:-6px;top:-6px;min-width:30px;
  height:30px;border-radius:15px;background:var(--gold);color:#3b1d00;font-size:16px;line-height:30px;text-align:center}
#speedBtn .sp{display:none}
#speedBtn[data-speed="normal"] .normal,#speedBtn[data-speed="fast"] .fast,#speedBtn[data-speed="quick"] .quick,
#speedBtn[data-speed="turbo"] .turbo{display:block}
#speedBtn[data-speed="turbo"] .turbo{fill:currentColor;stroke:none}
#speedGlyph{position:absolute;left:0;right:0;bottom:-1.25em;font-style:normal;font-size:calc(var(--lbl) * .6);
  letter-spacing:.1em;color:var(--mute);text-align:center}
#spinBtn{position:absolute;border-radius:50%;background:center/contain no-repeat url("assets/img/btn_spin.webp?v=892561c040");
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.5));transition:transform .08s}
#spinBtn:active{transform:scale(.95)}
#spinBtn,#ctrl button{-webkit-touch-callout:none;user-select:none}
/* a hold on SPIN fills a gold ring round it; a full ring starts unlimited autoplay */
#spinBtn.holding::after{content:"";position:absolute;inset:-6%;border-radius:50%;
  background:conic-gradient(var(--gold) calc(var(--hp,0) * 1turn),transparent 0);
  -webkit-mask:radial-gradient(circle,transparent 62%,#000 64%);mask:radial-gradient(circle,transparent 62%,#000 64%);
  animation:holdFill .8s linear forwards}
@property --hp{syntax:'<number>';inherits:false;initial-value:0}
@keyframes holdFill{to{--hp:1}}
#spinBtn.busy{filter:drop-shadow(0 6px 10px rgba(0,0,0,.5)) brightness(.9)}
#buyBtn{position:absolute;background:center 40%/82% no-repeat url("assets/img/btn_buy.webp?v=87a763670e");
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
#buyBtn b{position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);padding:3px 10px 1px;border-radius:10px;
  font-family:var(--title);font-weight:400;font-size:calc(var(--lbl) * .78);color:var(--gold);letter-spacing:.03em;
  background:rgba(2,18,26,.88);box-shadow:inset 0 0 0 1.5px rgba(226,169,62,.7);line-height:1.1;white-space:nowrap}
#buyBtn.queued{filter:drop-shadow(0 0 14px rgba(255,212,90,.9))}
#buyBtn.disabled{opacity:.45;pointer-events:none}
#buyTab{position:absolute;display:none;border-radius:16px 0 0 16px;background:var(--glass2);
  box-shadow:inset 0 0 0 2px rgba(226,169,62,.7)}
#buyTab b{writing-mode:vertical-rl;transform:rotate(180deg);font-family:var(--title);font-size:20px;color:var(--gold);
  letter-spacing:.06em}
#stage.drawer #buyTab{display:flex;align-items:center;justify-content:center}
#stage.drawer #buyBtn{transform:translateX(var(--buyOff));transition:transform .3s ease}
#stage.drawer.buyOpen #buyBtn{transform:none}
#ctrl.act .rbtn:not(#soundBtn),#ctrl.act #spinBtn{display:none}

/* the message strip under the board */
#strip{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:22px;
  background:rgba(2,16,22,.72);box-shadow:inset 0 0 0 1.5px rgba(226,169,62,.45)}
#strip span{font-family:var(--title);font-size:calc(var(--lbl) * .9);color:var(--gold);letter-spacing:.04em;white-space:nowrap}

/* the Hold & Win: its name over the board, the respins and the total where SPIN stands */
#fsbar{position:absolute;display:flex;align-items:center;justify-content:center;padding:0 22px;border-radius:22px;
  background:linear-gradient(180deg,rgba(60,18,90,.92),rgba(24,6,40,.94));box-shadow:inset 0 0 0 2px var(--violet),0 0 20px rgba(196,107,255,.45)}
#fsMode{font-family:var(--title);font-size:calc(var(--lbl) * 1.1);color:var(--cream);letter-spacing:.05em;white-space:nowrap}
#actCard .plq b{color:var(--gold)}
#actCard .plq span{font-size:calc(var(--lbl) * 1.9)}
#fsSpinsBox.last span{color:var(--coral)}

/* panels */
#panelWrap,#popWrap{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;
  background:rgba(0,8,12,.55)}
#panel,#pop{position:relative;width:min(92%,640px);max-height:86%;display:flex;flex-direction:column;border-radius:26px;
  background:linear-gradient(180deg,rgba(6,42,58,.97),rgba(2,18,26,.98));box-shadow:inset 0 0 0 3px rgba(226,169,62,.8),0 20px 60px rgba(0,0,0,.6)}
#panelHead,#popHead{position:relative;min-height:20px;padding:0 26px}
.xbtn{position:absolute;right:12px;top:12px;width:84px;height:84px;border-radius:50%;z-index:2;display:flex;align-items:center;
  justify-content:center;color:var(--cream);background:radial-gradient(60% 60% at 50% 35%,#0f4558,#031820);
  box-shadow:inset 0 0 0 3px rgba(226,169,62,.85)}
.xbtn .glyph{width:50%;height:50%;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
#panelBody,#popBody{overflow:auto;padding:16px 26px 24px;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.pHead{padding:18px 84px 12px 0}
.panelTitle{font-family:var(--title);font-size:34px;color:var(--gold);letter-spacing:.03em;line-height:1.1}
.panelSub{font-size:17px;color:var(--mute)}
.sec{font-family:var(--title);font-weight:400;font-size:22px;color:var(--gold);margin:20px 0 8px;letter-spacing:.03em}
.rules{font-size:17px;line-height:1.5;color:var(--cream)}
.rules em{font-style:normal;color:var(--gold)}
table.pt{width:100%;border-collapse:collapse;font-size:17px}
table.pt th{color:var(--mute);font-weight:700;text-align:center;padding:4px}
table.pt td{text-align:center;padding:5px 4px;border-top:1px solid rgba(226,169,62,.2)}
table.pt td:first-child{text-align:left;display:flex;align-items:center;gap:10px}
table.pt img{width:44px;height:44px;object-fit:contain}
table.hist td:first-child{display:table-cell}
table.hist td{font-size:18px}
table.hist td.won{color:var(--gold)}
.plines{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.pline{display:flex;flex-direction:column;align-items:center;gap:3px}
.pline i{font-style:normal;font-size:13px;color:var(--mute)}
.pgrid{display:grid;grid-template-columns:repeat(5,9px);gap:2px}
.pgrid b{width:9px;height:9px;border-radius:2px;background:rgba(255,255,255,.12)}
.pgrid b.on{background:var(--gold)}
#popMore{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:14px;color:var(--mute)}
#popMore svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}

/* menu */
.menuRow{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid rgba(226,169,62,.2)}
.mIc{flex:none;width:34px;height:34px;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mLbl{flex:1;font-size:19px}
.mVal{font-size:17px;color:var(--mute)}
.gbtn,.lbtn{min-width:110px;min-height:80px;padding:10px 20px;border-radius:40px;font-size:22px}
.gbtn{color:#3b1d00;background:linear-gradient(180deg,#ffe48a,#e2a93e)}
.lbtn{color:var(--cream);box-shadow:inset 0 0 0 2px rgba(226,169,62,.6)}

/* buy panel */
.buyBet{display:flex;align-items:center;justify-content:center;gap:18px;margin:6px 0 12px}
.buyBet button{width:82px;height:82px;border-radius:50%;background:radial-gradient(60% 60% at 50% 35%,#0f4558,#031820);
  box-shadow:inset 0 0 0 3px rgba(226,169,62,.85);position:relative}
.buyBet button::before,.buyBet button::after{content:"";position:absolute;left:50%;top:50%;width:22px;height:3px;
  margin:-1.5px 0 0 -11px;background:var(--cream);border-radius:2px}
#bbUp::after{transform:rotate(90deg)}
#bbDown::after{display:none}
.buyBet button:disabled{opacity:.35}
.buyBet span{display:flex;flex-direction:column;align-items:center;min-width:120px}
.buyBet b{font-size:14px;color:var(--mute);letter-spacing:.12em}
.buyBet i{font-style:normal;font-size:28px}
.buyOpt{display:flex;align-items:center;gap:14px;padding:12px;margin:8px 0;border-radius:18px;background:rgba(0,0,0,.25);
  box-shadow:inset 0 0 0 2px rgba(226,169,62,.35)}
.buyOpt img{width:84px;height:84px;object-fit:contain}
.buyOpt .txt{flex:1;display:flex;flex-direction:column;gap:2px}
.buyOpt .txt small{font-size:13px;color:var(--mute);letter-spacing:.12em}
.buyOpt .txt b{font-family:var(--title);font-weight:400;font-size:22px;color:var(--gold)}
.buyOpt .txt i{font-style:normal;font-size:15px;color:var(--cream)}
.buyOpt .price{display:flex;flex-direction:column;align-items:flex-end}
.buyOpt .price s{text-decoration:none;font-size:24px;color:var(--cream)}
.buyOpt .price.long s{font-size:20px}
.buyOpt .price.long2 s{font-size:17px}
.buyOpt .price u{text-decoration:none;font-size:13px;color:var(--mute)}
.buyOpt.selected{box-shadow:inset 0 0 0 3px var(--gold),0 0 18px rgba(255,212,90,.35)}
.buyOpt.poor{opacity:.55}
.vol{font-size:13px;color:var(--mute);display:flex;align-items:center;gap:6px}
.vpips{display:inline-flex;gap:3px}
.vpips em{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.18)}
.vpips.v1 em:nth-child(-n+1),.vpips.v2 em:nth-child(-n+2),.vpips.v3 em:nth-child(-n+3),.vpips.v4 em:nth-child(-n+4),
.vpips.v5 em:nth-child(-n+5){background:var(--coral)}
.buyApply{width:100%;margin-top:14px;min-height:84px;padding:16px 10px 12px;border-radius:30px;font-family:var(--title);font-size:26px;
  color:#3b1d00;background:linear-gradient(180deg,#ffe48a,#f2b53a 55%,#c27a16);box-shadow:0 5px 0 #7a4508}
.buyApply:disabled{opacity:.45}

/* auto panel */
.autoNs{display:flex;gap:10px;justify-content:center;margin:10px 0}
.autoN{min-width:96px;min-height:84px;padding:14px 10px;border-radius:18px;font-size:24px;box-shadow:inset 0 0 0 2px rgba(226,169,62,.5);
  justify-content:center;text-align:center}
.autoN b{flex:none;margin:0 auto}
.autoN.on{background:linear-gradient(180deg,#ffe48a,#e2a93e);color:#3b1d00}
.autoNote{text-align:center;color:var(--mute);font-size:16px}

/* purchase card */
#buyFx{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;background:rgba(0,10,16,.45)}
#buyFxCard{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 44px;border-radius:26px;
  background:linear-gradient(180deg,rgba(60,18,90,.95),rgba(20,6,34,.97));box-shadow:inset 0 0 0 3px var(--gold),0 0 40px rgba(196,107,255,.5);
  animation:cardIn .35s cubic-bezier(.2,1.4,.4,1)}
@keyframes cardIn{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
#buyFxTag{font-size:16px;letter-spacing:.16em;color:var(--mute)}
#buyFxName{font-family:var(--title);font-size:38px;color:var(--gold)}
#buyFxCost{font-size:26px;color:var(--cream)}

/* win plate */
#bigwin{position:absolute;inset:0;z-index:18;display:flex;align-items:center;justify-content:center;pointer-events:auto}
#bigwin.party{background:radial-gradient(70% 55% at 50% 45%,rgba(20,70,90,.55),rgba(0,6,10,.78))}
#bigwin.plain{background:rgba(0,8,12,.6)}
#bigwin.band{background:transparent;pointer-events:none}
#bwCoins{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#bwCard{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 40px;min-width:60%}
#bigwin.plain #bwCard{border-radius:28px;padding:30px 40px 24px;background:linear-gradient(180deg,rgba(10,52,70,.96),rgba(2,18,26,.97));
  box-shadow:inset 0 0 0 3px var(--brass),inset 0 0 0 7px rgba(60,30,4,.55),0 20px 50px rgba(0,0,0,.6)}
#bwTitle{font-family:var(--title);font-size:30px;color:var(--cream);letter-spacing:.05em}
#bwTier{position:relative;min-height:1em;font-family:var(--title);font-size:92px;line-height:1;text-align:center;
  color:transparent;letter-spacing:.02em}
#bwTier:not([aria-label]),#bwTier[aria-label=""]{display:none}
#bwTier::after{content:attr(aria-label);background:linear-gradient(180deg,#fff6c8 0%,#ffd45a 38%,#e9971c 62%,#ffe08a 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:3px #5a2c00;
  filter:drop-shadow(0 5px 0 #3b1d00) drop-shadow(0 0 24px rgba(255,200,80,.75));paint-order:stroke fill}
#bwTier.stamp{animation:stamp .45s cubic-bezier(.2,1.6,.4,1)}
@keyframes stamp{from{transform:scale(1.8);opacity:0}to{transform:scale(1);opacity:1}}
#bwTier[data-tier="mega"]::after{background-image:linear-gradient(180deg,#ffe6fa 0%,#ff8fd8 40%,#c43a9e 64%,#ffc2ec 100%);-webkit-text-stroke-color:#4a0a36}
#bwTier[data-tier="epic"]::after{background-image:linear-gradient(180deg,#e8fdff 0%,#7fe7ff 40%,#1f8fc0 64%,#bff4ff 100%);-webkit-text-stroke-color:#06354a}
#bwTier[data-tier="sensation"]::after{background-image:linear-gradient(180deg,#ffffff 0%,#fff1a8 35%,#ffb12e 60%,#fffbe0 100%);-webkit-text-stroke-color:#5a2c00}
.bwGhost{position:absolute;inset:0}
#bwAmount{min-width:56%;padding:6px 34px 4px;border-radius:22px;text-align:center;font-size:62px;color:#fff6dc;
  background:linear-gradient(180deg,rgba(6,42,58,.95),rgba(2,18,26,.97));
  box-shadow:inset 0 0 0 3px var(--brass),inset 0 0 0 6px rgba(60,30,4,.6),0 10px 26px rgba(0,0,0,.55);
  text-shadow:0 3px 0 rgba(0,0,0,.55),0 0 16px rgba(255,212,90,.35)}
#bigwin.plain #bwAmount{box-shadow:inset 0 0 0 3px var(--brass),0 8px 20px rgba(0,0,0,.5)}
#bwCollect{margin-top:12px;min-height:84px;padding:18px 60px 12px;border-radius:30px;font-family:var(--title);font-size:28px;color:#3b1d00;
  background:linear-gradient(180deg,#ffe48a,#f2b53a 55%,#c27a16);box-shadow:0 5px 0 #7a4508}
#bwCollect.reveal{animation:cardIn .3s ease-out}
/* a plate that ends on COLLECT keeps the button's room from its first frame, so the card never moves when it appears */
#bigwin.collect #bwCollect.hidden{display:inline-block!important;visibility:hidden;pointer-events:none}
#bwHint{font-size:15px;color:var(--mute);letter-spacing:.1em}
#bigwin.band #bwCard{transform:translateY(var(--bandY,0))}

/* notification, toast, badge */
#notif{position:absolute;z-index:22;transform:translateX(-50%);padding:16px 18px 20px;border-radius:20px;
  background:var(--glass2);box-shadow:inset 0 0 0 2px rgba(226,169,62,.8),0 10px 30px rgba(0,0,0,.5);font-size:18px;line-height:1.4}
#ntText b{color:var(--gold)}
#ntBtns{display:flex;gap:12px;justify-content:flex-end;margin-top:12px}
#ntBtns button{padding:10px 22px;border-radius:22px;font-size:17px;box-shadow:inset 0 0 0 2px rgba(226,169,62,.6)}
#ntOk{background:linear-gradient(180deg,#ffe48a,#e2a93e);color:#3b1d00}
#ntBar{position:absolute;left:14px;right:14px;bottom:7px;height:3px;border-radius:2px;background:var(--gold);transform-origin:left}
/* a note: each one (.tst, ui/hud.js toast) shows for its own 2.4 s; the holder itself is only a position */
#toast{position:absolute;z-index:23;bottom:42%;transform:translateX(-50%);pointer-events:none}
#toast .tst{padding:12px 24px;border-radius:22px;background:rgba(0,10,16,.9);box-shadow:inset 0 0 0 2px rgba(226,169,62,.7);
  color:var(--cream);font-size:24px;white-space:nowrap;animation:tstLife 2.4s ease forwards}
@keyframes tstLife{0%{opacity:0;transform:translateY(8px)}8%{opacity:1;transform:none}85%{opacity:1}100%{opacity:0}}
#badge{position:absolute;left:6px;bottom:4px;font-size:16px;color:rgba(255,255,255,.42);pointer-events:none}
#loader.gone #ldGo{animation:none}

/* the hold's title card */
#hwIntro{position:absolute;inset:0;z-index:16;display:flex;align-items:center;justify-content:center;pointer-events:none;
  background:radial-gradient(circle at 50% 45%,#46186e 0%,#10061e 55%,#04020a 100%);
  animation:hiBack .4s ease-out}
/* no turning rays behind the card (a stock look) */
#hwIntro.out{animation:hiBackOut .42s ease-in forwards}
@keyframes hiBack{from{opacity:0}to{opacity:1}}
@keyframes hiBackOut{to{opacity:0}}
#hwIntro .hiCard{display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 40px 24px;border-radius:30px;
  background:radial-gradient(120% 120% at 50% 0%,rgba(40,16,70,.96),rgba(10,6,24,.97));
  box-shadow:inset 0 0 0 3px var(--gold),0 0 60px rgba(196,107,255,.55),0 24px 60px rgba(0,0,0,.6);
  animation:hiIn .45s cubic-bezier(.2,1.5,.4,1)}
#hwIntro.out .hiCard{animation:hiOut .3s ease-in forwards}
@keyframes hiIn{from{transform:scale(.4) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}
@keyframes hiOut{to{transform:scale(1.15);opacity:0}}
.hiTitle{font-family:var(--title);font-size:76px;line-height:1;color:transparent;
  background:linear-gradient(180deg,#fff6c8,#ffd45a 40%,#e9971c 65%,#ffe08a);-webkit-background-clip:text;background-clip:text;
  -webkit-text-stroke:3px #4a2400;filter:drop-shadow(0 5px 0 #2a1200) drop-shadow(0 0 20px rgba(255,200,80,.7));paint-order:stroke fill}
.hiPots{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.hiPots span{padding:8px 16px 6px;border-radius:16px;font-family:var(--title);font-size:26px;color:#fff;
  background:color-mix(in srgb,var(--c) 32%,#0a0614);box-shadow:inset 0 0 0 2px var(--c),0 0 16px var(--c)}
.hiSub{font-size:22px;color:var(--cream);opacity:.9}

/* ===== the painted skin (redesign): buttons, plaques, the bottom panel, dialogs and the win plate are the game's own
   painted parts; the rules above keep the layout and the states ===== */
/* the bottom panel: the painted mahogany slab in its gold rim (nine slices: the corner scrolls and the shell crest at
   their own size, the planks stretched); landscape uses the slab without its crest (the bar is low and wide) */
/* the bottom panel is painted in the canvas (render/background.js drawWoodPanel) */
#sdkpanel{background:none;box-shadow:none;border:0;border-image:none}
/* the wallet plaques as in the approved concept: a dark sea-blue box in a thin gold rim, the title above the figure,
   both inside; BET is a capsule with its pearl − and + inside its ends */
#sdkstep,.plq,#winBox{background:linear-gradient(180deg,#183753 0%,#0d223a 55%,#081627 100%);border-radius:16px;
  box-shadow:inset 0 0 0 2px #f2c55c,inset 0 0 0 4px #7a4d12,inset 0 4px 12px rgba(0,0,0,.55),0 3px 8px rgba(0,0,0,.5)}
#sdkstep{border-radius:999px}
#betBox{background:none;box-shadow:none}
.plq b,#winBox b{color:#f6ecd6;letter-spacing:.08em;text-shadow:0 1px 0 rgba(0,0,0,.7)}
.plq span,#winBox span{color:#fff6dc;text-shadow:0 2px 0 rgba(0,0,0,.55)}
/* round buttons: a pearl disc in a brass rim with its icon (painted); the code glyph only where the picture has none */
.rbtn{background:center/100% 100% no-repeat;box-shadow:0 4px 10px rgba(0,0,0,.45)}
.rbtn .glyph{display:none}
#menuBtn{background-image:url("assets/img/ic_menu.webp?v=38d23b2ce8")}
#soundBtn{background-image:url("assets/img/ic_sound.webp?v=113ea486ad")}
#autoBtn{background-image:url("assets/img/ic_auto.webp?v=9a878e834e")}
#speedBtn{background-image:url("assets/img/ic_speed.webp?v=d3d70130b2")}
#speedBtn[data-speed="turbo"]{filter:drop-shadow(0 0 10px rgba(255,212,90,.95))}
/* the speed's tier on the button itself: four pips round the bottom of the disc, lit up to the tier (the text label
   stays for screen readers only) */
#speedGlyph{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* the speed's tier on the button's own pearl disc, drawn like the other painted icons: one, two or three navy arrows,
   and the painted lightning bolt for turbo */
#speedBtn{background-image:url("assets/img/ic_disc.webp?v=ba37a36a87")}
#speedBtn[data-speed="turbo"]{background-image:url("assets/img/ic_speed.webp?v=d3d70130b2")}
#speedBtn .glyph.sp{display:none;position:absolute;left:24%;top:24%;width:52%;height:52%;fill:#0b2748;stroke:#0b2748;
  stroke-width:1.6;stroke-linejoin:round;filter:drop-shadow(0 1px 0 rgba(255,255,255,.7))}
#speedBtn[data-speed="normal"] .glyph.normal,#speedBtn[data-speed="fast"] .glyph.fast,
#speedBtn[data-speed="quick"] .glyph.quick{display:block}
#speedBtn[data-speed="turbo"] .glyph.sp{display:none}
#betDown{background-image:url("assets/img/ic_minus.webp?v=8d4a9f46d9")}
/* − and + are small discs inside the BET capsule: a wider invisible ring takes the tap */
#betDown::after,#betUp::after{content:"";position:absolute;inset:-10px;border-radius:50%}
#betUp{background-image:url("assets/img/ic_plus.webp?v=9e4e139125")}
.rbtn.on{box-shadow:0 0 0 3px var(--gold),0 0 18px rgba(255,212,90,.7)}
#spinBtn{filter:drop-shadow(0 8px 14px rgba(0,0,0,.55))}
/* SPIN drawn by its Spine rig (ui/spinfx.js): the canvas spills round the button for the light and the sparks */
#spinBtn .sbRig{position:absolute;left:-30%;top:-30%;width:160%;height:160%;pointer-events:none}
#spinBtn.rigged{background-image:none}
#buyBtn{background:center/contain no-repeat url("assets/img/btn_buy.webp?v=87a763670e")}
#buyBtn b{display:none}
.xbtn{background:center/100% 100% no-repeat url("assets/img/ic_close.webp?v=67f0c23136");box-shadow:none}
.xbtn .glyph{display:none}
/* dialogs: the gold and mother-of-pearl frame (nine slices of the painted panel), the title on its red ribbon */
#panel,#pop{background:none;box-shadow:0 20px 60px rgba(0,0,0,.6);border-radius:0;
  border:solid transparent;border-width:52px 42px 26px 42px;}
#panelBody,#popBody{padding:4px 10px 10px}
#panelHead,#popHead{padding:0 6px}
.pHead{display:flex;flex-direction:column;align-items:center;padding:6px 70px 14px}
.panelTitle{min-width:72%;padding:10px 36px 16px;text-align:center;color:#fff6dc;font-size:32px;
  background:center/100% 100% no-repeat url("assets/img/mdl_ribbon.webp?v=9ba2889388");text-shadow:0 2px 0 #5a0d0d}
.panelSub{margin-top:4px}
.gbtn,.buyApply{background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968");box-shadow:none;color:#3b1d00}
.lbtn{background:center/100% 100% no-repeat url("assets/img/mdl_btn_pearl.webp?v=0a264a0a9e");box-shadow:none;color:#24324a}
.buyApply:disabled{filter:grayscale(.6);opacity:.6}
.buyOpt{background:rgba(2,24,38,.7);box-shadow:inset 0 0 0 2px rgba(240,200,110,.55)}
/* the frame's bottom shell crest is taller than its first slice: a deeper bottom border keeps it clear of the content
   (buttons and the last menu row sat on it); wider dialogs, bigger and brighter text */
#panel,#pop{width:min(96%,680px);border-width:56px 44px 46px 44px;}
#panelBody,#popBody{padding:6px 14px 18px}
/* the ribbon's red band lies under its shell crest: the title sits in the band, at the ribbon's own proportions */
.panelTitle{box-sizing:border-box;width:min(74%,440px);min-width:0;aspect-ratio:1000/246;display:flex;align-items:center;
  justify-content:center;padding:1.4% 16% 0;font-size:30px;line-height:1;white-space:nowrap}
.pHead{padding:4px 70px 10px}
.pHead .htxt{align-self:stretch;display:flex;flex-direction:column;align-items:center}
/* the header never shrinks under the body (the ribbon hung over the scrolling text), and the scroll cue only shows
   while there is more below */
#panelHead,#popHead{flex:none}
#pop.atEnd #popMore{visibility:hidden}
/* on a landscape stage (720 high) the ribbon is smaller so the menu fits without scrolling */
@media (orientation:landscape){.panelTitle{width:min(56%,330px);font-size:26px}.pHead{padding:2px 70px 6px}
  #panel,#pop{max-height:97%}.buyApply{min-height:68px;margin-top:8px;padding:10px}.panelSub{font-size:16px}
  .menuRow{padding:6px 2px}.gbtn,.lbtn{min-height:60px;padding:6px 18px}.mIc{width:28px;height:28px}}
.panelSub{font-size:18px;color:#cfe9f2;text-shadow:0 1px 0 rgba(0,0,0,.6)}
.mLbl{font-size:22px;color:#fff6dc}
.mVal{font-size:20px;color:#ffe3a0}
.menuRow{padding:14px 2px}
.rules{font-size:18px}
/* the purchase card and the hold's title card on the same painted frame */
#buyFxCard,#hwIntro .hiCard{background:none;border-radius:0;box-shadow:none;filter:none;
  border:solid transparent;border-width:52px 42px 46px 42px;}
/* the bonus total belongs to the scene: it stands over the board under a lighter dim (the cast above it stays in view,
   cheering), its title sits on the red ribbon; no turning rays behind any plate (a stock look) */
#bigwin.collect{background:radial-gradient(60% 46% at 50% 60%,rgba(20,70,90,.32),rgba(0,6,10,.6))}
#bigwin.collect #bwCard{transform:translateY(10%)}
#bwTitle:not(:empty){box-sizing:border-box;width:min(80%,460px);aspect-ratio:1000/246;display:flex;align-items:center;
  justify-content:center;padding:10% 14% 4%;background:center/100% 100% no-repeat url("assets/img/mdl_ribbon.webp?v=9ba2889388");
  color:#fff6dc;font-size:30px;text-shadow:0 2px 0 #5a0d0d;white-space:nowrap}
#bwCollect{background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968");box-shadow:none;
  min-width:340px;min-height:104px;margin-top:18px;padding:20px 70px 16px;font-size:38px;color:#3b1d00;
  text-shadow:0 1px 0 rgba(255,240,190,.8)}
/* COLLECT calls the player: it breathes and glows once it is there */
#bwCollect.reveal{animation:cardIn .3s ease-out,collectPulse 1.3s ease-in-out .3s infinite}
@keyframes collectPulse{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(255,214,110,0))}
  50%{transform:scale(1.07);filter:drop-shadow(0 0 22px rgba(255,214,110,.9))}}
/* the plate's title sits in the ribbon's red band at the ribbon's own proportions */
#bwTitle:not(:empty){width:min(84%,520px);padding:1.4% 16% 0;font-size:38px;line-height:1}
/* the win plate: the painted title for each tier over the painted amount plaque */
#bwTier{width:640px;height:340px;font-size:0;background:center/contain no-repeat}
#bwTier::after{content:none}
#bwTier[data-tier="big"]{background-image:url("assets/img/win_big.webp?v=dc54dceb62")}
#bwTier[data-tier="mega"]{background-image:url("assets/img/win_mega.webp?v=e6099a3dae")}
#bwTier[data-tier="epic"]{background-image:url("assets/img/win_epic.webp?v=a69f8be3b3")}
#bwTier[data-tier="sensation"]{background-image:url("assets/img/win_sens.webp?v=239d2b275c")}
#bwAmount{background:none;box-shadow:none;border-radius:0;min-width:62%;padding:10px 70px 6px;
  border:solid transparent;border-width:34px 54px 28px 54px;
  border-image:url("assets/img/win_plate.webp?v=c569d19df2") 101 164 83 161 fill / 34px 54px 28px 54px stretch}

/* the painted titled ribbons (dialogs and the bonus total) */
.panelRibbon{display:block;width:min(78%,430px);height:auto;margin:0 auto 2px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.45))}
@media (orientation:landscape){.panelRibbon{width:min(56%,330px)}}
#bwTitle.img{width:auto;aspect-ratio:auto;padding:0;background:none}
.bwRibbon{display:block;width:min(86vw,520px);height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5));
  animation:ribbonIn .5s cubic-bezier(.2,1.6,.4,1) both}
@keyframes ribbonIn{from{transform:scale(.5) rotate(-6deg);opacity:0}to{transform:none;opacity:1}}

/* the way into the bonus: two doors of the hold's own picture close over the reef with a gold seam, the bonus's titled
   ribbon pops in over them, the scene changes behind them, they swing open on the hold and START waits for the player */
#hwIntro{background:none;animation:none}
#hwIntro::before{display:none}
#hwIntro .hiDoor{position:absolute;top:0;bottom:0;width:50.5%;background:#0a0614 center/200% 100% no-repeat;
  background-image:var(--door,none);box-shadow:inset 0 0 0 4px #f2c55c,inset 0 0 0 9px #7a4d12,0 0 40px rgba(0,0,0,.7)}
#hwIntro .hiDoor.l{left:0;background-position:0 50%}
#hwIntro .hiDoor.r{right:0;background-position:100% 50%}
#hwIntro .hiSeam{position:absolute;left:50%;top:0;bottom:0;width:8px;margin-left:-4px;opacity:0;
  background:linear-gradient(180deg,#fff3b8,#f2b938,#fff3b8);box-shadow:0 0 30px 12px rgba(255,214,110,.6)}
#hwIntro .hiCard{position:relative;gap:10px;padding:20px 26px 22px;animation:none;opacity:0;pointer-events:auto}
#hwIntro .hiRibbon{display:block;width:min(86vw,560px);height:auto;filter:drop-shadow(0 8px 12px rgba(0,0,0,.6))}
#hwIntro .hiTitle:empty{display:none}
#hwIntro .hiGo{min-width:260px;min-height:92px;margin-top:8px;padding:18px 60px 12px;font-family:var(--title);font-size:40px;
  color:#3b1d00;background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968");border:0;opacity:0;
  pointer-events:none;text-shadow:0 1px 0 rgba(255,240,190,.8)}
#hwIntro .hiGo.on{opacity:1;pointer-events:auto;animation:collectPulse 1.3s ease-in-out infinite}

/* the autoplay panel's choices: the chosen one is lit gold */
.buyOpt{position:relative;cursor:pointer;transition:transform .15s}
.buyOpt.selected{box-shadow:inset 0 0 0 3px #ffd45a,0 0 22px rgba(255,212,90,.55);background:rgba(60,40,6,.55)}

#ldTxt{min-height:18px}
@media (min-aspect-ratio:3/4){#ldArt::after{background:linear-gradient(180deg,rgba(2,16,25,0) 70%,rgba(2,16,25,.55) 100%)}}

/* Visual order: the board and SPIN are the show, everything else is quiet support. */
/* the wallet line: flat dark read-outs, faint titles, bright figures */
#sdkstep,.plq,#winBox{background:rgba(3,16,28,.74);box-shadow:inset 0 0 0 1px rgba(205,232,240,.16);border-radius:14px}
#betBox{background:none;box-shadow:none}
.plq b,#winBox b{color:rgba(232,242,246,.6);text-shadow:none}
.plq span,#winBox span{color:#fff;text-shadow:none}
/* SPIN carries its own light in its Spine rig (ui/spinfx.js): a glint round the rim, the glass lit from inside */
/* BUY sells, but under SPIN: its shell a little less bright than SPIN's light */
#buyBtn{filter:saturate(.7) brightness(.82)}
/* The way into the hold: the sea closes in a circle (an iris) onto the pot that woke, bubbles rush up, and the bonus's
   card says what the round plays; the circle opens on the hold after START */
#hwIntro .hiDoor,#hwIntro .hiSeam{display:none}
#hwIntro .hiIris{position:absolute;inset:0;background:radial-gradient(circle at 50% 42%,#11405a 0%,#06202f 50%,#020a12 100%);
  -webkit-mask-image:radial-gradient(circle at var(--ix,50%) var(--iy,50%),transparent var(--ir,0px),#000 calc(var(--ir,0px) + 3px));
  mask-image:radial-gradient(circle at var(--ix,50%) var(--iy,50%),transparent var(--ir,0px),#000 calc(var(--ir,0px) + 3px))}
#hwIntro .hiBub{position:absolute;inset:0;overflow:hidden;pointer-events:none;display:none}
#hwIntro .hiBub.on{display:block}
#hwIntro .hiBub i{position:absolute;bottom:-70px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.9),rgba(170,230,255,.25) 45%,rgba(170,230,255,.05) 70%);
  box-shadow:inset 0 0 0 1px rgba(220,245,255,.5);animation:hiBubUp var(--d,2s) cubic-bezier(.3,.1,.6,1) var(--w,0s) infinite}
@keyframes hiBubUp{0%{transform:translate(0,0);opacity:0}12%{opacity:.9}100%{transform:translate(var(--sx,0px),-1400px);opacity:.15}}
#hwIntro .hiCard{width:min(94%,660px);box-sizing:border-box}
#hwIntro .hiRibbon{width:min(100%,520px)}
/* the bonus card: the awake pots (and the Super Pot's pearl) standing in a row with their own painted plaques and a
   line on what each does, the round's rules as three gold badges, START inside the frame */
.hiPots{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px;width:100%;
  padding:10px 4px 4px;background:radial-gradient(ellipse 60% 70% at 50% 45%,rgba(120,205,240,.24),rgba(120,205,240,0) 72%)}
.hiPots .ft{flex:1 1 0;min-width:150px;max-width:210px;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:0;background:none;box-shadow:none;text-align:center}
.hiPots .ft .pic{width:100%;height:150px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.55))}
.hiPots .ft .lbl{width:94%;height:auto;margin-top:-18px;filter:drop-shadow(0 3px 5px rgba(0,0,0,.5))}
.hiPots .ft span{display:block;padding:0;background:none;box-shadow:none;border-radius:0;font-family:inherit;
  font-size:21px;line-height:1.2;color:#eef6f8;margin-top:2px}
.hiRules{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:row;justify-content:center;gap:10px;width:100%}
.hiRules li{flex:1 1 0;max-width:200px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 10px 7px;
  border-radius:18px;background:linear-gradient(180deg,rgba(22,64,90,.88),rgba(4,22,36,.92));
  box-shadow:inset 0 0 0 1.5px rgba(236,196,104,.75),0 4px 10px rgba(0,0,0,.35)}
.hiRules li b{font-family:var(--title);font-weight:400;font-size:36px;line-height:1;color:#ffd45a;white-space:nowrap;
  text-shadow:0 2px 0 #3a2200}
.hiRules li span{font-size:17px;line-height:1.15;letter-spacing:.06em;text-transform:uppercase;color:#dcecf2;text-align:center}
/* START stands clear above the frame's bottom bar and its shell crest */
#hwIntro .hiGo{margin:14px 0 18px}
#hwIntro .hiSub:empty{display:none}
/* the page round a stage that does not fill the window (a desktop wider or taller than the stage's aspect): the same
   sea, darkened, instead of flat dark bars */
html,body{background:linear-gradient(rgba(2,12,20,.62),rgba(2,12,20,.62)),#031420 url("assets/img/bg_base_land.webp?v=8722aa77bc") center/cover no-repeat}
/* the page behind the stage in the plate of the window's own orientation: a phone held upright fetches only the upright
   plate, which the stage draws anyway (the wide one is 750 KB) */
@media (orientation:portrait){html,body{background-image:linear-gradient(rgba(2,12,20,.62),rgba(2,12,20,.62)),url("assets/img/bg_base_port.webp?v=33576844c7")}}
/* landscape loader: the key art's cast stands in the left part, and one column on the right holds the logo, the card,
   the loading bar and PLAY, all on one centre line and in the middle of the height */
@media (min-aspect-ratio:3/4){
  #loader{align-items:center;justify-content:center;gap:1.4vh;padding:3vh 3vw 3vh 58vw}
  #ldLogo{position:static!important;width:min(30vw,460px);margin:0;transform:none;
    animation:ldLogoInL .9s cubic-bezier(.2,1.5,.4,1) both}
  #ldBar{width:min(34vw,520px)}
  #ldGo{min-width:min(28vw,400px)}
  #ldTxt{align-self:center}
}
/* the wallet read-outs in the same glass with a thin brass line */
#sdkstep,.plq,#winBox{background:linear-gradient(180deg,rgba(14,58,80,.62),rgba(3,20,34,.82));
  box-shadow:inset 0 0 0 1.5px rgba(236,196,104,.6),inset 0 2px 6px rgba(150,220,240,.12)}
#betBox{background:none;box-shadow:none}

/* the message plaque set into the board frame's bottom border: dark sea glass in a brass rim with a pearl at each end,
   the words in the title gold */
#strip{border-radius:999px;background:linear-gradient(180deg,#14425a 0%,#08263a 55%,#041824 100%);
  box-shadow:inset 0 0 0 2px #ecc062,inset 0 0 0 4.5px #6b4410,inset 0 3px 8px rgba(160,230,245,.18),0 4px 10px rgba(0,0,0,.55)}
#strip::before,#strip::after{content:"";position:absolute;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffffff,#e9e2ea 45%,#a9a1b8 100%);box-shadow:0 0 0 2px #c9952e,0 2px 4px rgba(0,0,0,.5)}
#strip::before{left:-6px}
#strip::after{right:-6px}
#strip span{font-size:calc(var(--lbl) * 1.15);color:#ffe49a;letter-spacing:.05em;
  text-shadow:0 2px 0 #2a1600,0 0 10px rgba(255,200,90,.35)}
/* the build number is for the logs, not for the player */
#badge{display:none}
/* the round buttons are the painted ones with their pearl turned to glass (tools/glass_buttons.py): the brass rim and
   the icon stay solid, so a button reads as live, and the scene shows through its disc, so it never pulls the eye
   from the board and SPIN */
/* the row's and the bet's buttons stand on the dark bar, where their glass shows no scene: a sunlit-water tint under
   the glass gives them the look the menu button gets from the water behind it */
:root{--seaglass:radial-gradient(circle closest-side,rgba(96,156,168,.95) 0,rgba(62,128,148,.95) 45%,rgba(34,100,128,.95) 80%,rgba(34,100,128,0) 86%)}
#speedBtn{background-image:url("assets/img/ic_disc.webp?v=ba37a36a87"),var(--seaglass)}
#speedBtn[data-speed="turbo"]{background-image:url("assets/img/ic_speed.webp?v=d3d70130b2"),var(--seaglass)}
#autoBtn{background-image:url("assets/img/ic_auto.webp?v=9a878e834e"),var(--seaglass)}
#soundBtn{background-image:url("assets/img/ic_sound.webp?v=113ea486ad"),var(--seaglass)}
#betDown{background-image:url("assets/img/ic_minus.webp?v=8d4a9f46d9"),var(--seaglass)}
#betUp{background-image:url("assets/img/ic_plus.webp?v=9e4e139125"),var(--seaglass)}
/* while the bonus's intro covers the screen it takes every tap itself: nothing under it (SPIN, the board) can be
   pressed through its dark round */
#hwIntro:not(.hidden){pointer-events:auto}

/* the loading screen: the logo, the cast as the game stands it (the Super Pot's clam and its pearl over the three
   pots, each pot's feature under its plaque), the painted max win with its sparks twinkling, then the bar and PLAY */
#ldHero{position:relative;width:min(86vw,520px,calc(32vh * 1.3956));animation:ldWinIn .7s cubic-bezier(.2,1.4,.4,1) .25s both}
/* the cast in its own parts (tools/mk_promo_art.py --layers gives each part's box in % of the frame), so each one moves on
   its own: every sibling bobs in its pot on its own beat, the Super Pearl rises a little and glows; the clam and the
   plaques stand still. Moving the whole picture at once read as a cheap slide. */
#ldCast{position:relative;display:block;width:100%;aspect-ratio:1076/771;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
#ldCast .lc{position:absolute;display:block;height:auto}
#ldCast .lcKid{transform-origin:50% 100%;animation:ldKid 2.7s ease-in-out var(--d,0s) infinite}
@keyframes ldKid{0%,100%{transform:none}35%{transform:translateY(-3.2%) scale(.985,1.02)}
  62%{transform:translateY(0) scale(1.025,.975)}78%{transform:none}}
#ldCast .lcPearl{animation:ldPearl 3.4s ease-in-out infinite}
@keyframes ldPearl{0%,100%{transform:none;filter:drop-shadow(0 0 4px rgba(255,244,220,.35))}
  50%{transform:translateY(-3%);filter:drop-shadow(0 0 16px rgba(255,244,220,.9))}}
#ldCaps{position:relative;height:2.6em;margin-top:2px;font-size:clamp(10.5px,2.9vw,15px)}
#ldCaps span{position:absolute;left:var(--x);top:0;width:32%;transform:translateX(-50%);text-align:center;
  font-weight:700;line-height:1.2;color:#f6eedc;text-shadow:0 1px 0 #000,0 0 8px rgba(0,0,0,.8)}
#ldWinBox{position:relative;width:min(70vw,440px,calc(17vh * 1.8395));animation:ldWinIn .6s cubic-bezier(.2,1.6,.4,1) .55s both}
/* the max win stands still (the whole picture breathing read as cheap); its sparks below are what moves on it */
#ldTitle{display:block;width:100%;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
/* no four-point spark crosses on the max win (a cheap stock effect) */
#ldWinBox::before,#ldWinBox::after{display:none!important}
#ldWinBox::before,#ldWinBox::after{content:"";position:absolute;width:13%;aspect-ratio:1;pointer-events:none;
  background:radial-gradient(closest-side,#fff 0,rgba(255,240,190,.9) 18%,rgba(255,210,90,0) 60%),
    conic-gradient(from 0deg,transparent 0 40deg,rgba(255,246,210,.95) 45deg,transparent 50deg 130deg,rgba(255,246,210,.95) 135deg,
    transparent 140deg 220deg,rgba(255,246,210,.95) 225deg,transparent 230deg 310deg,rgba(255,246,210,.95) 315deg,transparent 320deg);
  -webkit-mask:radial-gradient(closest-side,#000 55%,transparent);mask:radial-gradient(closest-side,#000 55%,transparent);
  transform:translate(-50%,-50%) scale(0);animation:ldSpark 2.8s ease-in-out infinite}
#ldWinBox::before{left:26%;top:5%;animation-delay:1.4s}
#ldWinBox::after{left:79%;top:6%;animation-delay:2.8s}
@keyframes ldSpark{0%,60%,100%{transform:translate(-50%,-50%) scale(0) rotate(0)}
  75%{transform:translate(-50%,-50%) scale(1) rotate(45deg)}90%{transform:translate(-50%,-50%) scale(.2) rotate(90deg)}}
#ldFoot{display:flex;flex-direction:column;align-items:center;gap:12px}
#loader.gone #ldCast .lc,#loader.gone #ldWinBox::before,#loader.gone #ldWinBox::after{animation:none}
/* portrait: the logo at the top, then the cast, the max win and PLAY spread over the height under it */
@media (max-aspect-ratio:3/4){
  #ldArt{background-image:url("assets/img/bg_base_port.webp?v=33576844c7");background-size:cover;background-position:center 30%}
  #loader{justify-content:space-around;gap:0;padding:calc(max(2vh,10px) + min(80vw,520px) * .436 + 8px) 12px
    calc(4vh + env(safe-area-inset-bottom,0px))}
}
/* landscape: the plain reef, the cast standing in the left half, the logo, the max win and PLAY in the right column */
@media (min-aspect-ratio:3/4){
  #ldArt{background-image:url("assets/img/bg_base_land.webp?v=8722aa77bc")}
  #ldHero{position:absolute!important;left:5vw;top:50%;width:min(48vw,calc(72vh * 1.3956),900px);margin-top:calc(min(48vw,calc(72vh * 1.3956),900px) * -.43);
    animation:ldWinIn .7s cubic-bezier(.2,1.4,.4,1) .25s both}
  #ldCaps{font-size:clamp(12px,1.25vw,20px)}
  #ldWinBox{width:min(32vw,480px,calc(26vh * 1.8395))}
}
/* a soft dark pool behind the cast lifts it off the bright reef; the bar gives way to PLAY once the game is in */
#ldHero::before{content:"";position:absolute;left:-14%;right:-14%;top:-10%;bottom:-8%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(2,22,36,.6),rgba(2,22,36,.32) 62%,rgba(2,22,36,0))}
#ldBar{transition:opacity .4s}
#ldFoot:has(#ldGo.ready) #ldBar{opacity:0}

/* the buy panel: two cards side by side, each in its own colour inside a brass rim: its picture on a pool of light,
   its name, what it gives, its volatility on five pearls, its price and its own gold BUY */
#panel:has(.buyCards){width:min(96%,720px)}
.buyCards{display:flex;gap:14px;align-items:stretch;margin-top:2px}
.buyCard{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 12px 14px;
  border-radius:22px;background:linear-gradient(180deg,var(--c1),var(--c2) 72%);
  box-shadow:inset 0 0 0 3px #e8b64a,inset 0 0 0 6px rgba(70,34,0,.55),0 8px 18px rgba(0,0,0,.45)}
.buyCard.pots{--c1:#5b2b88;--c2:#1f0f36;--glow:rgba(205,130,255,.6)}
.buyCard.super{--c1:#1d4f9a;--c2:#08183a;--glow:rgba(130,205,255,.6)}
.bcArt{position:relative;width:100%;aspect-ratio:1.45;display:flex;align-items:center;justify-content:center}
.bcArt::before{content:"";position:absolute;inset:2% 0;background:radial-gradient(closest-side,var(--glow),transparent);
  animation:bcGlow 2.6s ease-in-out infinite}
.bcArt img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.bcName{font-family:var(--title);font-weight:400;font-size:30px;line-height:1;color:#ffd84a;letter-spacing:.02em;text-align:center;
  text-shadow:0 2px 0 #4a2600,0 0 12px rgba(255,200,80,.35)}
.bcPts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;width:100%}
.bcPts li{position:relative;padding-left:22px;font-size:18px;line-height:1.2;color:#f3ecdc}
.bcPts li::before{content:"";position:absolute;left:1px;top:.22em;width:13px;height:13px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#e6dfe9 50%,#a59db6)}
.bcVol{display:flex;align-items:center;gap:8px;margin-top:auto;font-size:14px;letter-spacing:.1em;color:#d6cbe6}
.bcVol .vpips{gap:4px}
.bcVol .vpips em{width:13px;height:13px;background:rgba(255,255,255,.16)}
.bcVol .vpips.v4 em:nth-child(-n+4),.bcVol .vpips.v5 em:nth-child(-n+5){background:radial-gradient(circle at 35% 30%,#fff,#ffe6a0 45%,#d6962a)}
.bcPrice{display:flex;flex-direction:column;align-items:center;line-height:1}
.bcPrice s{text-decoration:none;font-family:var(--title);font-size:40px;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.5)}
.bcPrice.long s{font-size:34px}
.bcPrice.long2 s{font-size:28px}
.bcPrice u{text-decoration:none;margin-top:4px;font-size:14px;letter-spacing:.1em;color:#e8c77a}
.bcBuy{width:100%;min-height:72px;padding:12px 8px 8px;border:0;font-family:var(--title);font-size:32px;color:#3b1d00;
  background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968");box-shadow:none}
.bcBuy:active{transform:scale(.96)}
.bcBuy:disabled{filter:grayscale(.7);opacity:.6;font-size:20px}
.buyCard.poor .bcArt img{filter:grayscale(.5) brightness(.75) drop-shadow(0 6px 10px rgba(0,0,0,.5))}
@keyframes bcGlow{0%,100%{opacity:.65;transform:scale(.94)}50%{opacity:1;transform:scale(1.04)}}
/* a landscape stage (720 high): a wider panel, so each line fits on one row, and a lower picture */
@media (min-aspect-ratio:3/4){
  #panel:has(.buyCards){width:min(96%,960px)}
  .buyCard{display:grid;grid-template-columns:44% 1fr;grid-template-areas:"art name" "art pts" "art vol" "art price" "buy buy";
    align-items:center;justify-items:start;row-gap:8px;column-gap:14px}
  .bcArt{grid-area:art;aspect-ratio:auto;height:100%;min-height:180px}
  .bcName{grid-area:name;text-align:left}
  .bcPts{grid-area:pts}
  .bcVol{grid-area:vol;margin-top:0}
  .bcPrice{grid-area:price;align-items:flex-start}
  .bcBuy{grid-area:buy;min-height:62px;font-size:28px}
}

/* autoplay running: the button's glass disc carries the spins left in navy numerals like the painted icons (the
   unlimited run a drawn infinity sign), its gold ring lit */
#autoBtn{container-type:size}
#autoBtn.on{background-image:url("assets/img/ic_disc.webp?v=ba37a36a87"),var(--seaglass)}
#autoBtn[data-left]:not([data-left=""])::after{inset:0;right:auto;top:auto;width:100%;height:100%;min-width:0;border-radius:50%;
  display:flex;align-items:center;justify-content:center;padding-top:4%;box-sizing:border-box;background:none;
  font-family:var(--title);font-size:30px;font-size:38cqh;line-height:1;color:#0b2748;text-shadow:0 1px 0 rgba(255,255,255,.75)}
#autoBtn[data-left^="1"][data-left$="00"]::after{font-size:26px;font-size:31cqh}
#autoBtn[data-left="∞"]:not([data-left=""])::after{content:none}
/* the infinity sign: the Material Icons "all_inclusive" outline (Apache-2.0), filled */
#autoBtn .glyph.inf{display:none;position:absolute;left:18%;top:18%;width:64%;height:64%;fill:#0b2748;stroke:none}
#autoBtn[data-left="∞"] .glyph.inf{display:block}
/* modal text in the game's own type, never bare web text: section heads in the title face (gold with a dark edge), body
   text cream with a soft shadow, values gold; the text keeps a clear margin inside the frame and from its buttons */
#panelBody,#popBody{padding:14px 30px 28px}
.pHead{padding-bottom:18px}
.panelSub{font-size:18px;color:#f6e3b4;letter-spacing:.02em;text-shadow:0 1px 0 rgba(0,0,0,.7)}
.rules,.autoNote,table.pt,.menuRow .mLbl{color:#f4ecdb;text-shadow:0 1px 0 rgba(0,0,0,.6)}
.rules{line-height:1.55}
.rules b,.autoNote b,.fairK b{color:#ffd76a}
.sec{-webkit-text-stroke:1px #4a2600;paint-order:stroke fill;text-shadow:0 2px 0 #3a1d00;margin:24px 0 10px}
.menuRow .mLbl{font-family:var(--title);font-weight:400;font-size:21px;letter-spacing:.03em}
table.pt th{color:#e9c879;letter-spacing:.06em}
.autoNote{margin:18px 6px 4px;font-size:16px;line-height:1.5}
#autoGo{margin-top:24px}
.fairK{display:block;margin:16px 0 6px;font-family:var(--title);font-weight:400;font-size:18px;letter-spacing:.04em;color:#e9c879;
  text-transform:uppercase}
.fairV{display:block;padding:9px 12px;border-radius:12px;background:rgba(0,10,20,.45);box-shadow:inset 0 0 0 1px rgba(226,169,62,.35);
  font-family:Fredoka,"Arial Rounded MT Bold",system-ui,sans-serif;font-size:15px;line-height:1.4;letter-spacing:.04em;
  color:#a8e4f0;word-break:break-all}
/* the wallet and the bonus read-outs on one painted plaque (plq.webp: deep-sea glass in a gold rim, a pearl at each end),
   its ends kept and its middle stretched (cut on its straight stretch, made seam-free by tools/ninefix.py), a little
   quieter than the jackpots; the label in the title face sits in the
   glass clear of the rim, the value under it */
#sdkstep,.plq,#winBox{background:none;box-shadow:none;border-radius:0;box-sizing:border-box;border:solid transparent;
  border-width:7px 30px;border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 7px 44.6px stretch;filter:saturate(.85) brightness(.88)}
#betBox{border:0;border-image:none;filter:none}
#actCard .plq{border-width:11px 44px;border-image-width:11px 65.4px}
.plq b,#winBox b{font-family:var(--title);font-weight:400;font-size:calc(var(--lbl) * .7);letter-spacing:.08em;color:#ecc979;
  -webkit-text-stroke:.6px #2a1600;paint-order:stroke fill;text-shadow:0 1px 0 rgba(0,0,0,.6);line-height:1.05}
.plq span,#winBox span{font-size:calc(var(--lbl) * 1.25);line-height:1.02;font-weight:700;color:#fff6dc;text-shadow:0 2px 0 rgba(0,0,0,.6)}
#actCard .plq span{font-size:calc(var(--lbl) * 1.7)}
/* the painted plaque (plq.webp) also carries the bonus card's three rules, the message under the board and the buy
   panel's bet: one material for every read-out in the game */
.hiRules li{background:none;box-shadow:none;border-radius:0;border:solid transparent;border-width:12px 16px;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 12px 23.8px stretch;padding:6px 0 6px}
.hiRules li span{font-size:15px;letter-spacing:.04em}
#strip{background:none;box-shadow:none;border-radius:0;border:solid transparent;border-width:8px 34px;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 8px 50.5px stretch;box-sizing:border-box}
#strip::before,#strip::after{display:none}
.buyBet span{box-sizing:border-box;min-width:170px;padding:6px 26px;border:solid transparent;border-width:8px 30px;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 8px 44.6px stretch}
.buyBet b{font-family:var(--title);font-weight:400;color:#ecc979;-webkit-text-stroke:.6px #2a1600;paint-order:stroke fill}
/* the autoplay choices and the menu's balance on the same painted plaque; the chosen count lit gold */
.autoN{background:none;box-shadow:none;border-radius:0;border:solid transparent;border-width:10px 18px;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 10px 26.7px stretch;min-width:92px;min-height:70px;padding:4px 2px;
  color:#fff6dc;text-shadow:0 2px 0 rgba(0,0,0,.6);filter:saturate(.8) brightness(.85);transition:filter .15s,transform .15s}
.autoN b{font-family:var(--title);font-weight:400;letter-spacing:.03em;position:relative;top:.13em}   /* the label on the middle of the plaque's glass (measured in WebKit: it sat 1.7 screen px high) */
.autoN.selected,.autoN.on{background:none;color:#ffe08a;filter:saturate(1.15) brightness(1.12) drop-shadow(0 0 10px rgba(255,200,90,.65));
  transform:scale(1.06)}
.mVal{display:inline-block;padding:4px 22px;border:solid transparent;border-width:6px 20px;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 6px 29.7px stretch;color:#fff6dc}
/* the drawn infinity sign in the unlimited choice: as wide as a two-digit count, centred on the digits' middle */
.autoN b .infG{display:block;width:1.5em;height:1.5em;fill:currentColor;filter:drop-shadow(0 2px 0 rgba(0,0,0,.6));
  transform:translateY(-.15em)}
/* sound off: the painted speaker with its cross on the same glass (no bar drawn over the button) */
#soundBtn.muted{background-image:url("assets/img/ic_sound_off.webp?v=254b30fe0a"),var(--seaglass)}
#soundBtn.muted::before{content:none;display:none}
#soundBtn .glyph,#soundBtn.muted .glyph{display:none}
/* a chosen autoplay count is lit by its own plaque only: no square backdrop or ring from the generic chosen-card rule */
.buyOpt.autoN,.buyOpt.autoN.selected,.buyOpt.autoN.on{box-shadow:none;background:none;border-radius:0}
/* dialogs: a gold frame of nine slices (mdl_frame9.webp, 440 px slices): four painted corners and four bands of one
   constant moulding profile, so any stretch is exact; no centre slice. The sea-blue inside is painted by CSS, inset to
   the bars' centre lines so its edges sit under the gold; the shell crests are their own pictures on the bars.
   Scale: 0.24 CSS px per picture px (bars 13 px, corners 106 px); the bars' centre lines lie 19 px in from the sides
   and 25 px in from the top and the bottom of the box. The frame's clear outer margin would show a box-shadow's
   rectangle: the dialogs go without one (the dim behind them sets them off; a filter would put the scrolling body in
   one composited layer). */
#panel,#pop,#buyFxCard,#hwIntro .hiCard{
  border-image:url("assets/img/mdl_frame9.webp?v=495beb7435") 440 / 106px stretch;
  background-image:var(--plq,none),radial-gradient(120% 70% at 50% 0%,rgba(110,200,235,.28),rgba(110,200,235,0) 70%),
    linear-gradient(180deg,#17668f 0%,#0f4f77 28%,#0a3d60 62%,#072f4d 100%);
  background-origin:border-box;background-clip:border-box;background-repeat:no-repeat;
  background-position:0 0,19px 25px,19px 25px;background-size:100% 100%,calc(100% - 38px) calc(100% - 50px),
    calc(100% - 38px) calc(100% - 50px)}
/* the frame painted as one picture by ui/plaque.js (--plq, the top layer above): the border-image steps aside */
.plqf{border-image-source:none!important;border-color:transparent!important}
#panel,#pop{box-shadow:none}
#buyFxCard{position:relative}
/* the crests: each one's base bar on its frame bar's centre line. The top crest's bar lies at 95.2 % of its height and
   the bottom one's at 91.5 %; the translate puts that point on the anchor. An absolute box is placed from the padding
   edge, so each anchor is the bar's line minus that side's border width (#panel/#pop 56/46, the cards 52/46). */
#panel::before,#pop::before,#buyFxCard::before,#hwIntro .hiCard::before{content:"";position:absolute;z-index:1;
  left:50%;top:-31px;width:min(32%,190px);aspect-ratio:760/260;transform:translate(-50%,-95.2%);pointer-events:none;
  background:center/100% 100% no-repeat url("assets/img/crest_top.webp?v=963f171856")}
#panel::after,#pop::after,#buyFxCard::after,#hwIntro .hiCard::after{content:"";position:absolute;z-index:1;
  left:50%;bottom:-21px;width:min(24%,140px);aspect-ratio:560/118;transform:translate(-50%,8.5%);pointer-events:none;
  background:center/100% 100% no-repeat url("assets/img/crest_bot.webp?v=1a1163ed4f")}
#buyFxCard::before,#hwIntro .hiCard::before{top:-27px}
/* a narrow phone: the corners and bars a fifth smaller (bars' lines 15 px in from the sides, 20 px from top and bottom) */
@media (max-width:480px){
  #panel,#pop,#buyFxCard,#hwIntro .hiCard{border-image-width:85px;background-position:0 0,15px 20px,15px 20px;
    background-size:100% 100%,calc(100% - 30px) calc(100% - 40px),calc(100% - 30px) calc(100% - 40px)}
  #panel::before,#pop::before{top:-36px}
  #buyFxCard::before,#hwIntro .hiCard::before{top:-32px}
  #panel::after,#pop::after,#buyFxCard::after,#hwIntro .hiCard::after{bottom:-26px}}
/* a read-out whose plaque ui/plaque.js has painted as one picture (no joints for a thin line to show through) */
.plqd{border-image-source:none!important;border-color:transparent!important;background-size:100% 100%!important;background-origin:border-box!important;
  background-clip:border-box!important;background-repeat:no-repeat!important;background-position:0 0!important}
/* AI-tells pass (own-game references/ai-tells.md AT5/AT6/AT9): painted pieces instead of CSS-drawn ones, no coloured
   glow round text, no drift of the whole loading picture */
#ldArt{animation:none!important}
#ldGo{background:center/100% 100% no-repeat url("assets/img/mdl_btn_gold.webp?v=763e193968")!important;box-shadow:none!important;
  border-radius:0!important}
#strip span{text-shadow:0 2px 0 #2a1600}
.bcName{text-shadow:0 2px 0 #4a2600}
/* the buy panel's bet buttons: the same glass buttons as the bar's minus and plus */
.buyBet button{background:url("assets/img/ic_minus.webp?v=8d4a9f46d9") center/100% 100% no-repeat,var(--seaglass);box-shadow:none}
.buyBet #bbUp{background-image:url("assets/img/ic_plus.webp?v=9e4e139125"),var(--seaglass)}
.buyBet button::before,.buyBet button::after{display:none}
/* the cards' points and the volatility pips are the game's golden pearls (an unlit pip is a dim grey one) */
.bcPts li::before{width:15px;height:15px;border-radius:0;background:center/contain no-repeat url("assets/img/pearl_golden.webp?v=26b399b1eb")}
.bcVol .vpips em{border-radius:0;background:center/contain no-repeat url("assets/img/pearl_golden.webp?v=26b399b1eb");opacity:.3;filter:grayscale(1)}
.bcVol .vpips.v4 em:nth-child(-n+4),.bcVol .vpips.v5 em:nth-child(-n+5){background:center/contain no-repeat url("assets/img/pearl_golden.webp?v=26b399b1eb");
  opacity:1;filter:none}
/* the bonus's name under the board on the same painted plaque as the strip (ui/plaque.js paints it seam-free) */
#fsbar{background:none;box-shadow:none;border-radius:0;border:solid transparent;border-width:8px 34px;box-sizing:border-box;
  border-image:url("assets/img/plq.webp?v=30195112bb") 40 260 fill / 8px 50.5px stretch}
#fsMode{color:#ffe49a;text-shadow:0 2px 0 #2a1600}
/* the buy panel's cards: painted cards (a gold frame with a pearl in each corner round sea glass, violet for the pots,
   blue for the Super Pot; art-src/buycards) as nine slices, painted seam-free by ui/plaque.js; no CSS gradient card */
.buyCard{background:none;box-shadow:none;border-radius:0;border:solid transparent;border-width:15px;
  padding:6px 6px 8px;border-image:url("assets/img/card_violet.webp?v=a817809c3c") 190 fill / 40px stretch;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}
.buyCard.super{border-image-source:url("assets/img/card_blue.webp?v=31f4893704")}
