/* =====================================================================
   Viva La Falkirk Taylors — base cabinet / layout styles (agent 10)
   Classic premium UK video-slot look: Scottish navy, brushed steel,
   polished gold, a touch of tartan. Modules inject their own prefixed
   CSS (rl-, fx-, pb-, wb-, gb-) and pick up the tokens below.
   ===================================================================== */

:root {
  /* shared tokens (names fixed by the contract; values = calm Falkirk palette) */
  --gold: #e3bd5c;        /* polished gold */
  --gold-deep: #9c7426;   /* antique gold shadow */
  --pink: #a3243b;        /* claret */
  --cyan: #8fb3d9;        /* soft steel blue */
  --purple: #1d3f73;      /* saltire navy-blue */
  --deep: #0b1f3a;        /* Scottish navy */
  --red: #c0182f;
  --green: #3fae6a;
  --font-display: 'Bungee', Impact, sans-serif;
  --font-ui: 'Rubik', system-ui, sans-serif;

  /* extra palette */
  --navy-2: #12305a;
  --navy-3: #071629;
  --saltire: #0065bd;
  --steel: #c7ced8;
  --cream: #fbf3dc;

  /* layout tokens (internal) */
  --chrome: 9px;
  --face-pad: 12px;
  --dome: 36px;
  --gap: 7px;
  --pillar: 0px;
  --reel-w: 100%;

  --steel-grad:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .05) 1px 2px, transparent 2px 3px),
    linear-gradient(90deg, #5d6573 0%, #cfd5de 9%, #8e97a5 20%, #eef1f5 34%, #a4adba 50%, #e4e8ee 66%, #87909e 82%, #cdd3dc 92%, #565e6b 100%);
  --gold-grad: linear-gradient(180deg, #fff4cf 0%, #f0d084 28%, #d4a443 55%, #a87b26 78%, #e8c470 100%);
  --tartan:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(163, 36, 59, .55) 9px 11px, transparent 11px 30px, rgba(255, 255, 255, .08) 30px 31px, transparent 31px 40px),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(163, 36, 59, .55) 9px 11px, transparent 11px 30px, rgba(255, 255, 255, .08) 30px 31px, transparent 31px 40px),
    repeating-linear-gradient(90deg, rgba(23, 74, 52, .75) 0 16px, transparent 16px 40px),
    repeating-linear-gradient(0deg, rgba(23, 74, 52, .75) 0 16px, transparent 16px 40px),
    #10264a;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy-3);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  font-family: var(--font-ui);
  color: var(--cream);
  /* dusky Falkirk evening sky */
  background:
    radial-gradient(ellipse 80% 26% at 50% 100%, rgba(214, 150, 112, .2), transparent 70%),
    linear-gradient(180deg, #050f22 0%, #0b1f3a 38%, #16325a 68%, #2c4468 86%, #4a4d68 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* a few faint evening stars */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 45% 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, .8) 50%, transparent 51%),
    radial-gradient(1px 1px at 141px 117px, rgba(255, 255, 255, .55) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 297px 63px, rgba(255, 246, 220, .7) 50%, transparent 51%),
    radial-gradient(1px 1px at 387px 171px, rgba(255, 255, 255, .45) 50%, transparent 51%);
  background-size: 420px 240px;
  opacity: .55;
}

