/* HALLOUMI HEIST: GOAT GRAB. Layers: #bg (the scene, full screen) < #heroes (logo, thief, goat) < #cv (board, symbols,
   cart, flights) < #ui (plaques, message, controls) < #fxui (titles, plates, big win, entry and total cards) < #topcv
   (coin shower) < #cover (sack, hay) < #offer < #panelWrap < #toast < #loader. #heroes, #ui and #fxui are design
   boxes (720 x H portrait, 1280 x 720 landscape) scaled by layout.js; panels, cover and loader are in CSS px. */
@font-face { font-family: Fredoka; src: url("assets/fonts/fredoka-700.woff2?v=f67eddbc") format("woff2"); font-weight: 700; font-display: block; }
:root { --ink: #3a1d08; --wood: #5a2f12; --deep: #2a1407; --gold: #ffd25a; --gold2: #f2b938; --cream: #fff3cf; --leaf: #6f8f2a;
  --floorPx: 11.2px; --font: Fredoka, "Arial Rounded MT Bold", system-ui, sans-serif; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { box-sizing: border-box; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
*::before, *::after { touch-action: manipulation; }
html, body { margin: 0; height: 100%; overflow: hidden; overflow: clip; background: #2a1508; color: var(--cream); font-family: var(--font); font-weight: 700;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
button { font-family: var(--font); font-weight: 700; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.hidden { display: none !important; }
/* the heroes' frames overhang the screen's edges: the stage must never scroll (a focused button would scroll it) */
#stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
/* a desktop window: the stage is the portrait phone layout, centred and as tall as the window (layout.js sets its left
   and width); the lane continues past its sides in the landscape plate of the same scene, dimmed and softened, nothing
   to read or press out there. --vw is the stage's width per cent (1vw elsewhere) */
:root { --vw: 1vw; }
#side { position: fixed; inset: 0; display: none; overflow: hidden; background: #1c0e05; pointer-events: none; }
body[data-stage="1"] #side { display: block; }
#side .scene { position: absolute; inset: -30px; background-size: cover; background-position: 50% 60%; opacity: 0;
  filter: blur(7px) brightness(.4) saturate(.75); }
#side .scene.on { opacity: 1; }
body[data-stage="1"] #side .day { background-image: url("assets/img/q/bg_day_land.webp?v=6f9f96a7"); }
body[data-stage="1"].late #side .night { background-image: url("assets/img/q/bg_night_land.webp?v=9b30d5a7"); }
body[data-stage="1"].late #side .sunset { background-image: url("assets/img/q/bg_sunset_land.webp?v=dbfb8247"); }
body[data-stage="1"].late #side .sunrise { background-image: url("assets/img/q/bg_sunrise_land.webp?v=80bc258d"); }
/* (the stage's own edges: a soft shade falls on the lane beside it) */
body[data-stage="1"] #stage { box-shadow: 0 0 36px 6px rgba(8, 3, 0, .7); }
/* (from the first paint, before layout.js runs: the same stage by the same rule, env.js deskStage: a landscape window
   at least 900 px wide and over 500 px tall; the loader stands in it, at the stage's size, the lane past its sides,
   so PLAY hands over to the game with nothing moving; layout.js then sets the exact pixels) */
@media (min-width: 900px) and (min-aspect-ratio: 1001/1000) and (min-height: 501px) {
  :root { --vw: .5vh; }
  body #stage, body #loader { left: calc(50vw - 25vh); right: auto; width: 50vh; box-shadow: 0 0 36px 6px rgba(8, 3, 0, .7); }
  /* (the loader's thief stands at the logo's edge: past the stage's side he is cut, as by a phone's edge) */
  body #loader { overflow: hidden; overflow: clip; }
  #side { display: block; }
  #side .day { background-image: url("assets/img/q/bg_day_land.webp?v=6f9f96a7"); }
}

/* the scene: the day lane, the night lane (THE HEIST) and the sunset lane (GOAT GRAB) */
#bg { position: absolute; inset: 0; background: #2a1508; }
#bg .scene { position: absolute; inset: 0; background-size: cover; background-position: 50% 60%; opacity: 0; transition: opacity .01s; }
#bg .scene.on { opacity: 1; }
/* the scene steps back behind the board (the board, SPIN and the heroes carry the eye): a shade darkest right behind
   the board, lighter toward the screen's edges; one overlay, no filter on the painted layers */
#bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 42% at 50% 54%, rgba(16,7,0,.62), rgba(16,7,0,.5) 62%, rgba(16,7,0,.42)); }
body[data-layout="port"] #bg .day { background-image: url("assets/img/q/bg_day_port.webp?v=b4bedc17"); }
body[data-layout="land"] #bg .day { background-image: url("assets/img/q/bg_day_land.webp?v=6f9f96a7"); }
body.late[data-layout="port"] #bg .night { background-image: url("assets/img/q/bg_night_port.webp?v=243671b8"); }
body.late[data-layout="land"] #bg .night { background-image: url("assets/img/q/bg_night_land.webp?v=9b30d5a7"); }
body.late[data-layout="port"] #bg .sunset { background-image: url("assets/img/q/bg_sunset_port.webp?v=b61b6679"); }
body.late[data-layout="land"] #bg .sunset { background-image: url("assets/img/q/bg_sunset_land.webp?v=dbfb8247"); }
/* the sunrise of a bonus's outro */
body.late[data-layout="port"] #bg .sunrise { background-image: url("assets/img/q/bg_sunrise_port.webp?v=4af2b15f"); }
body.late[data-layout="land"] #bg .sunrise { background-image: url("assets/img/q/bg_sunrise_land.webp?v=80bc258d"); }
@media (max-width: 600px) {
  body[data-layout="port"] #bg .day { background-image: url("assets/img/q/bg_day_port_m.webp?v=f9808791"); }
  body.late[data-layout="port"] #bg .night { background-image: url("assets/img/q/bg_night_port_m.webp?v=7111db46"); }
  body.late[data-layout="port"] #bg .sunset { background-image: url("assets/img/q/bg_sunset_port_m.webp?v=f5d493e9"); }
  body.late[data-layout="port"] #bg .sunrise { background-image: url("assets/img/q/bg_sunrise_port_m.webp?v=42426411"); }
}

#heroes, #ui, #fxui { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
#cv, #topcv { position: absolute; left: 0; top: 0; }
#topcv { pointer-events: none; }
#logo { position: absolute; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(40, 18, 2, .45)); }
.hero { position: absolute; }
.hero .act, .hero .breath { position: absolute; inset: 0; transform-origin: 50% 88%; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero .heroVid { pointer-events: none; }
/* the native path's clips are <video> elements in the page: no media controls or play glyph over a hero, ever (WebKit
   draws a start button over a video whose play() was refused, as in iOS Low Power Mode) */
.hero .heroVid video::-webkit-media-controls { display: none !important; }
.hero .heroVid video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero .heroVid video::-webkit-media-controls-overlay-play-button { display: none !important; }
.hero.away { visibility: hidden; }
/* the goat faces the logo (its picture and clips are drawn facing away from it) */
#heroGoat { transform: scaleX(-1); }
/* GOAT GRAB: the thief tied to the milk churn, sulking, where the thief hero stands */
#churn { position: absolute; object-fit: contain; object-position: 50% 100%; opacity: 0; transition: opacity .2s;
  transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(40, 18, 2, .45)); }
/* (one painted picture: it stands still; a whole picture never breathes or floats) */
#churn.on { opacity: 1; }

/* jackpot plaques: the painted pills, the name over the value */
/* two lines inside the pill: the name over the amount, the amount on a dark plate so it reads on the coloured field */
/* (each pill one whole picture fitted to its box, never 9-sliced: a slice's seam would run through the words) */
.plq { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1;
  padding: calc(var(--ph, 60px) * .15) calc(var(--pw, 160px) * .08); box-sizing: border-box; background: center / 100% 100% no-repeat; }
.plq.mini { background-image: url("assets/img/q/plq_mini.webp?v=45366496"); }
.plq.minor { background-image: url("assets/img/q/plq_minor.webp?v=d5759563"); }
.plq.major { background-image: url("assets/img/q/plq_major.webp?v=4e9cc6d4"); }
/* GRAND's picture carries its crown over the pill (rows 0-62 of 220): the pill fills the box, the crown is drawn above */
.plq.grand { background-image: url("assets/img/q/plq_grand.webp?v=fb0318f1"); background-size: 100% 139%; background-position: center bottom; }
/* GRAND's crown (the art's top rows, columns 150-300 of 440) sits on its pill */
.plq.grand::before { content: ""; position: absolute; left: 50%; bottom: calc(100% - var(--ph, 60px) * .05); width: calc(var(--ph, 60px) * .95);
  height: calc(var(--ph, 60px) * .42); transform: translateX(-50%); background: url("assets/img/q/plq_grand.webp?v=fb0318f1") no-repeat;
  background-size: calc(var(--ph, 60px) * 2.785) auto; background-position: calc(var(--ph, 60px) * -.95) 0; pointer-events: none; }
.plq b { font-size: max(var(--floor), 18px); letter-spacing: .06em; color: #fff7e0; white-space: nowrap; }
.plq span { font-size: max(var(--floor), 30px); color: #ffe39a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plq.hit { animation: plqHit .9s ease-out 1; }
@keyframes plqHit { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.12); filter: brightness(1.5); } 100% { transform: scale(1); filter: brightness(1); } }

/* the message line on the board's bottom band, and the bonus counters in its place */
#msg, #bhud .bh { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; }
#msgVal { font-size: max(var(--floor), 25px); color: var(--cream); white-space: nowrap; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
#msgVal .amt { color: var(--gold); font-variant-numeric: tabular-nums; }
#msg.pop #msgVal { animation: msgPop .35s ease-out 1; }
@keyframes msgPop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
/* the bonus counter: the running total alone, centred on the status plank (the largest read-out on screen) */
#bhud { position: absolute; display: none; gap: 2%; }
#bhud.on { display: flex; }
#msg.off { display: none !important; }
#bhud .bh { position: relative; gap: 12px; }
#bhud .bh.tot { flex: 1; }
#bhud .bh b { font-size: max(var(--floor), 18px); color: var(--gold); letter-spacing: .05em; white-space: nowrap; }
#bhud .bh.tot span { font-size: max(var(--floor), 44px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
#bhud.under { opacity: 0; transition: opacity .25s; }
/* in a bonus only SPIN's count and the speed act: BUY and AUTO rest (BUY's picture at half its colour) */
#ui.inbonus #btnAuto { filter: saturate(.35) brightness(.62); }
#ui.inbonus #btnBuy, #btnBuy[aria-disabled="true"] { filter: saturate(.5) drop-shadow(0 5px 6px rgba(20,8,0,.5)); }
#bhud .bh.pop { animation: bhPop .4s ease-out 1; }
@keyframes bhPop { 0% { transform: scale(1); } 40% { transform: scale(1.08); filter: brightness(1.4); } 100% { transform: scale(1); } }

/* the deck: dark recessed plates in the olive-and-gold frame (the frame lighter than the plate, the plate darker than
   the board), so the controls and their words read on a dark ground; a tall phone has two (SPIN's row, the wallet) */
.deck { position: absolute; border-style: solid; border-width: 40px 60px; border-image: url("assets/img/msg_banner.webp?v=16ff9ef0") 70 170 fill / 40px 120px stretch;
  filter: drop-shadow(0 -6px 10px rgba(20,8,0,.45)); }
#ui > button, #ui .field { position: absolute; pointer-events: auto; }
#ui .field { pointer-events: none; }
.rbtn { display: flex; align-items: center; justify-content: center; }
.rbtn::before { content: ""; position: absolute; width: var(--disc, 100%); height: var(--disc, 100%); left: 50%; top: 50%;
  transform: translate(-50%, -50%); background: url("assets/img/btn_m.webp?v=d81d2ced") 50% 0/101% 121% no-repeat; }
/* the painted icons (ui/skin.js): one picture per state, the state's own shown */
.ic { position: relative; display: block; width: 46%; height: 46%; pointer-events: none; }
.ic i { position: absolute; inset: 0; display: block; background: center / contain no-repeat; }
.rbtn.small::before { --disc: 78%; }
/* the round buttons' tap areas: an invisible box at least 44 CSS px across round each small disc (layout/layout.js
   writes --hl/--ht/--hw/--hh from the button's corner); the art keeps its size */
.rbtn::after { content: ""; position: absolute; left: var(--hl, 0px); top: var(--ht, 0px); width: var(--hw, 100%); height: var(--hh, 100%); }
.rbtn.small .ic { width: 40%; height: 40%; }
.rbtn.down, #btnSpin.down, .plateBtn.down { transform: scale(.93); }
.rbtn, #btnSpin, .plateBtn { transition: transform .12s ease-out; }
#btnTurbo .ic i { display: none; }
#btnTurbo[data-speed="normal"] .ic .s1, #btnTurbo[data-speed="fast"] .ic .s2, #btnTurbo[data-speed="quick"] .ic .s3, #btnTurbo[data-speed="turbo"] .ic .s4 { display: block; }
#btnSound .ic .x { display: none; }
#btnSound.muted .ic .x { display: block; }
#btnSound.muted .ic .w { display: none; }
/* the autoplay count on the painted walnut pill (pill.webp, 600 x 269: its 134 px round ends kept whole) */
#autoLeft { position: absolute; right: -2%; top: -4%; min-width: 1.2em; height: 1.2em; box-sizing: border-box; display: none; align-items: center;
  justify-content: center; border-style: solid; border-color: transparent; border-width: 0 .6em;
  border-image: url("assets/img/pill.webp?v=33cb546a") 0 134 fill / 0 .6em stretch; color: var(--gold);
  font-size: max(var(--floor), 22px); line-height: 1; padding: 0; }
#btnAuto.running #autoLeft { display: flex; }
#btnSpin { background: url("assets/img/btn_spin.webp?v=07716694") center/contain no-repeat; filter: drop-shadow(0 6px 8px rgba(20,8,0,.55)); }
#btnSpin.spinning { background-image: url("assets/img/btn_stop.webp?v=14720cfb"); }
#btnSpin.down { background-image: url("assets/img/btn_spin_down.webp?v=46b499f9"); }
/* SPIN's light: a steady soft light behind the one loud control (the same in every state, so a round's end never
   flashes it; nothing moves on a timer) */
#spinGlow { position: absolute; border-radius: 50%; pointer-events: none; opacity: .6;
  background: radial-gradient(circle, rgba(255,214,110,.55) 0%, rgba(255,170,40,.28) 45%, rgba(255,150,30,0) 70%); }
