:root {
  --bg: #111a32;
  --deep: #0a1123;
  --surface: #1b2943;
  --ivory: #fff0cd;
  --gold: #ecc577;
  --teal: #72dcc8;
  --muted: #a3adc3;
  --line: #ffffff18;
  --coral: #e9937e;
  color-scheme: dark;
  font-family: Inter, Avenir, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ivory);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: 48px;
  letter-spacing: -1.7px;
  line-height: 1.12;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  letter-spacing: 0.02em;
}
p {
  line-height: 1.65;
}
button {
  font-size: 14px;
}
main {
  min-height: calc(100svh - 133px);
}
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 4.2%;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: #111a32;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark .icon {
  width: 31px;
  height: 31px;
}
.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}
.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
}
.site-header nav button,
.site-header nav a {
  color: #d2d4db;
  font-size: 13px;
}
.site-header nav a:hover,
.site-header nav button:hover {
  color: var(--gold);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-tools > button {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}
.profile-button {
  border: 1px solid #ecc57755;
  border-radius: 5px;
  padding: 0 13px;
  color: var(--gold);
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
footer {
  min-height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 4.2%;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer button {
  font-size: 10px;
  color: #d9d9dc;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 17px 25px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.15px;
  min-height: 51px;
  transition:
    transform 0.15s,
    filter 0.15s;
}
.button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.primary {
  background: var(--gold);
  color: #19233a;
  box-shadow:
    0 4px 0 #a97c38,
    0 9px 30px #0002;
  border: 1px solid #ffe4ad;
}
.secondary {
  color: var(--ivory);
  background: #22304b;
  border: 1px solid #ecc57770;
  box-shadow: 0 4px 0 #0a1020;
}
.text-link {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gold);
  text-align: left;
  padding: 8px 0;
  display: inline-block;
}
.text-link:hover {
  text-decoration: underline;
}
.wide {
  width: 100%;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.mode-label {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.loading {
  padding: 10vh 10vw;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ivory);
  color: #19233a;
  padding: 15px 22px;
  box-shadow: 0 12px 50px #0008;
  border-radius: 7px;
  font-size: 13px;
  max-width: min(90vw, 550px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.home {
  position: relative;
  overflow: hidden;
  min-height: max(670px, calc(100svh - 133px));
  background: #111a32;
}
.home-art {
  position: absolute;
  inset: 0;
  background: url("/art/boulevard.png?v=le2") center right/cover no-repeat;
}
.home-content {
  position: relative;
  z-index: 1;
  padding: 8vh 0 70px;
  margin-left: 8.2%;
  width: 370px;
}
.sunburst {
  height: 52px;
  width: 80px;
  margin-bottom: 6px;
}
.sunburst .icon {
  width: 73px;
  height: 52px;
}
.home h1 {
  font-size: 73px;
  line-height: 0.94;
  letter-spacing: 1.4px;
  text-shadow:
    0 2px 0 #8f632a,
    0 6px 24px #0003;
}
.home h1 span {
  font-size: 60px;
  letter-spacing: -1px;
}
.tagline {
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.3;
  color: #e9e2da;
  margin: 24px 0 28px;
}
.home-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 286px;
}
.home-menu > .button {
  justify-content: space-between;
  font-size: 15px;
  padding: 18px 21px;
}
.home-menu .text-link {
  padding-left: 2px;
  font-size: 13px;
  margin-top: 3px;
}
.home-menu span {
  font-size: 20px;
  font-weight: 400;
}
.home-note {
  font-size: 11px;
  color: #b0b5c7;
  margin-top: 26px;
}
.home-bottom {
  position: absolute;
  left: 8.2%;
  bottom: 25px;
  display: flex;
  gap: 50px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #c2c2cf;
}
.game-page {
  background:
    radial-gradient(ellipse at 50% 65%, #263a4c, transparent 60%), #101a2d;
}
.chamber {
  max-width: 1000px;
  margin: auto;
  padding: 28px 35px 38px;
}
.chamber-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 730px;
  margin: auto auto 22px;
}
.chamber-top h1 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.chamber-top .mode-label {
  font-size: 9px;
  margin-bottom: 6px;
}
.small-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #ffffff25;
  background: #ffffff08;
  font-size: 11px;
}
.game-layout {
  display: grid;
  grid-template-columns: 170px 328px 170px;
  justify-content: center;
  gap: 29px;
  align-items: start;
}
.well-frame {
  position: relative;
  width: 328px;
  padding: 0 12px;
  border: 2px solid #bc9157;
  border-radius: 9px;
  background: linear-gradient(
    90deg,
    #9f713b,
    #efd2a0 3%,
    #ba8b51 6%,
    #bc905a 94%,
    #f8dbae 97%,
    #876332
  );
  box-shadow:
    0 0 0 5px #233e49,
    0 0 0 6px #65d7c55a,
    0 15px 35px #0006;
}
.frame-cap {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.frame-cap .icon {
  height: 33px;
  width: 43px;
}
.frame-cap span {
  height: 1px;
  width: 62px;
  background: #71522c;
}
.frame-foot {
  height: 31px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.6px;
  line-height: 30px;
  color: #3e2c20;
  font-weight: 800;
}
#board {
  display: block;
  width: 300px;
  height: 600px;
  outline: none;
  box-shadow: 0 0 0 2px #6c512d;
  touch-action: none;
}
.preview-box {
  border: 1px solid #ecc57755;
  border-radius: 7px;
  background: #0c172bb8;
  padding: 13px 10px;
  box-shadow: inset 0 2px 10px #0005;
}
.preview-box h2 {
  font:
    700 10px Inter,
    Avenir,
    sans-serif;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 5px;
}
.preview-box canvas {
  display: block;
  margin: auto;
  width: 100px;
  height: 64px;
}
.run-stats {
  margin-top: 26px;
  padding: 0 5px;
}
.run-stats > span {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.run-stats > strong {
  font:
    400 34px Georgia,
    serif;
  display: block;
  color: var(--ivory);
  margin-top: 6px;
}
.run-stats > div {
  display: flex;
  gap: 36px;
  margin-top: 24px;
}
.run-stats > div span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.run-stats > div strong {
  display: block;
  font:
    400 25px Georgia,
    serif;
  letter-spacing: 0;
  color: var(--gold);
  margin-top: 5px;
}
.chamber-character {
  display: block;
  width: 173px;
  height: 225px;
  object-fit: contain;
  margin: 20px auto 0;
}
.next-box canvas + canvas {
  border-top: 1px solid #ffffff0b;
}
.keyboard-guide {
  margin-top: 27px;
  padding: 0 3px;
}
.keyboard-guide h2 {
  font:
    700 9px Inter,
    Avenir,
    sans-serif;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 15px;
}
.keyboard-guide p {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  margin: 9px 0;
  line-height: 1.5;
}
.keyboard-guide p span {
  margin-left: auto;
  color: #c9ceda;
}
kbd {
  display: inline-block;
  padding: 4px 5px;
  min-width: 23px;
  font:
    500 10px Inter,
    Avenir,
    sans-serif;
  text-align: center;
  background: #ffffff0b;
  border: 1px solid #ffffff25;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--ivory);
}
.board-cover {
  position: absolute;
  inset: 33px 12px 31px;
  background: #091225f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 25px;
  text-align: center;
}
.board-cover h2 {
  font-size: 28px;
}
.board-cover p {
  font-size: 13px;
  color: var(--muted);
}
.board-cover .button {
  font-size: 13px;
}
.board-cover small {
  color: var(--muted);
  font-size: 9px;
}
.touch-controls {
  display: none;
}
.bank-button {
  display: flex;
  margin: 24px auto 0;
  background: #72dcc8;
  color: #11263a;
}
.challenge-target {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--teal);
}
.challenge-target strong {
  font-size: 24px;
  font-family: Georgia, serif;
  display: block;
  margin: 5px 0;
}
.challenge-target span {
  display: block;
  color: var(--muted);
}
.charm-note {
  font-size: 11px;
  color: var(--teal);
  margin-top: 20px;
}
#charm {
  font-size: 11px;
  padding: 15px 18px;
  margin-top: 15px;
}
.fury .well-frame {
  animation: fury 1s ease-out;
}
@keyframes fury {
  30% {
    box-shadow:
      0 0 0 5px #f1cd7d,
      0 0 45px #f1cd7dcc;
  }
}
.result {
  max-width: 960px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  min-height: 720px;
  padding: 55px 30px;
}
.result-character {
  width: 275px;
  max-height: 470px;
}
.result-content {
  max-width: 500px;
}
.result h1 {
  font-size: 37px;
}
.big-score {
  display: block;
  font:
    400 82px Georgia,
    serif;
  letter-spacing: -3px;
  color: var(--gold);
  margin: 20px 0 8px;
}
.result-content > p {
  font-size: 14px;
}
.dot {
  padding: 0 10px;
  color: var(--muted);
}
.result-meta {
  display: flex;
  gap: 40px;
  margin: 25px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.result-meta span {
  font-size: 11px;
  color: var(--muted);
}
.result-meta strong {
  display: block;
  font-size: 18px;
  color: var(--ivory);
  font-weight: 500;
  margin-top: 7px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 400px;
}
.result-actions > .text-link {
  width: 100%;
}
.result-actions .button {
  flex: 1;
  white-space: nowrap;
}
.error {
  color: #ffb9ad;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.adventure-heading,
.casino-heading,
.scores-heading {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 30px 27px;
}
.adventure-heading p,
.casino-heading p,
.scores-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.adventure-heading h1,
.casino-heading h1,
.scores-heading h1 {
  font-size: 37px;
}
.story-page {
  background: linear-gradient(#111a32, #16283e);
}
.map-scene {
  max-width: 1140px;
  margin: auto;
  position: relative;
  border: 1px solid #ecc57738;
  border-radius: 10px;
  overflow: hidden;
  height: 465px;
  background: #25233c;
}
.map-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transition: filter 0.5s;
}
.chapter-0 > img {
  filter: saturate(0.65);
}
.chapter-5 > img {
  filter: saturate(1.2) brightness(1.15);
}
.districts {
  list-style: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}
.districts li {
  position: absolute;
  display: grid;
  grid-template-columns: 30px auto;
  padding: 9px 12px;
  background: #101a32e8;
  border: 1px solid #eed09645;
  border-radius: 5px;
  min-width: 150px;
  box-shadow: 0 8px 15px #0003;
}
.districts li:nth-child(1) {
  left: 45%;
  top: 42%;
}
.districts li:nth-child(2) {
  left: 20%;
  top: 68%;
}
.districts li:nth-child(3) {
  left: 61%;
  top: 27%;
}
.districts li:nth-child(4) {
  right: 2%;
  top: 64%;
}
.districts li:nth-child(5) {
  right: 5%;
  top: 8%;
}
.districts li > span {
  grid-row: span 2;
  align-self: center;
  font-size: 13px;
  color: var(--gold);
}
.districts strong {
  font-size: 11px;
}
.districts small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.districts .active {
  border-color: var(--teal);
  box-shadow: 0 0 22px #72dcc82b;
}
.districts .done {
  border-color: var(--gold);
}
.districts .done > span {
  color: var(--teal);
}
.districts .locked {
  opacity: 0.7;
}
.map-pyramid {
  position: absolute;
  left: 6%;
  top: 12%;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  filter: drop-shadow(0 5px 7px #0005);
}
.map-pyramid span {
  height: 24px;
  background: #6a624f;
  border: 1px solid #9b8762;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  width: calc(38px + var(--tier) * 31px);
  order: var(--tier);
  margin-top: -1px;
}
.map-pyramid .restored {
  background: linear-gradient(100deg, #e7b965, #fcdf96 50%, #ad7638);
}
.map-pyramid small {
  order: 6;
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--ivory);
}
.story-bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 65px;
  padding: 35px 0 60px;
}
.story-objective h2 {
  font-size: 28px;
  max-width: 520px;
}
.story-objective > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.story-actions {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-top: 26px;
}
.story-actions .button {
  white-space: nowrap;
}
.equip {
  font-size: 10px;
  color: var(--muted);
}
.equip select {
  display: block;
  margin-top: 7px;
  padding: 11px 8px;
  font-size: 11px;
  max-width: 200px;
  border: 1px solid #ffffff30;
  background: var(--deep);
  color: var(--ivory);
  border-radius: 5px;
}
.story-rewards {
  border-left: 1px solid var(--line);
  padding-left: 35px;
}
.story-rewards > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.story-rewards p strong,
.story-rewards p span,
.story-rewards p em {
  display: block;
}
.story-rewards p strong {
  color: var(--gold);
  margin-bottom: 4px;
}
.story-rewards p em {
  color: var(--ivory);
  font:
    italic 14px Georgia,
    serif;
  margin-top: 6px;
}
.intro {
  max-width: 1200px;
  min-height: 690px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 65px;
  padding: 60px 30px;
}
.intro > img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px #0005;
}
.intro-count {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.intro h1 {
  font-size: 40px;
}
.intro p {
  color: #c6ccda;
  font-size: 14px;
  margin: 24px 0 30px;
}
.intro .text-link {
  display: block;
  margin-top: 17px;
}
.casino-page {
  background:
    radial-gradient(ellipse at 25% 60%, #463b44, transparent 65%), #111a32;
}
.casino-layout {
  max-width: 1120px;
  padding: 10px 25px 55px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 65px;
  align-items: start;
}
.cabinet {
  position: relative;
  aspect-ratio: 800/900;
  background: url("/art/casino.svg") top center/100% auto no-repeat;
  max-width: 540px;
  margin: auto;
  width: 100%;
  filter: drop-shadow(0 18px 26px #0005);
  padding-top: 13.2%;
}
.cabinet-crown {
  height: 90px;
  text-align: center;
  color: #382618;
  text-shadow: 0 1px #ffe7ad;
}
.cabinet-crown > .icon {
  width: 47px;
  height: 45px;
  display: none;
}
.cabinet-crown h2 {
  font-size: 27px;
  letter-spacing: 2px;
  visibility: hidden;
}
.cabinet-crown > span {
  font-size: 7px;
  letter-spacing: 3px;
  visibility: hidden;
}
.reel-window {
  position: absolute;
  left: 18.625%;
  top: 26.1%;
  width: 62.625%;
  height: 26.33%;
  display: flex;
  background: #f3e3bd;
  box-shadow: inset 0 8px 20px #62361655;
  border: 2px solid #84652f;
  border-radius: 5px;
  overflow: hidden;
}
.reel {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(#a3937040, #fff5d0 24%, #fff7df 70%, #9d896355);
  border-right: 1px solid #9b825a;
}
.reel:last-child {
  border: 0;
}
.reel > img {
  width: 75%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #0003);
}
.reel > button {
  position: absolute;
  bottom: 4px;
  font-size: 6px;
  letter-spacing: 1px;
  border: 1px solid #9d8035;
  border-radius: 3px;
  padding: 5px 3px;
  color: #5b431d;
  font-weight: 700;
  background: #f5dda5;
}
.reel > button[aria-pressed="true"] {
  background: #173a3a;
  color: var(--teal);
}
.reel.spinning > img {
  animation: reel 0.14s linear infinite;
  filter: blur(3px);
}
@keyframes reel {
  0% {
    transform: translateY(-70%);
  }
  100% {
    transform: translateY(70%);
  }
}
.settle > img {
  animation: settle 0.35s ease-out;
}
@keyframes settle {
  0% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}
.cabinet-meter {
  position: absolute;
  top: 56%;
  left: 20%;
  right: 20%;
  display: flex;
  justify-content: space-between;
  text-align: center;
  background: #162438;
  border: 1px solid #bd934e;
  border-radius: 4px;
  padding: 10px 12px;
}
.cabinet-meter span {
  font-size: 7px;
  color: var(--gold);
  letter-spacing: 1px;
  display: block;
}
.cabinet-meter strong {
  font:
    400 24px Georgia,
    serif;
  display: block;
  margin-top: 4px;
}
.spin-button {
  position: absolute;
  top: 68%;
  left: 27%;
  width: 46%;
  font-size: 16px;
  min-height: 53px;
  border: 3px solid #d6aa5d;
  border-radius: 35px;
  background: linear-gradient(#96ead5, #46a897);
  color: #143b3d;
  box-shadow:
    0 5px 0 #7e5928,
    0 10px 20px #0004;
}
.spin-result {
  position: absolute;
  top: 81.5%;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--gold);
  padding: 0 18px;
}
.wiring {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiring span {
  height: 2px;
  flex: 1;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}
.wiring .icon {
  width: 45px;
  height: 40px;
}
.accountant {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 2px;
  margin-bottom: 26px;
}
.accountant > img {
  width: 90px;
  height: 100px;
  object-fit: contain;
}
.accountant h2 {
  font-size: 25px;
}
.accountant p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
  max-width: 260px;
}
.casino-sidebar > h3 {
  margin: 15px 0;
  color: var(--gold);
}
.paytable > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.paytable > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.paytable .icon {
  width: 26px;
  height: 26px;
}
.paytable strong {
  font-size: 11px;
  font-weight: 500;
}
.casino-sidebar > .small {
  margin-top: 15px;
}
.charm-shop {
  margin-top: 28px;
}
.charm-shop h3 {
  color: var(--gold);
}
.charm-shop > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.charm-shop > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #ecc57735;
  padding: 12px;
  border-radius: 5px;
  margin-top: 12px;
  text-align: left;
  background: #ffffff03;
}
.charm-shop > button > .icon {
  width: 29px;
  height: 35px;
}
.charm-shop button > span {
  font-size: 12px;
  flex: 1;
}
.charm-shop small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.charm-shop strong {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}
.casino-fine {
  font-size: 9px;
  color: var(--muted);
  margin-top: 25px;
}
.scenery-5 .wiring {
  filter: drop-shadow(0 0 15px #f5d790);
}
.scenery-1 .cabinet,
.scenery-2 .cabinet {
  filter: drop-shadow(0 18px 26px #72dcc825);
}
.scores-page {
  max-width: 1200px;
  margin: auto;
  padding-bottom: 65px;
}
.scores-heading {
  padding-top: 60px;
  padding-bottom: 40px;
}
.leaderboard {
  margin: 0 30px;
}
.board-filters {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  padding-bottom: 20px;
}
.tabs {
  display: flex;
  gap: 7px;
}
.tabs button {
  font-size: 12px;
  padding: 10px 17px;
  color: var(--muted);
  border-radius: 4px;
  border: 1px solid transparent;
}
.tabs .selected {
  background: #ecc57713;
  border-color: #ecc57777;
  color: var(--gold);
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 21px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
td a:hover {
  color: var(--gold);
}
.rank {
  font:
    400 20px Georgia,
    serif;
  color: var(--gold);
}
.score-cell {
  font-weight: 700;
  color: var(--ivory);
}
.empty-board {
  padding: 100px 20px;
  text-align: center;
  font:
    400 25px Georgia,
    serif;
  white-space: normal;
}
.empty-board span {
  display: block;
  font:
    12px Inter,
    Avenir,
    sans-serif;
  color: var(--muted);
  margin-top: 15px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 11px;
}
.pagination > span:first-child {
  margin-right: auto;
}
.pagination button {
  font-size: 11px;
  color: var(--gold);
  padding: 10px 0;
}
.public-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 700px;
  padding: 55px 30px;
}
.scorecard {
  max-width: 520px;
  width: 100%;
  border: 1px solid #ecc57770;
  border-radius: 8px;
  padding: 40px;
  background: linear-gradient(135deg, #263651, #16243b);
  box-shadow: 0 20px 80px #0004;
  text-align: center;
  position: relative;
}
.scorecard:before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #ecc57725;
  pointer-events: none;
  border-radius: 3px;
}
.scorecard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Georgia, serif;
  letter-spacing: 3px;
  font-size: 18px;
  margin-bottom: 35px;
}
.scorecard-brand .icon {
  width: 35px;
  height: 35px;
}
.scorecard h1 {
  font-size: 30px;
}
.scorecard .big-score {
  font-size: 74px;
}
.scorecard > p {
  font-size: 14px;
  margin: 10px 0;
}
.scorecard > .muted {
  font-size: 10px;
}
.scorecard-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  margin-top: 30px;
}
.scorecard-actions > .button {
  width: 100%;
}
.score-character {
  height: 430px;
  max-width: 270px;
}
.public-score-page {
  background: radial-gradient(ellipse at 65% 55%, #2f3b4f, #111a32 65%);
}
dialog {
  border: 1px solid #ecc57777;
  border-radius: 10px;
  background: #17243d;
  color: var(--ivory);
  box-shadow: 0 20px 100px #0009;
  padding: 35px;
  max-width: min(600px, 92vw);
  max-height: 88svh;
  overflow: auto;
  position: fixed;
}
dialog::backdrop {
  background: #070d1dcc;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 30px;
  padding-right: 20px;
}
dialog h3 {
  margin-top: 25px;
}
dialog p {
  font-size: 12px;
  color: #c1c7d5;
  margin: 17px 0;
}
dialog .close {
  position: absolute;
  right: 15px;
  top: 12px;
  font-size: 25px;
  color: var(--muted);
  width: 32px;
  height: 32px;
}
dialog label {
  display: block;
  font-size: 12px;
  color: #c1c7d5;
  margin: 20px 0;
}
dialog input:not([type="checkbox"]):not([type="range"]) {
  display: block;
  width: 100%;
  margin-top: 8px;
  border-radius: 4px;
  border: 1px solid #ffffff30;
  background: var(--deep);
  padding: 12px 13px;
  color: var(--ivory);
  font-size: 13px;
}
dialog input[type="range"] {
  display: block;
  width: 100%;
  margin-top: 12px;
  accent-color: var(--teal);
}
dialog input[type="checkbox"] {
  accent-color: var(--teal);
  margin-right: 8px;
}
.check {
  display: flex !important;
  align-items: center;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 15px;
  margin-top: 25px;
}
legend {
  font-size: 12px;
  color: var(--gold);
  padding: 0 6px;
}
.bindings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 0 25px;
}
.bindings button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px;
  font-size: 10px;
}
.bindings span {
  text-transform: capitalize;
}
.bindings kbd {
  font-size: 8px;
}
.help-table td {
  font-size: 11px;
  padding: 10px 6px;
}
.help-table th {
  padding: 14px 6px;
  font-size: 8px;
}
.account-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.account-links button {
  font-size: 10px;
  color: var(--gold);
  padding: 8px 0;
}
.recovery-code {
  display: block;
  background: var(--deep);
  padding: 20px;
  border: 1px solid #ecc57766;
  font-size: 18px;
  text-align: center;
  word-break: break-all;
  margin: 25px 0;
}
.reduced *,
.reduced *:before,
.reduced *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
@media (min-width: 1500px) {
  .home-content {
    padding-top: 11vh;
    margin-left: 10%;
  }
  .home h1 {
    font-size: 92px;
  }
  .home h1 span {
    font-size: 76px;
  }
  .tagline {
    font-size: 32px;
  }
  .home-menu {
    max-width: 330px;
  }
  .home-menu .button {
    min-height: 62px;
  }
  .home-note {
    font-size: 12px;
  }
}
@media (max-width: 1050px) {
  .site-header nav {
    gap: 18px;
  }
  .site-header {
    padding: 0 25px;
  }
  .header-tools {
    gap: 10px;
  }
  .home-content {
    margin-left: 6%;
    width: 330px;
  }
  .home-art {
    background-position: 58% center;
  }
  .story-bottom {
    padding: 30px 30px 50px;
    gap: 35px;
  }
  .map-scene {
    margin: 0 30px;
  }
  .story-actions {
    flex-wrap: wrap;
  }
  .casino-layout {
    gap: 30px;
  }
  .wordmark {
    font-size: 17px;
  }
  .site-header nav button,
  .site-header nav a {
    font-size: 11px;
  }
  .chamber {
    padding-top: 25px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding: 0 20px;
    gap: 12px;
  }
  .wordmark {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .wordmark .icon {
    width: 24px;
    height: 24px;
  }
  .site-header nav {
    display: none;
  }
  .header-tools {
    gap: 8px;
  }
  .header-tools > button {
    font-size: 9px;
  }
  .profile-button {
    max-width: 115px;
    padding: 0 9px;
  }
  footer {
    font-size: 8px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  footer button {
    font-size: 9px;
  }
  footer > span:last-child {
    display: none;
  }
  .home {
    min-height: 760px;
  }
  .home-art {
    background-position: 65% center;
    background-size: auto 100%;
    opacity: 0.87;
  }
  .home-content {
    margin-left: 7%;
    width: 300px;
    padding-top: 80px;
  }
  .home h1 {
    font-size: 67px;
  }
  .home h1 span {
    font-size: 55px;
  }
  .home-content:before {
    content: "";
    position: absolute;
    inset: 0 -45px 0 -30px;
    background: linear-gradient(90deg, #111a32e6, #111a3280 75%, transparent);
    z-index: -1;
  }
  .home-note {
    max-width: 220px;
  }
  .home-bottom {
    left: 7%;
    gap: 22px;
    font-size: 8px;
  }
  .chamber {
    padding: 22px 18px 30px;
  }
  .game-layout {
    grid-template-columns: 105px 288px 105px;
    gap: 17px;
  }
  .well-frame {
    width: 288px;
    padding: 0 10px;
  }
  .frame-cap {
    height: 29px;
  }
  .frame-foot {
    height: 27px;
    line-height: 26px;
  }
  #board {
    width: 264px;
    height: 528px;
  }
  .preview-box {
    padding: 10px 2px;
  }
  .preview-box h2 {
    font-size: 9px;
    padding: 0 6px;
    letter-spacing: 1px;
  }
  .preview-box canvas {
    width: 86px;
    height: 55px;
  }
  .keyboard-guide p {
    flex-wrap: wrap;
    font-size: 9px;
  }
  .keyboard-guide p span {
    width: 100%;
    margin: 2px 0;
  }
  .keyboard-guide h2 {
    font-size: 8px;
  }
  .run-stats > strong {
    font-size: 26px;
  }
  .run-stats > div {
    gap: 20px;
  }
  .chamber-character {
    width: 105px;
    height: 175px;
  }
  .board-cover {
    inset: 29px 10px 27px;
  }
  .chamber-top {
    max-width: 530px;
  }
  .chamber-top h1 {
    font-size: 25px;
  }
  .adventure-heading,
  .casino-heading,
  .scores-heading {
    padding: 32px 25px 25px;
    gap: 20px;
  }
  .adventure-heading h1,
  .casino-heading h1,
  .scores-heading h1 {
    font-size: 30px;
  }
  .adventure-heading p,
  .casino-heading p,
  .scores-heading p {
    font-size: 11px;
  }
  .adventure-heading .button {
    padding: 13px;
    white-space: nowrap;
    font-size: 11px;
  }
  .map-scene {
    height: 380px;
    margin: 0 20px;
  }
  .map-pyramid {
    width: 130px;
    height: 130px;
    left: 1%;
    top: 3%;
    transform: scale(0.72);
    transform-origin: top left;
  }
  .districts li {
    min-width: 120px;
    padding: 7px 8px;
    grid-template-columns: 22px auto;
  }
  .districts strong {
    font-size: 9px;
  }
  .districts small {
    font-size: 7px;
  }
  .districts li:nth-child(1) {
    left: 34%;
    top: 45%;
  }
  .districts li:nth-child(2) {
    left: 5%;
    top: 76%;
  }
  .districts li:nth-child(3) {
    left: 45%;
    top: 25%;
  }
  .districts li:nth-child(4) {
    right: 2%;
    top: 70%;
  }
  .districts li:nth-child(5) {
    right: 2%;
    top: 5%;
  }
  .story-bottom {
    grid-template-columns: 1fr;
    padding: 30px 25px 45px;
  }
  .story-rewards {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .story-objective h2 {
    font-size: 27px;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 25px 45px;
  }
  .intro > img {
    max-height: 350px;
    object-fit: cover;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro p {
    font-size: 13px;
  }
  .casino-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
    gap: 20px;
  }
  .cabinet {
    max-width: 470px;
  }
  .casino-sidebar {
    max-width: 470px;
    width: 100%;
    margin: auto;
  }
  .casino-heading .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .accountant > img {
    width: 80px;
  }
  .result {
    gap: 25px;
    padding: 40px 25px;
    min-height: 650px;
  }
  .result-character {
    width: 170px;
  }
  .result h1 {
    font-size: 30px;
  }
  .big-score {
    font-size: 65px;
  }
  .public-score {
    gap: 20px;
  }
  .score-character {
    width: 160px;
    height: 300px;
  }
  .scorecard {
    padding: 30px 23px;
  }
  .scorecard .big-score {
    font-size: 59px;
  }
  .scores-heading {
    flex-wrap: wrap;
  }
  .scores-heading .button {
    font-size: 12px;
    padding: 13px 18px;
  }
  .leaderboard {
    margin: 0 25px;
  }
  .board-filters {
    gap: 10px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 9px 10px;
    font-size: 10px;
  }
  td {
    font-size: 11px;
    padding: 18px 12px;
  }
  .pagination {
    gap: 13px;
    font-size: 10px;
  }
  .pagination button {
    font-size: 10px;
  }
}
@media (max-width: 550px) {
  .header-tools > #sound-toggle {
    display: none;
  }
  .home {
    min-height: calc(100svh - 111px);
  }
  .home-art {
    background-position: 68% center;
    background-size: auto 100%;
    opacity: 0.75;
  }
  .home-content {
    margin-left: 7%;
    padding: 48px 0 100px;
    width: 260px;
  }
  .sunburst {
    height: 40px;
    margin-bottom: 10px;
  }
  .sunburst .icon {
    height: 40px;
    width: 60px;
  }
  .home h1 {
    font-size: 61px;
  }
  .home h1 span {
    font-size: 50px;
  }
  .tagline {
    font-size: 24px;
    margin: 20px 0 26px;
  }
  .home-menu {
    max-width: 240px;
    gap: 14px;
  }
  .home-menu > .button {
    min-height: 51px;
    padding: 15px 19px;
    font-size: 14px;
  }
  .home-note {
    font-size: 9px;
    max-width: 200px;
    margin-top: 20px;
  }
  .home-bottom {
    bottom: 20px;
    flex-direction: column;
    gap: 8px;
  }
  .chamber {
    padding: 17px 10px 25px;
  }
  .chamber-top {
    margin-bottom: 17px;
    padding: 0 7px;
  }
  .chamber-top h1 {
    font-size: 22px;
  }
  .chamber-top .mode-label {
    font-size: 8px;
  }
  .game-layout {
    grid-template-columns: 63px minmax(0, 240px) 63px;
    gap: 9px;
    max-width: 390px;
    margin: auto;
  }
  .well-frame {
    width: 100%;
    padding: 0 7px;
    border-width: 1px;
    border-radius: 6px;
    box-shadow:
      0 0 0 3px #233e49,
      0 0 0 4px #65d7c54a,
      0 10px 25px #0005;
  }
  .frame-cap {
    height: 24px;
    gap: 8px;
  }
  .frame-cap span {
    width: 35px;
  }
  .frame-cap .icon {
    height: 26px;
    width: 31px;
  }
  #board {
    width: 100%;
    height: auto;
    aspect-ratio: 1/2;
  }
  .frame-foot {
    height: 23px;
    line-height: 22px;
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .preview-box {
    border-radius: 4px;
    padding: 7px 0;
  }
  .preview-box h2 {
    font-size: 7px;
    letter-spacing: 1px;
    padding: 0 5px;
  }
  .preview-box h2 kbd {
    display: none;
  }
  .preview-box canvas {
    width: 59px;
    height: 43px;
  }
  .run-stats {
    padding: 0;
    margin-top: 20px;
  }
  .run-stats > span {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .run-stats > strong {
    font-size: 18px;
    letter-spacing: -0.8px;
  }
  .run-stats > div {
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
  }
  .run-stats > div span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .run-stats > div strong {
    font-size: 22px;
  }
  .keyboard-guide {
    display: none;
  }
  .chamber-character {
    width: 66px;
    height: 115px;
    margin-top: 22px;
  }
  .board-cover {
    inset: 24px 7px 23px;
    padding: 12px;
    gap: 15px;
  }
  .board-cover h2 {
    font-size: 22px;
  }
  .board-cover p {
    font-size: 10px;
  }
  .board-cover .button {
    font-size: 11px;
    padding: 12px 14px;
    min-height: 43px;
  }
  .board-cover .text-link {
    font-size: 10px;
  }
  .board-cover small {
    font-size: 8px;
  }
  .touch-controls {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    max-width: 370px;
    margin: 17px auto 0;
    touch-action: none;
  }
  .touch-controls > button {
    background: #26374f;
    border: 1px solid #ecc57740;
    border-radius: 6px;
    box-shadow: 0 3px 0 #070e20;
    min-height: 47px;
    font-size: 23px;
    touch-action: none;
    user-select: none;
  }
  .touch-controls > button:nth-child(1) {
    font-size: 11px;
    grid-column: span 2;
  }
  .touch-controls > button:nth-child(2),
  .touch-controls > button:nth-child(3) {
    grid-column: span 2;
  }
  .touch-controls > button:nth-child(4),
  .touch-controls > button:nth-child(5),
  .touch-controls > button:nth-child(6) {
    grid-column: span 2;
  }
  .touch-controls > .drop-button {
    grid-column: span 6;
    background: var(--gold);
    color: #18243d;
    font-size: 12px;
    font-weight: 700;
    min-height: 44px;
  }
  .touch-controls > button:active {
    transform: translateY(2px);
    box-shadow: none;
    background: #496272;
  }
  .challenge-target {
    font-size: 6px;
    letter-spacing: 0.4px;
  }
  .challenge-target strong {
    font-size: 16px;
    letter-spacing: -0.5px;
  }
  .challenge-target span {
    font-size: 6px;
    overflow-wrap: anywhere;
  }
  .bank-button {
    font-size: 11px;
    padding: 13px 15px;
    min-height: 42px;
  }
  #charm {
    font-size: 7px;
    padding: 8px 3px;
    min-height: 40px;
    width: 100%;
  }
  .charm-note {
    font-size: 8px;
  }
  .result {
    flex-direction: column;
    gap: 12px;
    min-height: 700px;
    text-align: center;
    padding-top: 25px;
  }
  .result-character {
    width: 120px;
    height: 150px;
  }
  .result h1 {
    font-size: 29px;
  }
  .result .big-score {
    font-size: 67px;
    margin-top: 15px;
  }
  .result-meta {
    justify-content: center;
    margin: 20px 0;
  }
  .result-actions {
    justify-content: center;
  }
  .result-actions > .text-link {
    text-align: center;
  }
  .result-actions .button {
    font-size: 12px;
    padding: 15px 18px;
  }
  .adventure-heading {
    align-items: start;
  }
  .adventure-heading h1 {
    font-size: 27px;
  }
  .adventure-heading .button {
    font-size: 9px;
    padding: 12px 8px;
    min-height: 42px;
    max-width: 110px;
  }
  .adventure-heading .button .icon {
    display: none;
  }
  .map-scene {
    height: 325px;
    margin: 0 15px;
  }
  .map-scene > img {
    object-position: 55% center;
  }
  .districts li {
    min-width: 103px;
    grid-template-columns: 18px auto;
    padding: 7px;
  }
  .districts strong {
    font-size: 8px;
  }
  .districts small {
    font-size: 6px;
  }
  .districts li:nth-child(1) {
    left: 28%;
    top: 40%;
  }
  .districts li:nth-child(3) {
    left: 47%;
    top: 23%;
  }
  .districts li:nth-child(5) {
    right: 2%;
    top: 4%;
  }
  .districts li:nth-child(4) {
    right: 2%;
    top: 68%;
  }
  .map-pyramid {
    transform: scale(0.52);
  }
  .story-actions {
    gap: 18px;
  }
  .story-actions > .button {
    width: 100%;
    font-size: 12px;
  }
  .equip {
    width: 100%;
  }
  .equip select {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }
  .story-bottom {
    padding: 28px 23px 40px;
  }
  .story-objective h2 {
    font-size: 26px;
  }
  .intro {
    padding: 25px 20px 40px;
  }
  .intro > img {
    height: 245px;
  }
  .intro h1 {
    font-size: 31px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro .button {
    width: 100%;
    font-size: 12px;
  }
  .intro .text-link {
    font-size: 11px;
  }
  .casino-heading {
    padding: 28px 20px 20px;
    align-items: start;
  }
  .casino-heading h1 {
    font-size: 35px;
  }
  .casino-heading p {
    max-width: 220px;
    font-size: 10px;
  }
  .casino-heading .text-link {
    font-size: 8px;
  }
  .casino-layout {
    padding: 0 10px 35px;
  }
  .cabinet {
    width: 100%;
    max-width: 400px;
  }
  .cabinet-meter {
    padding: 7px 8px;
  }
  .cabinet-meter span {
    font-size: 5px;
  }
  .cabinet-meter strong {
    font-size: 19px;
    margin-top: 3px;
  }
  .spin-button {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 12px;
  }
  .reel > button {
    font-size: 5px;
    letter-spacing: 0.6px;
    padding: 4px 2px;
  }
  .spin-result {
    font-size: 9px;
    top: 82%;
  }
  .wiring .icon {
    width: 35px;
    height: 30px;
  }
  .casino-sidebar {
    padding: 0 15px;
  }
  .accountant h2 {
    font-size: 24px;
  }
  .accountant p {
    font-size: 10px;
  }
  .scores-heading {
    padding: 35px 22px 30px;
  }
  .scores-heading h1 {
    font-size: 33px;
  }
  .scores-heading p {
    font-size: 11px;
  }
  .leaderboard {
    margin: 0 16px;
  }
  .board-filters {
    flex-wrap: wrap;
    padding-bottom: 15px;
    gap: 12px;
  }
  .tabs button {
    padding: 10px 13px;
    font-size: 11px;
  }
  .table-scroll {
    margin-right: -16px;
  }
  .empty-board {
    font-size: 22px;
    padding: 65px 20px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 14px;
  }
  .pagination > span:first-child {
    width: 100%;
  }
  .public-score {
    padding: 35px 20px;
    min-height: 660px;
  }
  .score-character {
    display: none;
  }
  .scorecard {
    padding: 32px 22px;
  }
  .scorecard-brand {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .scorecard .big-score {
    font-size: 70px;
  }
  .scorecard h1 {
    font-size: 27px;
  }
  .scorecard-actions .button {
    font-size: 12px;
  }
  dialog {
    padding: 30px 23px;
    width: 92vw;
  }
  dialog h2 {
    font-size: 27px;
  }
  .bindings {
    gap: 7px;
  }
  .bindings button {
    font-size: 9px;
  }
  .bindings kbd {
    font-size: 7px;
  }
  .account-links {
    flex-wrap: wrap;
  }
}
.pending-retry {
  margin-top: 18px;
  color: var(--teal);
  font-size: 11px;
  border-bottom: 1px solid #72dcc855;
  padding: 7px 0;
}
@media (min-width: 761px) {
  .game-layout {
    --board-height: min(600px, calc(100svh - 255px));
    grid-template-columns: 150px calc(var(--board-height) * 0.5 + 28px) 150px;
    gap: 28px;
  }
  .well-frame {
    width: calc(var(--board-height) * 0.5 + 28px);
  }
  #board {
    width: calc(var(--board-height) * 0.5);
    height: var(--board-height);
  }
  .chamber-character {
    width: 150px;
    height: 185px;
  }
  .chamber-top {
    max-width: calc(384px + min(300px, calc((100svh - 255px) * 0.5)));
  }
}
.left-rail {
  position: relative;
}
.chamber-scarab {
  width: 54px;
  height: 75px;
  object-fit: contain;
  position: absolute;
  right: -8px;
  bottom: -12px;
  transform-origin: 50% 90%;
}
.fury .chamber-scarab {
  animation: receipt-fall 1s ease-out;
}
@keyframes receipt-fall {
  20% {
    transform: translateY(-15px) rotate(-18deg);
  }
  60% {
    transform: translateY(6px) rotate(12deg);
  }
  100% {
    transform: none;
  }
}
@media (max-width: 550px) {
  .chamber-scarab {
    width: 25px;
    height: 43px;
    right: -5px;
    bottom: -12px;
  }
}
@media (min-width: 551px) {
  .mouse-enabled .touch-controls {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
    max-width: 660px;
    margin: 24px auto 0;
  }
  .mouse-enabled .touch-controls button {
    min-height: 45px;
    touch-action: none;
    user-select: none;
    border: 1px solid #ecc57755;
    border-radius: 5px;
    background: #26374f;
    font-size: 19px;
  }
  .mouse-enabled .touch-controls button:first-child,
  .mouse-enabled .touch-controls button:last-child {
    font-size: 11px;
  }
  .mouse-enabled .touch-controls .drop-button {
    background: var(--gold);
    color: #18243d;
  }
  .mouse-enabled .touch-controls button:active {
    background: #48626e;
  }
}
.public-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 55px 30px;
  overflow: auto;
}
.public-page .brand {
  display: block;
  font:
    20px Georgia,
    serif;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 35px;
}
.public-page .score-total {
  font:
    70px Georgia,
    serif;
  color: var(--gold);
  margin: 25px 0;
}
.public-page p,
.public-page nav {
  margin: 22px 0;
}
.public-page input {
  font:
    13px Inter,
    Avenir,
    sans-serif;
  padding: 12px;
  background: #0a1123;
  color: var(--ivory);
  border: 1px solid #ecc57777;
  border-radius: 5px;
  width: min(500px, 100%);
}

.related-sites {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
}
.related-sites a:hover {
  color: var(--gold);
  text-decoration: underline;
}
@media (max-width: 550px) {
  .related-sites {
    font-size: 9px;
    gap: 15px;
  }
  footer {
    justify-content: flex-start;
  }
  footer > span:first-child {
    width: 100%;
  }
}