/* Falkirk skyline: the Kelpies (left), the Falkirk Wheel + aqueduct (right), low hills and canal */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(130px, 30vh, 280px);
  z-index: 0;
  pointer-events: none;
  opacity: .75;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 300'%3E%3Cg fill='%23081831'%3E%3Cpath transform='translate(20 40) scale(1.3)' d='M0 200C2 150 8 110 26 80C36 62 48 48 62 38L66 10L76 30L84 16L88 38C108 46 130 62 150 84C158 93 156 104 144 104C132 103 122 98 112 97C102 96 96 102 92 114C86 140 88 170 96 200Z'/%3E%3Cpath transform='translate(352 79) scale(-1.3 1.3)' d='M0 170C0 120 14 80 44 56C64 40 86 34 104 36L112 14L120 32L128 26L128 44C142 56 150 76 152 100C153 112 146 118 138 114C130 110 124 100 116 96C106 92 98 98 94 110C88 130 90 150 96 170Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23264a74' stroke-width='1.6' opacity='.7'%3E%3Cpath transform='translate(20 40) scale(1.3)' d='M30 150C40 120 50 100 70 80M44 170C52 140 62 120 80 104'/%3E%3Cpath transform='translate(352 79) scale(-1.3 1.3)' d='M24 140C30 110 46 86 70 70M40 160C46 130 60 110 80 96'/%3E%3C/g%3E%3C/svg%3E") left 3% bottom 4px / auto 74% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 260'%3E%3Cg fill='%23081831'%3E%3Crect x='0' y='44' width='196' height='11'/%3E%3Crect x='28' y='54' width='9' height='206'/%3E%3Crect x='84' y='54' width='9' height='206'/%3E%3Crect x='140' y='54' width='9' height='206'/%3E%3Cpath d='M37 70Q60 58 84 70M93 70Q116 58 140 70' stroke='%23081831' stroke-width='5' fill='none'/%3E%3Cpath d='M216 140L192 236H280L256 140Z'/%3E%3Crect x='160' y='232' width='170' height='28'/%3E%3Cpath d='M236 140C200 122 176 86 172 40L194 42C198 80 214 108 246 128Z'/%3E%3Cpath transform='rotate(180 236 140)' d='M236 140C200 122 176 86 172 40L194 42C198 80 214 108 246 128Z'/%3E%3Ccircle cx='236' cy='140' r='21'/%3E%3Crect x='150' y='126' width='50' height='22' rx='4'/%3E%3Crect x='272' y='132' width='50' height='22' rx='4'/%3E%3C/g%3E%3Ccircle cx='236' cy='140' r='92' fill='none' stroke='%23081831' stroke-width='3' opacity='.55'/%3E%3C/svg%3E") right 4% bottom 4px / auto 68% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V48C140 30 260 40 400 30S640 14 820 30 1100 36 1260 22 1500 30 1600 38V100Z' fill='%23112a4b'/%3E%3Cpath d='M0 100V74C200 66 420 70 640 64S1100 72 1300 66 1520 68 1600 70V100Z' fill='%230a1d36'/%3E%3Crect y='88' width='1600' height='3' fill='%233a5a86' opacity='.45'/%3E%3Crect y='91' width='1600' height='9' fill='%23071427'/%3E%3C/svg%3E") center bottom / 100% 34% no-repeat;
}

.noscript {
  position: relative;
  z-index: 5;
  max-width: 640px;
  margin: 0 auto 10px;
  padding: 10px 14px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: rgba(11, 31, 58, .95);
  color: var(--cream);
  font: 500 14px/1.4 var(--font-ui);
  text-align: center;
}

/* ---------------------------------------------------------------- app */

#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ------------------------------------------------------------ cabinet */

/* brushed-steel shell with polished gold beading */
#cabinet {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: calc(var(--chrome) + var(--face-pad));
  padding-top: calc(var(--chrome) + var(--face-pad) - 2px);
  border-radius: 50% 50% 18px 18px / var(--dome) var(--dome) 18px 18px;
  background: var(--steel-grad);
  box-shadow:
    0 0 0 1px #2a2f38,
    0 0 0 3px #b48a35,
    0 0 0 4px #f3d98f,
    0 0 0 6px #6f5016,
    0 22px 44px rgba(0, 0, 0, .65),
    0 6px 14px rgba(0, 0, 0, .45);
  transition: box-shadow .4s ease;
}

/* navy machine face, gold bead edge */
#cabinet::before {
  content: "";
  position: absolute;
  inset: var(--chrome);
  z-index: -1;
  border-radius: 50% 50% 12px 12px / calc(var(--dome) - var(--chrome)) calc(var(--dome) - var(--chrome)) 12px 12px;
  border: 2px solid #e8c771;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(143, 179, 217, .16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(0, 0, 0, .45), transparent 70%),
    linear-gradient(180deg, #15335c 0%, #0e2546 45%, #081a33 100%);
  box-shadow:
    inset 0 0 0 1px #6f5016,
    inset 0 2px 10px rgba(0, 0, 0, .55),
    0 0 0 1px #3b4250;
}

/* fine inner gold pinstripe */
#cabinet::after {
  content: "";
  position: absolute;
  inset: calc(var(--chrome) + 6px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50% 50% 8px 8px / calc(var(--dome) - var(--chrome) - 6px) calc(var(--dome) - var(--chrome) - 6px) 8px 8px;
  border: 1px solid rgba(227, 189, 92, .38);
}

#cabinet[data-lights="win"] {
  animation: vlf-cab-win .9s ease-in-out infinite alternate;
}

#cabinet[data-lights="bonus"] {
  animation: vlf-cab-bonus 1.6s ease-in-out infinite alternate;
}

@keyframes vlf-cab-win {
  from {
    box-shadow: 0 0 0 1px #2a2f38, 0 0 0 3px #b48a35, 0 0 0 4px #f3d98f, 0 0 0 6px #6f5016,
      0 22px 44px rgba(0, 0, 0, .65), 0 0 18px 2px rgba(227, 189, 92, .25);
  }
  to {
    box-shadow: 0 0 0 1px #2a2f38, 0 0 0 3px #d9ad4e, 0 0 0 4px #fff3c8, 0 0 0 6px #6f5016,
      0 22px 44px rgba(0, 0, 0, .65), 0 0 36px 8px rgba(227, 189, 92, .5);
  }
}