#spinCount { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff;
  text-shadow: 0 3px 0 var(--ink), 0 0 10px rgba(0,0,0,.4); pointer-events: none; }
#spinCount:empty { display: none; }
/* in a bonus SPIN only counts the respins left: the button art without its arrows, the number on it */
#btnSpin.respins { background-image: url("assets/img/btn_s.webp?v=3164a25b"); cursor: default; }
#btnSpin.respins #spinCount { font-size: 64px; color: #fff3cf; }
#spinCount.pop { animation: msgPop .4s ease-out 1; }
#btnSpin.reset { animation: bhPop .6s ease-out 1; }
.holdRing { position: absolute; inset: -6%; width: 112%; height: 112%; transform: rotate(-90deg); pointer-events: none; opacity: 0; }
.holdRing circle { fill: none; stroke: #ffe39a; stroke-width: 6; stroke-dasharray: 289; stroke-dashoffset: 289; }
#btnSpin.holding .holdRing { opacity: 1; }
#btnSpin.holding .holdRing circle { animation: holdFill .58s linear forwards; }
@keyframes holdFill { to { stroke-dashoffset: 0; } }
/* BUY BONUS: one designed picture (its words, coin pile and riveted frame drawn in), no text of its own; pressed it
   sinks to 0.96 and darkens, in a bonus it rests at half its colour */
.plateBtn { background: url("assets/img/buy_btn.webp?v=397e8438") center/contain no-repeat; filter: drop-shadow(0 5px 6px rgba(20,8,0,.5)); }
#btnBuy { transition: transform .12s ease-out, filter .12s ease-out; }
#btnBuy.down, #btnBuy.down:hover { transform: scale(.96); filter: brightness(.78) drop-shadow(0 3px 4px rgba(20,8,0,.5)); }
.plateBtn.call:not(.down) { animation: buyCall 1.8s ease-in-out 2; }
@keyframes buyCall { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05) rotate(-1.5deg); } }

/* the wallet fields: the dark wood pill, the name over the value */
.field { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  border-style: solid; border-width: 0 16px; border-image: url("assets/img/pill.webp?v=33cb546a") 0 150 fill / 0 40px stretch; }
.field .flab { font-size: max(var(--floor), 18px); color: var(--gold); letter-spacing: .07em; margin-bottom: 4px; }
.field .fval { font-size: max(var(--floor), 27px); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field.bet { border-width: 0 calc(var(--tap, 44px) * .5 + 30px); }
#ui[data-layout="land"] .field.bet { border-width: 0 16px; }
/* a tall phone's wallet (its own row under the bet): wider fields, larger figures */
#ui[data-deck="3"] .field .flab { font-size: max(var(--floor), 20px); }
#ui[data-deck="3"] .field .fval { font-size: max(var(--floor), 34px); }
.field.catch .fval { animation: msgPop .3s ease-out 1; }
#win.haswin .fval { color: var(--gold); }

/* the board-local layer: titles, the collect plate, the big win, the entry and total cards */
#fxui > div { position: absolute; display: none; }
#fxui > div.on { display: block; }
#title { left: var(--bx); top: calc(var(--by) + var(--bh) * .24); width: var(--bw); text-align: center; }
#title img { width: 92%; }
#plate { left: calc(var(--bx) - 30px); width: calc(var(--bw) + 60px); top: calc(var(--by) + var(--bh) * .2); text-align: center; }
#plate img { width: 62%; display: block; margin: 0 auto 10px; }
.gold { font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; color: #ffd25a;
  text-shadow: 0 -1px 0 #fff3c4, 0 2px 0 #d39a2c, 0 3px 0 #a86c16, 0 4px 0 #7a4a0e, 0 5px 0 #3a1d08; }
#plateAmt { font-size: 84px; padding: 4px 0 8px; }
#bigwin { left: 0; top: 0; width: 100%; height: 100%; }
#bigwin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% var(--bwY, 45%), rgba(30,12,2,.72), rgba(30,12,2,.35) 60%, rgba(30,12,2,0) 85%); }
#bigwin.max::before { background: radial-gradient(ellipse at 50% var(--bwY, 45%), rgba(60,20,0,.8), rgba(30,12,2,.5) 60%, rgba(30,12,2,.2) 90%); }
/* the tier title stands on the amount: its bottom edge just above it, so its art (coins, gems) never covers the count */
#bwTitle { position: absolute; left: 50%; top: calc(var(--bwA, 60%) - 8px); width: min(var(--bwW, 600px), 96%); transform: translate(-50%, -100%); }
#bwAmt { position: absolute; left: 0; right: 0; top: var(--bwA, 60%); text-align: center; font-size: 104px; padding: 6px 0 10px; }
#bwLine { position: absolute; left: 0; right: 0; top: calc(var(--bwA, 60%) + 128px); margin: 0; text-align: center; font-size: 34px;
  color: var(--cream); letter-spacing: .08em; text-shadow: 0 3px 0 var(--ink); }
#bwLine:empty { display: none; }
/* the MAX WIN screen: the MAX title, the thief buried in coins, the capped amount and its line, stacked (landscape: the
   picture beside the board) */
/* the picture's edges melt into the dimmed stage (a soft oval mask), never a pasted rectangle */
#bwArt { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,.6) 80%, transparent 100%); }
#bwArt { position: absolute; display: none; left: var(--mxArtL, 50%); top: var(--mxArtT, 30%); width: var(--mxArtW, 60%);
  transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
#bigwin.max #bwArt { display: block; }
#bigwin.max #bwTitle { top: var(--mxT, 2%); width: var(--mxW, 70%); transform: translate(-50%, 0); }
#bigwin.max #bwAmt { top: var(--mxAmtT, 70%); }
#bigwin.max #bwLine { top: var(--mxLineT, 80%); }
#bwLine.pop { animation: msgPop .5s ease-out 1; }
#intro, #total { left: 0; top: 0; width: 100%; height: 100%; pointer-events: auto; background: rgba(12,5,1,.55); }
/* the total card's party: the scene dims behind the card but stays light at the top, where the heroes celebrate; the
   coin rain (render/cardrain.js) falls between the dim and the card */
#total { background: radial-gradient(ellipse 70% 55% at 50% 56%, rgba(12,5,1,.62), rgba(12,5,1,.4) 70%, rgba(12,5,1,.12)); }
#rainCv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* the entry and total cards: the one modal frame and width (below), in the middle of the screen, as tall as their
   content; a card taller than the screen's modal room shrinks its pictures */
#intro .card, #total .card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.card > * { flex: none; }
.card .eyebrow { margin: 0; font-size: max(var(--floor), 26px); color: var(--gold); letter-spacing: .12em; }
.card img#introTitle, .card img#totalTitle { display: block; width: 80%; height: auto; min-height: 0; flex: 0 1 auto; object-fit: contain;
  margin: 4px auto 0; }
.card #introArt { display: block; width: 32%; height: auto; min-height: 0; flex: 0 1 auto; object-fit: contain;
  margin: 0 auto 2px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.5)); }
