:root {
  color-scheme: dark;
  font-family: Georgia, 'Times New Roman', serif;
  color: #fff0ca;
  background: #211014;
  --jade: #62f3d7;
  --gold: #efb960;
  --amber: #9a521f;
  --gold-edge: linear-gradient(170deg,#8f411d 0%,#ffdaa0 20%,#b66725 43%,#6b3018 55%,#e7a653 75%,#ffe6af 87%,#9e471a 100%);
  --plum: radial-gradient(ellipse at 55% 0%,#653447 0%,#401c2b 58%,#26121e 100%);
  --shade: #201018;
  --surface: #381e27;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid #94ffe9; outline-offset: 3px; }
button:disabled { opacity: .63; cursor: default; }
button:not(:disabled):active { filter: brightness(1.15); }
[hidden] { display: none !important; }
.game {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: max(5px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: grid;
  overflow: hidden;
  grid-template-areas: 'header' 'title' 'stats' 'board' 'controls' 'status';
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto auto auto minmax(0,1fr) auto 2rem;
  row-gap: clamp(3px, .85dvh, 9px);
  background: #4b2521 url(art/atlantis.webp) center / cover;
}
header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.brand {
  display: block;
  width: auto;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 7px;
}
.home { display: block; border-radius: 7px; }
.top-actions { display: flex; gap: 2px; align-items: center; }
.quiet {
  min-width: 39px;
  min-height: 40px;
  padding: .15em .43em;
  background: #22131cd6;
  border: 1px solid #c6884a91;
  border-radius: 8px;
  color: #ffe0a5;
  font-size: .87rem;
  font-weight: 700;
  text-shadow: 0 1px 2px #2a1006;
}
.icon-button { border-color: transparent; background: #21121b95; font-size: 1.2rem; text-shadow: 0 2px 7px #160810; }
.icon-button[aria-pressed="true"], .subtle[aria-pressed="true"] { color: var(--jade); }
.title {
  grid-area: title;
  margin: 0 auto;
  width: min(67%, 17rem, 37dvh);
  position: relative;
  text-align: center;
  color: #ffe1aa;
  font-size: clamp(1.1rem,5vw,2.1rem);
}
.title img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 3px #3a1a13b8);
}
.stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin: 0 auto;
  width: min(94%, 34rem);
  align-items: stretch;
  gap: 3px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stats > div, .big-total, dialog button {
  position: relative;
  border: 2px solid transparent;
  background: var(--plum) padding-box, var(--gold-edge) border-box;
  box-shadow: 0 0 0 1px #633022, inset 0 0 0 1px #a86235, inset 0 0 9px #ed9c4638, 0 3px 5px #231017ba;
}
.stats > div {
  display: grid;
  place-content: center;
  min-height: 41px;
  padding: 3px 1px;
  border-radius: 14px 14px 12px 12px;
  color: #ffdb96;
}
.stats > div:not(:last-child)::after, .big-total::before, .big-total::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: .43em;
  aspect-ratio: 1;
  border: 1px solid #ffd29b;
  background: radial-gradient(at 38% 28%,#71f2d9 1%,#268789 32%,#065547 66%,#103028 100%);
  box-shadow: 0 0 0 1px #864516, 0 0 2px 2px #662a1944;
  transform: rotate(45deg);
  pointer-events: none;
}
.stats > div:not(:last-child)::after { right: -8px; top: calc(50% - .24em); }
dt { font-size: clamp(.72rem,3.05vw,1rem); line-height: 1.05; font-weight: 700; }
dd {
  margin: 2px 0 0;
  font-size: clamp(.91rem,4vw,1.6rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.04em;
  text-shadow: 0 1px #66351a;
}
.board-space {
  grid-area: board;
  position: relative;
  min-width: 0;
  width: min(100%, 45rem);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  margin-inline: auto;
  border-radius: 13px;
}
.pots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  width: min(82%, 29rem);
  margin: 0 auto 6px;
  gap: clamp(5px, 2vw, 13px);
}
[data-pot] { --pot-light: #ffcf68; --pot-glow: #f0a63d; }
[data-pot="tide"] { --pot-light: #83fae0; --pot-glow: #34b2ac; }
[data-pot="wings"] { --pot-light: #eac4ff; --pot-glow: #ba70e6; }
.pot {
  --treasure-top: 23%;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: end;
}
.pot[data-pot="tide"] { --treasure-top: 9%; }
.pot[data-pot="wings"] { --treasure-top: 28%; }
.pot-vessel {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(100%, 83px);
  height: clamp(37px, 11vw, 60px);
}
.pot-vessel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 3px #251016b8);
}
.pot-vessel::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 21%;
  right: 21%;
  height: 38%;
  pointer-events: none;
  filter: blur(5px);
  background: radial-gradient(ellipse,var(--pot-light),transparent 68%);
  opacity: calc(var(--fill) * .94);
  transform: translateY(calc(var(--fill) * -7px));
  transition: opacity .3s ease, transform .3s ease;
}
.pot-treasure {
  position: absolute;
  z-index: 1;
  top: var(--treasure-top);
  left: 35%;
  right: 35%;
  max-height: 13px;
  display: flex;
  flex-flow: row-reverse wrap-reverse;
  justify-content: center;
  gap: 1px;
}
.pot-treasure i {
  width: clamp(4px,1.4vw,7px);
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(at 27% 20%,#fff9d5 10%,var(--pot-light) 36%,var(--pot-glow) 71%);
  box-shadow: 0 0 3px var(--pot-glow);
  opacity: 0;
  transform: scale(.25);
  transition: opacity .22s ease, transform .22s ease;
}
.pot-treasure [data-filled="true"] { opacity: 1; transform: scale(1); }
.pot[data-ready="true"] img {
  filter: drop-shadow(0 0 7px var(--pot-glow));
}
.pot-caption {
  z-index: 1;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .11em .08em .14em;
  border: 1px solid #c38950;
  border-radius: 6px;
  color: var(--pot-light);
  background: radial-gradient(ellipse at top,#573043,#251019);
  font-size: clamp(.62rem,2.75vw,.89rem);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}
.pot-pips {
  display: flex;
  justify-content: center;
  width: 82%;
  gap: 2px;
  margin-top: 3px;
}
.pot-pips i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #2d171d;
  box-shadow: inset 0 0 0 1px #b9855870;
}
.pot-pips [data-filled="true"] {
  background: var(--pot-light);
  box-shadow: 0 0 4px var(--pot-glow);
}
.pot-coin {
  position: fixed;
  z-index: 8;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #8b4116;
  font: 700 .66rem/1 Georgia, serif;
  border: 2px solid #ffd883;
  border-radius: 50%;
  background: radial-gradient(at 32% 20%,#fffbd2 5%,#ffe572 35%,#e6a22f 65%,#ad5518);
  box-shadow: inset 0 0 0 1px #dc8a30, 0 0 8px #ffc35e;
}
.board-frame {
  position: relative;
  min-height: 0;
  border-radius: inherit;
}
.board {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  grid-template-rows: repeat(5, minmax(0,1fr));
  gap: 1px;
  border-radius: inherit;
  background: #28151e;
  overflow: hidden;
}
.reel-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  pointer-events: none;
}
.reel-window {
  overflow: hidden;
  min-height: 0;
  background: linear-gradient(#582d40,#422135 42%,#321525);
}
.reel-strip {
  display: grid;
  height: 100%;
  grid-auto-rows: calc((100% - 4px) / 5);
  gap: 1px;
}
.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 41%, #64334b, #421e33 52%, #260f1b 100%);
  box-shadow: inset 0 0 0 1px #1e0b147a;
}
.tile:nth-child(even) { background: radial-gradient(ellipse at 52% 39%,#58283f,#351a2c 64%,#210b17); }
.tile[data-kind="6"], .tile[data-kind="7"], .tile[data-kind="13"], .tile[data-kind="14"], .tile[data-kind="15"] { background: radial-gradient(ellipse at 48% 42%,#325c4a,#231017 84%); }
.tile img { width: 99%; height: 99%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 2px #190c16b3); }
.tile[data-kind="6"] img, .tile[data-kind="7"] img { height: 86%; margin-bottom: 8%; }
.tile[data-kind="6"]::after, .tile[data-kind="7"]::after {
  content: 'WILD';
  white-space: nowrap;
  position: absolute;
  bottom: 1px;
  padding: 0 2px;
  border: 1px solid #a46630;
  border-radius: 4px;
  background: #271018;
  font: bold clamp(.42rem,2.1vw,.71rem)/1.05 Georgia, serif;
  letter-spacing: .045em;
  color: #ffe29a;
  text-shadow: 0 1px 2px #160807;
}
.tile[data-kind="7"]::after { content: 'SCATTER'; font-size: clamp(.34rem,1.65vw,.62rem); }
.tile.hit {
  box-shadow: inset 0 0 0 2px #ffdd8b, inset 0 0 15px #f1b875,0 0 8px #ffa4498f;
  background: radial-gradient(ellipse,#92583b,#482137);
  z-index: 2;
}
.controls {
  grid-area: controls;
  width: min(82%, 34rem);
  margin-inline: auto;
  display: grid;
  align-items: center;
  grid-template-columns: clamp(44px, 16%, 68px) minmax(0, 1fr) clamp(44px, 16%, 68px);
  grid-template-areas: 'lower spin raise' 'secondary secondary secondary';
  gap: clamp(4px, 1.2vw, 8px) clamp(3px, .7vw, 7px);
}
#lower { grid-area: lower; }
#raise { grid-area: raise; }
.stake, .spin, .subtle {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--button-art) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px #1f0b10b8);
  color: #ffdf99;
  font-weight: 700;
  text-shadow: 0 1px #a05a28, 0 2px #4c1c0e, 0 3px 4px #281314;
}
.stake {
  --button-art: none;
  min-height: 44px;
  aspect-ratio: 1;
  padding: 0 0 .05em;
  font-size: clamp(1.55rem, 7vw, 2.6rem);
  line-height: 1;
}
.spin {
  --button-art: none;
  grid-area: spin;
  min-height: 49px;
  aspect-ratio: 3.2;
  padding: .18em 12% .3em;
  font-size: clamp(1.28rem, 6.4vw, 2.25rem);
  line-height: 1;
  text-wrap: balance;
}
.spin.free-spin { font-size: clamp(.97rem,4.6vw,1.65rem); }
.connect {
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  font-size: clamp(.82rem,3.7vw,1.42rem);
}
.secondary-actions {
  grid-area: secondary;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-inline: 8%;
}
.secondary-actions::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  border: 1px solid #f8c87e;
  transform: rotate(45deg);
  background: radial-gradient(at 36% 32%, #7ce9db, #176459 75%);
  box-shadow: 0 0 0 1px #753b1e, 0 1px 2px #220e0e;
  pointer-events: none;
}
.subtle {
  --button-art: none;
  min-height: 36px;
  aspect-ratio: 3.35;
  padding: .15em .37em .25em;
  font-size: clamp(.88rem, 3.5vw, 1.22rem);
  line-height: 1.05;
}
dialog button {
  min-height: 37px;
  padding: .25em .45em;
  border-radius: 9px;
  font-size: clamp(.84rem, 3.1vw, 1.09rem);
  font-weight: bold;
  color: #ffe3ad;
  text-shadow: 0 1px #421a17;
}
.status {
  grid-area: status;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: .15em .65em;
  border-radius: .75em;
  text-align: center;
  font-size: .8rem;
  color: #ffe6b6;
  background: #281319c9;
  text-shadow: 0 1px 2px #140710;
  align-content: center;
}
.status:empty { background: transparent; }
.celebration {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 48%,#3110174a,#210d1ab0 72%,#1b0a16c7);
  pointer-events: none;
}
.celebration-card {
  width: 100%;
  display: grid;
  justify-items: center;
  position: relative;
  animation: win-in .46s cubic-bezier(.2,.73,.25,1.2) both;
}
.big-title {
  display: block;
  width: 104%;
  height: auto;
  filter: drop-shadow(0 0 12px #ef9039b3);
}
.big-total {
  --plum: radial-gradient(ellipse at 50% 55%,#114d47,#102c29 61%,#0c201e);
  width: max-content;
  min-width: 45%;
  max-width: 94%;
  position: absolute;
  top: 67%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: .01em .58em .08em;
  font-size: clamp(1.27rem,7.9vw,4rem);
  font-weight: 700;
  line-height: 1.17;
  font-variant-numeric: tabular-nums;
  color: #ffe4a0;
  text-align: center;
  border-width: 3px;
  border-radius: .92em;
  box-shadow: 0 0 0 1px #a45f28,inset 0 0 0 1px #c2874e,0 0 15px #ee923fc7;
  text-shadow: 0 2px #b06322, 0 3px #5c2c16, 0 0 12px #efae4e6b;
}
.big-total::before { top: -.20em; left: calc(50% - .16em); }
.big-total::after { bottom: -.20em; left: calc(50% - .16em); }
.big-total::before, .big-total::after { width: .30em; }
@keyframes win-in { from { opacity: 0; transform: scale(.65) translateY(8%); } }
dialog {
  width: min(90vw, 27rem);
  max-height: min(90svh, 30rem);
  border: 2px solid #e2aa63;
  border-radius: 1.05rem;
  background: var(--plum);
  box-shadow: 0 0 0 1px #613319,inset 0 0 0 2px #9f623d,inset 0 0 25px #22121bc9,0 0 30px #170b14;
  padding: 1.15rem;
  color: #fff3d4;
}
dialog::backdrop { background: #140b16d4; }
dialog h2 { margin: 0 0 .5em; color: #ffd891; }
dialog p { margin: .65em 0; line-height: 1.42; }
.freespin-dialog {
  width: min(92vw, 27rem);
  max-height: min(91svh, 32rem);
  padding: clamp(12px,4.2vw,23px);
  border: 1px solid #c89560;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 50% -13%, #563147 0%, #231522 48%, #180f1a 96%);
  box-shadow: inset 0 0 0 3px #efbb651f, 0 0 28px #e49b5933, 0 16px 48px #100a14be;
  text-align: center;
}
.freespin-dialog::backdrop {
  background: radial-gradient(ellipse at center, #1b0d1890, #140914e6);
}
.freespin-dialog[open] { animation: super-open .28s ease-out both; }
.freespin-dialog h2 {
  margin: .06em 0 0;
  color: #ffe1a5;
  font-size: clamp(1.58rem,7vw,2.36rem);
  font-weight: 700;
  line-height: 1.09;
  text-shadow: 0 0 16px #eaa55b50, 0 1px 2px #1a0d14;
}
.freespin-dialog > p {
  margin: .42em 0 .92em;
  color: #e3c7bd;
  font-size: clamp(.82rem,3.8vw,.99rem);
}
.bonus-choices { display: grid; gap: clamp(7px,2vw,10px); }
.freespin-dialog .freespin-card {
  --mode: #87e5c6;
  --mode-dark: #17302d;
  display: grid;
  align-items: center;
  grid-template-columns: clamp(45px,14vw,63px) minmax(0,1fr) auto;
  gap: clamp(7px,2.6vw,12px);
  width: 100%;
  min-height: 0;
  padding: 5px clamp(7px,2.45vw,12px) 5px 5px;
  border: 1px solid color-mix(in srgb, var(--mode) 42%, #492b36);
  border-radius: .9rem;
  background:
    linear-gradient(95deg,var(--mode-dark),#211521 72%),
    #211521;
  box-shadow: inset 0 1px #fff5cf19, 0 4px 9px #140c1590;
  text-align: left;
  text-shadow: none;
  transition: border-color .18s ease, filter .18s ease;
}
.freespin-card[data-multiplier="2"] { --mode: #ffcf7e; --mode-dark: #402a20; }
.freespin-card[data-multiplier="3"] { --mode: #e4b6ff; --mode-dark: #372442; }
.freespin-dialog .freespin-card:hover, .freespin-dialog .freespin-card:focus-visible {
  border-color: var(--mode);
  filter: brightness(1.1);
}
.freespin-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--mode) 49%, transparent);
  border-radius: .61rem;
  object-fit: cover;
}
.freespin-detail { display: grid; gap: .23em; }
.freespin-name {
  color: #fff0d6;
  font-size: clamp(.83rem,3.9vw,1.09rem);
  font-weight: 700;
  line-height: 1.12;
}
.freespin-count {
  color: #e5cfc6;
  font: 500 clamp(.69rem,3.08vw,.83rem)/1.16 system-ui, sans-serif;
}
.freespin-multiplier {
  display: grid;
  place-items: center;
  min-width: 2.02em;
  min-height: 1.72em;
  padding: .12em .23em;
  border-radius: .58rem;
  border: 1px solid color-mix(in srgb, var(--mode) 54%, transparent);
  background: var(--mode-dark);
  color: var(--mode);
  font: 750 clamp(.97rem,4.7vw,1.28rem)/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
@media (orientation: landscape) and (max-height: 430px) {
  .freespin-dialog { padding-block: 10px; }
  .freespin-dialog .freespin-card { grid-template-columns: clamp(36px,10svh,45px) minmax(0,1fr) auto; }
  .freespin-dialog > p { margin-bottom: .5em; }
}

.super-dialog {
  width: min(91vw, 25rem);
  max-height: min(92svh, 35rem);
  padding: clamp(12px,3.9vw,22px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%,#68404999,transparent 63%),
    linear-gradient(155deg,#3e202e,#23141e 57%,#2e1a2e);
}
.super-dialog::backdrop {
  background: radial-gradient(ellipse at 50% 52%, #2e111783 0%, #160b17db 78%);
}
.super-dialog[open] { animation: super-open .28s ease-out both; }
.super-dialog h2 {
  color: #ffe6ad;
  margin: 0 0 .34em;
  font-size: clamp(1.25rem,5.6vw,1.9rem);
  text-shadow: 0 2px 5px #120913;
}
.super-choices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 5px;
  padding: 4px;
  margin: 0 auto .3em;
  border-radius: .7rem;
  background: #1b1019;
}
.super-choices button {
  min-height: 41px;
  padding: .32em .12em;
  color: var(--pot-light);
  font-size: clamp(.76rem,3.4vw,.98rem);
  letter-spacing: .025em;
  border-radius: .5rem;
  box-shadow: inset 0 0 0 1px #8b55396b;
}
.super-choices button[aria-pressed="true"] {
  border-color: var(--pot-light);
  background: radial-gradient(ellipse at 50% 0%,#5a3942,#2a1f2b);
  box-shadow: inset 0 0 12px #fbc47132,0 0 8px #efbc5755;
}
.super-hero {
  display: grid;
  justify-items: center;
  color: var(--pot-light);
}
.super-art {
  display: grid;
  position: relative;
  place-items: center;
  isolation: isolate;
  width: 100%;
  height: clamp(74px,19svh,147px);
  margin-top: .2rem;
}
.super-art::before, .super-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.super-art::before {
  inset: 1% 5%;
  background: radial-gradient(ellipse, var(--pot-glow), transparent 65%);
  opacity: .44;
  filter: blur(10px);
}
.super-art::after {
  width: min(54%, 152px);
  aspect-ratio: 1;
  border: 1px solid var(--pot-light);
  border-radius: 50%;
  opacity: .29;
  transform: rotate(-17deg) scaleY(.76);
  box-shadow: 0 0 0 5px #d1a97128, 0 0 15px var(--pot-glow);
}
.super-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px #1b0f1a9c) drop-shadow(0 0 12px var(--pot-glow));
}
.super-name {
  margin-top: .05em;
  font-size: clamp(1.48rem,6.8vw,2.15rem);
  line-height: 1;
  letter-spacing: .12em;
  font-weight: 700;
  text-shadow: 0 0 13px var(--pot-glow), 0 3px 5px #150d16;
}
.super-dialog .super-spins {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6em;
  width: 100%;
  margin: .58em 0 .18em;
  color: #ffe8b6;
  font-weight: 700;
  font-size: clamp(.94rem,4vw,1.18rem);
}
.super-spins::before, .super-spins::after {
  content: '';
  background: linear-gradient(90deg,transparent,#efb965);
  width: min(16%, 42px);
  height: 1px;
  opacity: .66;
}
.super-spins::after { transform: scaleX(-1); }
.super-dialog .super-effect {
  max-width: 27ch;
  margin: .16em 0 .72em;
  color: #f1e1d8;
  font-size: clamp(.83rem,3.6vw,1rem);
  line-height: 1.32;
  text-wrap: balance;
}
.super-dialog .super-start {
  width: min(94%, 19rem);
  min-height: clamp(45px,13vw,60px);
  padding: .35em 10% .47em;
  border: 0;
  border-radius: 1rem;
  background: none;
  box-shadow: none;
  color: #ffe9ad;
  text-shadow: 0 1px 3px #3e240e;
  font-size: clamp(.92rem,4vw,1.15rem);
}
@keyframes super-open {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
}
@media (orientation: portrait) {
  .game {
    background-position: center top;
  }
  .title { margin-top: -8px; }
}
@media (orientation: portrait) and (max-height: 635px) {
  .title { width: min(58%, 28dvh); }
  .pots { margin-bottom: 3px; }
}
@media (orientation: landscape) {
  .game {
    grid-template-columns: minmax(0,1.65fr) minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr) auto auto 2rem;
    grid-template-areas: 'header header' 'board title' 'board stats' 'board controls' 'board status';
    column-gap: clamp(12px,3vw,37px);
    align-items: center;
    background-position: center 26%;
  }
  .board-space { align-self: stretch; width: min(100%, calc((100dvh - 106px)*1.35)); }
  .title { width: min(95%, 23rem, 57dvh); align-self: end; }
  .title img { max-height: 26dvh; object-fit: contain; }
  .controls { width: min(100%, 31rem); }
  dd { font-size: clamp(.86rem,2.3vw,1.55rem); }
  .big-title { width: min(104%, 121svh); }
  .big-total { font-size: min(4rem,9svh); }
}
@media (orientation: landscape) and (max-height: 470px) {
  .game { grid-template-rows: auto minmax(0,1fr) auto auto 1.7rem; }
  .brand { height: 32px; }
  .quiet { min-height: 34px; }
  .spin, .stake { max-height: 50px; }
  .subtle { min-height: 30px; max-height: 37px; }
  .pot-vessel { max-height: 47px; }
}
@media (prefers-reduced-motion: reduce) {
  .celebration-card, .super-dialog[open], .freespin-dialog[open] { animation: none; }
  .freespin-dialog .freespin-card { transition: none; }
}
.expanded body { overflow: hidden; }
.expanded .game {
  position: fixed;
  inset: 0 auto auto 0;
}

:root{--plum:linear-gradient(160deg,#104c5b,#06222d 60%,#06141f);--surface:#103f4b;--shade:#071b2b}
.game{background-color:#041926}
.preview-brand{display:block;font:800 1rem Georgia;color:#ffde8d;text-shadow:0 1px 3px #000}
.preview-badge{position:absolute;top:3.4rem;left:50%;transform:translateX(-50%);z-index:1;padding:.13rem .55rem; border-radius:20px;background:#041b28bb;color:#e4ffff;font:600 .68rem system-ui;white-space:nowrap;pointer-events:none}
.atlantis-title{width:min(88%,26rem);display:grid;align-content:center;justify-items:center;text-transform:uppercase;font:900 clamp(1.46rem,6vw,3.15rem)/.88 Georgia;color:#ffe082;text-shadow:0 2px #754311,0 3px 14px #001521;letter-spacing:.01em}
.atlantis-title span+span{font-size:1.24em}
.board-frame{background:#062732e6}
.tile{background:linear-gradient(145deg,#0c4654,#06222e 70%);border-color:#20798999}
.spin,.stake,.subtle{background:radial-gradient(ellipse at 45% 20%,#157480,#062836 80%);border:2px solid #c68f40;border-radius:14px;box-shadow:inset 0 0 0 1px #ffdb8d88,0 2px 5px #001721;color:#ffe6ac}
.spin{border-radius:999px}
.pot-caption{background:#093441}
.pot-vessel::after{opacity:0}
@media(max-height:560px){.preview-badge{display:none}}