@keyframes vlf-cab-bonus {
  from {
    box-shadow: 0 0 0 1px #2a2f38, 0 0 0 3px #b48a35, 0 0 0 4px #f3d98f, 0 0 0 6px #6f5016,
      0 22px 44px rgba(0, 0, 0, .65), 0 0 24px 4px rgba(0, 101, 189, .35);
  }
  to {
    box-shadow: 0 0 0 1px #2a2f38, 0 0 0 3px #d9ad4e, 0 0 0 4px #fff3c8, 0 0 0 6px #6f5016,
      0 22px 44px rgba(0, 0, 0, .65), 0 0 40px 10px rgba(227, 189, 92, .45);
  }
}

#bulbs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
}

/* --------------------------------------------------------------- logo */

/* navy plaque with gold frame */
#logo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "l viva r"
    "name name name";
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  padding: 6px 8px 8px;
  border-radius: 14px 14px 10px 10px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%),
    linear-gradient(180deg, #17396a 0%, #0d2648 60%, #0a1f3c 100%);
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 3px #d9b05a,
    0 0 0 4px #fff0bf,
    0 0 0 5px #6f5016,
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -6px 12px rgba(0, 0, 0, .35),
    0 6px 10px rgba(0, 0, 0, .45);
}

.logo-title {
  display: contents;
  margin: 0;
  font-weight: 400;
}

.logo-viva,
.logo-name {
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* engraved silver small caps flanked by saltires */
.logo-viva {
  grid-area: viva;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 clamp(12px, 3.6vw, 16px)/1 var(--font-ui);
  letter-spacing: .34em;
  color: #e9edf3;
  text-shadow: 0 1px 0 #ffffff, 0 -1px 0 rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .5);
}

.logo-viva::after { content: none; }

.logo-saltire {
  display: inline-block;
  width: 1.35em;
  height: .95em;
  border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%230065bd'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23fff' stroke-width='3.4'/%3E%3C/svg%3E") center / cover;
  box-shadow: 0 0 0 1px #d9b05a, 0 1px 2px rgba(0, 0, 0, .5);
}

.logo-saltire:last-child { margin-left: -.34em; }

/* embossed polished-gold lettering (gradient face + stacked bevel layer behind) */
.logo-name {
  grid-area: name;
  position: relative;
  justify-self: center;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(20px, 7.9vw, 40px);
  letter-spacing: .01em;
  color: #f2d27e;
  background: linear-gradient(180deg, #fffaea 0%, #f7e0a0 30%, #dcae4c 52%, #b3812a 60%, #e9c46e 84%, #fff0c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-name::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #6f4c12;
  -webkit-text-fill-color: #6f4c12;
  text-shadow:
    0 1px 0 #8a6019,
    0 2px 0 #6f4c12,
    0 3px 0 #553a0c,
    0 4px 6px rgba(0, 0, 0, .65),
    0 0 1px #3a2606;
  -webkit-text-stroke: 1px #4d3409;
}

.logo-faces {
  display: flex;
  gap: 6px;
  align-items: center;
}

.logo-faces--l { grid-area: l; }
.logo-faces--r { grid-area: r; }

/* faces in gold medallion frames */
.logo-face {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--deep);
  border: 2px solid #f2d27e;
  box-shadow:
    0 0 0 2px #9c7426,
    0 0 0 3px #f7e3a6,
    0 0 0 4px #5a400f,
    0 3px 6px rgba(0, 0, 0, .55);
}

/* ----------------------------------------------------------- jackpots */

#jackpots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "grand grand grand"
    "major minor mini";
  gap: 7px;
  padding: 0 2px;
}