/* GOAT GRAB's card: the mask swap big (the goat is in it), the name in gold letters (no second goat from the title art) */
#introName { display: none; margin: 2px 0 0; font-size: 84px; letter-spacing: .03em; }
#intro.scene .card #introArt { width: 60%; margin-top: -10px; }
#intro.scene .card img#introTitle { width: 64%; }
/* the title's coins and swell run past its box: the line under it keeps clear */
#intro .card img#introTitle { margin-bottom: 18px; }
#fxui[data-layout="land"] .card .count { margin: 2px 0 6px; }
#fxui[data-layout="land"] .card .count em { font-size: 60px; }
#fxui[data-layout="land"] #introName { font-size: 60px; }
#fxui[data-layout="land"] #bwLine { font-size: 28px; }
.card .line { margin: 6px 0 4px; font-size: max(var(--floor), 23px); color: var(--cream); line-height: 1.2; }
.card .count { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 10px; }
.card .count em { font-style: normal; font-size: 72px; color: #fff; text-shadow: 0 4px 0 var(--ink); }
.card .count span { font-size: max(var(--floor), 30px); color: var(--gold); }
.card .amt { font-size: 132px; margin: 2px 0 6px; padding: 4px 0 8px; }
#total .card img#totalTitle { width: 66%; }
.cta { position: relative; min-width: 58%; --bh: max(var(--tap, 44px), 84px); padding: 0 6px; }
.cta .gl { font-size: max(var(--floor), 32px); letter-spacing: .06em; }
/* (a card button not yet armed: dimmed, the COLLECT of a count still running) */
#fxui .cta.wait { opacity: .45; filter: saturate(.35) brightness(.85); }
#fxui .cta { transition: opacity .2s ease-out; }
.cta.armed { animation: ctaArm .5s ease-out 1; }
@keyframes ctaArm { 0% { transform: scale(.9); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* the bonus transition: the wall of hay on the top canvas (render/haywipe.js; the scene swaps under it), the burst of
   coins and hay with it, the thief and the goat jumping in from the bottom corners on top */
#topcv { z-index: 29; }
/* the title rigs' canvas (cinema/spinestage.js) over the effect layer */
#ttlcv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
#cover { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 30; overflow: hidden; }
#cover.on { display: block; pointer-events: auto; }
#cover .jt, #cover .jg { position: absolute; bottom: -2%; width: min(calc(var(--vw) * 46), 34vh); opacity: 0; filter: drop-shadow(0 10px 14px rgba(20,8,0,.4)); }
#cover .jt { left: -2%; transform-origin: 30% 100%; }
#cover .jg { right: -2%; transform-origin: 70% 100%; transform: scaleX(-1); }

/* the turbo offer: a banner at the top of the stage, never a modal */
#offer { position: absolute; left: 50%; top: max(10px, env(safe-area-inset-top)); width: min(calc(var(--vw) * 92), 420px); transform: translate(-50%, -140%);
  transition: transform .3s ease-out; z-index: 40; padding: 0 2px 2px; box-sizing: border-box;
  border-style: solid; border-color: transparent; border-width: 30px 26px; border-image: url("assets/img/ui_modal.webp?v=89621922") 300 fill / 64px round;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); text-align: center; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#offer.on { transform: translate(-50%, 0); }
/* (its frame: a picture under its content over the whole border box, ui/frame.js imgSwap; the border-image until then) */
#offer > img.frameImg { position: absolute; left: -26px; top: -30px; width: calc(100% + 52px); height: calc(100% + 60px); z-index: 0; pointer-events: none; }
#offer > :not(.frameImg) { position: relative; z-index: 1; }
#offer strong { grid-column: 1 / 3; font-size: 18px; color: var(--gold); }
#offer p { grid-column: 1 / 3; margin: 0; font-size: 15px; color: var(--cream); }
#offer .cta { min-width: 0; --bh: 48px; }
#offer .cta .gl, #offer .sec .gl { font-size: 16px; }
#offer .sec { --bh: 48px; }
/* (the offer goes by itself after its time: it fades as it slides away; no timer line over its buttons) */
#offer:not(.on) { visibility: hidden; opacity: 0; transition: transform .3s ease-in, opacity .3s ease-in, visibility 0s .3s; }

/* panels: the wooden frame with gold rivets, a header with the title and the close disc; the scene under them is
   dimmed, never blurred (a blur would be redrawn on every frame of the heroes and the reels under it) */
#panelWrap { position: absolute; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  background: rgba(12,5,1,.72); padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
#panelWrap.on { display: flex; }
#panel { position: relative; display: flex; flex-direction: column; overflow: hidden; }
#panel.opening { animation: panelIn .32s cubic-bezier(.2,.8,.2,1) 1; }
@keyframes panelIn { from { transform: translateY(28px) scale(.94); opacity: .2; } to { transform: none; opacity: 1; } }
.pHead { position: relative; flex: none; display: flex; align-items: center; min-height: 56px; padding: 0 60px 6px 6px; border-bottom: 2px solid rgba(255,210,110,.35); }
.pHead h2 { margin: 0; font-size: 24px; color: var(--gold); letter-spacing: .06em; text-shadow: 0 2px 0 var(--ink); }
#panelX { position: absolute; right: -4px; top: 50%; width: 52px; height: 52px; transform: translateY(-55%); z-index: 3; }
#panelX::before { content: ""; position: absolute; inset: 4px; background: url("assets/img/btn_s.webp?v=3164a25b") center/contain no-repeat; }
#panelX .ic { width: 40%; height: 40%; margin: auto; }
#panelBody { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 16px 12px 6px; -webkit-overflow-scrolling: touch; }
.pTabs { display: flex; gap: 6px; margin: 2px 0 10px; }
.pTab { flex: 1; --bh: 48px; font-size: 15px; }
.pPage { display: none; } .pPage.on { display: block; }
.pRow { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.pRow img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.pRow h4 { margin: 0 0 3px; font-size: 16px; color: var(--gold); }
.pRow p, .pText { margin: 0; font-size: 14px; line-height: 1.38; color: var(--cream); font-weight: 700; }
.pText + .pText { margin-top: 8px; }
.pLegal { margin-top: 12px; font-size: 14px; line-height: 1.35; color: #e9d7b2; overflow-wrap: anywhere; word-break: break-word; }
.pTable { width: 100%; border-collapse: collapse; font-size: 14px; }
.pTable td, .pTable th { padding: 7px 4px; border-bottom: 1px solid rgba(255,210,110,.2); text-align: left; }
.pTable th { color: var(--gold); font-size: 14px; }
.pTable td.r, .pTable th.r { text-align: right; font-variant-numeric: tabular-nums; }
.pSet { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid rgba(255,210,110,.2); font-size: 16px; }
.pSet .opts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pSet.speed { flex-wrap: wrap; padding-bottom: 8px; }
.pSet.speed .opts { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pSet.speed .pBtn { min-width: 0; padding: 0; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.pBtn { --bh: 46px; min-width: 64px; padding: 0 6px; font-size: 15px; }
/* the buy panel: two cards, the buy's own bet, the confirm line */
.buyCards { display: flex; gap: 10px; }
.buyCard { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 16px;
  border: 2px solid rgba(232,176,82,.75); box-shadow: inset 0 2px 6px rgba(40,16,2,.35); color: var(--cream); }
/* each card's own buy: the price on a gold button; the confirm step replaces the cards */
.buyCard .buyNow { min-width: 0; width: 100%; --bh: 54px; padding: 0; margin-top: 4px; }
.buyCard .buyNow .gl { font-size: 19px; white-space: nowrap; }
.buyCard.poor .buyNow { filter: saturate(.4) brightness(.8); }
.confirm { display: none; }
#panelBody.confirming .buyCards, #panelBody.confirming .bbet { display: none; }
#panelBody.confirming .confirm { display: block; }
.confirm .pick { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px auto 8px; width: 70%; }
.confirm .pick .t { width: 100%; height: 84px; object-fit: contain; }
.confirm .pick .tt { line-height: 84px; font-size: 46px; }
.confirm .pick .p { width: 56%; height: 120px; object-fit: contain; }
.confirm .sec { display: block; margin: 10px auto 0; min-width: 50%; --bh: 52px; }
.confirm .sec .gl { font-size: 18px; letter-spacing: .06em; }
/* a landscape phone: smaller card art so the buy panel fits without scrolling */
@media (orientation: landscape) and (max-height: 500px) {
  .buyCard .t { height: 52px; } .buyCard .tt { line-height: 52px; font-size: 30px; } .buyCard .p { height: 58px; }
  .buyCard { padding: 6px 6px 8px; gap: 2px; } .buyCard .ln { min-height: 0; } .bbet { margin: 4px 0 0; }
  .buyCard .buyNow { --bh: 48px; margin-top: 2px; }
}
.buyCard .t { width: 92%; height: 72px; object-fit: contain; }
.buyCard .tt { display: block; line-height: 72px; text-align: center; font-size: 40px; letter-spacing: .04em; }
/* the BONUS card's title: gold letters carved on the olive plank (the GOAT GRAB card has its title art) */
/* (the plank at its own aspect, 900 x 351, fitted into the title's box) */
.buyCard .tt.gold { width: 96%; box-sizing: border-box; padding: 0 16%; font-size: 30px; background: url("assets/img/msg_banner.webp?v=16ff9ef0") center / contain no-repeat;
  -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #ffd75e; color: #ffd75e; text-shadow: 0 3px 0 #2a1204; filter: none; }
.buyCard .p { width: 64%; height: 92px; object-fit: contain; }
.buyCard .ln { font-size: 14px; line-height: 1.25; min-height: 34px; text-align: center; }
.buyCard .mult { font-size: 15px; color: var(--gold); }
.buyCard .price { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buyCard .why { font-size: 14px; color: #ffd9a0; min-height: 17px; }
.bbet { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 6px; }
.bbet .lab { font-size: 15px; color: var(--gold); }
.bbet .val { min-width: 92px; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.bstep { width: 48px; height: 48px; position: relative; display: flex; align-items: center; justify-content: center; }
.bstep::before { content: ""; position: absolute; inset: 0; background: url("assets/img/btn_m.webp?v=d81d2ced") 50% 0/101% 121% no-repeat; }
.bstep .ic { width: 44%; height: 44%; }
/* − and + at the ends of the bet ladder (the bar's and the buy panel's): dimmed, still there (a tap does nothing) */
#btnMinus.atEnd, #btnPlus.atEnd, .bstep.atEnd { opacity: .42; filter: saturate(.35); }
.confirm { margin-top: 8px; text-align: center; }
.confirm .sum { font-size: 17px; color: var(--cream); margin-bottom: 10px; }
.confirm .cta { min-width: 70%; --bh: 58px; }
.confirm .cta .gl { font-size: 22px; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.counts .pBtn { min-width: 0; font-size: 18px; --bh: 54px; }

@media (max-height: 700px), (max-width: 340px) {
  #panel.buy .buyCard .t { height: 42px; }
  #panel.buy .buyCard .tt { font-size: 30px; line-height: 42px; }
  #panel.buy .buyCard .tt.gold { font-size: 22px; }
  #panel.buy .buyCard .p { height: 46px; }
  #panel.buy .buyCard .ln { min-height: 0; line-height: 1.15; }
  #panel.buy .buyCard .why { min-height: 0; }
  #panel.buy .buyCard { gap: 2px; padding: 6px 4px 8px; }
  #panel.buy .bbet { margin: 6px 0 2px; }
  #panel.buy .confirm .sum { margin-bottom: 4px; }
  #panel.buy .confirm .cta { --bh: 50px; padding: 0 8px; }
  #panel.buy .pHead { min-height: 46px; }
}
@media (max-height: 460px) {
  #panel.buy { width: min(94vw, 640px); }
  #panel.buy #panelBody { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: center; }
  #panel.buy .bbet, #panel.buy .confirm { grid-column: 2; }
  #panel.buy .buyCards { grid-column: 1; grid-row: 1 / 3; }
}
/* a passing note: outlined words over the stage, no box (its look below, with the other outlined text) */
#toast { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.9); z-index: 60; padding: 12px 22px;
  color: var(--cream); font-size: 16px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(var(--vw) * 86); }
#toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* the loader: the lane painting, the logo, the three features as art cards, the max win, progress and PLAY */
#loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh;
  padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); background-color: #3b2410; transition: opacity .45s; }
#loader::after { content: ""; position: absolute; inset: 0; background: rgba(24,10,0,.42); pointer-events: none; }
#loader > * { z-index: 1; }
#loader.out { opacity: 0; pointer-events: none; }
#loaderBg { position: absolute; inset: 0; z-index: 0 !important; background: 50% 60%/cover no-repeat; opacity: 0; transition: opacity .4s; }
#loaderBg.on { opacity: 1; }
#loaderLogo { position: relative; width: min(calc(var(--vw) * 64), 46vh, 420px); aspect-ratio: 1200 / 919; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
/* the head's inline style hides these until this sheet has laid them out */
#loader .feats, #loader .maxwin, #loader .go, #loader #loaderMsg { visibility: visible; }
.feats { position: relative; display: flex; gap: 8px; max-width: 560px; width: 100%; }
.feat { opacity: 0; transition: opacity .25s; }
.feat.ld { opacity: 1; }
.feat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  border-style: solid; border-width: 12px; border-image: url("assets/img/banner.webp?v=104a1c49") 90 fill / 12px stretch; padding: 0 0 2px; }
.feat img { width: 108%; height: min(15vh, 116px); object-fit: contain; margin-top: -4px; filter: drop-shadow(0 4px 4px rgba(20,8,0,.55)); }
.feat b { display: block; font-size: 15px; color: var(--gold); margin-top: -2px; text-shadow: 0 2px 0 var(--ink); }
.feat i { display: block; font-style: normal; font-size: 12.5px; line-height: 1.2; color: var(--cream); margin-top: 2px; }
.maxwin { position: relative; text-align: center; }
.maxwin small { display: block; font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.maxwin em { display: block; min-height: 40px; font-style: normal; font-size: 34px; color: #fff; }
.maxwin .vol { margin-top: 2px; font-size: 13px; color: var(--cream); letter-spacing: .06em; }
.go { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(calc(var(--vw) * 80), 360px); }
/* the load bar: the status plank (ui_status.webp, its gold caps kept) with a roll of gold coins (coin_edge.webp, the coin
   on its edge, side by side) filling its groove as the game loads */
#loadbar { position: relative; width: 100%; height: 34px; border-style: solid; border-color: transparent; border-width: 0 10px;
  border-image: url("assets/img/ui_status.webp?v=65d53976") 0 96 fill / 0 10px stretch; }
#loadbar .groove { position: absolute; left: 1%; right: 1%; top: 27%; bottom: 27%; border-radius: 8px; overflow: hidden; }
#loadfill { display: block; height: 100%; width: 4%; border-radius: 8px; transition: width .25s;
  background: url("assets/img/coin_edge.webp?v=a1d97c60") left center / auto 100% repeat-x; }
/* PLAY: the primary gold button, large */
#play.plank { --bh: min(92px, calc(var(--vw) * 22), 15vh); width: calc(var(--bh) * 3.3); filter: drop-shadow(0 8px 10px rgba(20,8,0,.55)); }
#play .gl { display: block; font-size: calc(var(--bh) * .4); letter-spacing: .08em; }
#play.ready { animation: ctaArm .5s ease-out 1; }
#loaderMsg { position: relative; margin: 0; font-size: 15px; color: #ffcf8a; min-height: 18px; }
#build { position: absolute; right: 10px; bottom: max(6px, env(safe-area-inset-bottom)); font-size: 11px; font-style: normal; color: rgba(255,240,210,.6); }
/* (a turned phone, never the desktop stage) */
@media (max-height: 560px) and (orientation: landscape) and (max-width: 899px), (max-height: 500px) and (orientation: landscape) { .feats { display: none; } #loaderLogo { width: min(40vw, 40vh); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
/* pointer hover and keyboard focus on every control (desktop) */
@media (hover: hover) {
  .rbtn:hover::before, .plateBtn:hover, .cta:hover, .pBtn:hover, .pTab:hover, .bstep:hover::before { filter: brightness(1.14); }
  #btnSpin:hover { filter: drop-shadow(0 6px 8px rgba(20,8,0,.55)) brightness(1.1); }
  #btnBuy:hover { filter: brightness(1.1) drop-shadow(0 5px 6px rgba(20,8,0,.5)); }
}
/* focus rings only while the player moves through the controls with Tab (body.kbnav, ui/input.js): a click or a tap
   never leaves one, nor does Space (it presses SPIN); the round controls get a round ring */
#ui button:focus-visible, #fxui button:focus-visible, #panel button:focus-visible, #loader button:focus-visible { outline: none; }
body.kbnav #ui button:focus-visible, body.kbnav #fxui button:focus-visible, body.kbnav #panel button:focus-visible,
body.kbnav #loader button:focus-visible { outline: 3px solid #ffe7a6; outline-offset: 3px; border-radius: 18px; }
body.kbnav #ui #btnSpin:focus-visible, body.kbnav #ui .rbtn:focus-visible, body.kbnav #fxui .rbtn:focus-visible { border-radius: 50%; }
/* the controls' art in Spine (ui/uirig.js): its canvas over the deck, under the controls; their CSS art rests */
#uicv { position: absolute; left: 0; top: 0; pointer-events: none; }
#ui.sprig #btnSpin, #ui.sprig #btnSpin.spinning, #ui.sprig #btnSpin.down, #ui.sprig #btnSpin.respins { background-image: none; filter: none; }
#ui.sprig #btnSpin:hover { filter: none; }
#ui.sprig .rbtn::before, #ui.sprig .rbtn:hover::before { background: none; filter: none; }
#ui.sprig .field { border-image: none; border-color: transparent; }
#ui.sprig #spinGlow { visibility: hidden; }
/* the plates' ambient life (render/bgrig.js): its canvas over the scene, under the morning light */
#bgcv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- one modal frame: the entry card, the total card, the buy panel (and its confirm step) and the menu ----
   the riveted wood frame with its own wood inside, one width (--modalW CSS px, set by the layout; the cards live in the
   scaled design layer, so they divide by its scale --s), each as tall as its content; the frame's art is set below */
:root { --modalW: 360px; --modalH: 560px; }
.modalFrame { box-sizing: border-box; }
/* one width for all; each as tall as its content plus padding, never taller than the screen's modal room (--modalH; the
   menu's long pages scroll inside it) */
#panel.modalFrame { width: var(--modalW); max-height: var(--modalH); }
/* a landscape phone's buy panel: too short for the cards over the bet, so wider, the cards beside the bet (the grid
   above) */
@media (max-height: 460px) {
  #panel.buy.modalFrame { width: min(94vw, 640px); --mcw: 68px; --mbx: 28px; --mby: 32px; }
  #panel.buy #panelBody { grid-template-columns: 2.4fr 1fr; padding-top: 6px; padding-bottom: 6px; }
  /* each card: its title art and picture side by side, the words, the multiplier, BUY at the foot */
  #panel.buy .buyCard { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr auto; justify-items: center;
    align-items: center; column-gap: 4px; row-gap: 3px; }
  #panel.buy .buyCard .t { grid-area: 1 / 1; width: 100%; height: 40px; }
  #panel.buy .buyCard .tt { line-height: 40px; }
  #panel.buy .buyCard .tt.gold { font-size: 20px; padding: 0 19%; }
  #panel.buy .buyCard .p { grid-area: 1 / 2; width: auto; height: 40px; }
  #panel.buy .buyCard .ln { grid-area: 2 / 1 / 3 / 3; font-size: 13px; }
  #panel.buy .buyCard .mult { grid-area: 3 / 1 / 4 / 3; }
  #panel.buy .buyCard .why { grid-area: 4 / 1 / 5 / 3; align-self: start; }
  #panel.buy .buyCard .buyNow { grid-area: 5 / 1 / 6 / 3; margin-top: 0; --bh: 46px; }
}
#panelBody { flex: 1 1 auto; min-height: 0; }
#intro .card.modalFrame, #total .card.modalFrame { width: calc(var(--modalW) / var(--s, 1)); max-height: calc(var(--modalH) / var(--s, 1));
  padding: calc(14px / var(--s, 1)) calc(12px / var(--s, 1)) calc(18px / var(--s, 1)); }
#fxui[data-layout="land"] .card #introArt { width: 16%; }
#fxui[data-layout="land"] #intro.scene .card #introArt { width: 30%; }
#fxui[data-layout="land"] .card img#introTitle, #fxui[data-layout="land"] .card img#totalTitle { width: 40%; }

/* ---- game typography: gold or cream fill, a dark-brown outline and a soft drop shadow; no rectangle behind any word.
   The outline is eight hard text shadows around the letters (never a text stroke: WebKit strokes every contour of the
   glyph, which shows as lines inside letters and digits). --ol is for CSS-px text (panels), --olu for the scaled
   design-px layers (#ui, #fxui, the cards), --olb for big amounts ---- */
:root {
  --olc: #3a1d08;
  --ol: -1.6px -1.6px 0 var(--olc), 1.6px -1.6px 0 var(--olc), -1.6px 1.6px 0 var(--olc), 1.6px 1.6px 0 var(--olc),
    -2px 0 0 var(--olc), 2px 0 0 var(--olc), 0 -2px 0 var(--olc), 0 2px 0 var(--olc), 0 3px 4px rgba(0,0,0,.5);
  --olu: -3px -3px 0 var(--olc), 3px -3px 0 var(--olc), -3px 3px 0 var(--olc), 3px 3px 0 var(--olc),
    -4px 0 0 var(--olc), 4px 0 0 var(--olc), 0 -4px 0 var(--olc), 0 4px 0 var(--olc), 0 6px 7px rgba(0,0,0,.5);
}
.pHead h2, .pRow h4, .pRow p, .pText, .pLegal, .pTable td, .pTable th, .pSet, .buyCard .ln, .buyCard .mult, .buyCard .why,
.bbet .lab, .bbet .val, .confirm .sum, #toast, #offer strong, #offer p, .confirm .sec .gl, #netWait b, #netWait span,
.maxwin small, .maxwin em, #loaderMsg, .feat i, .feat b { text-shadow: var(--ol); }
.plq b, .plq span, #msgVal, #bhud .bh b, #bhud .bh span, .field .flab, .field .fval, .card .eyebrow, .card .line,
.card .count span, .card .count em, #spinCount, #bwLine, #autoLeft { text-shadow: var(--olu); }
/* the cast gold letters (the amounts, the names): no filter (#fxui .gold below draws their outline as text) */
.gold { filter: none; }
/* (the figures on the cards and plates (scaled design-px layer): never a CSS filter there, which is drawn into a picture
   at the layer's own size and resampled to the screen, nor a soft shadow as the outline. Two layers drawn as text at
   their final size: the element's own text is the dark outline, a 7 px stroke round the letters with a small hard drop
   under them; its ::after is the same text (data-t, ui/hud.js goldLayers) in the cast-gold gradient on top, cream to
   orange down the letters. The stroke's lines inside overlapping contours stay under the gold) */
#totalAmt, #plateAmt, #introName { position: relative; }
#fxui .gold { filter: none; color: var(--olc); -webkit-text-fill-color: var(--olc); -webkit-text-stroke: 7px var(--olc);
  paint-order: stroke fill; text-shadow: 0 5px 0 #2a1204; }
#fxui .gold::after { content: attr(data-t); position: absolute; inset: 0; padding: inherit; text-align: inherit; white-space: nowrap;
  pointer-events: none; -webkit-text-stroke: 0; text-shadow: none; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #fffbe6 0%, #ffeaa8 34%, #ffc63e 60%, #e48e1e 100%); -webkit-background-clip: text; background-clip: text; }
.pRow p, .pText { font-size: 15px; color: #fff3d6; }
.pRow h4 { font-size: 18px; }
.buyCard .ln { font-size: 15px; color: #fff3d6; }
.buyCard .mult { font-size: 17px; }
.pLegal { color: #f4e3c0; }
#msgVal { font-size: max(var(--floor), 28px); color: #fff3cf; }
#msgVal .amt { color: #ffd75e; }
#bhud .bh b { font-size: max(var(--floor), 20px); color: #ffd75e; }
#bhud .bh.tot span { color: #fff3cf; }
.field .flab { color: #ffd75e; }
#toast { font-size: 26px; color: #fff3cf; }

/* the buy cards: the BUY buttons on one line (each at its card's foot, whatever the text above) */
.buyCards { align-items: stretch; }
.buyCard .buyNow { margin-top: auto; }
.buyCard .why:empty { display: none; }
/* a landscape phone: the confirm step side by side (the chosen card's art left; the sum, BUY and BACK right), so the
   whole step fits inside the panel */
@media (orientation: landscape) and (max-height: 500px) {
  #panel.buy #panelBody.confirming { display: block; }
  #panelBody.confirming .confirm { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 14px; margin-top: 0; }
  .confirm .pick { grid-row: 1 / 4; width: 100%; margin: 0; }
  .confirm .pick .t { height: 46px; } .confirm .pick .tt { line-height: 46px; font-size: 30px; } .confirm .pick .p { height: 64px; }
  .confirm .sum { margin: 0 0 6px; }
  .confirm .cta { min-width: 0; width: 100%; --bh: 48px; padding: 0 6px; }
  .confirm .cta .gl { white-space: nowrap; font-size: 20px; }
  .confirm .sec { min-width: 0; width: 100%; --bh: 44px; margin-top: 6px; }
}
/* the loader: the thief and the goat (chest up, cut-outs) stand at the logo's sides, in front of its edges */
#loaderTop { position: relative; z-index: 1; }
#loaderTop .lh { position: absolute; bottom: -4%; height: 104%; width: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%;
  opacity: 0; transition: opacity .3s; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); z-index: 0; }
#loaderTop .lh.ld { opacity: 1; }
/* (the thief stands beside the logo, behind its sign: every letter in front of him; the logo's own goat is the goat) */
#loaderTop #loaderThief { right: 72%; }
#loaderTop #loaderLogo { position: relative; z-index: 1; display: block; }
/* the reconnect overlay: a dimmed stage, three hopping coins, RECONNECTING… and the retry line (the attempt, the seconds to
   the next try); taps are held while it shows */
#netWait { position: absolute; inset: 0; z-index: 45; display: none; align-items: center; justify-content: center; background: rgba(16,7,1,.5); pointer-events: auto; }
#netWait.on { display: flex; }
#netWait .nw { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
/* waiting for the server: three of the game's coins in a row, each hopping in turn and squashing a little as it lands */
#netWait .hops { display: flex; gap: 12px; height: 54px; align-items: flex-end; }
#netWait .hops i { position: relative; width: 30px; height: 30px; background: url("assets/img/coin.webp?v=64da3d9e") center / contain no-repeat;
  animation: nwHop 1.2s cubic-bezier(.3,0,.4,1) infinite; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
#netWait .hops i:nth-child(2) { animation-delay: .2s; }
#netWait .hops i:nth-child(3) { animation-delay: .4s; }
@keyframes nwHop { 0%, 46%, 100% { transform: translateY(0); } 20% { transform: translateY(-22px); } 40% { transform: translateY(0) scaleY(.88); } }
#netWait b { font-size: 30px; letter-spacing: .06em; color: #fff3cf; text-shadow: 0 3px 4px rgba(0,0,0,.5); }
#netWait span { font-size: 17px; color: #ffd75e; text-shadow: 0 2px 3px rgba(0,0,0,.5); }

/* ---- the console (ui_deck.webp): the carved deck itself at its own aspect (--artH tall) at the top of its box; SPIN,
   the small buttons and the readouts sit in its recesses. Portrait: one solid bar, its end caps past the screen's sides
   and the bar's own dark wood behind it from under its top rim down to the screen's bottom, so no scene shows at its
   corners or under it ---- */
#deck2 { display: none !important; }
/* the readouts: the name just over its slot, the value in the slot (no plate of their own) */
.field { border: 0 !important; border-image: none !important; justify-content: flex-end; padding: 0 0 2px; }
.field .flab { font-size: max(var(--floor), 17px); margin: 0 0 6px; letter-spacing: .08em; }
.field .fval { font-size: max(var(--floor), 30px); line-height: 1.15; }
#ui[data-deck] .field .fval { font-size: max(var(--floor), 30px); }
#ui[data-deck] .field .flab { font-size: max(var(--floor), 17px); }
.field.bet .fval { padding: 0 calc(var(--tap, 44px) * .45); }
/* ---- the status plank (ui_status.webp): its gold caps kept, the groove stretched; the message line and the bonus
   counters sit in it ---- */
#msg, #bhud { border: 0; border-image: none; background: none; }
#bhud { box-sizing: border-box; }
#bhud .bh { border: 0; border-image: none; background: none; }
#msgVal { font-size: max(var(--floor), calc(var(--h, 52px) * .42)); }
/* ---- the one modal frame (ui_modal.webp): the riveted gold frame with olive corners round the carved walnut panel,
   9-sliced (its 300 px corners whole, its edges repeated); the content stays inside the walnut ---- */
:root { --mcw: 96px; --mbx: 40px; --mby: 46px; }
.modalFrame { border-style: solid; border-width: var(--mby) var(--mbx);
  border-image: url("assets/img/ui_modal.webp?v=89621922") 300 fill / var(--mcw) stretch; filter: drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
/* a nine-slice picture painted whole (ui/nine.js): one background in place of the border-image's nine pieces, whose
   joints between screen pixels show as thin lines; for the read-outs' plates (::before) the host carries it. The
   picture goes on under the border-image first (a repaint keeps the one before under it), then the border-image goes */
.nineBg { background: var(--nine) 0 0 / 100% 100% no-repeat border-box, var(--nineOld, none) 0 0 / 100% 100% no-repeat border-box !important; }
.nineBgB::before { background: var(--nineB) 0 0 / 100% 100% no-repeat border-box, var(--nineOldB, none) 0 0 / 100% 100% no-repeat border-box !important; }
/* (the border-image goes two frames after the picture is on under it: the swap never shows a frame without either) */
.nined { border-image-source: none !important; border-color: transparent !important; }
.ninedB::before { border-image-source: none !important; border-color: transparent !important; }
/* the frame painted whole (ui/frame.js: rails from their rivet-free stretches, round rivets at the art's spacing) as the
   element's own background over its border box; the border-image above shows only until it is in */
.modalFrame.frameBg, #offer.frameBg { background: var(--frame) 0 0 / 100% 100% no-repeat border-box, var(--frameOld, none) 0 0 / 100% 100% no-repeat border-box; }
.modalFrame.framed, #offer.framed { border-image-source: none; border-color: transparent; }
#intro .card.modalFrame, #total .card.modalFrame { border-width: calc(var(--mby) / var(--s, 1)) calc(var(--mbx) / var(--s, 1));
  border-image-width: calc(var(--mcw) / var(--s, 1)); padding: calc(var(--mpt) / var(--s, 1)) calc(var(--mpx) / var(--s, 1)) calc(12px / var(--s, 1)); }
/* the content keeps clear of the frame's band: the walnut starts 126 px (top) and 116 px (sides) into the 300 px
   corner slice drawn at --mcw (about 40 px and 37 px), and the title and the close disc stand --mpt / --mpx inside it */
:root { --mpt: 14px; --mpx: 12px; }
#panel.modalFrame { padding: var(--mpt) var(--mpx) 12px; }
.pHead { border-bottom: 2px solid rgba(255,210,110,.28); padding: 0 52px 4px 4px; min-height: 48px; }
#panelX { right: 0; }
/* ---- the buy panel: each card in its slim gold-framed walnut card (buy_card.webp, 600 x 914, 9-sliced: its 92 px
   corners with their rivets whole at --bcf, the edges and the walnut stretched), the title art, picture, words and BUY
   inside the frame, the BUY buttons on one line at the cards' foot, − and + at the bet's sides, everything centred ---- */
.buyCards { justify-content: center; gap: 8px; }
.buyCard { --bcf: 20px; background: none; border: 0 solid transparent; border-radius: 0; box-shadow: none;
  border-image: url("assets/img/buy_card.webp?v=763d6ab6") 92 fill / var(--bcf) stretch; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
#panel.buy .buyCard { padding: 13px 12px 12px; }
@media (max-height: 700px), (max-width: 340px) { #panel.buy .buyCard { --bcf: 18px; padding: 11px 11px 11px; } }
@media (orientation: landscape) and (max-height: 500px) { #panel.buy .buyCard { --bcf: 18px; padding: 11px 11px 11px; } }
.bbet { justify-content: center; gap: 6px; }
.bbet .lab { margin-right: 6px; }
.bbet .val { min-width: 64px; }
.buyCard .buyNow .gl { font-size: 17px; }
.buyCard .tt.gold { font-size: 20px; padding: 0 19%; }
.buyCard .ln { font-size: 14px; }

/* ---- the buttons: one designed art each, 9-sliced. btn_gold.webp (800 x 216) for the primary ones (PLAY, START,
   COLLECT, BUY, OK, TURBO ON, the chosen option or tab), btn_wood.webp (800 x 222) for the secondary ones (BACK,
   NO THANKS, the other options and tabs). The rim's 34 px bands and the 88 px riveted end caps (with the face's
   rounded ends) keep their shape at the button's height --bh (they scale with it), only the face stretches along;
   the words sit on the face (the layout border stops where the face starts). Dark words with a light glow on gold,
   cream words outlined on walnut. Pressed: .96 and darker; disabled: desaturated ---- */
:root { --btnT: .157; --btnC: .407; --btnF: .235; }
.cta, #play.plank, .sec, .pBtn, .pTab {
  box-sizing: border-box; height: var(--bh, 52px); min-height: 0; border-radius: 0; box-shadow: none; background: none;
  border-style: solid; border-color: transparent;
  border-width: calc(var(--bh, 52px) * var(--btnT)) calc(var(--bh, 52px) * var(--btnF));
  border-image: url("assets/img/btn_wood.webp?v=b95c04dc") 34 88 fill / calc(var(--bh, 52px) * var(--btnT)) calc(var(--bh, 52px) * var(--btnC)) stretch;
  color: #ffe9b8; text-shadow: var(--ol); transition: transform .1s ease-out, filter .1s ease-out; }
/* (words on the gold face are struck into it, like the painted START / COLLECT: dark bronze with a 1 px light lower
   edge, no glow, no rim) */
.cta, #play.plank, .pBtn.on, .pTab.on { border-image-source: url("assets/img/btn_gold.webp?v=5609f55c"); color: #3a2206;
  text-shadow: 0 1px 0 rgba(255,240,200,.85); }
.cta .gl, #play .gl, .sec .gl { color: inherit; text-shadow: inherit; }
.cta.down, .cta:active, .sec.down, .sec:active, .pBtn.down, .pBtn:active, .pTab.down, .pTab:active, #play.down, #play:active {
  transform: scale(.96); filter: brightness(.8); }
.cta:disabled, .sec:disabled, .pBtn:disabled, .pTab:disabled, #play:disabled, .buyCard.poor .buyNow { filter: saturate(.3); }
#play:disabled { filter: saturate(.3) drop-shadow(0 8px 10px rgba(20,8,0,.55)); }
.buyCard .buyNow .gl { display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 18px; white-space: nowrap; }
.buyCard .buyNow .gl small { font-size: 12px; letter-spacing: .1em; }

/* ---- the house bar (as OCTOPOTS): a soft dark gradient under the controls; one row BUY BONUS · TURBO · SPIN · AUTO ·
   SOUND, MENU in the top right corner; the bottom line three flat dark read-outs BALANCE | − BET + | WIN with small
   names and bright figures. SPIN is the one loud control (the largest, its own deep olive face in its gold rim, a
   breathing light); the small buttons are one flat family: dark discs, a thin gold ring, line icons, all one size ---- */
#heroes .deck { border: 0; border-image: none; filter: none;
  background: linear-gradient(180deg, rgba(16,7,1,0) 0%, rgba(16,7,1,.62) 26%, rgba(12,5,1,.9) 64%, rgba(8,3,0,.96) 100%); }
#ui #btnSpin { background: url("assets/img/spin_g.webp?v=3a742d5e") center/contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
#ui #btnSpin.spinning { background-image: url("assets/img/spin_g_stop.webp?v=de1548fa"); }
#ui #btnSpin.down { background-image: url("assets/img/spin_g_down.webp?v=a31e3272"); }
#ui #btnSpin.respins { background-image: url("assets/img/spin_g_s.webp?v=a44c7d1d"); }
#ui #spinGlow { background: radial-gradient(circle, rgba(196,236,110,.5) 0%, rgba(150,200,60,.24) 45%, rgba(120,180,40,0) 70%); }
#ui .rbtn::before, #ui .rbtn:hover::before { --disc: 100%; border-radius: 50%; }
#ui .rbtn .ic { width: 44%; height: 44%; }
#ui .rbtn.small::before { --disc: 76%; }
#ui .rbtn.small .ic { width: 36%; height: 36%; }
/* BUY BONUS: a round button of the family, its coin pile inside, its name under it */
#ui #btnBuy, #ui.sprig #btnBuy { border-radius: 50%; filter: none; }
#ui #btnBuy::before { content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: url("assets/img/buy_btn.webp?v=397e8438") 50% 22% / 175% auto no-repeat; }
#ui #btnBuy::after { content: "BUY BONUS"; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px;
  font-size: max(var(--floor), 15px); letter-spacing: .06em; color: #ffd75e; white-space: nowrap; text-shadow: var(--olu); pointer-events: none; }
/* a short phone's tightened bar has no room under the row: BUY's own lettering names it */
#ui[data-bar="tight"] #btnBuy::after { display: none; }
#ui.inbonus #btnBuy, #ui #btnBuy[aria-disabled="true"] { filter: saturate(.5); }
#ui #btnBuy.down { transform: scale(.96); filter: brightness(.8); }
/* the read-outs: flat dark plates, the name small and muted over the bright figure */
#ui .field { justify-content: center; padding: 0 6px; box-sizing: border-box; border-radius: 14px;
  background: rgba(12,6,1,.78); box-shadow: inset 0 0 0 1.5px rgba(232,182,84,.42); }
#ui .field .flab, #ui[data-deck] .field .flab { font-size: max(var(--floor), 15px); margin: 0 0 3px; letter-spacing: .1em; color: rgba(255,236,190,.66); text-shadow: none; }
#ui .field .fval, #ui[data-deck] .field .fval { font-size: max(var(--floor), 28px); line-height: 1.1; color: #fff; text-shadow: 0 2px 2px rgba(0,0,0,.5); }
#ui .field.bet .fval { padding: 0 calc(var(--h, 60px) * .92); }
#ui #win.haswin .fval { color: #ffd75e; }
/* the status line: words on the board's bottom rail, no plank */
#ui #msgVal { text-shadow: var(--olu); }

/* the jackpot shelf (a slim wooden plank under the coins; layout.js places none at present) */
#jpShelf { position: absolute; box-sizing: border-box; pointer-events: none; border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--h, 40px) * .5); border-image: url("assets/img/ui_status.webp?v=65d53976") 0 96 fill / 0 calc(var(--h, 40px) * .5) stretch;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
/* ---- the jackpot pieces: each medallion (jp_<tier>_v63: its emblem centred on the face, its enamel ring in the tier's
   colour; --coinK of the piece's height, a little over its box) on the left, a tab in its colour growing out to its
   right, the name and the value on the tab. The tab is 3-sliced: its straight left end tucked behind the coin, its round
   right end with the gem kept whole (slices in the tab art's px, 128 tall; the tab 0.6 of the piece's height) ---- */
#ui .plq, #ui .plq.grand { display: block; padding: 0; gap: 0; background: none; }
#ui .plq::before, #ui .plq.grand::before { content: ""; display: block; position: absolute; z-index: 2;
  left: calc(var(--ph, 40px) * (1 - var(--coinK, 1.15)) / 2); top: calc(var(--ph, 40px) * (1 - var(--coinK, 1.15)) / 2); bottom: auto;
  width: calc(var(--ph, 40px) * var(--coinK, 1.15)); height: calc(var(--ph, 40px) * var(--coinK, 1.15)); transform: none;
  pointer-events: none; background: center / contain no-repeat; }
/* (the row's medallions: the emblem centred on a whole face, no name panel: the names are on the tabs) */
#ui .plq.mini::before { background-image: url("assets/img/jp_mini_v63.webp?v=7e06e71d"); }
#ui .plq.minor::before { background-image: url("assets/img/jp_minor_v63.webp?v=5c98faea"); }
#ui .plq.major::before { background-image: url("assets/img/jp_major_v63.webp?v=43975a03"); }
#ui .plq.grand::before { background-image: url("assets/img/jp_grand_v63.webp?v=47d94d48"); }
/* (the tab --tabK of the piece's height, centred on it: ui/hud.js fitPlaques sets it, .6 for one line, up to .9 when the
   words need it; its ends 68 / 128 and 14 / 128 of its height wide, the art's own end slices) */
#ui .plq::after { content: ""; position: absolute; z-index: 0; left: calc(var(--ph, 40px) * .5); right: 0;
  top: calc(50% - var(--tabK, .6) * 50%); height: calc(var(--tabK, .6) * 100%);
  box-sizing: border-box; pointer-events: none; border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--ph, 40px) * var(--tabK, .6) * .531) 0 calc(var(--ph, 40px) * var(--tabK, .6) * .109);
  border-image: url("assets/img/jp_tab_mini.webp?v=dade710f") 0 68 0 14 fill / 0 calc(var(--ph, 40px) * var(--tabK, .6) * .531) 0 calc(var(--ph, 40px) * var(--tabK, .6) * .109) stretch; }
#ui .plq.minor::after { border-image-source: url("assets/img/jp_tab_minor.webp?v=41acc80b"); }
#ui .plq.major::after { border-image-source: url("assets/img/jp_tab_major.webp?v=433e8f1b"); }
#ui .plq.grand::after { border-image-source: url("assets/img/jp_tab_grand.webp?v=65d47bdb"); }
/* (each tab painted as one picture, its round end whole at the tab's height: ui/frame.js paintTab; the picture covers
   the whole border box it was painted for, its ends included) */
#ui .plq.tabBg::after { background: var(--tab) 0 0 / 100% 100% no-repeat border-box, var(--tabOld, none) 0 0 / 100% 100% no-repeat border-box; }
#ui .plq.tabbed::after { border-image-source: none; }
/* (the pieces are support by their size and place, in their full colours: readable on every screen) */
#ui .plq { filter: none; }
/* (the name, placed and sized by ui/hud.js fitPlaques, never under 11.2 CSS px: in the medallion's blank band, engraved
   as on the gold plates (dark bronze cut in, its lower wall lit); or on the tab, before the value or over it, in the
   value's cream with its outline. tab2: the tab taller, for two lines) */
#ui .plq b { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center; line-height: 1;
  letter-spacing: 0; white-space: nowrap; pointer-events: none; }
#ui .plq[data-name="band"] b { color: #4a2808; text-shadow: 0 1px 0 rgba(255, 236, 170, .8); }
#ui .plq[data-name="tab"] b, #ui .plq[data-name="tab2"] b { color: #fff3cf; text-shadow: var(--olu); }
#ui .plq[data-name="tab"] b { justify-content: flex-start; }
/* the words' measure (ui/jpname.js jpnWordW): a hidden word in the plaques' font and figures, 200 px */
#ui .jpnM { position: absolute; left: 0; top: 0; display: inline-block; visibility: hidden; pointer-events: none; white-space: nowrap;
  font-size: 200px; font-style: normal; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: normal; text-transform: none; }
/* (the value between the coin and the gem; hud.js fitPlaques sizes it) */
#ui .plq span { position: absolute; z-index: 1; left: calc(var(--ph, 40px) * 1.02); right: calc(var(--ph, 40px) * .16); top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; margin: 0; line-height: 1; color: #ffe39a; text-shadow: var(--olu); white-space: nowrap;
  font-variant-numeric: normal; }
/* BUY BONUS: its whole picture (the coin pile, the words and the riveted frame), larger than the small buttons */
#ui #btnBuy, #ui.sprig #btnBuy { border-radius: 0; box-shadow: none; background: url("assets/img/buy_btn.webp?v=397e8438") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
#ui #btnBuy::before, #ui #btnBuy::after { display: none; }
#ui.inbonus #btnBuy, #ui #btnBuy[aria-disabled="true"] { filter: saturate(.5) drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
/* the menu's sound switch at its top */

/* ---- the buy panel, roomier: on a phone wider than the other panels with a slimmer frame band, the cards' title art
   and picture larger, short copy, BUY and its price on one line on each card (its font fits the button's face), the
   buy bet with − and + right beside its value ---- */
/* (a portrait phone or the desktop stage: layout.js body[data-layout]) */
body[data-layout="port"] #panel.buy.modalFrame { width: min(calc(var(--vw) * 100 - 6px), 470px); flex: none; margin: 0 -7px; --mcw: 76px; --mbx: 30px; --mby: 36px;
  padding-left: 6px; padding-right: 6px; }
