@font-face {
  font-family: Cinzel;
  src: url(fonts/Cinzel.ttf) format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(fonts/Inter.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #020504;
  --ink: #f4efe2;
  --mute: #a9b8ad;
  --gold: #f3d27a;
  --gold2: #c99a2e;
  --gold3: #8a6416;
  --em: #2dffa8;
  --em2: #13a86b;
  --felt: #0a3d28;
  --line: rgba(243,210,122,.28);
  --goldg:
    linear-gradient(
      180deg,
      #fff4c7 0%,
      #f3d27a 30%,
      #b8861f 62%,
      #f7dc8f 88%,
      #8a6416 100%);
  --panel:
    linear-gradient(
      180deg,
      rgba(14,26,20,.92),
      rgba(4,9,7,.94));
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom);
  --safe-t: env(safe-area-inset-top);
  --tap: 44px;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.45 Inter,
    system-ui,
    sans-serif;
}
body {
  background:
    radial-gradient(
      1200px 700px at 70% -10%,
      rgba(45, 255, 168, .10),
      transparent 60%),
    radial-gradient(
      900px 600px at -10% 110%,
      rgba(243, 210, 122, .07),
      transparent 60%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, .012) 0 2px,
      transparent 2px 9px),
    #020504;
  min-height: 100vh;
  overflow-x: hidden;
}
button,
a,
select,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 2px;
  border-radius: 10px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: #000;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 8px;
}
h1,
h2,
h3,
.serif {
  font-family:
    Cinzel,
    Georgia,
    serif;
  letter-spacing: .06em;
  font-weight: 700;
}
h1 {
  font-size: clamp(22px, 3.2vw, 34px);
  margin: 0 0 6px;
  background: var(--goldg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(243, 210, 122, .25));
}
h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--gold);
}
p {
  margin: 0 0 10px;
}
.muted {
  color: var(--mute);
}
.small {
  font-size: 12.5px;
}
.mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--goldg);
  clip-path: polygon(50% 0, 89% 90%, 73% 90%, 50% 36%, 27% 90%, 11% 90%);
  filter: drop-shadow(0 0 8px rgba(243, 210, 122, .6));
  position: relative;
}
.mark.big {
  width: 64px;
  height: 64px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background:
    linear-gradient(
      180deg,
      rgba(2, 5, 4, .96),
      rgba(2, 5, 4, .82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: var(--tap);
}
.bt b {
  display: block;
  font-family: Cinzel, serif;
  font-size: 18px;
  letter-spacing: .16em;
  background: var(--goldg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bt small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--mute);
  text-transform: uppercase;
}
.purse {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 18px -8px var(--em);
  min-height: var(--tap);
}
.pill .ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff4c7,
      #c99a2e 60%,
      #6b4c0e);
  color: #1b1203;
  font: 800 13px Cinzel, serif;
  box-shadow: 0 0 10px rgba(243, 210, 122, .5);
}
.pill.practice .ic {
  background:
    radial-gradient(
      circle at 35% 30%,
      #b8ffe0,
      #13a86b 60%,
      #04301d);
  color: #021a10;
}
.pill small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.1;
}
.pill b {
  font: 700 16px Inter;
  font-variant-numeric: tabular-nums;
}
.topbtns {
  display: flex;
  gap: 8px;
}
.icon {
  width: var(--tap);
  height: var(--tap);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--gold);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
#sound {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4zM16 8a5 5 0 0 1 0 8M18.5 5.5a8.5 8.5 0 0 1 0 13' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
#sound[aria-pressed=true] {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4zM16 9l6 6M22 9l-6 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
#limitsBtn {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
body.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
body.app .top {
  grid-column: 1 / -1;
}
body.app main {
  grid-column: 2;
  min-width: 0;
}
.side {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(243, 210, 122, .12);
}
.navb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: transform .15s, box-shadow .2s;
}
.navb svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.navb span small {
  display: block;
  font-size: 10.5px;
  color: var(--mute);
  font-weight: 500;
}
.navb[aria-current=page] {
  border-color: rgba(45, 255, 168, .6);
  box-shadow:
    0 0 0 1px rgba(45, 255, 168, .25),
    0 0 26px -6px rgba(45, 255, 168, .7),
    inset 0 0 30px -12px rgba(45, 255, 168, .6);
}
.navb.soon {
  opacity: .55;
}
.navb:hover {
  transform: translateX(2px);
}
main {
  padding: 18px clamp(12px, 2.4vw, 28px) calc(90px + var(--safe-b));
  outline: none;
}
.tabs {
  display: none;
}
@media (max-width: 860px) {
  body.app {
    display: block;
  }
  .side {
    display: none !important;
  }
  .tabs:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 6px 6px calc(6px + var(--safe-b));
    background:
      linear-gradient(
        0deg,
        rgba(2, 5, 4, .98),
        rgba(2, 5, 4, .9));
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .tabs a {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    text-decoration: none;
    color: var(--mute);
    border-radius: 12px;
  }
  .tabs a svg {
    width: 24px;
    height: 24px;
  }
  .tabs a[aria-current=page] {
    color: var(--ink);
    background:
      radial-gradient(
        circle at 50% 0,
        rgba(45, 255, 168, .22),
        transparent 70%);
  }
  .bt small {
    display: none;
  }
  .bt b {
    font-size: 14px;
    letter-spacing: .1em;
  }
  .pill.estate {
    display: none;
  }
  .top {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 60px -30px #000;
  position: relative;
}
.grid {
  display: grid;
  gap: 14px;
}
.g2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.g3 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(
      600px 300px at 80% 20%,
      rgba(45, 255, 168, .22),
      transparent 60%),
    radial-gradient(
      500px 260px at 10% 100%,
      rgba(243, 210, 122, .16),
      transparent 60%),
    linear-gradient(
      135deg,
      #07150f,
      #020504);
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero > *:not(canvas) {
  position: relative;
}
.kicker {
  font: 600 11px Inter;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--em);
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(243, 210, 122, .1);
}
.stat:last-child {
  border: 0;
}
.stat b {
  font-variant-numeric: tabular-nums;
}
.btn {
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .1s, filter .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:active {
  transform: scale(.97);
}
.btn[disabled] {
  opacity: .35;
  cursor: default;
}
.btn.gold {
  background: var(--goldg);
  color: #1b1203;
  border: 0;
  box-shadow:
    0 6px 24px -8px rgba(243, 210, 122, .8),
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -2px 0 rgba(0, 0, 0, .25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
  font-family: Cinzel, serif;
  letter-spacing: .1em;
}
.btn.em {
  background:
    linear-gradient(
      180deg,
      #19c27d,
      #0b6b43);
  border-color: rgba(45, 255, 168, .6);
  box-shadow: 0 0 22px -6px rgba(45, 255, 168, .8);
}
.btn.big {
  min-height: 56px;
  font-size: 18px;
  padding: 12px 30px;
}
.gamecard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: transform .18s, box-shadow .25s;
}
.gamecard:hover,
.gamecard:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(45, 255, 168, .4), 0 18px 40px -16px rgba(45, 255, 168, .55);
}
.gamecard canvas {
  width: 100%;
  height: 140px;
  display: block;
}
.gamecard .gc {
  padding: 10px 14px 14px;
}
.gamecard b {
  font-family: Cinzel, serif;
  letter-spacing: .1em;
  color: var(--gold);
  font-size: 16px;
}
.gamecard small {
  display: block;
  color: var(--mute);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(45, 255, 168, .5);
  color: var(--em);
}
.disclosure {
  font-size: 11.5px;
  color: var(--mute);
  text-align: center;
  letter-spacing: .02em;
  padding: 8px 6px;
}
.gate {
  max-width: 560px;
  margin: 8vh auto;
  text-align: center;
}
.gate .mark {
  margin-bottom: 18px;
}
.gate ul {
  text-align: left;
}
.game {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game .bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.game .bar h1 {
  margin: 0;
  font-size: clamp(18px, 2.6vw, 26px);
}
.game .bar .sp {
  flex: 1;
}
.stagewrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: clamp(320px, 52vh, 560px);
  background: #020504;
  box-shadow: 0 30px 80px -40px #000, inset 0 0 60px -20px rgba(45, 255, 168, .25);
}
.stagewrap canvas.stage {
  position: absolute;
  inset: 0;
}
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.row.center {
  justify-content: center;
}
.row .grow {
  flex: 1;
}
.acts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}
.acts .btn {
  min-height: 54px;
}
.chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  --c: #13a86b;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  position: relative;
  font: 800 14px Inter;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background:
    radial-gradient(
      circle,
      var(--c) 0 50%,
      transparent 51%),
    repeating-conic-gradient(
      from 0deg,
      #fff4c7 0 12deg,
      var(--c) 12deg 30deg);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, .5),
    0 0 16px -4px var(--c),
    inset 0 0 0 3px rgba(0, 0, 0, .25);
  transition: transform .1s;
}
.chip::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 244, 199, .7);
}
.chip[aria-pressed=true] {
  transform: translateY(-4px);
  box-shadow:
    0 8px 0 rgba(0, 0, 0, .4),
    0 0 0 3px var(--gold),
    0 0 24px var(--gold);
}
.chip:active {
  transform: translateY(2px) scale(.96);
}
.chip[disabled] {
  opacity: .3;
}
.betbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(243, 210, 122, .18);
}
.betbox b {
  font: 700 18px Inter;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.seg button {
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}
.seg button[aria-pressed=true] {
  background: var(--goldg);
  color: #1b1203;
}
.fair {
  font-size: 11.5px;
  color: var(--mute);
  word-break: break-all;
}
.paytable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.paytable td,
.paytable th {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(243, 210, 122, .1);
  text-align: right;
}
.paytable td:first-child,
.paytable th:first-child {
  text-align: left;
}
.paytable .on {
  color: #1b1203;
  background: var(--goldg);
  font-weight: 800;
}
.paytable tr.hit td {
  background: rgba(45, 255, 168, .18);
  color: #fff;
}
.board {
  display: grid;
  grid-template-columns: 44px repeat(12, minmax(30px, 1fr)) 44px;
  gap: 3px;
  user-select: none;
}
.board button {
  min-height: 44px;
  border: 1px solid rgba(243, 210, 122, .35);
  border-radius: 6px;
  background: #0a3d28;
  color: #fff;
  font: 700 14px Inter;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.board button.red {
  background:
    linear-gradient(
      180deg,
      #a3162f,
      #6d0d1f);
}
.board button.black {
  background:
    linear-gradient(
      180deg,
      #1d2420,
      #070a08);
}
.board button.zero {
  background:
    linear-gradient(
      180deg,
      #13a86b,
      #075234);
}
.board button.win {
  box-shadow: 0 0 0 2px var(--em), 0 0 18px var(--em);
  z-index: 2;
}
.board .stake {
  position: absolute;
  right: -4px;
  top: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: var(--goldg);
  color: #1b1203;
  font: 800 10.5px Inter;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px #000;
  pointer-events: none;
}
.board.outside {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 3px;
}
.board.dozens {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3px;
}
@media (max-width: 600px) {
  .board {
    grid-template-columns: 26px repeat(12, minmax(0, 1fr)) 30px;
    gap: 2px;
  }
  .board button {
    font-size: 11.5px;
    border-radius: 5px;
  }
  .board .stake {
    right: -3px;
    top: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 9.5px;
  }
  .chip {
    width: 50px;
    height: 50px;
    font-size: 12.5px;
  }
  .chip::after {
    inset: 7px;
  }
}
.kgrid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.kgrid button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(243, 210, 122, .25);
  background: rgba(10, 40, 28, .7);
  font: 700 14px Inter;
  cursor: pointer;
  transition: transform .12s, background .2s;
}
.kgrid button[aria-pressed=true] {
  background: var(--goldg);
  color: #1b1203;
  border-color: transparent;
}
.kgrid button.drawn {
  box-shadow: inset 0 0 0 2px var(--em);
}
.kgrid button.drawn.hit {
  background:
    radial-gradient(
      circle,
      #2dffa8,
      #0b6b43);
  color: #021a10;
  animation: pop .35s;
}
@keyframes pop {
  50% {
    transform: scale(1.18);
  }
}
.holds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.holds .btn {
  min-height: 48px;
  font-size: 13px;
}
.holds .btn[aria-pressed=true] {
  background:
    linear-gradient(
      180deg,
      #19c27d,
      #0b6b43);
  border-color: var(--em);
}
.spots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.spot {
  min-height: 76px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 61, 40, .6);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: Cinzel, serif;
  letter-spacing: .1em;
}
.spot b {
  font: 700 16px Inter;
  color: var(--gold);
}
.spot small {
  font: 500 11px Inter;
  color: var(--mute);
  letter-spacing: .04em;
}
.spot.win {
  box-shadow: 0 0 0 2px var(--em), 0 0 26px -4px var(--em);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 40;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(4, 12, 9, .96);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px #000;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(4px);
}
.modal[hidden] {
  display: none;
}
.sheet {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  background:
    linear-gradient(
      180deg,
      #0c1913,
      #030806);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 30px 100px #000, 0 0 0 1px rgba(45, 255, 168, .12);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}
.field select,
.field input {
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #06100c;
  padding: 0 12px;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ledger td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(243, 210, 122, .08);
}
.ledger td.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pos {
  color: var(--em);
}
.neg {
  color: #ff8fa3;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  color: var(--mute);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 600px) {
  .game .bar {
    flex-wrap: wrap;
  }
  .game .bar h1 {
    order: -1;
    flex-basis: 100%;
    font-size: 22px;
  }
  .game .bar .btn {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13.5px;
  }
  .seg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .betbox {
    flex-wrap: wrap;
  }
  .stagewrap {
    height: min(56vh, 470px);
  }
}
.stagewrap {
  scroll-margin-top: 84px;
}
.holds .btn {
  min-width: 0;
  padding: 0 4px;
}
@media (max-width: 600px) {
  .holds {
    gap: 5px;
  }
  #cv button {
    min-width: 0;
    min-height: 44px;
    font-size: 13px;
  }
  .betbox:has(#cv) {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  #cv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .row:has(#cv) {
    flex-direction: column;
    align-items: stretch;
  }
}
.seg.wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
}
.seg.wrap button {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.seg.wrap small {
  font-size: 10px;
  opacity: .75;
  font-weight: 600;
}
@media (max-width: 600px) {
  .seg.wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hint {
  text-align: center;
  margin: 2px 0 0;
  min-height: 1.3em;
}
.board button.cov {
  box-shadow: inset 0 0 0 2px rgba(243, 210, 122, .85);
}
.board button.cand {
  box-shadow: inset 0 0 0 2px var(--em), 0 0 10px var(--em);
  animation: pop .5s;
}
.board button.pend {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.ilist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ibet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 0 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 61, 40, .55);
  font-size: 13px;
  min-height: 44px;
}
.ibet b {
  color: var(--gold);
}
.ibet.win {
  box-shadow: 0 0 0 2px var(--em);
}
.ibet .x {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--mute);
  cursor: pointer;
  font-size: 14px;
  border-radius: 22px;
}
.ibet .x:hover {
  color: #fff;
}
.seg button[aria-checked=true] {
  background: var(--goldg);
  color: #1b1203;
}
.attest {
  text-align: left;
  max-width: 420px;
  margin: 10px auto 0;
  display: grid;
  gap: 12px;
}
.attest input[type=date] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4);
  color: var(--ink, #f4efe2);
  padding: 0 12px;
  font: 600 16px Inter;
  color-scheme: dark;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #c9a24a;
  flex: none;
}
.err {
  color: #ff8a9b;
  min-height: 1.2em;
  margin: 0;
}
body.doc {
  padding: max(16px, env(safe-area-inset-top)) 16px 40px;
}
.docmain {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}
.docmain h1 {
  font-family: Cinzel, serif;
  color: var(--gold);
}
.docmain h2 {
  font-size: 17px;
  margin-top: 22px;
  color: var(--gold);
}
.draft {
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(201, 162, 74, .08);
}
.legal-links {
  text-align: center;
  margin: 8px 0 0;
  font-size: 12px;
}
.legal-links a {
  color: var(--mute);
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 8px;
}
.vnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.vnav a,
.cats a,
.rtabs a,
.props a {
  flex: none;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  text-decoration: none;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}
.vnav a[aria-current=page],
.cats a[aria-selected=true],
.rtabs a[aria-selected=true],
.props a[aria-selected=true] {
  color: #1a1206;
  background: var(--goldg);
  border-color: transparent;
}
.cats,
.rtabs,
.props {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 10px 0 14px;
  scrollbar-width: none;
}
.vhero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
  background: #081a14;
  box-shadow: 0 30px 80px -40px #000, inset 0 0 0 1px rgba(243, 210, 122, .08);
}
.v3d {
  position: absolute;
  inset: 0;
}
.v3d canvas {
  display: block;
}
.vhead {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background:
    linear-gradient(
      0deg,
      rgba(2, 5, 4, .94) 10%,
      rgba(2, 5, 4, .6) 60%,
      transparent);
  pointer-events: none;
}
.vhead > * {
  pointer-events: auto;
}
.vhint {
  position: absolute;
  top: 12px;
  right: 14px;
  margin: 0;
  pointer-events: none;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}
.chips span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  background: rgba(0, 0, 0, .35);
}
.chips .pub {
  color: var(--em);
  border-color: rgba(45, 255, 168, .5);
}
.sec {
  margin: 22px 0 8px;
}
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.roomcard {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  min-height: 92px;
  transition: transform .15s, box-shadow .2s;
}
.roomcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--gold2), 0 14px 30px -18px var(--em);
}
.roomcard .ri {
  font-size: 22px;
  color: var(--gold);
}
.roomcard small,
.tier small,
.icard small,
.srow small,
.lk small {
  color: var(--mute);
  font-size: 12.5px;
}
.ladder {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}
.tier {
  flex: 0 0 172px;
  scroll-snap-align: start;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.tier img,
.icard img,
.dcard img,
.srow img {
  display: block;
  background:
    radial-gradient(
      circle at 50% 40%,
      #1d2a23,
      #070b09);
  border-radius: 12px;
}
.tier img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.tier.own {
  box-shadow: 0 0 0 1px var(--em2), 0 0 24px -12px var(--em);
}
.tier .btn {
  width: 100%;
}
.price {
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.links {
  margin-top: 16px;
}
.lk {
  display: grid;
  gap: 4px;
  text-decoration: none;
  min-height: var(--tap);
}
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.theme {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-weight: 600;
  min-height: var(--tap);
}
.theme span {
  height: 48px;
  border-radius: 10px;
}
.theme.on {
  box-shadow: 0 0 0 2px var(--gold);
}
.neg {
  color: #ff7a8e;
}
.ebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ebar .eh {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
}
.sp {
  flex: 1;
}
.ver {
  font-size: 12.5px;
  color: var(--mute);
}
.editor {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  align-items: start;
}
.e3d {
  position: relative;
  height: min(68vh, 620px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050807;
}
.e3d canvas {
  display: block;
}
.e3d .vhint {
  left: 14px;
  right: auto;
  z-index: 1;
}
.eside {
  display: grid;
  gap: 10px;
}
.eside h2 {
  margin: 6px 0 0;
}
.selbar {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--gold2);
  background: var(--panel);
}
.nudge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.nudge .btn {
  padding: 0;
}
.drawer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 44vh;
  overflow: auto;
}
.dcard {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-height: var(--tap);
}
.dcard img {
  width: 72px;
  height: 72px;
}
.dcard em {
  position: absolute;
  top: 4px;
  right: 6px;
  font-style: normal;
  color: var(--em);
  font-size: 11px;
}
.vlist {
  display: grid;
  gap: 4px;
  max-height: 50vh;
  overflow: auto;
  margin-bottom: 10px;
}
@media (max-width: 860px) {
  .editor {
    grid-template-columns: 1fr;
  }
  .e3d {
    height: 52vh;
  }
  .drawer {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    max-height: none;
  }
  .ebar .ver {
    order: 9;
    width: 100%;
  }
}
.hero.slim {
  min-height: 0;
  padding: 18px 20px;
  margin-bottom: 4px;
  background:
    radial-gradient(
      circle at 85% 0,
      rgba(45, 255, 168, .14),
      transparent 55%),
    var(--panel);
}
.shopgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.icard {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  display: grid;
}
.iprev {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.iprev img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
}
.b3d {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font: 700 11px Inter;
  letter-spacing: .1em;
  color: #1a1206;
  background: var(--goldg);
}
.ib {
  display: grid;
  gap: 4px;
  padding: 12px;
}
.ib .row {
  align-items: center;
  margin-top: 4px;
}
.pv3d {
  position: relative;
  height: min(52vh, 420px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.pv3d canvas {
  display: block;
}
@media (max-width: 520px) {
  .shopgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ib {
    padding: 10px;
  }
  .ib .row {
    flex-wrap: wrap;
  }
  .ib .btn {
    width: 100%;
  }
  .vhero {
    min-height: 380px;
  }
  .vhead {
    padding: 16px;
  }
  .vhead .row .btn {
    padding: 8px 12px;
  }
}
.slist {
  display: grid;
  gap: 8px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  flex-wrap: wrap;
}
.srow img {
  width: 64px;
  height: 64px;
}
.srow > div {
  display: grid;
}
.e3d.tour {
  height: min(64vh, 600px);
  margin-bottom: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .roomcard,
  .navb {
    transition: none;
  }
  .roomcard:hover {
    transform: none;
  }
}
.e3d .vhint {
  top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(2, 5, 4, .72);
  border: 1px solid var(--line);
  max-width: calc(100% - 28px);
}
.vhero.vault {
  background: #040706;
  min-height: 440px;
}
.vstats {
  margin-top: 14px;
}
.vroom img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
  background:
    radial-gradient(
      circle at 50% 40%,
      #1d2a23,
      #070b09);
  object-fit: cover;
}
.vroom .row,
.guard .row {
  align-items: center;
  margin-top: 8px;
}
.guard {
  display: flex;
  gap: 12px;
  align-items: center;
}
.guard img {
  width: 110px;
  height: 110px;
  flex: none;
  border-radius: 12px;
  background:
    radial-gradient(
      circle at 50% 40%,
      #1d2a23,
      #070b09);
}
.guard > div {
  flex: 1;
  display: grid;
  gap: 4px;
}
.guard select,
.buyf select,
.buyf input {
  min-height: var(--tap);
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0f0c;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}
.dhead {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.metals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.metal {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, .07),
      rgba(0, 0, 0, .2));
}
.metal span {
  font-weight: 700;
}
.metal b {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 17px;
}
.metal small {
  color: var(--mute);
}
.m-gold {
  box-shadow: inset 0 0 0 1px rgba(216, 172, 74, .5), 0 0 22px -12px #d8ac4a;
}
.m-silver b,
.m-platinum b,
.m-palladium b {
  color: #e3e7ea;
}
.buyf {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.buyf .field {
  margin: 0;
}
.buyf output {
  display: flex;
  align-items: center;
  min-height: var(--tap);
}
.lots th {
  text-align: left;
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
  padding: 6px 8px;
}
.lots .btn {
  min-height: 40px;
  padding: 6px 12px;
}
.stat.total {
  border-top: 1px solid var(--gold2);
  margin-top: 4px;
  padding-top: 10px;
}
.stat.total b {
  color: var(--gold);
  font-size: 20px;
}
@media (max-width: 720px) {
  .metals {
    grid-template-columns: repeat(2, 1fr);
  }
  .buyf {
    grid-template-columns: 1fr 1fr;
  }
  .buyf .btn {
    grid-column: 1 / -1;
  }
  .lots th:nth-child(4),
  .lots td:nth-child(4) {
    display: none;
  }
  .vhero.vault {
    min-height: 380px;
  }
}
.vstats .seg button {
  white-space: nowrap;
}
.vhead {
  background:
    linear-gradient(
      0deg,
      rgba(2, 5, 4, .97) 0%,
      rgba(2, 5, 4, .88) 38%,
      rgba(2, 5, 4, .55) 68%,
      transparent 100%);
  padding-top: 60px;
}
.vhead h1,
.vhead .kicker,
.vhead p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
@media (max-width: 720px) {
  .vhero,
  .vhero.vault {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .vhero .v3d {
    position: relative;
    inset: auto;
    height: 300px;
    flex: none;
  }
  .vhero .vhead {
    position: relative;
    padding: 16px;
    background:
      linear-gradient(
        180deg,
        rgba(2, 5, 4, .6),
        rgba(4, 9, 7, .98) 30%);
    border-top: 1px solid var(--line);
  }
  .vhero .vhint {
    top: 10px;
  }
}
.vhero.bank {
  background: #050706;
}
.vnav + #tab {
  margin-top: 4px;
}
.ed .stat {
  padding: 4px 0;
  font-size: 13px;
}
.icon-toggle {
  width: var(--tap);
  padding: 0;
  font-size: 20px;
  color: var(--gold);
}
.holds2 {
  display: grid;
  gap: 12px;
}
.hold {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hold img {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  flex: none;
  background:
    radial-gradient(
      circle at 50% 40%,
      #1d2a23,
      #070b09);
}
.hb {
  flex: 1;
  display: grid;
  gap: 4px;
}
.hb h2 {
  margin: 0;
}
.serial {
  font: 600 13px Inter;
  color: var(--em);
  letter-spacing: .06em;
}
.lock {
  color: var(--mute);
}
.sched {
  margin-top: 16px;
}
.prov {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--gold2);
}
.prov li {
  display: grid;
  padding-left: 12px;
  position: relative;
}
.prov li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.prov span,
.prov small {
  color: var(--mute);
  font-size: 12.5px;
}
.inbox {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.inbox li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.inbox li.unread {
  border-color: var(--em2);
  box-shadow: 0 0 18px -10px var(--em);
}
.inbox small {
  color: var(--mute);
}
#pf input[type=time] {
  min-height: var(--tap);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0f0c;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}
@media (max-width: 600px) {
  .hold {
    flex-direction: column;
  }
  .hold img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}
.vhero.heist {
  background: #030605;
  min-height: 460px;
}
.hclock {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(2, 5, 4, .78);
  border: 1px solid var(--line);
  text-align: right;
  backdrop-filter: blur(6px);
}
.hclock small {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.hclock b {
  font: 700 18px Inter;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stages {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  flex-wrap: wrap;
}
.stages li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
  font-size: 13px;
  font-weight: 600;
}
.stages li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold2);
  color: var(--gold);
  font-size: 12px;
}
.stages li.done span {
  background: var(--em2);
  border-color: var(--em);
  color: #021a10;
}
.stages li.cur {
  border-color: var(--gold);
  box-shadow: 0 0 18px -6px var(--gold);
}
.stages li.cur span {
  background: var(--goldg);
  color: #1b1203;
}
.hgrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.btn.big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
  width: 100%;
  max-width: 420px;
}
.enter .btn.big {
  margin: 6px 0 10px;
}
.fair summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  color: var(--gold);
  font-weight: 600;
}
.fair code,
.modal code {
  font-size: 12px;
  color: var(--em);
  word-break: break-all;
}
.bigscore {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}
.bigscore b {
  font: 700 44px Cinzel, serif;
  background: var(--goldg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bigscore small {
  color: var(--mute);
}
.sres,
.alist,
.lb,
.ladder,
.guesses {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.sres li,
.lb li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 210, 122, .1);
}
.sres li span,
.lb .who {
  flex: 1;
}
.lb b,
.sres b {
  font-variant-numeric: tabular-nums;
}
.lb small {
  color: var(--mute);
  width: 48px;
  text-align: right;
}
.lb .pl {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}
.lb li:nth-child(1) .pl {
  background: var(--goldg);
  color: #1b1203;
  border: 0;
}
.lb li:nth-child(2) .pl {
  background: linear-gradient(#f4f7f8, #9aa3a8);
  color: #111;
  border: 0;
}
.lb li:nth-child(3) .pl {
  background: linear-gradient(#e0a46a, #7a4a20);
  color: #160b02;
  border: 0;
}
.lb li.you {
  background:
    linear-gradient(
      90deg,
      rgba(243, 210, 122, .14),
      transparent);
  border-radius: 10px;
  padding-left: 6px;
}
.lb li.you .who {
  color: var(--gold);
  font-weight: 700;
}
.alist li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 7px 0;
}
.alist .aw {
  grid-row: span 2;
}
.alist small {
  color: var(--mute);
}
.aw {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  position: relative;
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff4c7,
      #c99a2e 60%,
      #5a3d08);
  box-shadow: 0 0 12px -2px rgba(243, 210, 122, .6);
}
.aw::after {
  content: "";
  position: absolute;
  inset: 9px 13px 7px;
  background: #1b1203;
  clip-path: polygon(50% 0, 100% 30%, 70% 30%, 70% 100%, 30% 100%, 30% 30%, 0 30%);
}
.aw.silver {
  background:
    radial-gradient(
      circle at 35% 30%,
      #fff,
      #b9c2c8 60%,
      #4a5258);
}
.aw.bronze {
  background:
    radial-gradient(
      circle at 35% 30%,
      #ffd7aa,
      #b0743a 60%,
      #4a2a0c);
}
.aw.crew {
  background:
    radial-gradient(
      circle at 35% 30%,
      #b8ffe0,
      #13a86b 60%,
      #04301d);
}
.aw.perfect {
  background:
    radial-gradient(
      circle at 35% 30%,
      #e8fbff,
      #7fd7ff 60%,
      #10405a);
}
.play .clock {
  font: 700 20px Inter;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.play .clock.low {
  color: #ff6b7d;
  border-color: #ff6b7d;
}
.center {
  text-align: center;
  justify-content: center;
}
.vb .dials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
}
.dial {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.dial .btn {
  width: 60px;
  min-height: var(--tap);
  padding: 0;
}
.dial output {
  width: 60px;
  height: 76px;
  display: grid;
  place-items: center;
  font: 700 40px Cinzel, serif;
  color: var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 50% 30%,
      #1d2522,
      #060908);
  border: 1px solid var(--gold2);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .6), 0 0 18px -8px var(--gold);
}
.guesses li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(243, 210, 122, .1);
}
.guesses .code {
  font: 700 18px Inter;
  letter-spacing: .3em;
  min-width: 92px;
  font-variant-numeric: tabular-nums;
}
.guesses small {
  color: var(--mute);
  margin-left: auto;
}
.pegs {
  display: flex;
  gap: 4px;
}
.pegs i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.pegs i.ex {
  background: var(--em);
  border-color: var(--em);
  box-shadow: 0 0 8px var(--em);
}
.pegs i.nr {
  background: var(--gold);
  border-color: var(--gold);
}
.wf .show {
  min-height: 92px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 10px;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(45, 255, 168, .08),
      rgba(0, 0, 0, .4));
  border: 1px solid var(--line);
}
.sym {
  width: 34px;
  height: 34px;
  color: var(--gold);
  stroke-width: 0;
}
.sym.in {
  width: 30px;
  height: 30px;
}
.sym.flash {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 16px var(--gold));
}
.sym.ok {
  color: var(--em);
}
.sym.bad {
  color: #ff6b7d;
}
.wf .slot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px dashed var(--line);
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto 12px;
}
.sbtn {
  min-height: 64px;
}
.sbtn .sym {
  width: 36px;
  height: 36px;
}
.fo .target,
.co .budget {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.fo .target b {
  font: 700 30px Cinzel, serif;
  color: var(--gold);
}
.co .budget > div {
  display: grid;
}
.co .budget span,
.fo .target span {
  color: var(--mute);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.co .budget b {
  font: 700 22px Inter;
  font-variant-numeric: tabular-nums;
}
.neg {
  color: #ff6b7d;
}
.scale {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  margin: 10px 0;
  overflow: hidden;
}
.scale i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--goldg);
  transition: width .25s;
}
.scale i.ok {
  background:
    linear-gradient(
      90deg,
      var(--em2),
      var(--em));
}
.scale i.over {
  background: #c2183a;
}
.scale .mark {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--em);
  clip-path: none;
  filter: none;
  height: auto;
}
.ingots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.ingot {
  min-height: 64px;
  border-radius: 10px;
  border: 1px solid #8a6416;
  cursor: pointer;
  font: 700 17px Inter;
  color: #1b1203;
  background:
    linear-gradient(
      170deg,
      #fff4c7,
      #e2b851 40%,
      #a87718 75%,
      #e9c66b);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  font-variant-numeric: tabular-nums;
}
.ingot small {
  font-size: 11px;
  margin-left: 2px;
}
.ingot[aria-pressed=true] {
  outline: 3px solid var(--em);
  outline-offset: -3px;
  filter: drop-shadow(0 0 10px var(--em));
}
.ingot[aria-pressed=false] {
  opacity: .78;
}
.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.piece {
  min-height: 76px;
  text-align: left;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.piece span {
  font-size: 12.5px;
  color: var(--mute);
}
.piece .pts {
  color: var(--em);
  font-weight: 700;
}
.piece[aria-pressed=true] {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px -6px var(--gold);
  background:
    linear-gradient(
      180deg,
      rgba(243, 210, 122, .12),
      rgba(4, 9, 7, .94));
}
.pgrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.pcard {
  display: grid;
  gap: 8px;
  text-decoration: none;
  align-content: start;
}
.pcard .btn {
  justify-self: start;
  margin-top: 4px;
}
.pic {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(45, 255, 168, .25),
      rgba(0, 0, 0, .4));
  border: 1px solid var(--line);
}
.pic .sym {
  width: 36px;
  height: 36px;
}
.pnote {
  margin: 0 0 10px;
}
.rankme {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.rankme > div {
  flex: 1;
}
.xpbar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 6px 0;
}
.xpbar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--em2),
      var(--em));
}
.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ladder li {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.ladder small {
  color: var(--mute);
}
.ladder li.cur {
  border-color: var(--gold);
  box-shadow: 0 0 22px -8px var(--gold);
}
.ladder li:not(.cur):not(.past) {
  opacity: .6;
}
.gems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gemcard {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.gemcard img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #040807;
}
.gemcard small {
  color: var(--mute);
  font-size: 12px;
  text-align: center;
}
.gemcard .idx {
  font-size: 12px;
  color: var(--em);
}
.gem3d {
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  position: relative;
}
.gem3d canvas {
  display: block;
}
@media (max-width: 720px) {
  .vhero.heist {
    min-height: 0;
  }
  .vhero.heist .v3d {
    position: relative;
    height: 280px;
  }
  .vhero.heist .vhead {
    position: relative;
    background: none;
    padding: 16px;
  }
  .dial output {
    width: 54px;
    height: 70px;
    font-size: 34px;
  }
  .dial .btn {
    width: 54px;
  }
  .stages li {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scale i {
    transition: none;
  }
}
.dhead {
  flex-wrap: wrap;
  gap: 8px;
}
.rtier {
  flex: none;
}