/* gold-framed plaques */
.jp {
  --jp-c: #b9cbe2;
  --jp-bg1: #1a3a66;
  --jp-bg2: #0c2244;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px 5px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 45%),
    linear-gradient(180deg, var(--jp-bg1), var(--jp-bg2));
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 2px #e3bd5c,
    0 0 0 3px #7a5a1c,
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -3px 6px rgba(0, 0, 0, .35),
    0 3px 6px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.jp[data-tier="grand"] {
  grid-area: grand;
  --jp-c: #ffe3a0;
  --jp-bg1: #a3243b;
  --jp-bg2: #5e0f1f;
  flex-direction: row;
  gap: 12px;
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 3px #e3bd5c,
    0 0 0 4px #fff0bf,
    0 0 0 5px #7a5a1c,
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -4px 8px rgba(0, 0, 0, .35),
    0 4px 8px rgba(0, 0, 0, .5);
}

.jp[data-tier="major"] { grid-area: major; --jp-c: #e8d7ff; --jp-bg1: #3d2f6e; --jp-bg2: #221844; }
.jp[data-tier="minor"] { grid-area: minor; --jp-c: #d4e6fa; --jp-bg1: #2a5a8f; --jp-bg2: #14345c; }
.jp[data-tier="mini"]  { grid-area: mini;  --jp-c: #d7f3df; --jp-bg1: #23674a; --jp-bg2: #123b29; }

.jp-label {
  position: relative;
  z-index: 1;
  font: 800 9.5px/1 var(--font-ui);
  letter-spacing: .22em;
  margin-right: -.22em;
  color: var(--jp-c);
  opacity: .9;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
}

.jp-value {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font: 700 clamp(13px, 4vw, 19px)/1.05 var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 2px 3px rgba(0, 0, 0, .4);
}

.jp[data-tier="grand"] .jp-label {
  font-size: clamp(11px, 3.3vw, 15px);
  color: #ffe3a0;
}

.jp[data-tier="grand"] .jp-value {
  font-size: clamp(20px, 6.4vw, 29px);
  color: #fff4d2;
  text-shadow: 0 1px 0 #6f1222, 0 2px 0 #4a0a16, 0 3px 6px rgba(0, 0, 0, .5), 0 0 14px rgba(255, 210, 120, .35);
}

/* -------------------------------------------------------- feature bar */

#feature-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 8px;
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%) 0 0 / 250% 100%,
    linear-gradient(180deg, #b12a43, #6d1124);
  font: 800 clamp(11px, 3.3vw, 15px)/1.2 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff6e0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  white-space: nowrap;
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 2px #e3bd5c,
    0 0 0 3px #7a5a1c,
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 0 16px rgba(227, 189, 92, .3);
  animation: vlf-sheen 3.2s linear infinite;
}

#fs-mult {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #3a2606;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 1px #6f5016;
}

#fs-win { color: #ffe3a0; }

@keyframes vlf-sheen {
  from { background-position: 150% 0, 0 0; }
  to { background-position: -100% 0, 0 0; }
}

/* -------------------------------------------------------------- reels */

.reel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

/* tartan side panels with gold beading (desktop only) */
.reel-stage::before,
.reel-stage::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: var(--pillar);
  display: none;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 25%, transparent 75%, rgba(0, 0, 0, .45)),
    var(--tartan);
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 2px #e3bd5c,
    0 0 0 3px #7a5a1c,
    inset 0 0 12px rgba(0, 0, 0, .55),
    0 3px 6px rgba(0, 0, 0, .4);
}

.reel-stage::before { left: 0; }
.reel-stage::after { right: 0; }

#reels {
  position: relative;
  width: min(100%, var(--reel-w));
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #0e2443, #081a33);
  box-shadow:
    0 0 0 2px #2a2f38,
    0 0 0 4px #c9cfd8,
    0 0 0 5px #6b7380,
    0 0 0 7px #e3bd5c,
    0 0 0 8px #fff0bf,
    0 0 0 9px #6f5016,
    0 6px 16px rgba(0, 0, 0, .55),
    inset 0 0 30px rgba(0, 0, 0, .8);
}

/* subtle glass reflection */
#reels::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 26%, transparent 27%),
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 8%, transparent 92%, rgba(0, 0, 0, .25) 100%);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .55);
}

/* ------------------------------------------------------------ message */

#message {
  display: block;
  min-width: 0;
  height: 2.1em;
  line-height: 2.1em !important;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #06142a, #0c2244);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .7),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px #6b7380,
    0 0 0 2px #c9cfd8,
    0 0 0 3px #5d6573;
  font: 700 clamp(11px, 3.2vw, 14px) var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2d27e;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
}

/* ----------------------------------------------------------- controls */

#controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto 52px 52px;
  grid-template-areas:
    "bal  bal  bet  bet  win   win"
    "info dn   spin spin up    auto"
    "snd  max  spin spin turbo gamble";
  gap: 8px 6px;
  margin: 14px 0 0;
  padding: 12px 10px 14px;
  border-radius: 16px 16px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 14%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #273348 0%, #18233a 40%, #0d1628 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -3px 0 rgba(0, 0, 0, .5),
    0 0 0 1px #2a2f38,
    0 0 0 3px #b48a35,
    0 0 0 4px #f3d98f,
    0 0 0 6px #6f5016,
    0 16px 30px rgba(0, 0, 0, .6);
}