/* GOAT GRAB's card: the goat as it lands on the board, its multiplier sign at its top right corner as on the board (a
   bit over a third of the goat's width, a little past its edge), rolling through the ladder in its round window,
   the window shaded at its top and bottom like a reel (ui/panels.js goatPic, rollGoat); the box as tall as the other
   card's picture, as wide as the goat */
.buyCard .pgoat, .confirm .pick .pgoat { position: relative; display: block; width: auto !important; aspect-ratio: 447 / 520; flex: none; }
.pgoat .g { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(20,8,0,.5)); }
.pgoat .rm { position: absolute; right: -14%; top: -2%; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 2px 5px rgba(20,8,0,.55); }
.pgoat .rm i { position: absolute; left: 0; top: 0; width: 100%; display: block; will-change: transform; }
.pgoat .rm img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pgoat .rm::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(10,6,2,.62), rgba(10,6,2,0) 24%, rgba(10,6,2,0) 76%, rgba(10,6,2,.62)); }
#panel.buy .buyCards { gap: 8px; }
#panel.buy .buyCard { padding: 12px 9px 12px; gap: 5px; }
#panel.buy .buyCard .t { width: 100%; height: 84px; }
#panel.buy .buyCard .tt { line-height: 84px; }
#panel.buy .buyCard .tt.gold { font-size: 28px; padding: 0 15%; }
#panel.buy .buyCard .p { width: 80%; height: 118px; }
#panel.buy .buyCard .ln { font-size: 15px; min-height: 38px; text-wrap: balance; }
#panel.buy .buyCard .mult { font-size: 17px; }
#panel.buy .buyCard .buyNow { --bh: 52px; }
#panel.buy .buyCard .buyNow .gl { flex-direction: row; justify-content: center; width: 100%; font-size: 19px; gap: .3em; }
#panel.buy .buyCard .buyNow .gl small { font-size: inherit; letter-spacing: .04em; }
#panel.buy .bbet { gap: 6px; margin: 12px 0 4px; }
#panel.buy .bbet .lab { margin-right: 8px; font-size: 17px; }
#panel.buy .bbet .val { min-width: 0; padding: 0 6px; font-size: 24px; }
@media (max-height: 700px), (max-width: 340px) {
  #panel.buy .buyCard .t { height: 62px; }
  #panel.buy .buyCard .tt { line-height: 62px; font-size: 30px; }
  #panel.buy .buyCard .tt.gold { font-size: 24px; }
  #panel.buy .buyCard .p { height: 80px; }
  #panel.buy .buyCard .ln { font-size: 14px; min-height: 0; }
  #panel.buy .buyCard { gap: 3px; padding: 10px 8px 10px; }
  #panel.buy .buyCard .buyNow { --bh: 48px; }
}
/* ---- the entry and total cards: one-line texts never wrap (a line wider than the card takes a smaller font,
   cinema/cover.js fitCard); landscape (a desktop, a turned phone) gives the cards a landscape size of their own ---- */
