* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #061b2c;
  color: #ffebc5;
  font-family: Arial, sans-serif;
}
body {
  height: 100svh;
  min-height: 570px;
  display: grid;
  grid-template-rows: 115px minmax(0, 1fr) 126px;
  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.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #76edeb;
  outline-offset: 5px;
}
button[hidden],
[hidden] {
  display: none !important;
}
.world {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #071c31;
}
.palace {
  position: absolute;
  inset: 0;
  background: url('assets/background.webp') center/cover;
  filter: brightness(0.68);
  transform: scale(1.03);
}
.night-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 45%, transparent 20%, #041d32a8 95%),
    linear-gradient(0deg, #031724ce, transparent 30%);
}
.moon {
  position: absolute;
  width: 14vw;
  aspect-ratio: 1;
  right: 12%;
  top: 2%;
  border-radius: 50%;
  background: radial-gradient(#9ef3df08, transparent 70%);
  box-shadow: 0 0 100px #7edfeb20;
  animation: moon-breathe 10s ease-in-out infinite;
}
.moon i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #b7ebdb25;
  animation: moon-orbit 40s linear infinite;
}
.moon i:after {
  content: '';
  position: absolute;
  top: 17%;
  left: 11%;
  height: 8px;
  width: 8px;
  background: #fcdf9d;
  border-radius: 50%;
  box-shadow: 0 0 18px #f4df9a;
}
.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  overflow: hidden;
  opacity: 0.3;
  mix-blend-mode: screen;
}
.water i {
  position: absolute;
  inset: -30%;
  background: repeating-radial-gradient(
    ellipse at 55% 100%,
    transparent 0 28px,
    #5ad7dc65 30px,
    transparent 33px 70px
  );
  transform: scaleY(0.22);
  animation: water-drift 9s linear infinite;
}
.water i:nth-child(2) {
  animation-delay: -4s;
  opacity: 0.4;
  transform: scaleY(0.17);
}
.water i:nth-child(3) {
  animation-delay: -7s;
  opacity: 0.3;
}
.silk {
  position: absolute;
  top: -8%;
  height: 95%;
  width: 11%;
  background: linear-gradient(90deg, #052f55cc, #39869455, #013444ba);
  filter: blur(1px);
  transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 70% 75%, 50% 100%, 10% 60%);
  animation: silk-flow 7s ease-in-out infinite alternate;
}
.silk-left {
  left: -3%;
  transform: rotate(-4deg);
}
.silk-right {
  right: -2%;
  animation-delay: -4s;
}
.sunray {
  position: absolute;
  top: -25%;
  left: 15%;
  width: 70%;
  height: 170%;
  background: conic-gradient(
    from 165deg at 50% 0%,
    transparent 0deg,
    #81eade0c 6deg,
    transparent 14deg
  );
  transform-origin: 50% 0;
  mix-blend-mode: screen;
  animation: ray-sway 16s ease-in-out infinite alternate;
}
.ray-b {
  animation-delay: -10s;
  transform: rotate(25deg);
}
#magic {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
header {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
  padding: 9px 27px;
  z-index: 6;
}
.back {
  width: max-content;
  text-decoration: none;
  color: #f1dca8;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 12px 15px;
  border: 1px solid #c5aa6275;
  background: #0a273fcc;
  clip-path: polygon(9% 0, 100% 0, 100% 78%, 91% 100%, 0 100%, 0 22%);
}
.brand {
  text-align: center;
  filter: drop-shadow(0 3px 5px #020a1d);
}
.brand h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.7vw, 63px);
  font-weight: 500;
  letter-spacing: 2px;
  color: #ffe8b1;
  line-height: 1;
  margin: 0;
  text-shadow:
    0 1px 0 #e5b75d,
    0 0 20px #f5d68630;
}
.royal-mark {
  position: absolute;
  top: -1px;
  left: 50%;
  font-size: 10px;
  color: #8fe5d4;
  transform: translateX(-50%);
}
.subtitle {
  display: block;
  font-size: 9px;
  letter-spacing: 7px;
  color: #a0e1d7;
  margin-top: 8px;
}
nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
nav button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  background: #103750c9;
  border: 1px solid #b99b5770;
  transform: rotate(0);
  border-radius: 8px;
}
nav button[aria-pressed='true'] {
  background: #1e656a;
  color: #e8fff5;
}
.stage {
  display: grid;
  grid-template-columns: 19% minmax(0, 1fr) 13%;
  gap: 1.2%;
  align-items: center;
  padding: 0 2.5%;
  min-height: 0;
}
.host {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 0;
  z-index: 5;
}
.host > button {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 150%;
  margin-left: -24%;
  background: transparent;
  padding: 0;
  transform-origin: 50% 90%;
}
.queen-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 9px 14px #020c2180);
  transform-origin: 50% 88%;
  animation: queen-breathe 5.3s ease-in-out infinite;
}
.royal-shadow {
  position: absolute;
  left: 16%;
  bottom: 1%;
  width: 71%;
  height: 8%;
  border-radius: 50%;
  filter: blur(12px);
  background: #010c26a8;
  animation: shadow-drift 5.3s ease-in-out infinite;
}
.queen-aura {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 110%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #68d1db12, transparent 70%);
  pointer-events: none;
}
.queen-aura i {
  position: absolute;
  inset: 10% -1%;
  border: 1px solid #94ecd31a;
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: aura-turn 18s linear infinite;
}
.queen-aura i:nth-child(2) {
  inset: 15% -5%;
  transform: rotate(18deg);
  animation-direction: reverse;
}
.queen-aura i:after {
  content: '◆';
  position: absolute;
  left: 6%;
  top: 30%;
  font-size: 9px;
  color: #d9f1c6;
  text-shadow: 0 0 10px #78fff0;
}
.hand-light {
  position: absolute;
  left: 66%;
  top: 34%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #abffff20;
  box-shadow: 0 0 30px #5cfff570;
  animation: hand-spark 3s ease-in-out infinite;
}
.host-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: #e7cb8b;
  margin: 10px 0 0;
}
.host-label span {
  display: block;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #91cec9;
  margin: 7px 0;
}
#caption {
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  color: #d9dcc9;
  min-height: 34px;
  margin: 6px 0 10px;
  padding: 0 5px;
}
.host.ritual .queen-image {
  animation: queen-gesture 1.2s ease-in-out;
}
.host.speaking .queen-image {
  animation: queen-speak 0.38s ease-in-out infinite;
}
.host.ritual .hand-light {
  box-shadow: 0 0 60px 25px #6effe470;
  background: #ddfff2;
}
.machine {
  height: 100%;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 34px;
  z-index: 3;
  padding: 5px 0;
}
.marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #a4d5cc;
}
#mode {
  color: #ecd7a3;
  font-weight: bold;
}
.reel-frame {
  position: relative;
  min-height: 0;
  padding: 13px;
  border: 2px solid #d7b66c;
  border-radius: 8px;
  background: linear-gradient(
    120deg,
    #e0bc6d,
    #705123 2%,
    #123c52 3%,
    #082337 96%,
    #deb75f 99%
  );
  box-shadow:
    0 0 0 3px #0b3046,
    0 0 0 5px #846a3a,
    0 20px 50px #0009,
    inset 0 0 30px #010e1f;
}
.reel-frame:before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #cfb46b70;
  pointer-events: none;
}
.frame-ornament {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px double #f2d594;
  z-index: 6;
  background: #133849;
  transform: rotate(45deg);
  box-shadow: 0 0 12px #ddb96855;
  pointer-events: none;
}
.top-left {
  left: -12px;
  top: -12px;
}
.top-right {
  right: -12px;
  top: -12px;
}
.bottom-left {
  left: -12px;
  bottom: -12px;
}
.bottom-right {
  right: -12px;
  bottom: -12px;
}
.wing-trim {
  position: absolute;
  top: -19px;
  left: 40%;
  width: 20%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffdc84;
  font-size: 16px;
  z-index: 7;
  filter: drop-shadow(0 0 10px #69eee17a);
}
.wing-trim i {
  display: block;
  width: 40%;
  height: 10px;
  background: repeating-linear-gradient(0deg, #e8c175 0 2px, #1c7c8270 2px 4px);
  clip-path: polygon(0 20%, 100% 0, 100% 70%, 10% 100%);
}
.wing-trim i:last-child {
  transform: scaleX(-1);
}
.reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: 100%;
  gap: 3px;
  overflow: hidden;
  background: #07172b;
  border: 1px solid #355964;
}
.reel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #0b2839, #174b5b 48%, #0b2b40);
  box-shadow: inset 1px 0 #86d2c324;
}
.reel:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(#010c2280, transparent 20% 80%, #010c2290);
  pointer-events: none;
  z-index: 3;
}
.track {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-bottom: 1px solid #be9a5328;
  isolation: isolate;
}
.cell img {
  height: 91%;
  width: 96%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px #0007);
  transition: filter 0.2s;
}
.cell.win {
  z-index: 2;
}
.cell.win img {
  animation: gem-float 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 11px #85ffe990);
}
.cell.win:before {
  content: '';
  position: absolute;
  inset: 6%;
  z-index: -1;
  border: 1px solid #bcefd0b0;
  background: #43c8bb16;
  box-shadow:
    0 0 23px #4cecd340,
    inset 0 0 15px #87efd422;
  clip-path: polygon(
    8% 0,
    92% 0,
    100% 8%,
    100% 92%,
    92% 100%,
    8% 100%,
    0 92%,
    0 8%
  );
  animation: tile-shine 1.2s ease-in-out infinite alternate;
}
.cell.dim img {
  filter: brightness(0.6) saturate(0.65);
}
.cell.bonus img {
  animation: crown-rise 0.85s ease-in-out 3;
  filter: drop-shadow(0 0 20px #ebd194);
}
.reel.rolling .track {
  height: 200%;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  animation: reel-turn 0.16s linear infinite;
  filter: blur(6px);
}
.reel.stopped {
  animation: reel-settle 0.25s ease-out;
}
.seal-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0 3px;
  z-index: 5;
  pointer-events: none;
}
.seal-token {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(#12595d, #0d3043 75%);
  isolation: isolate;
}
.seal-token:before {
  content: '';
  position: absolute;
  inset: 4%;
  border: 2px solid #d6c27b;
  clip-path: polygon(
    10% 0,
    90% 0,
    100% 10%,
    100% 90%,
    90% 100%,
    10% 100%,
    0 90%,
    0 10%
  );
  box-shadow: inset 0 0 20px #8ff7d650;
  background: linear-gradient(135deg, #80c8af18, #61e4d92b);
  animation: seal-throb 2.5s ease-in-out infinite;
}
.seal-token:after {
  content: '◆';
  position: absolute;
  right: 8%;
  bottom: 7%;
  color: #eddda4;
  font-size: 9px;
  text-shadow: 0 0 10px #93fff1;
}
.seal-token img {
  width: 94%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #71efe380);
  z-index: 1;
}
.seal-token.born {
  animation: seal-arrive 0.65s ease-out;
}
.seal-token.winner img {
  animation: gem-float 1s infinite;
}
.board-shimmer {
  position: absolute;
  inset: 8px;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.board-shimmer:after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    110deg,
    transparent 48%,
    #b7ffe20c 50%,
    transparent 52%
  );
  animation: board-sweep 12s linear infinite;
}
.win-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}
.win-routes path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 17;
  filter: drop-shadow(0 0 6px #61eddc);
  opacity: 0.7;
  animation:
    route-flow 2s linear infinite,
    route-show 0.5s both;
  animation-delay: var(--delay);
}
.seal-flight {
  position: fixed;
  width: 70px;
  height: 70px;
  object-fit: contain;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 0 20px #7affe3);
}
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  font-size: 10px;
  color: #a0c9c5;
  overflow: hidden;
  white-space: nowrap;
}
#status {
  overflow: hidden;
  text-overflow: ellipsis;
}
#remaining {
  color: #ead59d;
  font-weight: bold;
  flex-shrink: 0;
}
.temple {
  position: relative;
  text-align: center;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.temple-label {
  font-family: Georgia, serif;
  color: #adc7c8;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 2px;
}
.temple-label strong {
  font-size: 21px;
  color: #f1d99f;
}
.obelisk {
  position: relative;
  width: 78%;
  margin: 14px auto 8px;
  padding: 20px 12px 12px;
  background: linear-gradient(110deg, #0b3347, #19565c 55%, #0a2f45);
  border: 1px solid #cfba75;
  clip-path: polygon(50% 0, 100% 8%, 100% 95%, 50% 100%, 0 95%, 0 8%);
  min-height: 215px;
  box-shadow: inset 0 0 25px #0a142b;
}
.obelisk-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #50cbbb30 var(--seal-fill, 0%),
    transparent var(--seal-fill, 0%)
  );
  transition: background 1s;
}
.obelisk-crown {
  color: #f3d593;
  font-size: 10px;
  position: relative;
}
.mult {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 7px 0 12px;
}
.mult strong {
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.8vw, 59px);
  font-weight: 400;
  color: #ffecb6;
  text-shadow: 0 0 17px #61dbca55;
}
.mult span {
  font-size: 6px;
  letter-spacing: 1px;
  color: #a7d9d4;
}
.seal-meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 80%;
  margin: auto;
}
.seal-meter i {
  display: block;
  aspect-ratio: 1;
  background: #0c293b;
  border: 1px solid #4b797c;
  transform: rotate(45deg) scale(0.6);
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.seal-meter i.active {
  background: #d1d899;
  border-color: #f5e4aa;
  box-shadow: 0 0 13px #a0ffd5;
  animation: seal-light 1.8s alternate infinite;
}
.seal-count {
  position: relative;
  margin: 11px 0 7px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #add4ce;
}
.seal-count strong {
  font-size: 15px;
  color: #ffe4a6;
}
.milestones {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 7px 0;
}
.milestones span {
  font-size: 7px;
  color: #739aa2;
  letter-spacing: 0.7px;
}
.milestones b {
  font-size: 10px;
  margin-left: 7px;
  color: #b4cfc4;
}
.milestones .active {
  color: #bffff1;
}
.milestones .active b {
  color: #ffe2a0;
}
#feature-info {
  font-size: 10px;
  color: #b7d2cc;
  line-height: 1.7;
  margin: 10px 0 5px;
}
#showcase {
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  border: 1px solid #aa9f68;
  background: #174955;
  border-radius: 5px;
  padding: 8px 9px;
  margin-top: 10px;
}
.royal-cat {
  position: relative;
  flex: 1;
  min-height: 80px;
  max-height: 180px;
  width: 100%;
  background: transparent;
  padding: 0;
  margin-top: 12px;
}
.royal-cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #65dddd2f);
  animation: cat-breathe 4s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.cat-glow {
  position: absolute;
  bottom: 1%;
  left: 10%;
  width: 80%;
  height: 8%;
  background: #55c8b345;
  filter: blur(12px);
  border-radius: 50%;
}
.royal-cat.awake img {
  animation: cat-greet 0.65s ease-in-out 3;
}
.desk {
  position: relative;
  z-index: 6;
  margin: 15px 14.6% 22px 22%;
  padding: 13px 17px;
  border: 1px solid #d2b471;
  background: linear-gradient(135deg, #14455a, #082c45 65%, #123b4b);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.25fr 60px 60px 1.25fr;
  align-items: center;
  gap: 11px;
  box-shadow:
    0 0 0 3px #0a293d,
    0 0 0 4px #856e3e,
    0 15px 30px #010b2080;
  clip-path: polygon(
    1% 0,
    99% 0,
    100% 12%,
    100% 88%,
    99% 100%,
    1% 100%,
    0 88%,
    0 12%
  );
}
.readout {
  min-width: 0;
}
.readout > span,
.bet-control > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #a8c7c9;
  white-space: nowrap;
  margin-bottom: 7px;
}
.readout strong {
  font-size: clamp(22px, 2.6vw, 39px);
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.readout.long strong {
  font-size: clamp(17px, 1.8vw, 29px);
}
.win-readout strong {
  color: #f5d9a0;
}
.bet-control {
  text-align: center;
}
.bet-control > div {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}
.bet-control strong {
  font-size: 21px;
}
.bet-control button {
  width: 27px;
  height: 27px;
  border: 1px solid #b0ba8470;
  background: #0b2d44;
  font-size: 21px;
  border-radius: 4px;
}
.desk-button {
  height: 52px;
  font-size: 8px;
  line-height: 1.8;
  color: #90bcc0;
  border: 1px solid #65939770;
  border-radius: 6px;
  background: #0a2f45;
}
.desk-button b {
  font-size: 10px;
  color: #e6dcb4;
}
.spin {
  position: relative;
  overflow: hidden;
  height: 65px;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  background: linear-gradient(145deg, #74dfd2, #257c92 68%, #135267);
  border: 1px solid #e2cc82;
  color: #fff1c7;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: clamp(12px, 1.2vw, 19px);
  box-shadow:
    inset 0 0 0 3px #c3ddac33,
    0 4px 0 #062635;
  clip-path: polygon(
    8% 0,
    92% 0,
    100% 20%,
    100% 80%,
    92% 100%,
    8% 100%,
    0 80%,
    0 20%
  );
}
.spin:hover:not(:disabled) {
  filter: brightness(1.13);
}
.spin-icon {
  font-size: 25px;
}
.spin-ring {
  position: absolute;
  inset: -100%;
  background: linear-gradient(
    110deg,
    transparent 47%,
    #e4ffd330 50%,
    transparent 53%
  );
  pointer-events: none;
  animation: button-glint 5s linear infinite;
}
#demo-tag {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #b0cdca;
}
body.royal-mode .palace {
  filter: brightness(0.72) saturate(1.15);
}
body.royal-mode .night-vignette {
  background:
    radial-gradient(ellipse at 60% 40%, #49cdbe18, transparent 70%),
    linear-gradient(0deg, #031724be, transparent 30%);
}
body.royal-mode .reel-frame {
  box-shadow:
    0 0 0 3px #0b3046,
    0 0 0 5px #ceb66c,
    0 0 55px #61e0c832,
    0 20px 50px #0009;
}
body.royal-mode .sunray {
  animation-duration: 7s;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 151px;
  transform: translate(-50%, 20px);
  max-width: 85%;
  background: #113c4aee;
  color: #ffebba;
  border: 1px solid #b6bb82;
  padding: 12px 20px;
  z-index: 25;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  box-shadow: 0 6px 18px #02122650;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #010f24ca;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  width: min(690px, 94vw);
  max-height: 89svh;
  overflow: auto;
  padding: 27px 30px;
  border: 1px solid #dfc17b;
  border-radius: 11px;
  background: linear-gradient(145deg, #174d5a, #092a43);
  box-shadow:
    0 0 0 4px #071e31,
    0 0 0 5px #948651,
    0 0 80px #5be9d130;
  text-align: center;
  animation: modal-open 0.4s ease-out;
  scrollbar-width: thin;
  scrollbar-color: #a9ac76 #0d3548;
}
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-thumb {
  background: #acac79;
  border-radius: 8px;
}
.modal:focus {
  outline: none;
}
.modal h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: #ffe4ac;
  margin: 12px 0;
}
.modal p {
  font-size: 13px;
  color: #c9e0d7;
  line-height: 1.8;
}
.modal .hero-symbol {
  height: 132px;
  width: 132px;
  object-fit: contain;
  animation: hero-float 3s ease-in-out infinite;
}
.modal .amount {
  display: block;
  font-size: 54px;
  font-weight: bold;
  color: #ffe3a5;
  margin: 13px 0;
}
.modal button,
.modal a {
  display: inline-block;
  padding: 12px 20px;
  margin: 8px 5px;
  border: 1px solid #d7c783;
  border-radius: 6px;
  background: #97d8c3;
  color: #082d3f;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}
.modal .subtle {
  background: #164759;
  color: #e0dcb2;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 20px !important;
  padding: 4px 11px !important;
  background: transparent !important;
  color: #f2d49c !important;
  border: 0 !important;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rule-symbol img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.rule-symbol b,
.rule-symbol small {
  display: block;
  font-size: 9px;
  line-height: 1.7;
}
.rule-symbol small {
  color: #a9c6ba;
}
.modal .rule-note {
  font-size: 10px;
  color: #97b7b9;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #071e33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#loading img {
  height: 150px;
  width: 150px;
  object-fit: contain;
  animation: hero-float 2s infinite;
}
#loading h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  color: #e5cf91;
}
#loading > div {
  height: 2px;
  width: 160px;
  background: #76deca;
  animation: loading-light 1s alternate infinite;
}
@keyframes moon-breathe {
  50% {
    transform: scale(1.07);
    opacity: 0.7;
  }
}
@keyframes moon-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes water-drift {
  to {
    transform: scaleY(0.22) translateX(65px);
  }
}
@keyframes silk-flow {
  to {
    transform: skewX(5deg) rotate(6deg);
  }
}
@keyframes ray-sway {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(19deg);
  }
}
@keyframes queen-breathe {
  50% {
    transform: translateY(-3px) scaleY(1.004);
  }
}
@keyframes shadow-drift {
  50% {
    transform: scale(0.93);
    opacity: 0.75;
  }
}
@keyframes aura-turn {
  to {
    transform: rotate(342deg);
  }
}
@keyframes hand-spark {
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}
@keyframes queen-gesture {
  40% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: rotate(0.6deg);
  }
}
@keyframes queen-speak {
  50% {
    transform: scaleY(1.005) translateY(-1px);
  }
}
@keyframes gem-float {
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}
@keyframes tile-shine {
  to {
    opacity: 0.4;
    box-shadow:
      0 0 30px #4cecd37a,
      inset 0 0 15px #87efd452;
  }
}
@keyframes crown-rise {
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
}
@keyframes reel-turn {
  to {
    transform: translateY(-50%);
  }
}
@keyframes reel-settle {
  0% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes seal-throb {
  50% {
    filter: brightness(1.2);
    box-shadow: inset 0 0 25px #8ff7d680;
  }
}
@keyframes seal-arrive {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes board-sweep {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(50%);
  }
}
@keyframes route-flow {
  to {
    stroke-dashoffset: -126;
  }
}
@keyframes route-show {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}
@keyframes seal-light {
  to {
    filter: brightness(1.3);
  }
}
@keyframes cat-breathe {
  50% {
    transform: scaleY(1.012) translateY(-2px);
  }
}
@keyframes cat-greet {
  25% {
    transform: rotate(-3deg) translateY(-4px);
  }
  75% {
    transform: rotate(3deg);
  }
}
@keyframes button-glint {
  0%,
  45% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes modal-open {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(15px);
  }
}
@keyframes hero-float {
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}
@keyframes loading-light {
  to {
    transform: scaleX(0.2);
    opacity: 0.5;
  }
}
body.reduced *,
body.paused * {
  animation-play-state: paused !important;
}
body.reduced .rolling .track {
  animation: none;
  filter: none;
}
body.reduced .cell img {
  transition: none;
}
body.reduced .win-routes {
  display: none;
}
@media (min-width: 1800px) {
  body {
    grid-template-rows: 132px minmax(0, 1fr) 145px;
  }
  .desk {
    padding: 18px 24px;
  }
  .spin {
    height: 78px;
  }
  .marquee {
    font-size: 11px;
  }
  .statusbar {
    font-size: 12px;
  }
  .host-label {
    font-size: 18px;
  }
  #caption {
    font-size: 13px;
  }
  .obelisk {
    min-height: 270px;
  }
  .temple-label strong {
    font-size: 28px;
  }
  .royal-cat {
    max-height: 230px;
  }
}
@media (max-width: 1150px) {
  header {
    padding: 10px 17px;
    grid-template-columns: 125px 1fr 130px;
  }
  .stage {
    grid-template-columns: 17% minmax(0, 1fr) 13%;
    gap: 1.3%;
    padding: 0 2%;
  }
  .desk {
    margin-left: 19%;
    margin-right: 13%;
    padding: 10px;
    gap: 7px;
    grid-template-columns: 1.2fr 1fr 1.2fr 48px 48px 1.15fr;
  }
  .readout > span {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .readout strong {
    font-size: 26px;
  }
  .spin {
    font-size: 12px;
    padding: 7px;
  }
  .marquee {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .statusbar {
    font-size: 8px;
  }
  .host-label {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .host-label span {
    font-size: 5px;
  }
  .temple-label {
    font-size: 10px;
  }
  .temple-label strong {
    font-size: 16px;
  }
  .obelisk {
    padding: 17px 8px 10px;
    min-height: 180px;
  }
  .seal-meter {
    gap: 3px;
    width: 90%;
  }
  .mult strong {
    font-size: 35px;
  }
  #caption {
    font-size: 9px;
  }
  #feature-info {
    font-size: 8px;
  }
  #showcase {
    font-size: 6px;
    padding: 7px 4px;
  }
  .royal-cat {
    max-height: 130px;
  }
  .reel-frame {
    padding: 9px;
  }
  .frame-ornament {
    width: 19px;
    height: 19px;
  }
  .top-left,
  .bottom-left {
    left: -8px;
  }
  .top-right,
  .bottom-right {
    right: -8px;
  }
  .top-left,
  .top-right {
    top: -8px;
  }
  .bottom-left,
  .bottom-right {
    bottom: -8px;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  body {
    min-height: 570px;
    grid-template-rows: 91px minmax(0, 1fr) 154px;
    overflow: auto;
  }
  header {
    padding: 8px 10px;
    grid-template-columns: 68px 1fr 92px;
  }
  .back {
    font-size: 8px;
    letter-spacing: 0.5px;
    padding: 9px 7px;
  }
  .brand h1 {
    font-size: 29px;
    letter-spacing: 0;
  }
  .subtitle {
    font-size: 6px;
    letter-spacing: 3px;
    margin-top: 6px;
  }
  .royal-mark {
    display: none;
  }
  nav {
    gap: 4px;
  }
  nav button {
    height: 27px;
    width: 27px;
    font-size: 14px;
  }
  .stage {
    display: block;
    position: relative;
    padding: 0 13px;
  }
  .host {
    display: none;
  }
  .machine {
    height: 100%;
    grid-template-rows: 28px minmax(0, 1fr) 30px;
  }
  .marquee {
    font-size: 6px;
    padding: 0 2px;
    letter-spacing: 0.5px;
  }
  .reel-frame {
    padding: 6px;
  }
  .reels {
    gap: 2px;
  }
  .seal-layer {
    gap: 0 2px;
  }
  .cell img {
    width: 100%;
    height: 90%;
  }
  .wing-trim {
    height: 20px;
    top: -15px;
    font-size: 11px;
  }
  .wing-trim i {
    height: 7px;
  }
  .frame-ornament {
    height: 15px;
    width: 15px;
    border-width: 2px;
  }
  .top-left,
  .bottom-left {
    left: -6px;
  }
  .top-right,
  .bottom-right {
    right: -6px;
  }
  .top-left,
  .top-right {
    top: -6px;
  }
  .bottom-left,
  .bottom-right {
    bottom: -6px;
  }
  .statusbar {
    font-size: 7px;
    padding: 5px 1px;
    gap: 5px;
  }
  .temple {
    position: absolute;
    bottom: -61px;
    right: 18px;
    width: 64px;
    height: 47px;
    z-index: 8;
  }
  .temple-label,
  .seal-meter,
  .seal-count,
  .milestones,
  #feature-info,
  .royal-cat {
    display: none;
  }
  .obelisk {
    margin: 0;
    height: 47px;
    min-height: 47px;
    width: 59px;
    padding: 5px;
    border: 1px solid #c2bd82;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  }
  .obelisk-crown {
    display: none;
  }
  .mult {
    margin: 0;
  }
  .mult strong {
    font-size: 24px;
  }
  .mult span {
    font-size: 4px;
  }
  .desk {
    margin: 11px 12px 21px;
    padding: 10px;
    grid-template-columns: 1.15fr 1fr 1.2fr 59px;
    grid-template-rows: 47px 48px;
    gap: 6px;
    clip-path: none;
    border-radius: 8px;
  }
  .readout strong {
    font-size: 21px;
  }
  .readout.long strong {
    font-size: 16px;
  }
  .readout > span,
  .bet-control > span {
    font-size: 6px;
    letter-spacing: 0.2px;
    margin-bottom: 6px;
  }
  .bet-control > div {
    gap: 5px;
  }
  .bet-control strong {
    font-size: 17px;
  }
  .bet-control button {
    height: 23px;
    width: 23px;
    font-size: 17px;
  }
  .win-readout {
    grid-column: 3;
  }
  .desk-button {
    height: 41px;
    font-size: 7px;
  }
  .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: 44px;
    height: 44px;
    font-size: 12px;
  }
  .spin-icon {
    font-size: 19px;
  }
  #showcase {
    position: absolute;
    right: -5px;
    top: -46px;
    width: 100px;
    min-height: 25px;
    margin: 0;
    font-size: 6px;
    padding: 6px 4px;
    z-index: 10;
  }
  body.demo .statusbar {
    padding-right: 103px;
  }
  body.demo.royal-mode .statusbar {
    padding-right: 1px;
  }
  #toast {
    bottom: 168px;
    font-size: 10px;
    padding: 10px 13px;
  }
  #demo-tag {
    font-size: 6px;
    bottom: 5px;
  }
  .modal {
    padding: 22px 15px;
  }
  .modal h2 {
    font-size: 26px;
  }
  .modal p {
    font-size: 11px;
  }
  .modal .hero-symbol {
    height: 100px;
    width: 100px;
  }
  .modal .amount {
    font-size: 38px;
  }
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .rule-symbol img {
    height: 50px;
    width: 50px;
  }
  .rule-symbol small {
    font-size: 8px;
  }
  .moon {
    width: 120px;
    right: 10%;
    top: 1%;
  }
  .seal-token img {
    width: 100%;
  }
  .seal-token:before {
    border-width: 1px;
  }
  .seal-token:after {
    font-size: 5px;
  }
}
@media (max-height: 620px) and (orientation: landscape) {
  body {
    min-height: 340px;
    grid-template-rows: 65px minmax(0, 1fr) 82px;
  }
  header {
    padding: 7px 15px;
  }
  .brand h1 {
    font-size: 32px;
  }
  .subtitle {
    font-size: 6px;
    letter-spacing: 4px;
    margin-top: 5px;
  }
  .royal-mark {
    display: none;
  }
  .desk {
    margin-top: 9px;
    margin-bottom: 10px;
    padding: 7px 10px;
    gap: 7px;
  }
  .readout strong {
    font-size: 23px;
  }
  .readout > span,
  .bet-control > span {
    font-size: 6px;
    margin-bottom: 4px;
  }
  .bet-control strong {
    font-size: 17px;
  }
  .bet-control button {
    width: 23px;
    height: 23px;
  }
  .desk-button {
    height: 42px;
  }
  .spin {
    height: 43px;
    min-height: 43px;
    font-size: 11px;
  }
  .spin-icon {
    font-size: 18px;
  }
  .machine {
    grid-template-rows: 23px minmax(0, 1fr) 23px;
  }
  .marquee {
    font-size: 6px;
  }
  .statusbar {
    font-size: 7px;
  }
  .host-label {
    margin: 4px 0 0;
    font-size: 9px;
  }
  .host-label span {
    font-size: 4px;
    margin: 4px 0;
  }
  #caption {
    font-size: 7px;
    min-height: 22px;
    margin: 2px 0;
  }
  .temple-label {
    font-size: 8px;
  }
  .temple-label strong {
    font-size: 12px;
  }
  .obelisk {
    min-height: 128px;
    margin: 7px auto 4px;
    padding: 8px 9px;
  }
  .obelisk-crown {
    font-size: 7px;
  }
  .mult {
    margin: 1px 0 5px;
  }
  .mult strong {
    font-size: 28px;
  }
  .mult span {
    font-size: 4px;
  }
  .seal-meter {
    gap: 1px;
    width: 78%;
  }
  .seal-count {
    font-size: 6px;
    margin: 5px 0 1px;
  }
  .seal-count strong {
    font-size: 10px;
  }
  .milestones {
    margin: 4px 0;
    gap: 3px;
  }
  .milestones span {
    font-size: 5px;
  }
  .milestones b {
    font-size: 7px;
  }
  #feature-info {
    font-size: 6px;
    margin: 5px 0;
  }
  #showcase {
    font-size: 5px;
    padding: 5px;
    margin: 5px 0;
  }
  .royal-cat {
    display: none;
  }
  .reel-frame {
    padding: 6px;
  }
  .frame-ornament {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
  .wing-trim {
    top: -13px;
    height: 17px;
    font-size: 10px;
  }
  .back {
    font-size: 9px;
    padding: 8px;
  }
  nav button {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  #toast {
    bottom: 92px;
  }
  .modal {
    padding: 15px 25px;
  }
  .modal .hero-symbol {
    height: 68px;
    width: 68px;
  }
  .modal h2 {
    font-size: 25px;
  }
  .modal p {
    font-size: 11px;
    margin: 7px 0;
  }
  .modal .amount {
    font-size: 35px;
    margin: 7px;
  }
  .modal button {
    padding: 9px 18px;
  }
  .rule-symbol img {
    height: 42px;
    width: 42px;
  }
  #demo-tag {
    bottom: 1px;
    font-size: 5px;
  }
}