/* display windows */
.led-wrap--balance { grid-area: bal; position: relative; min-width: 0; display: flex; }
#balance { flex: 1; }
#bet { grid-area: bet; }
#win { grid-area: win; }

.led {
  --led-c: #f2d27e;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 6px 6px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 40%),
    linear-gradient(180deg, #081a33, #040d1c);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, .8),
    0 0 0 1px #4e5664,
    0 0 0 2px #aab2be,
    0 1px 0 2px rgba(255, 255, 255, .12);
}

#balance { --led-c: #ffffff; }
#bet { --led-c: #d4e6fa; }
#win { --led-c: #f2d27e; }

.led-label {
  font: 700 8.5px/1 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8fa3bf;
}

.led .value {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font: 700 clamp(13px, 4.1vw, 18px)/1.1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--led-c);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
}

/* generic button reset */
.btn,
.btn-spin,
#auto-menu button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.btn-spin:focus-visible,
#auto-menu button:focus-visible {
  outline: 2px solid #f2d27e;
  outline-offset: 3px;
}

/* keycap buttons: navy caps in a silver bezel */
.btn-key {
  --key-top: #2b5288;
  --key-bot: #142d52;
  --key-base: #08162b;
  --key-ink: #eef3fa;
  --key-ring: #aab2be;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px 3px;
  border-radius: 10px;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--key-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 48%),
    linear-gradient(180deg, var(--key-top), var(--key-bot));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -2px 0 rgba(0, 0, 0, .3),
    0 0 0 1px #1b2230,
    0 0 0 2px var(--key-ring),
    0 4px 0 1px var(--key-base),
    0 6px 8px rgba(0, 0, 0, .5);
  transform: translateY(0);
  transition: transform .07s ease, box-shadow .07s ease, filter .2s ease, opacity .2s ease;
}

.btn-key .ico {
  width: 20px;
  height: 20px;
  flex: none;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45));
}

.btn-label,
.btn-text {
  font: 700 9.5px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

.btn-key:hover:not([disabled]) { filter: brightness(1.1); }

.btn-key:active:not([disabled]) {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 2px 6px rgba(0, 0, 0, .4),
    0 0 0 1px #1b2230,
    0 0 0 2px var(--key-ring),
    0 1px 0 1px var(--key-base),
    0 2px 3px rgba(0, 0, 0, .5);
}

#btn-info { grid-area: info; }
#btn-sound { grid-area: snd; --key-top: #3b4456; --key-bot: #1f2635; --key-base: #0b0f18; color: #9aa4b5; }
#btn-bet-down { grid-area: dn; }
#btn-bet-up { grid-area: up; }
#btn-max { grid-area: max; }
#btn-auto { grid-area: auto; }
#btn-turbo { grid-area: turbo; }
#btn-gamble { grid-area: gamble; }

/* brushed-steel bet keys */
.btn-bet {
  --key-top: #e9edf2;
  --key-bot: #8c96a5;
  --key-base: #3c4350;
  --key-ink: #14243d;
  --key-ring: #4e5664;
}

.btn-bet .ico { width: 18px; height: 18px; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.btn-bet .btn-label { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }

/* polished gold max-bet */
.btn-max {
  --key-top: #f8e4a6;
  --key-bot: #c3922f;
  --key-base: #5e430f;
  --key-ink: #3a2606;
  --key-ring: #6f5016;
}

.btn-max .btn-text { font-size: 10px; line-height: 1.1; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }

/* sound toggle */
#btn-sound .ico-mute { display: inline; }
#btn-sound .ico-waves { display: none; }
#btn-sound.is-active { --key-top: #2b5288; --key-bot: #142d52; --key-base: #08162b; color: #eef3fa; }
#btn-sound.is-active .ico-mute { display: none; }
#btn-sound.is-active .ico-waves { display: inline; }

/* active toggles: gold bezel + gentle lamp */
.btn-key.is-active {
  --key-ring: #e3bd5c;
}

.btn-key.is-active .ico { color: #ffe3a0; }

#btn-turbo.is-active,
#btn-auto.is-active {
  --key-top: #3d6db0;
  --key-bot: #1b3d6e;
  --key-ring: #f2d27e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -2px 0 rgba(0, 0, 0, .3),
    0 0 0 1px #1b2230,
    0 0 0 2px var(--key-ring),
    0 4px 0 1px var(--key-base),
    0 6px 8px rgba(0, 0, 0, .5),
    0 0 12px rgba(242, 210, 126, .45);
}

#btn-auto.is-active { --key-top: #b12a43; --key-bot: #6d1124; --key-base: #35060f; }

/* gamble: claret + gold when available */
.btn-gamble:not([disabled]) {
  --key-top: #c0344f;
  --key-bot: #7a1328;
  --key-base: #35060f;
  --key-ink: #fff1cf;
  --key-ring: #e3bd5c;
  animation: vlf-gamble-glow 1.1s ease-in-out infinite alternate;
}

@keyframes vlf-gamble-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.18) drop-shadow(0 0 6px rgba(242, 210, 126, .75)); }
}

