@font-face {
  font-family: Fest;
  src: local('Georgia');
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #102522;
  color: #fff0d5;
  font-family: Arial, sans-serif;
}
body {
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: 110px minmax(0, 1fr) 125px;
  overflow: hidden;
  isolation: isolate;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #aeeaff;
  outline-offset: 5px;
}
button[hidden],
[hidden] {
  display: none !important;
}
.scenery {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #0c2629;
}
.tent {
  position: absolute;
  inset: 0;
  background: url('assets/background.webp') center/cover;
  filter: brightness(0.63);
  transform: scale(1.02);
}
.lightwash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 20%, #081e2380 85%),
    linear-gradient(0deg, #071a20bd, transparent 25%);
}
.flagline {
  position: absolute;
  top: -5px;
  left: -4%;
  width: 110%;
  display: flex;
  justify-content: space-around;
  transform: rotate(-2deg);
  border-top: 3px solid #d7b17d;
  animation: flag-sway 8s ease-in-out infinite alternate;
  transform-origin: top;
}
.flagline i {
  width: 4.4vw;
  height: 6vw;
  max-height: 100px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: repeating-conic-gradient(#fff4da 0 25%, #367798 0 50%) 0/22px 22px;
  box-shadow: 0 5px 15px #000;
}
.lantern {
  position: absolute;
  width: 35px;
  height: 52px;
  top: 8%;
  border: 4px solid #985623;
  border-radius: 40%;
  background: #ffc474;
  box-shadow:
    0 0 35px #ffbd6290,
    inset 0 0 15px #fff;
  animation: lantern-swing 4.3s ease-in-out infinite alternate;
  transform-origin: 50% -50px;
}
.l1 {
  left: 6%;
}
.l2 {
  right: 7%;
  animation-delay: -2s;
}
.l3 {
  left: 48%;
  top: 1%;
  transform: scale(0.6);
  opacity: 0.7;
}
.spotlight {
  position: absolute;
  bottom: -10%;
  width: 80vw;
  height: 140vh;
  background: conic-gradient(
    from 175deg at 50% 100%,
    transparent 0deg,
    #ffd09216 8deg,
    transparent 18deg
  );
  transform-origin: bottom center;
  mix-blend-mode: screen;
  animation: spot-pan 13s ease-in-out infinite alternate;
}
.s1 {
  left: -10%;
}
.s2 {
  right: -10%;
  animation-delay: -8s;
  animation-direction: alternate-reverse;
}
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}
header {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;
  padding: 12px 28px;
  z-index: 5;
}
.back {
  text-decoration: none;
  color: #fbe7c3;
  letter-spacing: 1.8px;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #b88e5870;
  padding: 12px 16px;
  width: max-content;
  border-radius: 9px;
  background: #112b2dc9;
}
.brand {
  text-align: center;
  filter: drop-shadow(0 4px 2px #080e14);
}
.brand small {
  font-size: 10px;
  letter-spacing: 6px;
  color: #f3c28b;
}
.brand h1 {
  font-family: Fest, Georgia, serif;
  font-weight: 900;
  font-size: clamp(25px, 3.4vw, 55px);
  margin: 2px 0;
  color: #fff0ce;
  line-height: 0.93;
}
.brand em {
  font-style: normal;
  color: #ffc27c;
}
nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
nav button {
  height: 35px;
  min-width: 35px;
  border: 1px solid #ae825360;
  border-radius: 50%;
  background: #173032c9;
  font-size: 20px;
}
nav button[aria-pressed='true'] {
  background: #2b6a78;
  color: white;
}
.stage {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr) 15%;
  gap: 1%;
  padding: 0 3%;
  align-items: center;
  min-height: 0;
}
.host {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 4;
}
.host > button {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 150%;
  margin-left: -25%;
  background: transparent;
  padding: 0;
  transform-origin: 50% 90%;
  animation: host-breathe 4s ease-in-out infinite;
}
.host img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 13px #0008);
  transform-origin: 55% 88%;
}
.host-shadow {
  position: absolute;
  bottom: 2%;
  left: 10%;
  right: 5%;
  height: 6%;
  background: #04161990;
  border-radius: 50%;
  filter: blur(7px);
  animation: shadow-pulse 4s infinite;
}
.host-label {
  font-size: 15px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}