.card .eyebrow, .card .line:not(.para), .card .amt, #introName { white-space: nowrap; }
#fxui[data-layout="land"] #intro .card.modalFrame, #fxui[data-layout="land"] #total .card.modalFrame { width: 620px; max-height: 690px; }
/* ---- the loader's heroes stand on the cards: each shown from its head down to its thighs (rest.webp rows 0.075..0.98:
   the box 0.829 as wide as tall, 125.5 % of the logo row's height), so its waist sits by the cards' top and its cut
   lies behind the cards (they paint over the logo row); its last 28 px fade out where no card covers it. A short
   landscape screen hides the cards: there the heroes show chest up and fade out well above the waist ---- */
#loaderTop .lh { top: 0; bottom: auto; height: 125.5%; aspect-ratio: .829; object-position: 50% 79%;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
@media (max-height: 560px) and (orientation: landscape) and (max-width: 899px), (max-height: 500px) and (orientation: landscape) {
  #loaderTop .lh { height: 104%; aspect-ratio: 1; object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent 86%); mask-image: linear-gradient(to bottom, #000 48%, transparent 86%); }
  }
/* ---- the speed's name: a small status plank (ui_status.webp, its gold caps kept) just over TURBO, shown for a moment
   when the speed changes; never over the board. TURBO itself: its icon counts the speed, its ring lit above NORMAL ---- */