/* top-up chip on the balance window */
.btn-refill {
  position: absolute;
  top: -8px;
  right: -3px;
  z-index: 2;
  padding: 3px 7px 2px;
  border-radius: 999px;
  font: 700 8.5px/1 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0e2a1b;
  background: linear-gradient(180deg, #9fe0b8, #3fae6a);
  box-shadow: 0 2px 0 #1d5a36, 0 0 0 1px #0d1628;
  transition: transform .07s ease, box-shadow .07s ease;
}

.btn-refill:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 0 0 #1d5a36, 0 0 0 1px #0d1628; }
.btn-refill.is-active,
.btn-refill:not([disabled]) { animation: vlf-refill 1s ease-in-out infinite alternate; }
.btn-refill[disabled] { opacity: .3; }

@keyframes vlf-refill {
  from { box-shadow: 0 2px 0 #1d5a36, 0 0 0 1px #0d1628; }
  to { box-shadow: 0 2px 0 #1d5a36, 0 0 0 1px #0d1628, 0 0 12px 3px rgba(63, 174, 106, .75); }
}

/* disabled buttons */
.btn[disabled],
.btn-spin[disabled] {
  cursor: not-allowed;
  opacity: .42;
  filter: grayscale(.6) brightness(.85);
}

.btn-key[disabled] { animation: none; }

/* --------------------------------------------------------- spin button */

.btn-spin {
  grid-area: spin;
  justify-self: center;
  align-self: center;
  position: relative;
  isolation: isolate;
  width: min(100%, 122px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  /* polished gold bezel */
  background: conic-gradient(from 210deg, #fff4cf, #c3922f, #f2d27e, #8a621c, #fbe7ae, #b8862b, #fff4cf);
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 4px #c9cfd8,
    0 0 0 5px #4e5664,
    0 6px 0 4px #2a2f38,
    0 10px 16px rgba(0, 0, 0, .6),
    0 0 22px 4px rgba(192, 24, 47, .35);
  transition: transform .08s ease, box-shadow .08s ease, filter .2s ease;
  animation: vlf-spin-breathe 2.6s ease-in-out infinite;
}

/* glossy red dome */
.btn-spin::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 62% 36% at 50% 20%, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 50% 42%, #e8435a 0%, #c0182f 44%, #8a0c1f 78%, #4d0510 100%);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(80, 0, 10, .7), 0 0 0 1px #fff0bf;
}

/* fine engraved ring on the bezel (static) */
.spin-ring {
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(90, 64, 15, .55);
  pointer-events: none;
}

.spin-icon {
  width: 40%;
  height: 40%;
  color: #fff;
  filter: drop-shadow(0 2px 0 rgba(80, 0, 12, .8));
}

.spin-label {
  font-family: var(--font-display);
  font-size: clamp(12px, 3.6vw, 17px);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff6e0;
  text-shadow: 0 2px 0 #5e0a17;
}

.btn-spin:hover:not([disabled]) { filter: brightness(1.06); }

.btn-spin:active:not([disabled]) {
  transform: translateY(4px) scale(.985);
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 4px #c9cfd8,
    0 0 0 5px #4e5664,
    0 2px 0 4px #2a2f38,
    0 3px 6px rgba(0, 0, 0, .6),
    0 0 26px 6px rgba(192, 24, 47, .45);
}

.btn-spin:active:not([disabled])::before {
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(80, 0, 10, .7), 0 0 0 1px #fff0bf;
}

.btn-spin.is-spinning .spin-icon { animation: vlf-rotate .6s linear infinite; }
.btn-spin[disabled] { animation: none; }

@keyframes vlf-rotate { to { transform: rotate(360deg); } }

@keyframes vlf-spin-breathe {
  0%, 100% {
    box-shadow: 0 0 0 1px #5a400f, 0 0 0 4px #c9cfd8, 0 0 0 5px #4e5664, 0 6px 0 4px #2a2f38,
      0 10px 16px rgba(0, 0, 0, .6), 0 0 18px 3px rgba(192, 24, 47, .3);
  }
  50% {
    box-shadow: 0 0 0 1px #5a400f, 0 0 0 4px #c9cfd8, 0 0 0 5px #4e5664, 0 6px 0 4px #2a2f38,
      0 10px 16px rgba(0, 0, 0, .6), 0 0 30px 8px rgba(227, 189, 92, .35);
  }
}

/* ----------------------------------------------------------- auto menu */

#auto-menu {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 12px);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: calc(100% - 16px);
  padding: 9px 11px 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #17396a, #0b1f3a);
  box-shadow:
    0 0 0 1px #5a400f,
    0 0 0 2px #e3bd5c,
    0 0 0 3px #7a5a1c,
    0 14px 28px rgba(0, 0, 0, .65);
  animation: vlf-pop .16s ease-out;
}

#auto-menu::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #0b1f3a;
  border-right: 2px solid #e3bd5c;
  border-bottom: 2px solid #e3bd5c;
}

.auto-title {
  width: 100%;
  font: 700 10px/1 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  color: #f2d27e;
}

#auto-menu button {
  min-width: 50px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  font: 700 15px/1 var(--font-ui);
  color: #14243d;
  background: linear-gradient(180deg, #f4f6f9, #9aa3b1);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #4e5664, 0 3px 0 1px #3c4350;
  transition: transform .07s ease, box-shadow .07s ease;
}

#auto-menu button:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #4e5664, 0 0 0 1px #3c4350;
}

#auto-menu .auto-stop {
  color: #fff6e0;
  background: linear-gradient(180deg, #d23a55, #7a1328);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px #35060f, 0 3px 0 1px #35060f;
}

@keyframes vlf-pop {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- footer */

.site-foot {
  margin: 14px 0 4px;
  font: 500 11px/1.4 var(--font-ui);
  letter-spacing: .04em;
  text-align: center;
  color: rgba(214, 224, 238, .62);
  text-shadow: 0 1px 2px #000;
}

/* ------------------------------------------------------------ paytable */

#paytable {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: rgba(3, 10, 22, .82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: vlf-fade .2s ease-out;
}

.pt-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100%);
  max-height: 100%;
  max-height: min(94svh, 940px);
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(143, 179, 217, .14), transparent 70%),
    linear-gradient(180deg, #12305a, #0b1f3a 55%, #071629);
  box-shadow:
    0 0 0 1px #2a2f38,
    0 0 0 4px #c9cfd8,
    0 0 0 5px #5a400f,
    0 0 0 7px #e3bd5c,
    0 0 0 8px #6f5016,
    0 24px 60px rgba(0, 0, 0, .7);
  animation: vlf-pop .22s ease-out;
}