.host-label span {
  display: block;
  font-size: 8px;
  color: #dcb88a;
  letter-spacing: 1.8px;
  margin: 5px 0;
}
#caption {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #f5ddba;
  min-height: 34px;
  margin: 6px 0 8px;
}
.note {
  position: absolute;
  color: #efb663;
  text-shadow: 0 0 10px #ffb743;
  font-size: 34px;
  animation: notes-rise 4.7s linear infinite;
  opacity: 0;
}
.n1 {
  left: 30%;
  top: 25%;
}
.n2 {
  right: 5%;
  top: 34%;
  animation-delay: 1.6s;
}
.n3 {
  left: 50%;
  top: 18%;
  animation-delay: 3s;
}
.host.dance img {
  animation: otto-dance 0.65s ease-in-out 5;
}
.host.speaking img {
  animation: otto-talk 0.33s ease-in-out infinite;
}
.machine {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr) 31px;
  padding: 5px 0 2px;
  z-index: 3;
}
.marquee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #d9b589;
  padding: 0 10px;
}
#mode {
  color: #ffddaa;
  font-weight: bold;
}
.reel-frame {
  position: relative;
  min-height: 0;
  border-radius: 25px;
  border: 3px solid #c08d55;
  padding: 13px;
  background: linear-gradient(
    135deg,
    #e7bc76,
    #4a2419 5%,
    #9c6540 10%,
    #301d1a 80%,
    #d9a36a
  );
  box-shadow:
    0 0 0 3px #142e31,
    0 0 0 5px #735632,
    0 20px 50px #03090d70,
    inset 0 0 20px #160909;
}
.brass-trim {
  position: absolute;
  inset: 4px;
  border: 1px solid #efc28980;
  border-radius: 18px;
  pointer-events: none;
}
.reels {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0dfbb;
  box-shadow: inset 0 0 15px #28170e;
}
.reel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #cbbb99,
    #fbedd4 25%,
    #e5cfa7 80%,
    #cbbb99
  );
}
.reel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(#31171033, transparent 14% 85%, #31171040);
  box-shadow: inset 1px 0 0 #fff8;
}
.track {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}
.cell {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  border-bottom: 1px solid #b8935b30;
}
.cell img {
  width: 91%;
  height: 91%;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px #71542535);
  transition: filter 0.2s;
}
.cell .symbol-label {
  position: absolute;
  bottom: 3%;
  left: 0;
  right: 0;
  font-size: 8px;
  color: #794426;
  text-align: center;
  opacity: 0;
}
.cell.win {
  z-index: 2;
  animation: symbol-bounce 0.7s ease-in-out infinite;
}
.cell.win:before {
  content: '';
  position: absolute;
  inset: 4%;
  border-radius: 14px;
  background: #ffe9ab65;
  box-shadow:
    inset 0 0 0 2px #fff7d0,
    0 0 25px #ffc05580;
  z-index: -1;
  animation: win-glow 1s alternate infinite;
}
.cell.dim img {
  filter: grayscale(0.3) brightness(0.58);
}
.cell.bonus img {
  animation: bell-ring 0.45s ease-in-out 5;
  filter: drop-shadow(0 0 10px #edb322);
}
.reel.rolling .track {
  height: 200%;
  grid-template-rows: repeat(8, 1fr);
  animation: reel-roll 0.15s linear infinite;
  filter: blur(6px);
}
.reel.stopped {
  animation: reel-land 0.24s ease-out;
}
.reel.expanded {
  background: linear-gradient(#186375, #112f3b);
}
.wild-tower {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  background: radial-gradient(#ffc86570, transparent 65%);
  animation: tower-grow 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
.wild-tower img {
  width: 95%;
  height: 64%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px #ffd27c);
}
.wild-tower strong {
  font-family: Georgia, serif;
  letter-spacing: 3px;
  font-size: clamp(12px, 2vw, 32px);
  text-shadow: 0 0 12px #ffc783;
}
.wild-tower:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    #fff9 45%,
    transparent 60%
  );
  animation: brass-shine 3s infinite;
  opacity: 0.3;
}
.footlights {
  position: absolute;
  bottom: -7px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
}
.footlights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffde92;
  box-shadow: 0 0 12px #ffb65e;
  animation: bulb-pulse 1.6s infinite alternate;
}
.footlights i:nth-child(2n) {
  animation-delay: -0.8s;
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #e1c5a0;
  padding: 5px 7px;
  white-space: nowrap;
  overflow: hidden;
}
#status {
  overflow: hidden;
  text-overflow: ellipsis;
}
#remaining {
  color: #ffcf81;
  font-weight: bold;
  flex-shrink: 0;
}
.concert {
  align-self: center;
  text-align: center;
  z-index: 2;
}
.concert-title {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
  color: #dac09a;
  letter-spacing: 1px;
}
.concert-title strong {
  font-size: 23px;
  color: #ffd499;
}
.stein-meter {
  position: relative;
  width: 78%;
  aspect-ratio: 0.66;
  margin: 22px auto 12px;
  border: 3px solid #dfc7a096;
  border-radius: 12px 12px 24px 24px;
  background: #152f34b0;
  box-shadow:
    inset 0 0 14px #e0f3ee55,
    0 9px 20px #0005;
}
.stein-meter:after {
  content: '';
  position: absolute;
  width: 35%;
  height: 65%;
  top: 20%;
  right: -39%;
  border: 8px solid #dfc7a096;
  border-left: 0;
  border-radius: 0 30px 30px 0;
}
.beer-fill {
  position: absolute;
  bottom: 4%;
  left: 4%;
  width: 92%;
  height: var(--fill, 24%);
  background: linear-gradient(
    90deg,
    #b26c19,
    #e9ae39 40%,
    #e8b856 60%,
    #bb6c21
  );
  border-radius: 0 0 16px 16px;
  transition: height 1s;
  box-shadow: inset 0 -15px 20px #7b451aaa;
}
.foam {
  position: absolute;
  bottom: calc(var(--fill, 24%) + 1%);
  left: 0;
  width: 100%;
  height: 12%;
  background: #fff2d9;
  border-radius: 40% 45% 25% 25%;
  transition: bottom 1s;
  filter: drop-shadow(0 4px 2px #a57430);
  animation: foam-wobble 3s infinite alternate;
}
.foam:after {
  content: '';
  position: absolute;
  right: 6%;
  width: 13%;
  height: 210%;
  background: #fff2d9;
  border-radius: 0 0 50px 50px;
}
.mult {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 0 2px 5px #36200c;
}
.mult strong {
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 65px);
  color: #fff0bc;
}
.mult span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #fff8e4;
}
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
}
.bubbles i {
  position: absolute;
  bottom: 5%;
  width: 6px;
  height: 6px;
  border: 1px solid #fff5c1;
  border-radius: 50%;
  left: 20%;
  animation: bubble-up 3.5s infinite;
}
.bubbles i:nth-child(2) {
  left: 60%;
  animation-delay: 1.1s;
}
.bubbles i:nth-child(3) {
  left: 75%;
  animation-delay: 2.1s;
}
.bubbles i:nth-child(4) {
  left: 37%;
  animation-delay: 0.6s;
}
.bubbles i:nth-child(5) {
  left: 50%;
  animation-delay: 1.6s;
}
.beat-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 14px 0;
}
.beat-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #203d40;
  border: 1px solid #b78a58;
}
.beat-dots i.active {
  background: #ffc577;
  box-shadow: 0 0 12px #ffb955;
  animation: tempo-pulse 0.8s infinite alternate;
}
#concert-info {
  font-size: 11px;
  color: #e3c39b;
  line-height: 1.6;
}
#showcase {
  font-size: 9px;
  padding: 10px 8px;
  border: 1px solid #e2bc7360;
  background: #1b4853;
  border-radius: 8px;
  line-height: 1.4;
  margin-top: 8px;
}
.bell-teaser {
  display: flex;
  margin: 14px auto 0;
  width: 80%;
  gap: 5px;
}
.bell-teaser img {
  width: 33%;
  object-fit: contain;
  opacity: 0.3;
  transition: opacity 0.4s;
}
.bell-teaser img.lit {
  opacity: 1;
  animation: bell-ring 0.5s 3;
}
.desk {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.2fr 68px 68px 1.3fr;
  align-items: center;
  gap: 12px;
  margin: 14px 16% 22px 21%;
  padding: 13px 18px;
  background: linear-gradient(#244345, #0c252b);
  border: 2px solid #b38752;
  border-radius: 16px;
  box-shadow:
    0 5px 0 #34271e,
    0 12px 28px #0008,
    inset 0 0 0 2px #e7b67225;
}
.readout {
  min-width: 0;
}
.readout > span,
.bet-control > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #c5ba9f;
  margin-bottom: 7px;
  white-space: nowrap;
}
.readout strong {
  font-size: clamp(21px, 2.5vw, 40px);
  font-weight: 900;
  white-space: nowrap;
}
.win-readout strong {
  color: #ffd799;
}
.bet-control {
  text-align: center;
}
.bet-control > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bet-control strong {
  font-size: 21px;
}
.bet-control button {
  background: #152c33;
  width: 28px;
  height: 28px;
  font-size: 21px;
  border: 1px solid #c7a26b60;
  border-radius: 7px;
}
.desk-button {
  font-size: 9px;
  color: #c6bb9d;
  line-height: 1.7;
  background: #14313a;
  border: 1px solid #ad895452;
  border-radius: 10px;
  height: 54px;
}
.desk-button b {
  font-size: 10px;
  color: #fff0ce;
}
.spin {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffe0a3, #d38b39 70%, #a2632c);
  color: #302013;
  font-weight: 900;
  font-size: clamp(12px, 1.3vw, 19px);
  letter-spacing: 1px;
  border: 2px solid #ffdba1;
  box-shadow:
    0 4px 0 #76401f,
    inset 0 2px 0 #fff8;
}
.spin:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.spin-icon {
  font-size: 25px;
}
.spin-shine {
  position: absolute;
  inset: -30%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    #fff8 50%,
    transparent 60%
  );
  animation: button-shine 5s infinite;
  pointer-events: none;
}
#demo-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: #e2c6a2;
}
body.concert-mode .tent {
  filter: brightness(0.67) saturate(1.22);
}
body.concert-mode .lightwash {
  background:
    radial-gradient(ellipse at center, #fdc15420, transparent 70%),
    linear-gradient(0deg, #071a20bd, transparent 25%);
}
body.concert-mode .reel-frame {
  box-shadow:
    0 0 0 3px #142e31,
    0 0 0 5px #bf985a,
    0 0 45px #ffbd5040,
    0 20px 50px #03090d70;
}
body.concert-mode .marquee {
  color: #ffdb9b;
}
body.concert-mode .flagline {
  animation-duration: 3s;
}
#toast {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #15383aee;
  color: #ffeac5;
  border: 1px solid #c29c63;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 20;
  font-size: 13px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  max-width: 85%;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #041619c9;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal {
  position: relative;
  width: min(650px, 95vw);
  max-height: 90svh;
  overflow: auto;
  padding: 28px 32px;
  background: linear-gradient(140deg, #28535b, #102a30);
  border: 2px solid #cd9e5f;
  border-radius: 25px;
  box-shadow:
    0 0 0 5px #12282e,
    0 0 80px #ebb65630;
  text-align: center;
  animation: modal-in 0.4s ease-out;
}
.modal h2 {
  font-family: Georgia, serif;
  color: #ffdd9c;
  font-size: 34px;
  margin: 12px 0;
}
.modal p {
  font-size: 14px;
  line-height: 1.7;
  color: #e2d6c0;
}
.modal .hero-symbol {
  height: 140px;
  width: 140px;
  object-fit: contain;
  animation: modal-symbol 3s ease-in-out infinite;
}
.modal .amount {
  display: block;
  font-size: 56px;
  font-weight: 900;
  color: #ffe5b3;
  margin: 14px 0;
}
.modal button,
.modal a {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid #e8b574;
  border-radius: 10px;
  margin: 8px 5px;
  background: #deb477;
  color: #162e33;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}
.modal .subtle {
  background: #224a53;
  color: #ffdfad;
}
.modal-close {
  position: absolute;
  right: 8px;
  top: 8px !important;
  padding: 5px 12px !important;
  font-size: 20px !important;
  background: transparent !important;
  color: #edd4b0 !important;
  border: 0 !important;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rule-symbol img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.rule-symbol b,
.rule-symbol small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
}
.rule-symbol small {
  color: #d5bd98;
}
.modal table {
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
}
.modal td,
.modal th {
  padding: 7px;
  border-bottom: 1px solid #e4c39130;
}
#loading {
  position: fixed;
  inset: 0;
  background: #102b30;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #efc792;
}
#loading img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  animation: modal-symbol 2s infinite;
}
#loading h2 {
  font-family: Georgia, serif;
  font-size: 22px;
}
#loading > div {
  width: 160px;
  height: 3px;
  background: #d7a56b;
  animation: load-line 1s infinite alternate;
}
@keyframes flag-sway {
  to {
    transform: rotate(1.2deg) translateY(5px);
  }
}
@keyframes lantern-swing {
  to {
    transform: rotate(8deg);
  }
}
@keyframes spot-pan {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(17deg);
  }
}
@keyframes host-breathe {
  50% {
    transform: translateY(-3px) rotate(0.4deg);
  }
}
@keyframes shadow-pulse {
  50% {
    transform: scale(0.92);
    opacity: 0.6;
  }
}
@keyframes notes-rise {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(-12deg);
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(30px, -100px) rotate(15deg);
  }
}
@keyframes otto-dance {
  25% {
    transform: rotate(-3deg) translateY(-8px);
  }
  75% {
    transform: rotate(3deg) translateY(-3px);
  }
}
@keyframes otto-talk {
  50% {
    transform: scaleY(1.012) rotate(0.4deg);
  }
}
@keyframes symbol-bounce {
  50% {
    transform: translateY(-3px) scale(1.035);
  }
}
@keyframes win-glow {
  to {
    box-shadow:
      inset 0 0 0 2px #fff6cc,
      0 0 25px #ffc055;
    opacity: 0.6;
  }
}
@keyframes bell-ring {
  25% {
    transform: rotate(-13deg);
  }
  75% {
    transform: rotate(13deg);
  }
}
@keyframes reel-roll {
  to {
    transform: translateY(-50%);
  }
}
@keyframes reel-land {
  0% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes tower-grow {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes brass-shine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes bulb-pulse {
  to {
    opacity: 0.45;
  }
}
@keyframes foam-wobble {
  to {
    transform: scaleY(0.92) translateY(3px);
  }
}
@keyframes bubble-up {
  to {
    transform: translate(7px, -110px);
    opacity: 0;
  }
}
@keyframes tempo-pulse {
  to {
    transform: scale(1.15);
    box-shadow: 0 0 16px #ffb955;
  }
}
@keyframes button-shine {
  0%,
  60% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.94);
  }
}
@keyframes modal-symbol {
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}
@keyframes load-line {
  to {
    transform: scaleX(0.2);
    opacity: 0.5;
  }
}
@keyframes banner-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
body.reduced *,
body.paused * {
  animation-play-state: paused !important;
}
body.reduced .rolling .track {
  animation: none;
  filter: none;
}
body.reduced .cell,
body.reduced .foam,
body.reduced .beer-fill {
  transition: none;
}
body.reduced .modal {
  animation: none;
}
@media (min-width: 1800px) {
  body {
    grid-template-rows: 125px minmax(0, 1fr) 150px;
  }
  .desk {
    padding: 18px 25px;
  }
  .machine {
    grid-template-rows: 40px minmax(0, 1fr) 40px;
  }
  .marquee {
    font-size: 12px;
  }
  .statusbar {
    font-size: 13px;
  }
  .spin {
    height: 83px;
  }
  .host-label {
    font-size: 20px;
  }
  #caption {
    font-size: 14px;
  }
  .concert-title strong {
    font-size: 30px;
  }
}
@media (max-width: 1150px) {
  header {
    padding: 10px 18px;
    grid-template-columns: 120px 1fr 130px;
  }
  .stage {
    grid-template-columns: 16% minmax(0, 1fr) 14%;
    padding: 0 2%;
    gap: 1.5%;
  }
  .desk {
    margin-left: 18%;
    margin-right: 14%;
    gap: 7px;
    padding: 10px;
    grid-template-columns: 1.2fr 0.95fr 1.1fr 50px 50px 1.2fr;
  }
  .readout > span {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .concert-title {
    font-size: 11px;
  }
  .concert-title strong {
    font-size: 17px;
  }
  #concert-info {
    font-size: 10px;
  }
  #caption {
    font-size: 10px;
  }
  .stein-meter {
    width: 70%;
  }
  .marquee {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .spin {
    padding: 8px;
  }
  .spin-icon {
    font-size: 20px;
  }
  .reel-frame {
    padding: 9px;
  }
  .statusbar {
    font-size: 9px;
  }
  .host-label {
    font-size: 12px;
    letter-spacing: 2px;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  body {
    min-height: 580px;
    grid-template-rows: 86px minmax(0, 1fr) 157px;
    overflow: auto;
  }
  header {
    grid-template-columns: 67px 1fr 94px;
    padding: 9px 10px;
  }
  .back {
    padding: 9px 7px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .brand h1 {
    font-size: 25px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  nav {
    gap: 4px;
  }
  nav button {
    height: 28px;
    min-width: 28px;
    font-size: 15px;
  }
  .stage {
    display: block;
    padding: 0 14px;
    position: relative;
  }
  .machine {
    height: 100%;
    grid-template-rows: 30px minmax(0, 1fr) 29px;
  }
  .reel-frame {
    padding: 7px;
    border-radius: 16px;
  }
  .reels {
    gap: 2px;
  }
  .marquee {
    padding: 0 2px;
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .statusbar {
    font-size: 8px;
    padding: 5px 1px;
  }
  .host {
    display: none;
  }
  .concert {
    position: absolute;
    right: 14px;
    bottom: -67px;
    width: 76px;
    height: 54px;
    z-index: 8;
  }
  .concert-title,
  .concert-info,
  .concert p,
  .concert .beat-dots,
  .bell-teaser {
    display: none;
  }
  .stein-meter {
    width: 46px;
    height: 51px;
    aspect-ratio: auto;
    margin: 0;
    border-width: 2px;
    border-radius: 6px;
  }
  .stein-meter:after {
    border-width: 4px;
    right: -40%;
    border-radius: 0 10px 10px 0;
  }
  .mult strong {
    font-size: 22px;
  }
  .mult span {
    font-size: 4px;
  }
  .foam {
    height: 15%;
  }
  #showcase {
    position: absolute;
    right: 0;
    top: -39px;
    width: 90px;
    font-size: 7px;
    padding: 6px;
    margin: 0;
    background: #1b4853;
    z-index: 10;
  }
  .desk {
    margin: 11px 12px 22px;
    padding: 10px 10px 11px;
    grid-template-columns: 1.15fr 1fr 1.15fr 68px;
    grid-template-rows: 50px 51px;
    gap: 6px;
  }
  .readout strong {
    font-size: 22px;
  }
  .readout > span,
  .bet-control > span {
    font-size: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .bet-control > div {
    gap: 5px;
  }
  .bet-control strong {
    font-size: 17px;
  }
  .bet-control button {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }
  .win-readout {
    grid-column: 3;
  }
  .desk-button {
    height: 42px;
    font-size: 8px;
  }
  .desk-button b {
    font-size: 9px;
  }
  #speed {
    grid-column: 1;
    grid-row: 2;
  }
  #auto {
    grid-column: 2;
    grid-row: 2;
  }
  .spin {
    grid-column: 3 / 5;
    grid-row: 2;
    min-height: 46px;
    font-size: 13px;
  }
  .spin-icon {
    font-size: 19px;
  }
  .cell img {
    width: 97%;
    height: 88%;
  }
  .wild-tower {
    gap: 5px;
  }
  .wild-tower img {
    width: 100%;
    height: 72%;
  }
  .wild-tower strong {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .modal {
    padding: 22px 17px;
  }
  .modal h2 {
    font-size: 26px;
  }
  .modal p {
    font-size: 12px;
  }
  .modal .hero-symbol {
    height: 110px;
    width: 110px;
  }
  .modal .amount {
    font-size: 40px;
  }
  .rule-grid {
    gap: 5px;
  }
  .rule-symbol img {
    height: 55px;
    width: 55px;
  }
  .lantern {
    width: 22px;
    height: 33px;
  }
  .flagline i {
    height: 40px;
    width: 30px;
  }
  #toast {
    bottom: 175px;
    font-size: 11px;
  }
  .footlights i {
    height: 6px;
    width: 6px;
  }
}
@media (max-height: 620px) and (orientation: landscape) {
  body {
    min-height: 340px;
    grid-template-rows: 65px minmax(0, 1fr) 81px;
  }
  header {
    padding: 6px 14px;
  }
  .brand h1 {
    font-size: 29px;
  }
  .brand small {
    font-size: 7px;
  }
  .desk {
    margin-top: 8px;
    margin-bottom: 9px;
    padding: 7px 10px;
    gap: 8px;
  }
  .desk-button {
    height: 42px;
  }
  .spin {
    min-height: 44px;
    height: 44px;
    font-size: 12px;
  }
  .readout strong {
    font-size: 23px;
  }
  .readout > span,
  .bet-control > span {
    margin-bottom: 4px;
    font-size: 6px;
  }
  .bet-control strong {
    font-size: 17px;
  }
  .bet-control button {
    height: 24px;
    width: 24px;
  }
  .machine {
    grid-template-rows: 21px minmax(0, 1fr) 24px;
  }
  .statusbar {
    font-size: 8px;
  }
  .marquee {
    font-size: 7px;
  }
  .reel-frame {
    padding: 6px;
    border-radius: 15px;
  }
  .host-label {
    margin-top: 2px;
    font-size: 10px;
  }
  .host-label span {
    font-size: 5px;
    margin: 3px;
  }
  #caption {
    font-size: 8px;
    min-height: 22px;
    margin: 1px 0;
  }
  .concert-title {
    font-size: 8px;
  }
  .concert-title strong {
    font-size: 13px;
  }
  .stein-meter {
    height: 102px;
    width: 64px;
    margin: 8px auto;
  }
  .mult strong {
    font-size: 30px;
  }
  .mult span {
    font-size: 5px;
  }
  .beat-dots {
    margin: 8px 0;
  }
  .beat-dots i {
    height: 7px;
    width: 7px;
  }
  #concert-info {
    font-size: 8px;
  }
  .bell-teaser {
    display: none;
  }
  #showcase {
    font-size: 6px;
    padding: 6px;
    margin: 3px 0;
  }
  .back {
    padding: 8px;
    font-size: 10px;
  }
  nav button {
    height: 29px;
    min-width: 29px;
    font-size: 16px;
  }
  .modal {
    padding: 15px 25px;
  }
  .modal .hero-symbol {
    height: 70px;
    width: 70px;
  }
  .modal h2 {
    font-size: 24px;
  }
  .modal p {
    font-size: 12px;
    margin: 6px 0;
  }
  .modal .amount {
    font-size: 35px;
    margin: 8px;
  }
  .modal button {
    padding: 9px 17px;
  }
  #toast {
    bottom: 90px;
  }
  .cell img {
    width: 90%;
    height: 98%;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  body.demo .statusbar {
    padding-right: 95px;
  }
  body.demo.concert-mode .statusbar {
    padding-right: 1px;
  }
}
@media (max-height: 620px) and (orientation: landscape) {
  #demo-tag {
    bottom: -9px;
    font-size: 6px;
  }
}

.win-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
  overflow: visible;
}
.win-routes path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 18;
  filter: drop-shadow(0 0 5px #ffc06b);
  opacity: 0.75;
  animation:
    route-flow 2s linear infinite,
    route-appear 0.6s both;
  animation-delay: var(--delay);
}
@keyframes route-flow {
  to {
    stroke-dashoffset: -104;
  }
}
@keyframes route-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.65;
  }
}
body.reduced .win-routes {
  display: none;
}

.modal {
  scrollbar-width: thin;
  scrollbar-color: #bd985f #123038;
}
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-track {
  background: transparent;
}
.modal::-webkit-scrollbar-thumb {
  border-radius: 9px;
  background: #a88350;
}
.modal:focus {
  outline: none;
}
.rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rule-symbol small {
  font-size: 9px;
}
@media (max-width: 700px) and (orientation: portrait) {
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
