@font-face {
  font-family: Maxima;
  src: url('/art/MaximaNouva-Regular.ttf');
}
@font-face {
  font-family: Maxima;
  src: url('/art/MaximaNouva-Bold.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Nokia;
  src: url('/art/NokiaExpanded-Black.otf');
  font-weight: 900;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
  background: #2c103f;
  color: #f2eeef;
  font:
    15px Maxima,
    Arial,
    sans-serif;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(#160c2a28, #160c2a28),
    url('/art/garden.webp') center/cover no-repeat,
    #331344;
}
button {
  color: inherit;
  font: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff9a4;
  outline-offset: 2px;
}
button:active:not(:disabled) {
  filter: brightness(0.85);
}
button:disabled {
  cursor: default;
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 360px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
  overflow: hidden;
}
#stage > button,
#stage > .wordmark,
#stage > #mode,
.chip,
#board,
#charge,
#meter-bar,
#meters,
#message {
  position: absolute;
}
.wordmark {
  left: 15px;
  top: 16px;
  width: 174px;
  height: 31px;
}
#mode {
  left: 16px;
  top: 49px;
  font-size: 12px;
  line-height: 17px;
  text-shadow: 0 1px 5px #2c0939;
}
#stage.bonus #mode {
  color: #ffdc75;
}
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: #0b0710;
  border: 1px solid #54314e;
  border-radius: 7px;
  line-height: 1;
}
.chip small {
  display: block;
  color: #d7c6db;
  text-transform: uppercase;
  font-size: 8px;
  line-height: 11px;
}
.chip span {
  font-size: 12px;
}
#pair-chip {
  left: 17px;
  top: 83px;
  width: 146px;
  height: 34px;
  justify-content: space-between;
}
#pair-text {
  white-space: nowrap;
}
#pair-icons {
  display: flex;
  gap: 1px;
  align-items: center;
}
#pair-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
#bank-chip {
  left: 17px;
  top: 124px;
  width: 134px;
  height: 34px;
}
#bank-chip > img {
  width: 24px;
  height: 24px;
}
#bank-text {
  margin-left: auto;
}
.pips {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}
.pips i {
  display: block;
  width: 16px;
  height: 7px;
  border-radius: 6px;
  background: #514258;
}
.pips i.lit {
  background: #ffcf52;
  box-shadow: 0 0 5px #ee9a4b;
}
#board {
  left: 201px;
  top: 19px;
  width: 288px;
  height: 334px;
  transform: scale(0.86);
  transform-origin: top left;
}
#board::before {
  content: '';
  position: absolute;
  left: -5.75px;
  top: -2.75px;
  width: 300px;
  height: 347px;
  background: url('/art/tray.svg') center/100% 100%;
}
#stage.bonus #board:after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1.5px solid #ffe177;
  border-radius: 15px;
  box-shadow: 0 0 5px #ffd471;
}
#artboard {
  position: absolute;
  inset: 7px;
  overflow: hidden;
  border-radius: 8px;
}
#reels,
#pieces,
#effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#reels {
  z-index: 2;
  display: none;
}
#reels.show {
  display: block;
}
#reels canvas {
  display: block !important;
  width: 274px !important;
  height: 320px !important;
}
#effects {
  overflow: visible;
  z-index: 3;
}
.piece {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}
.piece > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 87%;
  user-select: none;
  -webkit-user-drag: none;
}
.face,
.mark-tag {
  position: absolute;
  font:
    bold 10px/1 Maxima,
    Arial;
  color: #112220;
  pointer-events: none;
}
.face {
  top: 29%;
  font-weight: 700;
  font-size: 10px;
  text-shadow: 0 0 1px #afffdb;
}
.mark-tag {
  bottom: 0;
  right: 1px;
  padding: 1px 3px;
  border-radius: 4px;
  background: #30173b;
  color: #ffe781;
  box-shadow: 0 0 0 0.6px #f4c864;
  font-size: 8px;
}
.piece.marked > img {
  filter: drop-shadow(0 0 2px #ffc844);
}
.piece.idle > img {
  animation: breathe 3s ease-in-out infinite;
  animation-delay: var(--offset);
  animation-direction: alternate;
}
.piece.special.idle > img {
  animation-name: watch;
}
@keyframes breathe {
  0%,
  55%,
  100% {
    transform: none;
  }
  76% {
    transform: scale(1.025, 0.965);
  }
}
@keyframes watch {
  0%,
  60%,
  100% {
    transform: none;
  }
  78% {
    transform: rotate(-3deg) scale(1.05, 1.02);
  }
}
#announcement {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: bold 15px Maxima;
  text-shadow:
    0 2px 3px #210f36,
    0 0 8px #2c1738;
  pointer-events: none;
  color: #fff4af;
}
.flying-magnet {
  position: absolute;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 4px #f8a6ff);
  z-index: 4;
}
#charge {
  left: 201px;
  top: 307px;
  width: 248px;
  height: 11px;
  text-align: center;
  border-radius: 5px;
  background: #26132dd9;
  color: #ffe39c;
  font-size: 8px;
  line-height: 11px;
}
#charge strong {
  margin-left: 5px;
}
#meter-bar {
  left: 0;
  right: 0;
  bottom: 0;
  height: 43px;
  background: #07060ac0;
}
#meters {
  display: flex;
  top: 328px;
  left: 108px;
  gap: 17px;
  text-align: center;
  pointer-events: none;
}
#meters > div {
  width: 80px;
}
#meters small {
  display: block;
  text-transform: uppercase;
  font-size: 8px;
  line-height: 10px;
}
#meters b {
  display: block;
  font:
    900 8px/13px Nokia,
    Maxima,
    sans-serif;
}
#buy {
  background: none;
  left: 19px;
  top: 261px;
  width: 123px;
  height: 38px;
  padding: 0;
  border-radius: 7px;
}
#buy img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
#spin {
  background: #000;
  left: 526.7px;
  top: 271.3px;
  width: 74.7px;
  height: 74.7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