.pt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px 18px;
  border-bottom: 1px solid rgba(227, 189, 92, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent);
}

.pt-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 5vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .03em;
  color: #f2d27e;
  text-shadow: 0 1px 0 #8a6019, 0 2px 0 #553a0c, 0 3px 5px rgba(0, 0, 0, .6);
}

.pt-close {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 40% at 50% 22%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(circle at 50% 40%, #d23a55, #8a0c1f 75%);
  box-shadow: 0 0 0 2px #e3bd5c, 0 0 0 3px #6f5016, 0 3px 0 3px #35060f;
  transition: transform .07s ease, box-shadow .07s ease;
}

.pt-close svg { width: 18px; height: 18px; }
.pt-close:active { transform: translateY(3px); box-shadow: 0 0 0 2px #e3bd5c, 0 0 0 3px #6f5016, 0 0 0 3px #35060f; }

#paytable-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px 22px;
  font: 400 14px/1.5 var(--font-ui);
  color: #dfe7f2;
  scrollbar-width: thin;
  scrollbar-color: #c3922f rgba(255, 255, 255, .06);
}

#paytable-body::-webkit-scrollbar { width: 8px; }
#paytable-body::-webkit-scrollbar-track { background: rgba(255, 255, 255, .05); }
#paytable-body::-webkit-scrollbar-thumb { background: linear-gradient(#f2d27e, #9c7426); border-radius: 8px; }

/* generic typography for paytable content written by main.js */
#paytable-body h3 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .05em;
  color: #f2d27e;
  text-shadow: 0 1px 0 #553a0c;
}

#paytable-body h3:first-child { margin-top: 4px; }

#paytable-body h4 {
  margin: 12px 0 6px;
  font: 700 13px/1.3 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b9cbe2;
}

#paytable-body p { margin: 0 0 10px; }
#paytable-body ul,
#paytable-body ol { margin: 0 0 10px; padding-left: 20px; }
#paytable-body li { margin: 3px 0; }
#paytable-body strong,
#paytable-body b { color: #fff3d0; }
#paytable-body img { max-width: 100%; height: auto; }

#paytable-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

#paytable-body th,
#paytable-body td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

#paytable-body th {
  font: 700 11px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fa3bf;
}

#paytable-body hr {
  border: 0;
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, #e3bd5c, transparent);
}

@keyframes vlf-fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------- overlays + fx layer */

#overlay-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

#fx-layer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ======================================================= larger phones */

