/* Wallet and navigation share the lobby's obsidian / electric-lime palette. */
:root {
  --sidebar: 0px;
}
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}
main,
#main {
  margin-left: auto;
  margin-right: auto;
  max-width: 1512px;
  padding: calc(var(--header) + 24px) 32px 122px;
}
.site-header {
  padding: 0 32px;
  gap: 24px;
}
.header-actions {
  gap: 10px;
}
.top-nav {
  margin-left: auto;
  margin-right: 16px;
}
.wallet-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 7px 8px 7px 16px;
  border: 1px solid #c3fa4c47;
  border-radius: 14px;
  background: linear-gradient(110deg, #26331b, #131d13);
  color: #f4f7ed;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px #e4ffa014;
}
.wallet-trigger > svg {
  width: 21px;
  height: 21px;
  color: #c3fa4c;
}
.wallet-trigger > span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.wallet-trigger small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #afbc9c;
  font-weight: 650;
}
.wallet-trigger small b {
  font-size: 7px;
  color: #d3f39e;
  padding-left: 5px;
}
.wallet-trigger strong {
  font-size: 17px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.wallet-add {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #c3fa4c;
  color: #13200a;
  font-size: 24px;
  margin-left: 10px;
}
.notification-trigger {
  position: relative;
}
.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #c3fa4c;
  color: #111b09;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid #0c110d;
}
.notification-count[hidden] {
  display: none;
}
.footer-nav.mobile-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 40px));
  height: 74px;
  padding: 5px 8px;
  z-index: 35;
  border: 1px solid #bddd6e35;
  border-radius: 20px;
  background: #11180ff2;
  box-shadow:
    0 12px 40px #0009,
    inset 0 1px #efffba0b;
  backdrop-filter: blur(22px);
}
.footer-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 52px;
  color: #8e9a83;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  border-radius: 13px;
}
.footer-nav button svg {
  width: 21px;
  height: 21px;
}
.footer-nav button.active {
  color: #c3fa4c;
  background: #c3fa4c0e;
}
.footer-nav button.active:before {
  content: '';
  position: absolute;
  top: -6px;
  width: 24px;
  height: 2px;
  background: #c3fa4c;
  box-shadow: 0 0 15px #c3fa4c88;
}
.footer-nav button:hover {
  background: #ffffff08;
  color: #e3f0cc;
}
.money-dialog {
  color: #f1f4eb;
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 28px;
  border: 1px solid #b4cf6e36;
  border-radius: 24px;
  background: radial-gradient(ellipse at 85% 0, #3b4b213b, transparent 48%), #10170f;
  box-shadow: 0 40px 120px #000a;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #3a482e transparent;
}
.money-dialog::backdrop {
  background: #050904bf;
  backdrop-filter: blur(10px);
}
.money-dialog[open] {
  animation: wallet-enter 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.money-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.money-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #9bb473;
}
.money-heading h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  font-size: 26px;
  letter-spacing: -1px;
  line-height: 1.18;
}
.demo-badge {
  padding: 5px 7px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #d0f28e;
  background: #b6e75c12;
  border: 1px solid #b6e75c30;
  border-radius: 5px;
}
.money-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff07;
  color: #cdd7c2;
  font-size: 26px;
  cursor: pointer;
}
.money-close:hover {
  background: #ffffff13;
}
.demo-note {
  color: #98a68c;
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 0 20px;
}
.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.balance-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #cced9b1b;
  background: linear-gradient(120deg, #28351d80, #151e13);
}
.balance-grid > div:first-child {
  background: linear-gradient(120deg, #354b21, #1b2915);
  border-color: #c3fa4c30;
}
.balance-grid span,
.conversion span {
  font-size: 10px;
  color: #a7b89b;
}
.balance-grid strong {
  font-size: 25px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.balance-grid small {
  font-size: 9px;
  color: #7f9371;
}
.active-bet-note {
  padding: 10px 13px;
  background: #e9b84a0b;
  color: #d2ba85;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}
.wallet-section {
  margin-top: 24px;
}
.wallet-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.wallet-section-title h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 650;
}
.wallet-section-title > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #789266;
}
.topup-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.topup-presets button {
  min-height: 40px;
  color: #d9e7cb;
  border: 1px solid #9eb58530;
  background: #b8d98b08;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.topup-presets button:hover {
  border-color: #c3fa4c;
  color: #c3fa4c;
}
.topup-form {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.money-dialog input,
.money-dialog select {
  color: #ebf2e3;
  background: #090f09;
  border: 1px solid #b6cba52c;
  border-radius: 9px;
  min-height: 42px;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  min-width: 0;
}
.money-dialog input:focus,
.money-dialog select:focus {
  outline: 2px solid #c3fa4c;
  outline-offset: 2px;
}
.topup-form input {
  flex: 1;
  width: 0;
}
.topup-form button {
  background: #29391d;
  color: #d9eec5;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
}
.chip-inventory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.chip-inventory button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px 9px;
  border: 1px solid transparent;
  background: #ffffff03;
  border-radius: 13px;
  cursor: pointer;
  color: #c5d2b9;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.chip-inventory button[aria-pressed='true'] {
  border-color: #c3fa4c80;
  background: #c3fa4c0b;
}
.chip-inventory img {
  width: 62px;
  height: 62px;
  max-width: 100%;
  filter: drop-shadow(0 5px 5px #0008);
  transition: transform 0.2s;
}
.chip-inventory button:hover img {
  transform: translateY(-4px) rotate(-8deg);
}
.chip-inventory strong {
  font-size: 11px;
}
.chip-inventory small {
  font-size: 8px;
  color: #8c9d7f;
}
.conversion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #050a0566;
  border: 1px solid #a5bd7d1a;
  border-radius: 12px;
  margin: 14px 0 11px;
  padding: 12px;
}
.conversion > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.conversion strong {
  font-size: 16px;
}
.conversion label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 9px;
  color: #a7b89b;
}
.conversion input {
  width: 72px;
  min-height: 34px;
  padding: 6px 8px;
}
.conversion-total {
  text-align: right;
}
.money-primary {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  border-radius: 11px;
  font-size: 13px;
}
.money-text-button {
  display: block;
  width: 100%;
  padding: 12px 8px;
  min-height: 44px;
  color: #98ad88;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.5;
}
.money-text-button:hover {
  color: #e4f0d8;
}
.money-dialog button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.wallet-feedback {
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
  color: #c3ed8d;
}
.wallet-feedback:empty {
  display: none;
}
.wallet-feedback.error {
  color: #ffad9f;
}
.demo-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px solid #8da67621;
}
.demo-profile label {
  font-size: 11px;
  color: #9bad8d;
}
.demo-profile small {
  grid-column: 1/-1;
  font-size: 9px;
  color: #758567;
  line-height: 1.6;
}
.notification-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 14px;
  font-size: 10px;
  color: #95a785;
}
.notification-toolbar button {
  color: #c0da9c;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid #c3d7b216;
}
.notification-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #c3fa4c10;
  color: #93b56a;
  font-size: 22px;
}
.notification-item.unread .notification-symbol {
  background: #c3fa4c20;
  color: #c3fa4c;
}
.notification-item strong {
  font-size: 12px;
  font-weight: 600;
}
.notification-item p {
  font-size: 11px;
  color: #91a181;
  margin: 5px 0 7px;
  line-height: 1.5;
}
.notification-item time {
  font-size: 9px;
  color: #67795b;
}
.stake-dialog {
  width: min(510px, calc(100vw - 24px));
  padding: 26px 24px 20px;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 50% 34%, #4f6b2030, transparent 52%), #10170f;
}
.stake-dialog .money-heading h2 {
  font-size: 26px;
}
.stake-intro {
  font-size: 12px;
  color: #9bad8e;
  line-height: 1.6;
  margin: 14px 0 0;
}
.chip-fan {
  --radius: 180px;
  --chip-size: 67px;
  height: 264px;
  position: relative;
  margin: 10px -6px 0;
  isolation: isolate;
}
.chip-fan:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  width: calc(var(--radius) * 2);
  height: calc(var(--radius) * 2);
  border: 1px solid #b8dd5529;
  border-radius: 50%;
  mask-image: linear-gradient(#000 40%, transparent 60%);
  box-shadow: 0 0 30px #c3fa4c08;
}
.fan-chip {
  position: absolute;
  left: calc(50% + var(--fan-x) * var(--radius));
  top: calc(214px - var(--fan-y) * var(--radius));
  width: var(--chip-size);
  height: var(--chip-size);
  transform: translate(-50%, -50%);
  z-index: 2;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: filter 0.18s;
  isolation: isolate;
}
.fan-chip img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 7px 6px #000a);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.fan-chip[aria-pressed='true'] img {
  transform: translateY(-9px) scale(1.12);
  filter: drop-shadow(0 0 9px #c3fa4c80) drop-shadow(0 8px 8px #000b);
}
.fan-chip:hover img {
  transform: translateY(-7px) rotate(-7deg);
}
.fan-chip span {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 25px;
  font-size: 9px;
  color: #e5f6d3;
  font-weight: 700;
  background: #203016;
  border: 1px solid #69844955;
  border-radius: 10px;
  padding: 2px 5px;
  pointer-events: none;
}
.fan-chip.unowned span {
  background: #171b14;
  color: #9caa8d;
}
.stake-dialog[open] .fan-chip {
  animation: fan-deal 0.5s calc(var(--fan-order) * 35ms) both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fan-center {
  position: absolute;
  top: 137px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 65%;
  pointer-events: none;
  gap: 9px;
}
.fan-center > span {
  font-size: 8px;
  letter-spacing: 2.7px;
  color: #9cb57f;
}
.fan-center strong {
  font-size: 32px;
  color: #f2f8e8;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.fan-center small {
  font-size: 10px;
  color: #a0b487;
}
.stake-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 16px;
}
.stake-settings label {
  font-size: 11px;
  color: #aab99b;
}
.stake-settings select {
  width: 62%;
  font-size: 12px;
}
.stake-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  border: 1px solid #a7c07724;
  border-radius: 13px;
  background: #040a0433;
  padding: 15px;
}
.stake-terms > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stake-terms span {
  font-size: 9px;
  color: #9caf88;
}
.stake-terms strong {
  font-size: 14px;
  color: #dceac9;
}
.stake-terms p {
  grid-column: 1/-1;
  font-size: 9px;
  color: #879779;
  line-height: 1.7;
  margin: 7px 0 0;
}
.stake-dialog #stake-confirm {
  margin-top: 16px;
}
.stake-demo-note {
  font-size: 9px;
  color: #7c9169;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}
.match-stake {
  display: block;
  font-size: 10px;
  color: #bddb90;
  margin: 6px 0 0;
}
@keyframes wallet-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fan-deal {
  from {
    opacity: 0;
    translate: calc(var(--fan-x) * -60px) 35px;
    rotate: calc(var(--fan-x) * -25deg);
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@media (max-width: 900px) {
  .site-header {
    gap: 10px;
    padding: 0 20px;
  }
  .site-header .top-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  main,
  #main {
    padding-right: 20px;
    padding-left: 20px;
  }
}
@media (max-width: 600px) {
  :root {
    --header: 72px;
  }
  .site-header {
    padding: 0 13px;
    gap: 8px;
  }
  .site-header .brand {
    font-size: 15px;
    gap: 7px;
  }
  .site-header .brand-mark {
    width: 27px;
    height: 30px;
    font-size: 31px;
  }
  .site-header .brand-domain {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .icon-button {
    width: 35px;
    height: 42px;
  }
  .header-actions .icon-button svg {
    width: 19px;
    height: 19px;
  }
  #sound-toggle {
    width: 28px;
  }
  .wallet-trigger {
    min-height: 46px;
    border-radius: 11px;
    padding: 6px 9px;
    gap: 6px;
  }
  .wallet-trigger > svg,
  .wallet-add {
    display: none;
  }
  .wallet-trigger small {
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .wallet-trigger small b {
    font-size: 6px;
    padding-left: 2px;
  }
  .wallet-trigger strong {
    font-size: 14px;
    white-space: nowrap;
  }
  .notification-count {
    right: -1px;
    top: 1px;
  }
  .header-actions .muted-slash {
    width: 20px;
    left: 4px;
  }
  main,
  #main {
    padding: calc(var(--header) + 12px) 14px calc(112px + env(safe-area-inset-bottom));
  }
  .footer-nav.mobile-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
    border-radius: 17px 17px 0 0;
    border-bottom: 0;
    gap: 0;
  }
  .footer-nav button {
    font-size: 8px;
    gap: 6px;
    min-height: 60px;
    border-radius: 10px;
  }
  .footer-nav button svg {
    width: 21px;
    height: 21px;
  }
  .footer-nav button.active:before {
    top: -5px;
  }
  .ticker {
    padding: 16px 0;
    margin: 16px -14px 26px;
    min-height: 64px;
    border-top: 1px solid #b4d66325;
    border-bottom: 1px solid #b4d66325;
    background: linear-gradient(90deg, #b7e35006, #b7e3500d, #b7e35006);
  }
  .ticker-track {
    gap: 34px;
    padding: 0;
  }
  .ticker span {
    font-size: 12px;
    letter-spacing: 2.4px;
  }
  .ticker-track b {
    font-size: 21px;
  }
  .hero-controls button {
    min-width: 40px;
    min-height: 40px;
  }
  .filter-bar {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .money-dialog {
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
    border-radius: 20px;
  }
  .money-heading h2 {
    font-size: 23px;
  }
  .money-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .balance-grid {
    gap: 8px;
  }
  .balance-grid > div {
    padding: 14px 12px;
  }
  .balance-grid strong {
    font-size: 23px;
  }
  .balance-grid span {
    font-size: 9px;
  }
  .topup-presets button {
    font-size: 10px;
  }
  .wallet-section-title h3 {
    font-size: 13px;
  }
  .wallet-section-title > span {
    font-size: 6px;
  }
  .chip-inventory {
    gap: 5px;
  }
  .chip-inventory img {
    width: 56px;
    height: 56px;
  }
  .chip-inventory button {
    padding: 9px 2px;
  }
  .chip-inventory strong {
    font-size: 10px;
  }
  .chip-inventory small {
    font-size: 7px;
  }
  .conversion {
    gap: 8px;
    padding: 11px;
  }
  .conversion span {
    font-size: 8px;
  }
  .conversion strong {
    font-size: 14px;
  }
  .conversion input {
    width: 58px;
  }
  .money-dialog .money-primary {
    font-size: 12px;
  }
  .demo-note {
    font-size: 10px;
  }
  .notification-toolbar {
    font-size: 9px;
  }
  .notification-toolbar button {
    max-width: 130px;
    text-align: right;
    font-size: 9px;
  }
  .stake-dialog {
    padding: 22px 18px 17px;
  }
  .stake-dialog .money-heading h2 {
    font-size: 23px;
  }
  .stake-intro {
    font-size: 11px;
  }
  .chip-fan {
    --radius: calc((100vw - 104px) / 2);
    --chip-size: 56px;
    height: 230px;
    margin-top: 15px;
  }
  .fan-chip {
    top: calc(182px - var(--fan-y) * var(--radius));
  }
  .chip-fan:before {
    top: calc(182px - var(--radius));
  }
  .fan-center {
    top: 113px;
    gap: 7px;
  }
  .fan-center strong {
    font-size: 29px;
  }
  .fan-center small {
    font-size: 9px;
  }
  .stake-terms {
    padding: 12px;
    gap: 5px;
  }
  .stake-terms strong {
    font-size: 13px;
  }
  .stake-terms p {
    font-size: 8px;
  }
  .stake-settings {
    margin-top: 0;
  }
  .stake-demo-note {
    font-size: 8px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding: 0 9px;
  }
  .site-header .brand {
    font-size: 13px;
    gap: 5px;
  }
  .site-header .brand-mark {
    width: 22px;
    font-size: 27px;
  }
  #sound-toggle {
    width: 24px;
  }
  .header-actions {
    gap: 1px;
  }
  .wallet-trigger {
    padding: 6px;
  }
  .wallet-trigger strong {
    font-size: 12px;
  }
  .wallet-trigger small {
    font-size: 5px;
  }
  .fan-chip {
    --chip-size: 48px;
  }
  .fan-center strong {
    font-size: 25px;
  }
  .fan-center > span {
    font-size: 7px;
  }
  .fan-center small {
    font-size: 8px;
  }
  .money-heading h2,
  .stake-dialog .money-heading h2 {
    font-size: 21px;
  }
  .topup-presets {
    gap: 4px;
  }
  .topup-presets button {
    font-size: 9px;
  }
  .stake-terms strong {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .money-dialog[open],
  .stake-dialog[open] .fan-chip {
    animation: none;
  }
  .fan-chip img,
  .chip-inventory img {
    transition: none;
  }
}
.opponent-fixed {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 0;
  grid-column: 1/-1;
}
.opponent-fixed span {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8b9f77;
}
.opponent-fixed strong {
  font-size: 15px;
}
.stake-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 8px;
  font-size: 11px;
  color: #aebd9e;
}
.stake-quantity-row b {
  color: #e4efd6;
}
.stake-quantity-row > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stake-quantity-row button {
  width: 38px;
  height: 38px;
  border: 1px solid #c3fa4c30;
  background: #c3fa4c0a;
  border-radius: 10px;
  color: #d0edaa;
  font-size: 22px;
}
.stake-quantity-row output {
  min-width: 20px;
  text-align: center;
  color: #edf7df;
  font-size: 15px;
  font-weight: 700;
}
.stake-basket {
  min-height: 18px;
  font-size: 10px;
  line-height: 1.5;
  color: #b9d395;
  margin: 0 0 13px;
}
.stake-dialog::backdrop {
  background: #03080366;
  backdrop-filter: blur(1px);
}
body:has(#stake-dialog[open]) .chess-dialog {
  overflow: hidden;
}
@media (min-width: 901px) {
  .stake-dialog {
    width: 430px;
    inset: 0 28px 0 auto;
    margin: auto 0;
    max-height: calc(100dvh - 32px);
  }
  .stake-dialog .chip-fan {
    --radius: 156px;
    --chip-size: 61px;
    height: 240px;
  }
  .stake-dialog .fan-chip {
    top: calc(192px - var(--fan-y) * var(--radius));
  }
  .stake-dialog .chip-fan:before {
    top: 36px;
  }
  .stake-dialog .fan-center {
    top: 123px;
  }
  .stake-dialog .money-heading h2 {
    font-size: 24px;
  }
  body:has(#stake-dialog[open]) .chess-layout {
    padding-right: 390px;
    grid-template-columns: 1fr;
  }
  body:has(#stake-dialog[open]) .game-panel {
    display: none;
  }
  body:has(#stake-dialog[open]) .board-column {
    max-width: 650px;
  }
}
@media (max-width: 900px) {
  .stake-dialog {
    inset: auto 0 0;
    margin: 0 auto;
    width: min(510px, 100%);
    max-height: 70dvh;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    scroll-padding-bottom: 12px;
  }
  .stake-dialog .money-heading {
    position: sticky;
    top: -22px;
    z-index: 4;
    background: #10170ff5;
    padding: 10px 0;
  }
  .stake-dialog .money-heading h2 {
    font-size: 20px;
    margin-top: 7px;
  }
  .stake-dialog .stake-intro {
    margin-top: 4px;
    font-size: 10px;
  }
  .stake-dialog .chip-fan {
    height: 218px;
  }
  .stake-dialog #stake-confirm {
    position: sticky;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -8px 25px #10170f;
  }
  .stake-dialog .stake-demo-note {
    padding-bottom: 3px;
  }
  body:has(#stake-dialog[open]) .chess-shell {
    padding-top: 12px;
  }
  body:has(#stake-dialog[open]) .dialog-header {
    margin-bottom: 10px;
  }
  body:has(#stake-dialog[open]) .board-column {
    max-width: 430px;
  }
  body:has(#stake-dialog[open]) .player-row,
  body:has(#stake-dialog[open]) .arena-turnline {
    display: none;
  }
}
@media (max-width: 900px) {
  body:has(#stake-dialog[open]) .board-column {
    width: min(46vw, calc(30dvh - 84px));
    min-width: 112px;
    margin: 0 auto;
  }
  body:has(#stake-dialog[open]) .board-stage {
    padding: 4px;
  }
  body:has(#stake-dialog[open]) .game-panel {
    display: none;
  }
  body:has(#stake-dialog[open]) .chess-dialog .dialog-header {
    padding-bottom: 8px;
    margin-bottom: 5px;
  }
  .stake-dialog {
    padding-top: 10px;
  }
  .stake-dialog .money-heading {
    top: -10px;
  }
  .stake-dialog .chip-fan {
    height: 207px;
    margin-top: 8px;
  }
  .stake-dialog .stake-quantity-row {
    margin-top: 0;
  }
  .stake-dialog .stake-terms p {
    line-height: 1.5;
  }
}
@media (min-width: 901px) {
  body:has(#stake-dialog[open]) .board-column {
    max-width: min(100%, calc(100dvh - 240px));
  }
}
/* The stake is part of the board, with no modal card or extra form. */
.board-stake-selector {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 55%, #071006ab, transparent 76%);
  container-type: inline-size;
}
.choosing-stake .board-surface {
  filter: brightness(0.55) saturate(0.75);
  transition: filter 0.3s;
}
.choosing-stake .arena-turnline {
  visibility: hidden;
}
.choosing-stake .game-panel {
  visibility: hidden;
  pointer-events: none;
}
.board-stake-selector .chip-fan {
  --radius: 36cqw;
  --chip-size: 16cqw;
  width: 100%;
  height: 68cqw;
  margin: 0;
  position: relative;
}
.board-stake-selector .chip-fan:before {
  top: 8cqw;
  width: 72cqw;
  height: 72cqw;
  border-color: #d1eb9133;
}
.board-stake-selector .fan-slot {
  position: absolute;
  left: calc(50% + var(--fan-x) * var(--radius));
  top: calc(44cqw - var(--fan-y) * var(--radius));
  width: var(--chip-size);
  height: var(--chip-size);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.board-stake-selector .fan-chip {
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
.board-stake-selector .fan-chip img {
  filter: drop-shadow(0 6px 8px #000c);
}
.board-stake-selector .fan-chip[aria-pressed='true'] img {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 7px #c3fa4c88) drop-shadow(0 5px 6px #000a);
}
.board-stake-selector .fan-chip span {
  font-size: clamp(9px, 2.5cqw, 13px);
  bottom: -7px;
  background: #263d15;
  color: #d7ffab;
  border-color: #c3fa4c70;
}
.board-stake-selector .fan-remove {
  position: absolute;
  right: -4px;
  bottom: -3px;
  z-index: 4;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  background: #101b0cf0;
  border: 1px solid #bfd69e60;
  color: #d7edb9;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  box-shadow: 0 3px 10px #0008;
}
.board-stake-selector .fan-total {
  position: absolute;
  left: 50%;
  top: 37cqw;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  color: #d1ff83;
  text-shadow: 0 0 24px #b8f04550;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.board-stake-selector .fan-total strong {
  font-size: clamp(26px, 7cqw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.board-stake-selector .fan-total > span {
  font-size: 25px;
}
.board-stake-selector .fan-total:disabled {
  opacity: 0.7;
  color: #eef3e5;
}
.board-stake-selector .fan-total:disabled > span {
  display: none;
}
.board-stake-selector .fan-total:hover:not(:disabled) {
  color: #efffd2;
  filter: drop-shadow(0 0 12px #b7ff5266);
}
.board-stake-selector:not([hidden]) .fan-slot {
  animation: fan-deal 0.5s calc(var(--fan-order) * 35ms) both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 900px) {
  .choosing-stake .game-panel {
    display: none;
  }
  .choosing-stake .board-column {
    width: 100%;
    max-width: 430px;
  }
  .choosing-stake .chess-layout {
    grid-template-columns: 1fr;
  }
  .choosing-stake .chess-shell {
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .board-stake-selector:not([hidden]) .fan-slot {
    animation: none;
  }
  .choosing-stake .board-surface {
    transition: none;
  }
}
.amount-conversion {
  padding: 20px;
  border: 1px solid #b7db6c30;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, #6c9b2020, transparent 70%), #111b0e;
}
.conversion-help {
  font-size: 12px;
  color: #a9ba9a;
  line-height: 1.7;
  margin: 0 0 18px;
}
.conversion-amount-label {
  display: block;
  font-size: 11px;
  color: #c7d8b9;
  margin-bottom: 8px;
}
.conversion-amount-field {
  position: relative;
}
.money-dialog .conversion-amount-field input {
  width: 100%;
  min-height: 64px;
  padding: 12px 48px 12px 16px;
  font-size: 28px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  border-color: #c3fa4c55;
  background: #080e06;
}
.conversion-amount-field > span {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #a4bd80;
  pointer-events: none;
}
#conversion-minimum {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #8ea479;
  margin: 9px 0 17px;
}
.amount-conversion .money-text-button {
  padding-bottom: 0;
}
.board-stake-selector .fan-chip.unowned img {
  opacity: 0.4;
}
.board-stake-selector .fan-chip:disabled {
  cursor: not-allowed;
}
.board-stake-selector .fan-chip:disabled:hover img {
  transform: none;
}
.brand {
  letter-spacing: -0.55px;
}
.brand .brand-mark,
.footer-top .brand .brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  transform: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-top .brand .brand-mark {
  width: 30px;
  height: 30px;
}
@media (max-width: 600px) {
  .site-header .brand {
    font-size: 17px;
    letter-spacing: -0.5px;
    gap: 8px;
    flex-shrink: 0;
  }
  .site-header .brand .brand-mark {
    width: 34px;
    height: 34px;
  }
  .amount-conversion {
    padding: 16px;
  }
  .amount-conversion .wallet-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .conversion-help {
    font-size: 11px;
  }
  .money-dialog .conversion-amount-field input {
    font-size: 26px;
  }
  .money-dialog input,
  .money-dialog select {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .site-header .brand {
    font-size: 15px;
    gap: 6px;
  }
  .site-header .brand .brand-mark {
    width: 32px;
    height: 32px;
  }
  .site-header .wallet-trigger {
    padding: 6px;
  }
  .site-header .header-actions .icon-button {
    width: 30px;
  }
  #sound-toggle {
    width: 24px;
  }
}
/* Keep the wallet compact without scaling its text or touch controls. */
#wallet-dialog {
  width: min(440px, calc(100vw - 40px));
  padding: 20px;
  border-radius: 18px;
}
#wallet-dialog .money-heading h2 {
  font-size: 22px;
  margin-top: 6px;
  letter-spacing: -0.6px;
}
#wallet-dialog .money-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
#wallet-dialog .demo-note {
  margin: 10px 0 12px;
  line-height: 1.5;
}
#wallet-dialog .balance-grid {
  gap: 8px;
}
#wallet-dialog .balance-grid > div {
  padding: 12px;
  gap: 5px;
  border-radius: 12px;
}
#wallet-dialog .balance-grid strong {
  font-size: 22px;
}
#wallet-dialog .wallet-section {
  margin-top: 16px;
}
#wallet-dialog .wallet-section-title {
  margin-bottom: 9px;
}
#wallet-dialog .wallet-section-title h3 {
  font-size: 13px;
}
#wallet-dialog .topup-presets button {
  min-height: 36px;
  font-size: 11px;
}
#wallet-dialog .topup-form {
  margin-top: 7px;
}
#wallet-dialog .topup-form input {
  min-height: 38px;
  padding: 8px 10px;
}
#wallet-dialog .amount-conversion {
  padding: 14px;
  border-radius: 13px;
}
#wallet-dialog .amount-conversion .wallet-section-title > span {
  display: none;
}
#wallet-dialog .conversion-help {
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 10px;
}
#wallet-dialog .conversion-amount-label {
  font-size: 10px;
  margin: 0 0 6px;
}
#wallet-dialog .conversion-amount-field input {
  min-height: 44px;
  padding: 8px 30px 8px 12px;
  font-size: 21px;
}
#wallet-dialog .conversion-amount-field > span {
  right: 12px;
  font-size: 19px;
}
#wallet-dialog #conversion-minimum {
  font-size: 9px;
  line-height: 1.5;
  margin: 7px 0 0;
}
#wallet-dialog .amount-conversion .money-primary {
  min-height: 44px;
  font-size: 12px;
  padding: 10px 12px;
  gap: 8px;
}
#wallet-dialog .amount-conversion .money-text-button {
  min-height: 34px;
  font-size: 10px;
  padding: 8px 0 0;
}
#wallet-dialog .demo-profile {
  padding-top: 12px;
  margin-top: 9px;
  gap: 6px;
}
#wallet-dialog .demo-profile label {
  font-size: 10px;
}
#wallet-dialog .demo-profile select {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}
#wallet-dialog .wallet-feedback {
  font-size: 11px;
  margin: 7px 0;
}
@media (min-width: 601px) {
  #wallet-dialog #conversion-form {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 9px;
  }
  #wallet-dialog .conversion-amount-label {
    grid-column: 1/-1;
  }
  #wallet-dialog .conversion-amount-field {
    grid-row: 2;
    grid-column: 1;
  }
  #wallet-dialog #convert-chips {
    grid-row: 2;
    grid-column: 2;
  }
  #wallet-dialog #conversion-minimum {
    grid-row: 3;
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  #wallet-dialog {
    padding: 16px;
    max-height: calc(100dvh - 32px);
  }
  #wallet-dialog .money-heading h2 {
    font-size: 21px;
  }
  #wallet-dialog .money-close {
    width: 44px;
    height: 44px;
  }
  #wallet-dialog .balance-grid > div {
    padding: 11px 10px;
  }
  #wallet-dialog .balance-grid strong {
    font-size: 21px;
  }
  #wallet-dialog .topup-presets button {
    min-height: 44px;
    font-size: 10px;
  }
  #wallet-dialog .topup-form input,
  #wallet-dialog .topup-form button {
    min-height: 44px;
  }
  #wallet-dialog .topup-form input,
  #wallet-dialog .demo-profile select {
    font-size: 16px;
  }
  #wallet-dialog .demo-profile select {
    min-height: 44px;
  }
  #wallet-dialog .amount-conversion {
    padding: 12px;
  }
  #wallet-dialog #conversion-minimum {
    margin-bottom: 10px;
  }
  #wallet-dialog .amount-conversion .money-text-button {
    min-height: 44px;
  }
  #wallet-dialog .amount-conversion .wallet-section-title {
    margin-bottom: 8px;
  }
}