#ui #speedTag { position: absolute; display: flex; align-items: center; justify-content: center; box-sizing: border-box; pointer-events: none;
  border-style: solid; border-color: transparent; border-width: 0 calc(var(--h, 36px) * .25);
  border-image: url("assets/img/ui_status.webp?v=65d53976") 0 96 fill / 0 calc(var(--h, 36px) * .25) stretch;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .18s, transform .22s cubic-bezier(.2,.9,.3,1.3); }
#ui #speedTag.on { opacity: 1; transform: none; }
/* (the speed's word carved into the plate's plank: no rim, a dark upper inner edge and a faint light lower one) */
#ui #speedTag b { font-size: max(var(--floor), calc(var(--h, 36px) * .5)); line-height: 1; color: #f2d48a; letter-spacing: .04em;
  text-shadow: 0 -1px 0 rgba(26,10,0,.75), 0 1px 0 rgba(255,226,160,.28); white-space: nowrap; }
/* ---- the bonus's last respin: the scene's edges darken a little (the board's middle stays clear), the respins count on
   the porthole pulses, the bonus counters say LAST RESPIN ---- */
#edge { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s ease-out;
  background: radial-gradient(ellipse 62% 54% at 50% 50%, rgba(10,4,0,0) 55%, rgba(10,4,0,.5) 100%); }