@media (max-width: 759px) {
  body::after { background-size: auto 52%, auto 46%, 100% 30%; }
}

@media (min-width: 400px) {
  .logo-face { width: 38px; height: 38px; }
  .btn-label { font-size: 10px; }
}

/* ======================================================= tablet / desktop */

@media (min-width: 760px) {
  :root {
    --chrome: 13px;
    --face-pad: 16px;
    --dome: 64px;
    --gap: 9px;
    --pillar: 46px;
    --fixed-h: 400px;
    --reel-w: clamp(420px, calc((100vh - var(--fixed-h)) * 5 / 3), 840px);
    --reel-w: clamp(420px, calc((100svh - var(--fixed-h)) * 5 / 3), 840px);
  }

  body { padding-top: 10px; }

  #app {
    max-width: min(980px, calc(var(--reel-w) + 2 * var(--pillar) + 28px + 2 * (var(--chrome) + var(--face-pad))));
  }

  .reel-stage::before,
  .reel-stage::after { display: block; }

  #reels { width: min(calc(100% - 2 * var(--pillar) - 28px), var(--reel-w)); }

  #logo {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "l viva r"
      "l name r";
    column-gap: 16px;
    padding: 6px 14px 8px;
    margin: 0 4%;
  }

  .logo-faces { gap: 10px; }
  .logo-faces--l { justify-self: end; }
  .logo-faces--r { justify-self: start; }
  .logo-face { width: 48px; height: 48px; border-width: 3px; }

  .logo-viva { font-size: 14px; }
  .logo-name { font-size: clamp(30px, 3.4vw, 42px); margin-top: 4px; }

  #jackpots {
    grid-template-columns: 1.55fr 1fr 1fr 1fr;
    grid-template-areas: "grand major minor mini";
    gap: 10px;
    padding: 0 3px;
  }

  .jp { padding: 4px 8px 5px; }
  .jp[data-tier="grand"] { flex-direction: column; gap: 2px; }
  .jp-label { font-size: 10px; }
  .jp-value { font-size: 19px; }
  .jp[data-tier="grand"] .jp-label { font-size: 11px; }
  .jp[data-tier="grand"] .jp-value { font-size: 23px; }

  .reel-stage { padding: 9px 0; }

  #message { font-size: 13px; }

  #controls {
    grid-template-columns:
      58px minmax(0, 1.4fr) 50px minmax(0, 1fr) 50px minmax(0, 1.4fr) 62px 62px 126px;
    grid-template-rows: 46px 46px;
    grid-template-areas:
      "info bal dn  bet up  win auto   turbo  spin"
      "snd  bal max max max win gamble gamble spin";
    gap: 9px 8px;
    margin-top: 14px;
    margin-inline: calc(-1 * clamp(0px, (100vw - 100% - 48px) / 2, 60px));
    padding: 12px 16px;
  }

  .btn-max br { display: none; }
  .btn-max .btn-text { font-size: 12px; letter-spacing: .16em; }

  .led-label { font-size: 9.5px; }
  .led .value { font-size: 23px; }
  #bet .value { font-size: 17px; }
  #bet { gap: 2px; padding: 3px 6px; }

  .btn-key { flex-direction: row; gap: 6px; }
  #btn-info, #btn-sound, #btn-bet-down, #btn-bet-up { flex-direction: column; gap: 2px; }
  .btn-bet .btn-label { display: none; }
  #btn-info .btn-label, #btn-sound .btn-label { font-size: 8.5px; }
  #btn-info .ico, #btn-sound .ico { width: 18px; height: 18px; }

  .btn-spin { width: 116px; margin: -12px 0; }
  .spin-label { font-size: 17px; }

  .btn-refill { top: -9px; right: 6px; font-size: 9px; }

  .site-foot { margin-top: 12px; }
}

/* short, wide screens (laptops): trim vertical chrome */
@media (min-width: 760px) and (max-height: 800px) {
  :root { --dome: 54px; --face-pad: 13px; --gap: 7px; --fixed-h: 420px; }
  body { padding-top: 8px; }
  #logo { padding: 4px 14px 6px; }
  .logo-face { width: 40px; height: 40px; }
  .logo-name { font-size: 30px; margin-top: 3px; }
  .logo-viva { font-size: 12px; }
  .jp { padding: 3px 8px 4px; }
  .jp-value { font-size: 17px; }
  .jp[data-tier="grand"] .jp-value { font-size: 20px; }
  .reel-stage { padding: 8px 0; }
  #controls { margin-top: 12px; padding: 10px 16px; grid-template-rows: 44px 44px; }
  .btn-spin { width: 110px; }
  .site-foot { margin-top: 8px; }
}

/* ======================================================= reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