#spin img {
  width: 65%;
  height: 65%;
}
#spin.running img {
  display: none;
}
#spin.running:after {
  content: '';
  width: 27%;
  height: 27%;
  border-radius: 3px;
  background: #f2eeef;
}
#spin:disabled:not(.running) {
  opacity: 0.7;
}
.rail,
.wager {
  display: grid;
  place-items: center;
  padding: 0;
  background: #07060add;
  border-radius: 5px;
}
.rail img,
.wager img {
  object-fit: contain;
}
.rail {
  left: 615.3px;
  width: 39px;
  height: 23.3px;
  padding-right: 15px;
}
.rail img {
  width: 15px;
  height: 15px;
}
.rail[aria-pressed='true']:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: #00e3ec;
}
#sound {
  top: 195.3px;
}
#info {
  top: 227px;
}
#menu {
  top: 258.7px;
}
#auto {
  top: 290.3px;
}
#turbo {
  top: 322px;
}
.wager {
  top: 330.3px;
  width: 26.7px;
  height: 26.7px;
}
.wager img {
  width: 14px;
  height: 14px;
}
.wager:disabled {
  opacity: 0.62;
}
#minus {
  left: 413px;
}
#bet {
  left: 450.1px;
  width: 39px;
}
#bet img {
  width: 23px;
  height: 17px;
}
#plus {
  left: 499.5px;
}
#buy:disabled {
  visibility: hidden;
}
#message {
  top: 172px;
  left: 14px;
  width: 156px;
  background: #170f21eb;
  border-radius: 7px;
  padding: 7px;
  font-size: 12px;
  text-align: center;
}
.portrait#stage {
  width: 360px;
  height: 640px;
}
.portrait .wordmark {
  left: 15px;
  top: 8px;
}
.portrait #mode {
  left: 185px;
  top: 11px;
  width: 160px;
  text-align: right;
  font-size: 10px;
  line-height: 21px;
}
.portrait #pair-chip {
  left: 36px;
  top: 49px;
}
.portrait #bank-chip {
  left: 190px;
  top: 49px;
}
.portrait #board {
  left: 36px;
  top: 90px;
  transform: none;
}
.portrait #charge {
  left: 36px;
  top: 429px;
  width: 288px;
  height: 15px;
  line-height: 15px;
  font-size: 10px;
}
.portrait #meter-bar {
  height: 50px;
}
.portrait #meters {
  left: 45px;
  top: 602px;
  gap: 14px;
}
.portrait #meters > div {
  width: 80px;
}
.portrait #spin {
  left: 130px;
  top: 443.7px;
  width: 100px;
  height: 100px;
}
.portrait #buy {
  left: 14px;
  top: 474px;
  width: 108px;
}
.portrait .wager {
  top: 552px;
  width: 42.7px;
  height: 42.7px;
}
.portrait .wager img {
  width: 19px;
  height: 19px;
}
.portrait #minus {
  left: 97.7px;
}
.portrait #plus {
  left: 218.5px;
}
.portrait #bet {
  left: 152.8px;
  width: 53.3px;
}
.portrait #bet img {
  width: 33px;
  height: 24px;
}
.portrait .rail {
  left: 327px;
  width: 53.3px;
  height: 32px;
  padding-right: 20px;
}
.portrait .rail img {
  width: 19px;
  height: 19px;
}
.portrait #auto {
  top: 517.7px;
}
.portrait #turbo {
  top: 557.7px;
}
.portrait #sound {
  top: 597.7px;
}
.portrait #info,
.portrait #menu {
  left: -20px;
  padding: 0 0 0 18px;
}
.portrait #info {
  top: 557.7px;
}
.portrait #menu {
  top: 597.7px;
}
.portrait #message {
  top: 399px;
  left: 60px;
  width: 240px;
  z-index: 5;
}
dialog {
  background: transparent;
  color: #f2eeef;
  padding: 0;
  border: 0;
  overflow: visible;
  width: min(88vw, calc(320px * var(--ui-scale, 1)));
  max-width: 90vw;
  max-height: 92dvh;
  font-size: clamp(14px, calc(13px * var(--ui-scale, 1)), 19px);
}
dialog::backdrop {
  background: #08050bd6;
}
.modal {
  position: relative;
  max-height: 89dvh;
  overflow: auto;
  padding: 1.35em 1.2em;
  background: #130e20;
  border: 1px solid #83577e;
  border-radius: 1.1em;
  box-shadow: 0 0.6em 1.3em #0009;
}
.modal:before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.3em;
  width: 3.7em;
  height: 2px;
  background: #00e3ec;
  border-radius: 3px;
}
h1 {
  font:
    900 1.06em/1.5 Nokia,
    Maxima,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 2em 0.9em 0;
}
.modal p {
  margin: 0 0 1em;
  font-size: 0.95em;
  line-height: 1.5;
}
#close {
  position: absolute;
  right: 0.7em;
  top: 0.7em;
  width: 2.3em;
  height: 2.3em;
  display: grid;
  place-items: center;
  background: #291d31;
  border-radius: 0.65em;
}
#close img {
  width: 55%;
}
.offer,
.option,
.action {
  display: flex;
  align-items: center;
  gap: 0.55em;
  background: #241a2c;
  border: 1px solid #594461;
  width: 100%;
  text-align: left;
  border-radius: 0.67em;
  padding: 0.6em;
  margin: 0.55em 0 0;
}
.offer {
  min-height: 4.5em;
  border-color: #00e3ec;
}
.offer.super {
  border-color: #ffdc60;
}
.offer img,
.option img {
  width: 2.8em;
  height: 2.8em;
  object-fit: contain;
}
.offer > span,
.option > span {
  display: grid;
  gap: 0.23em;
}
.offer b,
.option b {
  font-size: 1.13em;
}
.offer small,
.option small {
  font-size: 0.77em;
}
.offer strong {
  margin-left: auto;
  text-align: right;
  color: #00e3ec;
  font-weight: 700;
  font-size: 1.15em;
}
.offer.super strong {
  color: #ffdc60;
}
.offer strong small {
  display: block;
  color: #fff;
  font: normal 0.55em Maxima;
  margin-top: 0.4em;
}
.offer:disabled,
.option:disabled {
  opacity: 0.45;
}
.option .pair-art {
  display: flex;
  gap: 0;
  flex-direction: row;
}
.pair-art img {
  width: 2.2em;
  height: 2.2em;
}
.action {
  justify-content: center;
  text-align: center;
  min-height: 2.5em;
}
.action.selected {
  border-color: #09dce3;
}
.modal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78em;
  text-align: right;
}
.modal th,
.modal td {
  padding: 0.32em 0.12em;
  border-bottom: 1px solid #4b374e;
}
.modal th:first-child {
  text-align: left;
}
.modal details {
  margin-top: 0.7em;
}
.modal details summary {
  cursor: pointer;
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .piece.idle > img {
    animation: none;
  }
}
#spin img {
  width: 100%;
  height: 100%;
}
.portrait#stage {
  height: calc(640px + var(--extra, 0px));
}
.portrait #board,
.portrait #charge {
  translate: 0 calc(var(--extra, 0px) * 0.32);
}
.portrait #spin,
.portrait #buy,
.portrait .wager,
.portrait .rail,
.portrait #meters {
  translate: 0 var(--extra, 0px);
}
.portrait #message {
  translate: 0 calc(var(--extra, 0px) * 0.32);
}
#bank-chip.firing {
  outline: 1px solid #ffdb77;
  box-shadow: 0 0 9px #fdaa6fcc;
}
#bank-chip.firing .pips i {
  background: #ffdf75;
  box-shadow: 0 0 5px #ffae5d;
}
.flying-magnet.waiting {
  width: 26px;
  height: 26px;
  opacity: 0.94;
  transform: translate(18px, -1px);
}