body.lastSpin #edge { opacity: 1; }
#ui #btnSpin.last #spinCount { animation: lastPip .55s ease-in-out infinite alternate; }
@keyframes lastPip { from { transform: scale(1); color: #fff3cf; } to { transform: scale(1.16); color: #ffd75e; } }
#bhud .bh.tot.last b { color: #ff8c5a; animation: lastPip .55s ease-in-out infinite alternate; }
/* a plaque's level-up and a teased cell are drawn on the board canvas (render/board.js) */
/* ---- a short phone (layout.js compact): no status row (the WIN box's label carries the round's words) ---- */
/* ---- the dims cover the whole viewport: the entry and total cards' dims and the big win's veil reach past the design
   box over the letterbox (--oxD / --oyD, design px, set by layout.js) ---- */
#intro, #total { left: calc(-1 * var(--oxD, 0px)); top: calc(-1 * var(--oyD, 0px));
  width: calc(100% + 2 * var(--oxD, 0px)); height: calc(100% + 2 * var(--oyD, 0px)); }
#bigwin::before { inset: calc(-1 * var(--oyD, 0px)) calc(-1 * var(--oxD, 0px)); }
/* landscape: the bonus counters' total fits its slimmer row */
#ui[data-layout="land"] #bhud .bh.tot span { font-size: 34px; }
#ui[data-layout="land"] #bhud .bh b { font-size: 16px; }
/* (the card rain draws in the design box's own px: its canvas stays on the design box inside the widened dim) */
#rainCv { left: var(--oxD, 0px); top: var(--oyD, 0px); width: calc(100% - 2 * var(--oxD, 0px)); height: calc(100% - 2 * var(--oyD, 0px)); }
/* the panel is opaque from its first frame (WebKit can hold an opacity animation at its start); only a short rise */
#panel.opening { animation: panelIn2 .2s cubic-bezier(.2,.8,.2,1) 1; }
@keyframes panelIn2 { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
/* ---- the loader reveals its pieces together (index.html: once every picture and the fonts have decoded) ---- */
#loader .feats, #loader .maxwin, #loader .go, #loader #loaderMsg, #loader #loaderTop .lh.ld { transition: opacity .3s ease-out; }
#loader:not(.ready) .feats, #loader:not(.ready) .maxwin, #loader:not(.ready) .go, #loader:not(.ready) #loaderMsg,
#loader:not(.ready) #loaderTop .lh, #loader:not(.ready) #loaderTop .lh.ld { opacity: 0; visibility: hidden; }
/* the bar's WIN number veiled while the TOTAL card counts (flow/bonus.js): it fades out and back in, its label stays */
#ui #winVal { transition: opacity .2s ease-out; }
#ui #winVal.veiled { opacity: 0 !important; animation: none !important; }
/* ---- the jackpot coins step out of a celebration's way (hero/herostage.js coinHold): faded out, back after it ---- */
#ui .plq { transition: opacity .25s ease-out; }
#ui[data-coins="out"] .plq { opacity: 0; }
/* the TOTAL card on a portrait screen: from the board's rail down to SPIN's middle at most (layout.js --tcH; cover.js
   sets its top) */
#fxui[data-layout="port"] #total .card.modalFrame { max-height: var(--tcH, calc(var(--modalH) / var(--s, 1))); }
/* ---- the bar in the cabinet's carved walnut and gold, one family in the base game and the bonus: the read-outs and
   the small discs with depth (a walnut face lit from above, a bevelled gold rim: brighter on its top edge) ---- */
#ui .field .flab, #ui[data-deck] .field .flab { color: rgba(255,226,160,.72); }
/* ---- the modal titles on a carved title plaque inside the frame (ui_title_plq.webp, 900 x 177: its 150 px ends with
   the olive sprigs and the rivets kept whole, its walnut middle stretched to the title) ---- */
.pHead { justify-content: center; border-bottom: 0; padding: 4px 52px 8px; }
.pHead h2, .card .eyebrow { box-sizing: border-box; width: fit-content; min-width: 62%; margin: 0 auto; text-align: center;
  height: 2.1em; line-height: 2.1em; padding: 0 .4em; border-style: solid; border-color: transparent; border-width: 0 1.78em;
  border-image: url("assets/img/ui_title_plq.webp?v=b3a80cc2") 0 150 fill / 0 1.78em stretch; color: #ffd75e; text-shadow: var(--olu); white-space: nowrap; }
/* ---- SPIN in layers: the empty porthole face, the arrows on their own layer (wound back a little on the press, a
   whirl into the stop square as the spin starts) and the stop square; its rivets are the art's own ---- */
#ui #btnSpin, #ui #btnSpin.down, #ui #btnSpin.spinning { background-image: url("assets/img/spin_g_s.webp?v=a44c7d1d"); }
#ui #btnSpin.down { filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)) brightness(.92); }
#btnSpin .arrows, #btnSpin .stopsq { position: absolute; inset: 0; pointer-events: none; }
#btnSpin .arrows { background: url("assets/img/spin_arrows.webp?v=dcb55c34") center / contain no-repeat; transition: transform .14s ease-out; }
#btnSpin .stopsq { background: url("assets/img/spin_stopsq.webp?v=90488bbf") center / contain no-repeat; opacity: 0; }
#ui #btnSpin.down .arrows { transform: rotate(-28deg) scale(.96); }
#ui #btnSpin.spinning .arrows { animation: arrowsGo .5s cubic-bezier(.25,.7,.3,1) forwards; }
#ui #btnSpin.spinning .stopsq { animation: stopIn .22s .3s ease-out forwards; }
#ui #btnSpin.respins .arrows, #ui #btnSpin.respins .stopsq { display: none; }
@keyframes arrowsGo { from { transform: rotate(-28deg); opacity: 1; } 65% { opacity: 1; } to { transform: rotate(332deg) scale(.8); opacity: 0; } }
@keyframes stopIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
/* (a panel's title plaque between the panel's edge and the close disc: smaller letters, so the title and the plaque's
   ends fit the narrowest panel) */
.pHead { padding: 4px 50px 8px; }
.pHead h2 { font-size: 18px; height: 2.2em; line-height: 2.2em; border-width: 0 1.86em; border-image-width: 0 1.86em; min-width: min(100%, 210px); max-width: 100%; }
/* a tall phone's top band (layout.js quietTop): the jackpot coins in their full colours, the tab (the larger coloured
   area) a touch see-through over the sky, the value on it fully opaque and crisp */
#ui[data-quiet="1"] .plq::after { opacity: .9; }
/* (a tall phone's grid: support, not a feature: its enamel tabs and medallions a step quieter than the board) */
#ui[data-quiet="1"] .plq::after { filter: saturate(.72) brightness(.88); }
#ui[data-quiet="1"] .plq::before { filter: saturate(.8) brightness(.92); }
/* a tall phone's quiet top: the sky behind the jackpot row shaded lightly (darkest at the screen's top, gone by
   130 px), behind the heroes, never over them */
body[data-quiet="1"] #bg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,7,1,.16), rgba(14,7,1,.08) 45%, rgba(14,7,1,0)); }
/* ---- the bar as designed art in the cabinet's walnut and gold:
   - the round buttons (TURBO, AUTO, MENU, sound, bet - and +, the panels' close) on one disc (ui_disc.webp: a glossy
     walnut face in a riveted gold ring, a small porthole), a little dimmer than SPIN, the icons cream and embossed;
   - BALANCE / BET / WIN on a walnut plate in a gold rim (ui_plate2.webp, 900 x 244: its 120 px ends with the rivets
     kept whole, its middle stretched), the label on a small gold-rimmed tab set into the plate's top edge
     (ui_tab.webp, 600 x 141: 70 px ends) ---- */
#ui .rbtn::before, #ui .rbtn:hover::before { background: url("assets/img/ui_disc.webp?v=7e841bf9") center / contain no-repeat; box-shadow: none;
  border-radius: 50%; filter: brightness(.8) saturate(.85) drop-shadow(0 3px 5px rgba(0,0,0,.5)); }

#panelX::before { background: url("assets/img/ui_disc.webp?v=7e841bf9") center / contain no-repeat; filter: brightness(.85) drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

#ui .field { background: none; box-shadow: none; border-radius: 0; overflow: visible; isolation: isolate; justify-content: center; padding-top: calc(var(--h, 60px) * .1); }
#ui .field::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-sizing: border-box;
  border-style: solid; border-color: transparent; border-width: 0 calc(var(--h, 60px) * .49);
  border-image: url("assets/img/ui_plate2.webp?v=8a800212") 0 120 fill / 0 calc(var(--h, 60px) * .49) stretch;
  filter: brightness(.72) saturate(.85) drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
#ui .field .flab, #ui[data-deck] .field .flab { position: absolute; left: 50%; top: calc(var(--h, 60px) * -.27); transform: translateX(-50%);
  box-sizing: border-box; height: calc(var(--h, 60px) * .46); line-height: calc(var(--h, 60px) * .46); margin: 0; padding: 0 calc(var(--h, 60px) * .08);
  border-style: solid; border-color: transparent; border-width: 0 calc(var(--h, 60px) * .23);
  border-image: url("assets/img/ui_tab.webp?v=61ea3e9c") 0 70 fill / 0 calc(var(--h, 60px) * .23) stretch;
  font-size: max(var(--floor), calc(var(--h, 60px) * .24)); letter-spacing: .1em; color: #f3dfae; text-shadow: 0 1px 0 rgba(20,8,0,.9); white-space: nowrap; }
#ui .field .fval, #ui[data-deck] .field .fval { text-shadow: 0 2px 0 rgba(20,8,0,.85); }
/* ---- the modal titles on a carved title sign (ui_title_sign.webp, 1000 x 270: a walnut plank in a gold rim, its
   165 px ends with the rivets and the olive sprigs kept whole), centred on the frame's inner top edge, over the frame:
   the panels (BUY BONUS, MENU, ...; the close disc stays inside the frame, clear of it) and the entry and TOTAL cards
   (their eyebrow), whose frames let it out ---- */
#panel.modalFrame, #intro .card.modalFrame, #total .card.modalFrame { overflow: visible; }
#panel .pHead { position: relative; min-height: 50px; padding: 4px 56px 8px; border-bottom: 0; }
#panel .pHead h2 { position: absolute; left: 50%; top: calc(-1 * var(--mpt) - 31px); transform: translateX(-50%); z-index: 4; box-sizing: border-box;
  width: auto; min-width: 0; max-width: calc(100% - 112px); height: 62px; line-height: 60px; margin: 0; padding: 0 8px;
  border-style: solid; border-color: transparent; border-width: 0 38px; border-image: url("assets/img/ui_title_sign.webp?v=45073ba7") 0 165 fill / 0 38px stretch;
  font-size: 24px; letter-spacing: .05em; color: #ffd75e; text-shadow: 0 3px 0 #2a1204, var(--olu); white-space: nowrap; }
#intro .card.modalFrame, #total .card.modalFrame { padding-top: calc((var(--mpt) + 24px) / var(--s, 1)); }
#intro .card .eyebrow, #total .card .eyebrow { position: absolute; left: 50%; top: calc(-31px / var(--s, 1)); transform: translateX(-50%); z-index: 4;
  box-sizing: border-box; width: auto; min-width: 0; max-width: 86%; height: calc(62px / var(--s, 1)); line-height: calc(60px / var(--s, 1)); margin: 0;
  padding: 0 calc(8px / var(--s, 1)); border-style: solid; border-color: transparent; border-width: 0 calc(38px / var(--s, 1));
  border-image: url("assets/img/ui_title_sign.webp?v=45073ba7") 0 165 fill / 0 calc(38px / var(--s, 1)) stretch;
  font-size: calc(24px / var(--s, 1)); letter-spacing: .05em; color: #ffd75e; text-shadow: 0 3px 0 #2a1204, var(--olu); white-space: nowrap; }
/* the bonus transition lets taps through from the moment it starts to open (cinema/cover.js) */
#cover.on.fading { pointer-events: none; }
/* ---- the title signs as wide as their frame allows, the title fitted to the plank (ui/textfloor.js fitSign): a panel's
   close disc sits under the sign, inside the frame, so the sign may span the panel and reach over the frame's sides;
   a card's sign reaches over its frame's sides too ---- */
#panel .pHead { min-height: 66px; padding: 4px 8px 8px; }
#panel #panelX { top: 20px; right: -2px; width: 46px; height: 46px; transform: none; }
#panel .pHead h2 { width: max-content; min-width: 58%; max-width: calc(100% + 44px); }
#intro .card .eyebrow, #total .card .eyebrow { width: max-content; min-width: 56%; max-width: calc(100% + 44px / var(--s, 1)); }
/* (a label tab stands 0.2 of its plate's height over the plate: layout.js TAB_UP keeps SPIN clear of the BET tab) */
#ui .field .flab, #ui[data-deck] .field .flab { top: calc(var(--h, 60px) * -.2); }
/* ---- the cards' words drawn at their size: no CSS filter on anything that holds text on the scaled design-px layer
   (#fxui). A filter there is drawn into a picture at the layer's own size and resampled to the screen, which made the
   whole entry and TOTAL card soft (their frame's drop shadow filtered every word in it), the gold figures too. The
   cards cast a box shadow instead (drawn by the page; shaped to the frame's rails, inside its leafy margin), the
   waiting COLLECT is only dimmed and the buttons keep no hover filter ---- */
#fxui .card.modalFrame { filter: none; box-shadow: 0 18px 26px -10px rgba(0,0,0,.6); }
#fxui .cta.wait { filter: none; opacity: .4; }
#fxui .cta:hover, #fxui .cta.down, #fxui .cta:active { filter: none; }
/* ---- scrollbars: a carved dark groove with a gold thumb, never the system's bar (WebKit and Blink draw these; Firefox
   takes the thin bar in the same colours) ---- */
*::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-track { margin: 10px 0; border-radius: 6px; background: #1f0d04;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,210,110,.16); }
*::-webkit-scrollbar-thumb { border-radius: 6px; border: 2px solid #1f0d04; background: #e2ab3c;
  box-shadow: inset 2px 0 0 #ffe08a, inset -2px 0 0 #9a6418; }
*::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:active { background: #f0bf52; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #e2ab3c #1f0d04; } }
/* (a body with more under its last line: its foot fades out over its last 40 px, the scrollbar's strip kept whole, until
   scrolled to the end; panels.js moreBelow) */
#panel.more #panelBody { -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(#000, #000), linear-gradient(#000 calc(100% - 40px), transparent);
  -webkit-mask-size: 14px 100%, calc(100% - 14px) 100%; mask-size: 14px 100%, calc(100% - 14px) 100%;
  -webkit-mask-position: right top, left top; mask-position: right top, left top; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* ---- a desktop window (the stage in the middle, layout.js body[data-stage]): the panels open wider than the stage, up
   to 760 px (90 % of a narrower window), over the dimmed sides, and as tall as the window allows; the frame is painted
   again at that size (ui/frame.js); the words larger, the rules' lines at most about 70 characters; the buy cards side
   by side with larger art ---- */
body[data-stage="1"] #panelWrap { position: fixed; inset: 0; padding: 24px; }
body[data-stage="1"] #panel.modalFrame, body[data-stage="1"] #panel.buy.modalFrame { width: min(760px, 90vw); max-height: calc(100vh - 48px);
  margin: 0; flex: none; --mcw: 96px; --mbx: 40px; --mby: 46px; --mpx: 16px; padding-left: var(--mpx); padding-right: var(--mpx); }
body[data-stage="1"] #panelBody { padding: 14px 30px 18px 22px; }
body[data-stage="1"] .pTabs { gap: 10px; margin-bottom: 14px; }
body[data-stage="1"] .pTab { --bh: 54px; font-size: 18px; }
body[data-stage="1"] .pRow { gap: 18px; margin-bottom: 16px; }
body[data-stage="1"] .pRow img { width: 86px; height: 86px; }
body[data-stage="1"] .pRow h4 { font-size: 21px; }
body[data-stage="1"] .pRow p, body[data-stage="1"] .pText { font-size: 18px; line-height: 1.4; }
body[data-stage="1"] .pRow > div, body[data-stage="1"] .pText, body[data-stage="1"] .pLegal { max-width: 29em; }
body[data-stage="1"] .pLegal, body[data-stage="1"] .pTable, body[data-stage="1"] .pTable th { font-size: 16px; }
body[data-stage="1"] .pTable td, body[data-stage="1"] .pTable th { padding: 9px 6px; }
body[data-stage="1"] .pSet { min-height: 60px; font-size: 19px; }
body[data-stage="1"] .pBtn { --bh: 52px; min-width: 78px; font-size: 18px; }
body[data-stage="1"] .pSet.speed .pBtn { font-size: 17px; }
body[data-stage="1"] #panel .pHead h2 { font-size: 28px; }
body[data-stage="1"] #panel.buy .buyCards { gap: 16px; }
body[data-stage="1"] #panel.buy .buyCard { padding: 16px 14px 16px; gap: 8px; }
body[data-stage="1"] #panel.buy .buyCard .t { height: min(108px, 13vh); }
body[data-stage="1"] #panel.buy .buyCard .tt { line-height: min(108px, 13vh); font-size: 40px; }
body[data-stage="1"] #panel.buy .buyCard .tt.gold { font-size: 34px; }
body[data-stage="1"] #panel.buy .buyCard .p { width: 80%; height: min(200px, 24vh); }
body[data-stage="1"] #panel.buy .buyCard .ln { font-size: 18px; min-height: 44px; }
body[data-stage="1"] #panel.buy .buyCard .mult { font-size: 20px; }
body[data-stage="1"] #panel.buy .buyCard .buyNow { --bh: 60px; }
body[data-stage="1"] #panel.buy .buyCard .buyNow .gl { font-size: 23px; }
body[data-stage="1"] #panel.buy .bbet { margin: 16px 0 6px; }
body[data-stage="1"] #panel.buy .bbet .lab { font-size: 20px; }
body[data-stage="1"] #panel.buy .bbet .val { font-size: 28px; }
body[data-stage="1"] .confirm .pick { width: 52%; }
body[data-stage="1"] .confirm .pick .t { height: min(100px, 12vh); }
body[data-stage="1"] .confirm .pick .p { height: min(190px, 22vh); }
body[data-stage="1"] .confirm .sum { font-size: 22px; }
body[data-stage="1"] .confirm .cta { --bh: 64px; }
body[data-stage="1"] .confirm .cta .gl { font-size: 25px; }
body[data-stage="1"] .confirm .sec { --bh: 56px; }
body[data-stage="1"] .confirm .sec .gl { font-size: 20px; }
/* ---- the thief taken off to the churn (GOAT GRAB) and back: he fades out as the churn fades in (and the other way),
   one 180 ms cross-dissolve, never a pop; hidden once faded ---- */
.hero { transition: opacity .18s ease-in-out, visibility 0s; }
.hero.away { visibility: hidden; opacity: 0; transition: opacity .18s ease-in-out, visibility 0s .18s; }
#churn { transition: opacity .18s ease-in-out; }
/* (a hero's rest still and its clips' canvas swap by a 160 ms dissolve, never a cut: the clips coming in after PLAY,
   a stalled clip giving way to the still and coming back) */
.hero .heroVid, .hero .breath > img { transition: opacity .16s ease-in-out; }

/* ---- every word and figure drawn as text at its size, no CSS filter on anything that holds text (a filter is drawn into
   a picture and resampled: soft on a 3x phone): the panels, the TURBO offer and the buy cards cast box shadows; a
   disabled or unaffordable button is dimmed, not desaturated; the speed's plate has no shadow of its own (the hover and
   press tints of the buttons are the only filters left on text, for the moment they last) ---- */
#panel.modalFrame { filter: none; box-shadow: 0 16px 26px -10px rgba(0,0,0,.6); }
#offer { filter: none; box-shadow: 0 10px 18px -6px rgba(0,0,0,.55); }
.buyCard { filter: none; box-shadow: 0 3px 6px -1px rgba(0,0,0,.45); }
#ui #speedTag { filter: none; }
.cta:disabled, .sec:disabled, .pBtn:disabled, .pTab:disabled, #play:disabled, .buyCard.poor .buyNow { filter: none; opacity: .55; }
#play:disabled { filter: none; }
