.auth-layout {
  width: min(1160px,100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 72px clamp(24px,4vw,64px);
  display: grid;
  grid-template-columns: minmax(0,400px) minmax(0,1fr);
  align-items: center;
  gap: clamp(48px,8vw,110px)
}

.auth-content h1,.page-heading h1 {
  margin: 0;
  font: 400 clamp(38px,4vw,48px)/1.12 "DM Serif Display",serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere
}

.account-form {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px
}

.field {
  display: grid;
  gap: 8px
}

.field label {
  font-size: 12px;
  color: var(--muted)
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--cream)
}

.field input:focus-visible {
  outline: none;
  border-color: var(--accent)
}

.account-form .button-primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 6px
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb,var(--error) 42%,var(--surface));
  border-radius: 5px;
  background: color-mix(in srgb,var(--error) 10%,var(--surface));
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere
}

.auth-switch {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px
}

.auth-switch a,.text-link {
  color: var(--accent)
}

.auth-switch a:hover,.text-link:hover {
  color: var(--cream)
}

.auth-table {
  width: 100%;
  aspect-ratio: 1.2;
  padding: 16px;
  border-radius: 48% / 49%;
  background: var(--rail);
  box-shadow: 0 22px 38px #160c1266
}

.auth-felt {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--felt);
  box-shadow: inset 0 3px 18px #27151c55
}

.auth-felt::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #c48c8a38;
  border-radius: inherit
}

.auth-wordmark {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font: 42px "DM Serif Display",serif;
  color: #c99089
}

.auth-deck {
  position: absolute;
  top: 47%;
  left: 50%;
  display: flex;
  gap: 7px;
  transform: translateX(-50%)
}

.auth-deck img {
  width: clamp(80px,9vw,112px);
  aspect-ratio: 68 / 96;
  border-radius: 7px;
  filter: var(--card-filter);
  box-shadow: 0 8px 14px #210e1f50
}

.auth-deck img:first-child {
  transform: rotate(-8deg) translateY(4px)
}

.auth-deck img:last-child {
  transform: rotate(8deg) translateY(4px)
}

.account-page {
  width: min(960px,100%);
  margin: 0 auto;
  padding: 72px clamp(24px,4vw,64px) 100px
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  text-decoration: none
}

.text-link svg {
  width: 17px;
  height: 17px
}

.lobby-page {
  width: min(1100px,100%)
}

.lobby-account {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 24px
}

.bonus-open {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.bonus-open:hover {
  color: var(--cream)
}

.lobby-balance {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-size: 13px
}

.lobby-balance strong {
  display: inline-block;
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.bonus-dialog {
  width: min(390px,calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: 0 24px 52px #170b13a6
}

.bonus-dialog::backdrop {
  background: #130b11ad
}

.bonus-dialog h2 {
  margin: 0;
  font: 400 30px/1.2 "DM Serif Display",serif
}

.bonus-dialog>p:not(.form-error) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}

.bonus-dialog .form-error {
  margin-top: 20px
}

.bonus-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 32px
}

.bonus-actions .button-primary {
  min-width: 0;
  padding: 13px 18px
}

.bonus-later {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px
}

.bonus-later:hover {
  color: var(--cream)
}

.bonus-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none
}

.bonus-confetti {
  position: absolute;
  width: 6px;
  height: 11px;
  border-radius: 1px;
  background: var(--cream);
  opacity: 0;
  pointer-events: none
}

.bonus-confetti:nth-child(3n+2) {
  background: var(--accent)
}

.bonus-confetti:nth-child(3n+3) {
  background: #e4be82
}

.bonus-confetti:nth-child(5n) {
  border-radius: 50%
}

.bonus-confetti-credit {
  position: absolute;
  color: var(--cream);
  font: 400 34px/1 "DM Serif Display",serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 5px 16px #170b13a6
}

.vip-dialog {
  width: min(420px,calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 38px 36px 34px;
  border: 1px solid #c49b60;
  border-radius: 7px;
  background: var(--surface);
  color: var(--cream);
  text-align: center;
  box-shadow: 0 26px 56px #170b13b8;
  overflow: visible
}

.vip-dialog::backdrop {
  background: #130b11c7
}

.vip-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid #c49b60;
  border-radius: 50%;
  color: #e4be82
}

.vip-emblem svg {
  width: 26px;
  height: 26px;
  fill: currentColor
}

.vip-dialog h2 {
  margin: 0;
  font: 400 38px/1.1 "DM Serif Display",serif;
  letter-spacing: -.025em
}

.vip-dialog p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55
}

.vip-continue {
  width: max-content;
  margin: 30px auto 0;
  background: #e4be82;
  color: var(--ink)
}

.vip-dialog .vip-continue:hover:not(:disabled) {
  background: #f0d19b
}

.vip-confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.vip-confetti {
  position: absolute;
  left: 50%;
  top: 67px;
  width: 6px;
  height: 10px;
  border-radius: 1px;
  background: #e4be82;
  opacity: 0
}

.vip-confetti:nth-child(3n+2) {
  background: var(--cream)
}

.vip-confetti:nth-child(3n+3) {
  background: var(--accent)
}

.vip-confetti:nth-child(5n) {
  border-radius: 50%
}

.admin-dialog {
  --admin-electric: #ff4054;
  --admin-bright: #ff8794;
  --admin-pale: #ffe0e3;
  width: min(500px,calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 40px 36px 34px;
  border: 1px solid var(--admin-electric);
  border-radius: 7px;
  background: #2b1720;
  color: var(--cream);
  text-align: center;
  box-shadow: 0 26px 60px #13040ac9;
  overflow: hidden
}

.admin-dialog::backdrop {
  background: #100609d6
}

.admin-dialog-emblem {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 1px solid var(--admin-electric);
  border-radius: 50%;
  background: linear-gradient(150deg,#6b1b2c,#36131e 70%);
  color: var(--admin-pale);
  box-shadow: inset 0 1px 0 #ffb5bf61,0 9px 22px #16060b7a
}

.admin-dialog-emblem svg {
  width: 29px;
  height: 29px;
  fill: currentColor
}

.admin-dialog h2 {
  max-width: 22ch;
  margin: 0 auto;
  font: 400 clamp(30px,4vw,40px)/1.12 "DM Serif Display",serif;
  letter-spacing: -.025em
}

.admin-dialog h2 span {
  color: var(--admin-bright)
}

.admin-flag {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 13px 16px;
  border: 1px solid #a53343;
  border-radius: 5px;
  background: #200e17;
  color: var(--admin-pale);
  font: 600 16px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
  text-wrap: balance;
  user-select: all
}

.admin-continue {
  width: max-content;
  margin: 28px auto 0;
  background: var(--admin-bright);
  color: var(--ink)
}

.admin-dialog .admin-continue:hover:not(:disabled) {
  background: var(--admin-pale)
}

.admin-dialog button:focus-visible {
  outline-color: var(--admin-pale)
}

.admin-particle-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none
}

.admin-particle {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 4px;
  height: 8px;
  border-radius: 1px;
  background: var(--admin-electric);
  opacity: 0
}

.admin-particle:nth-child(3n+2) {
  background: var(--admin-pale)
}

.admin-particle:nth-child(5n) {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--admin-bright)
}

.table-menu {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left
}

.table-menu thead {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.table-menu thead th {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500
}

.table-menu th:first-child {
  width: 52%;
  padding-left: 0
}

.table-menu th:last-child {
  text-align: right;
  padding-right: 0
}

.table-menu tbody tr {
  border-bottom: 1px solid var(--line)
}

.table-menu tbody th,.table-menu tbody td {
  padding: 25px 12px;
  font-size: 14px;
  font-weight: 400
}

.table-summary {
  display: flex;
  align-items: center;
  gap: 25px
}

.table-entry-link {
  display: inline-flex;
  max-width: 100%;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap
}

.table-entry-link .table-name {
  text-underline-offset: 5px
}

.table-entry-link:hover .table-name,.table-entry-link:focus-visible .table-name {
  color: var(--accent);
  text-decoration: underline
}

.table-entry-arrow {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent);
  opacity: .7;
  transition: opacity 160ms ease,transform 160ms var(--ease)
}

.table-entry-link:hover .table-entry-arrow,.table-entry-link:focus-visible .table-entry-arrow {
  opacity: 1;
  transform: translateX(3px)
}

.table-name {
  font: 23px "DM Serif Display",serif;
  white-space: nowrap
}

.table-preview {
  position: relative;
  flex: 0 0 110px;
  height: 66px;
  border-radius: 50%;
  background: var(--rail)
}

.table-preview::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: var(--felt)
}

.table-preview::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid var(--line)
}

.table-preview-cards {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  z-index: 1
}

.table-preview-cards img {
  width: 16px;
  height: 23px;
  border-radius: 2px;
  filter: var(--card-filter)
}

.table-preview-cards img:first-child {
  transform: rotate(-8deg)
}

.table-preview-cards img:last-child {
  transform: rotate(8deg)
}

.table-empty {
  color: var(--muted)
}

.table-player {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 9px);
  white-space: nowrap
}

.table-player .bot-avatar {
  --avatar-size: clamp(20px, 6vw, 30px)
}

.table-menu .table-buy-in {
  padding-right: 0;
  text-align: right;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.table-menu tbody .vip-row {
  background: #51402f;
  border-bottom-color: #a98150;
  transition: background 180ms ease
}

.table-menu tbody .vip-row:hover {
  background: #5c4934
}

.table-menu tbody .vip-row > th,.table-menu tbody .vip-row > td {
  border-top: 1px solid #a98150;
  border-bottom: 1px solid #a98150
}

.table-menu tbody .vip-row > th:first-child {
  padding-left: clamp(16px,2vw,28px)
}

.table-menu tbody .vip-row > td:last-child {
  padding-right: clamp(16px,2vw,28px)
}

.vip-row .table-entry-link {
  position: relative
}

.vip-row .table-name,.vip-row .table-buy-in {
  color: #f0d19b
}

.vip-row td:not(.table-buy-in) {
  color: #f4e7d2
}

.vip-row .table-entry-arrow {
  color: #e4be82;
  opacity: 1
}

.vip-row .table-entry-link:hover .table-name,
.vip-row .table-entry-link:focus-visible .table-name {
  color: var(--cream)
}

.vip-row .table-preview {
  background: #ab8351;
  box-shadow: 0 6px 16px #21181170
}

.vip-row .table-preview::before {
  background: #735739
}

.vip-row .table-preview::after {
  border-color: #d4ad73
}

.vip-particles {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.vip-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f0d19b;
  opacity: .7;
  animation: vip-particle-drift 3s ease-in-out infinite;
  animation-play-state: paused
}

.vip-row.vip-particles-active .vip-particles span {
  animation-play-state: running
}

.vip-particles span:nth-child(1) { left: 2%; top: 32%; animation-delay: -.4s }
.vip-particles span:nth-child(2) { left: 12%; top: -12%; animation-delay: -1.6s }
.vip-particles span:nth-child(3) { left: 29%; top: 5%; animation-delay: -2.1s }
.vip-particles span:nth-child(4) { left: 40%; top: 91%; animation-delay: -.9s }
.vip-particles span:nth-child(5) { left: 59%; top: -15%; animation-delay: -2.6s }
.vip-particles span:nth-child(6) { left: 75%; top: 105%; animation-delay: -1.2s }
.vip-particles span:nth-child(7) { left: 88%; top: 12%; animation-delay: -2.3s }
.vip-particles span:nth-child(8) { left: 98%; top: 79%; animation-delay: -.2s }

.vip-particles span:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: var(--cream)
}

@keyframes vip-particle-drift {
  0%,100% { opacity: .45; transform: translate3d(0,2px,0) scale(.8) }
  50% { opacity: 1; transform: translate3d(2px,-5px,0) scale(1.2) }
}

@media(prefers-reduced-motion:reduce) {
  .vip-particles span {
    animation: none;
    opacity: .75
  }
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  text-align: left
}

.leaderboard thead {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.leaderboard th,.leaderboard td {
  padding: 19px 12px
}

.leaderboard thead th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500
}

.leaderboard tbody tr {
  border-bottom: 1px solid var(--line)
}

.leaderboard tbody th {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere
}

.leaderboard-bot-avatar {
  --avatar-size: 28px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle
}

.leaderboard .is-self {
  background: var(--surface)
}

.rank,.balance {
  font-variant-numeric: tabular-nums
}

.rank {
  width: 70px;
  color: var(--muted)
}

.balance {
  text-align: right;
  white-space: nowrap;
  font-weight: 600
}

.leaderboard thead th:last-child {
  text-align: right
}

.rank-badge,.self-label {
  display: inline-block;
  margin-left: 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent)
}

.rank-badge.is-vip-plus {
  color: var(--vip-plus-accent)
}

.self-label {
  color: var(--muted)
}

.empty-state {
  color: var(--muted)
}

.challenge-flag {
  margin-bottom: 36px;
  padding: 24px 28px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink)
}

.challenge-flag-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.challenge-flag-heading h2 {
  margin: 0;
  font: 400 27px/1.1 "DM Serif Display",serif
}

.challenge-flag-toggle {
  flex: none;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700
}

.challenge-flag-toggle:hover {
  background: var(--ink);
  color: var(--accent)
}

.challenge-flag-toggle:focus-visible {
  outline-color: var(--ink)
}

.challenge-flag-value {
  display: block;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--cream);
  font: 600 clamp(14px,2.2vw,18px)/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
  user-select: all
}

.profile-details {
  margin: 0;
  border-top: 1px solid var(--line)
}

.profile-page {
  --profile-control-height: 46px
}

.profile-page .field input,
.profile-page .profile-name-form .button-primary,
.profile-page .profile-password-form .button-primary {
  height: var(--profile-control-height);
  min-height: var(--profile-control-height)
}

.profile-page .profile-name-form .button-primary,
.profile-page .profile-password-form .button-primary {
  margin-top: 0;
  padding-block: 0
}

.profile-name-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 12px;
  width: min(560px,100%);
  margin-bottom: 36px
}

.profile-name-form .field input {
  font-size: 16px
}

.profile-name-form .form-error {
  grid-column: 1 / -1
}

.profile-details div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line)
}

.profile-details dt {
  color: var(--muted);
  font-size: 13px
}

.profile-details dd {
  margin: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere
}

.profile-detail-link {
  margin-left: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400
}

.profile-detail-link:hover {
  color: var(--cream)
}

.profile-password {
  margin-top: 44px
}

.profile-password h2 {
  margin: 0;
  font: 400 23px/1.2 "DM Serif Display",serif
}

.profile-password-form {
  width: min(720px,100%);
  margin-top: 18px;
  padding-top: 22px;
  grid-template-columns: repeat(2,minmax(0,1fr)) max-content;
  align-items: end;
  gap: 14px
}

.profile-password-form .field input {
  font-size: 16px
}

.profile-password-form .button-primary {
  grid-column: 3;
  grid-row: 1
}

.profile-password-form .form-error,
.profile-password-success {
  grid-column: 1 / -1
}

.profile-password-success {
  margin: 0;
  color: var(--cream);
  font-size: 13px
}

.shop-page {
  width: min(920px,100%);
  --shop-electric: var(--vip-plus-accent);
  --shop-electric-bright: #bdefff;
  --shop-electric-dark: #173745
}

.shop-balance {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap
}

.shop-balance strong {
  margin-left: 12px;
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.shop-error {
  margin: 0 0 28px
}

.shop-offer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: clamp(24px,4vw,48px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.shop-offer-name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0
}

.shop-emblem {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--shop-electric);
  border-radius: 50%;
  background: linear-gradient(150deg,#28566e,var(--shop-electric-dark) 60%);
  color: var(--shop-electric-bright);
  box-shadow: inset 0 1px 0 #d5f5ff70,0 6px 18px #071b2759
}

.shop-emblem::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 1px solid #e3f9ffa8;
  border-radius: 50%;
  transform: rotate(-23deg)
}

.shop-emblem svg {
  width: 24px;
  height: 24px;
  fill: currentColor
}

.shop-offer-name h2 {
  margin: 0;
  color: var(--shop-electric-bright);
  font: 400 33px/1.1 "DM Serif Display",serif;
  letter-spacing: -.025em;
  text-shadow: 0 2px 14px #2abfff5c
}

.shop-offer-name p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.shop-price {
  margin: 0;
  text-align: right;
  white-space: nowrap
}

.shop-price span {
  display: block;
  color: var(--muted);
  font-size: 12px
}

.shop-price strong {
  display: block;
  margin-top: 3px;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums
}

.shop-purchase form {
  margin: 0
}

.shop-purchase .button-primary {
  justify-content: space-between;
  min-width: 174px;
  background: var(--shop-electric)
}

.shop-purchase .button-primary:hover:not(:disabled) {
  background: var(--shop-electric-bright)
}

.shop-purchase .button-primary:disabled {
  background: var(--rail);
  color: var(--muted);
  opacity: 1
}

.shop-shortfall {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5
}

.shop-active {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.shop-sparks {
  position: absolute;
  inset: -20px auto auto -20px;
  width: 270px;
  height: 95px;
  pointer-events: none
}

.shop-sparks span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--shop-electric-bright);
  transform: rotate(45deg);
  box-shadow: 0 2px 7px #46caff85;
  animation: shop-spark 950ms var(--ease) both
}

.shop-sparks span:nth-child(1) { left: 8%; top: 14%; animation-delay: 80ms }
.shop-sparks span:nth-child(2) { left: 29%; top: 2%; animation-delay: 230ms }
.shop-sparks span:nth-child(3) { left: 42%; top: 63%; animation-delay: 110ms }
.shop-sparks span:nth-child(4) { left: 58%; top: 15%; animation-delay: 340ms }
.shop-sparks span:nth-child(5) { left: 75%; top: 69%; animation-delay: 190ms }
.shop-sparks span:nth-child(6) { left: 91%; top: 10%; animation-delay: 400ms }
.shop-sparks span:nth-child(7) { left: 96%; top: 72%; animation-delay: 290ms }

@keyframes shop-spark {
  0% { opacity: .25; scale: .5 }
  45% { opacity: 1; scale: 1.7 }
  100% { opacity: .6; scale: 1 }
}

.shop-offer.is-purchased .shop-offer-name,
.shop-offer.is-purchased .shop-price {
  filter: grayscale(1);
  opacity: .7
}

.shop-offer.is-purchased h2,
.shop-offer.is-purchased .shop-price strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px
}

.shop-download-link {
  margin-top: 26px;
  color: var(--shop-electric)
}

.shop-download-link:hover {
  color: var(--shop-electric-bright)
}

.shop-page a:focus-visible,
.shop-page button:focus-visible,
.vip-plus-dialog a:focus-visible,
.vip-plus-dialog button:focus-visible {
  outline-color: var(--shop-electric-bright)
}

.vip-plus-dialog {
  width: min(480px,calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 40px;
  border: 1px solid var(--shop-electric);
  border-radius: 7px;
  background: var(--surface);
  color: var(--cream);
  text-align: center;
  box-shadow: 0 24px 60px #071924b8;
  overflow: hidden
}

.vip-plus-dialog::backdrop {
  background: #071721c9
}

.vip-plus-dialog-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border: 1px solid var(--shop-electric);
  border-radius: 50%;
  background: linear-gradient(150deg,#28566e,var(--shop-electric-dark) 60%);
  color: var(--shop-electric-bright);
  box-shadow: inset 0 1px 0 #d5f5ff70,0 8px 20px #071b2759
}

.vip-plus-dialog-emblem svg {
  width: 30px;
  height: 30px;
  fill: currentColor
}

.vip-plus-dialog h2 {
  margin: 0;
  color: var(--shop-electric-bright);
  font: 400 39px/1.12 "DM Serif Display",serif;
  letter-spacing: -.025em
}

.vip-plus-dialog p {
  max-width: 36ch;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6
}

.vip-plus-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px
}

.vip-plus-dismiss {
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap
}

.vip-plus-dismiss:hover {
  color: var(--cream)
}

.vip-plus-download {
  min-width: 0;
  padding: 13px 16px;
  background: var(--shop-electric);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap
}

.vip-plus-download:hover {
  background: var(--shop-electric-bright)
}

.vip-plus-particle-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none
}

.vip-plus-particle {
  position: absolute;
  left: 50%;
  top: 73px;
  width: 4px;
  height: 8px;
  border-radius: 1px;
  background: var(--shop-electric);
  opacity: 0
}

.vip-plus-particle:nth-child(3n+2) {
  background: var(--shop-electric-bright)
}

.vip-plus-particle:nth-child(5n) {
  width: 3px;
  height: 3px;
  border-radius: 50%
}

.training-download {
  grid-template-columns: minmax(0,1fr) auto
}

@media(prefers-reduced-motion:reduce) {
  .shop-sparks span {
    animation: none;
    opacity: .6
  }
}

.kyc-page,.table-gate-page {
  width: min(880px,100%)
}

.kyc-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,280px);
  gap: clamp(40px,7vw,100px)
}

.kyc-upload,.kyc-state,.table-gate-content {
  border-top: 1px solid var(--line);
  padding-top: 24px
}

.kyc-upload h2,.kyc-state h2,.table-gate-content h2 {
  margin: 0;
  font: 400 25px/1.2 "DM Serif Display",serif
}

.kyc-warning {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5
}

.kyc-upload .account-form {
  margin-top: 24px;
  padding-top: 24px
}

.kyc-upload .field input[type="file"] {
  padding: 8px 9px;
  color: var(--muted);
  font-size: 13px
}

.kyc-upload .field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: var(--rail);
  color: var(--cream);
  font: inherit;
  cursor: pointer
}

.kyc-upload .field input[type="file"]:hover::file-selector-button {
  background: var(--felt)
}

.kyc-status {
  display: inline-block;
  margin: 24px 0 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 600
}

.kyc-status[data-kyc-status="approved"] {
  border-color: var(--accent);
  color: var(--accent)
}

.kyc-explanation,.table-gate-content p {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65
}

.kyc-pending-word,.kyc-approved-word {
  color: var(--accent);
  font-weight: 700
}

.kyc-stored {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid #719674;
  border-radius: 5px;
  background: #344038;
  color: #c7e0bd;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere
}

.kyc-state>.text-link {
  margin-top: 28px
}

.table-gate-content {
  max-width: 550px
}

.table-gate-action {
  width: fit-content;
  margin-top: 28px;
  text-decoration: none
}

@media(max-width:820px) {
  .auth-layout {
    display: block;
    width: min(500px,100%);
    min-height: auto;
    padding-top: 64px
  }
  .auth-table {
    display: none
  }
  .table-summary {
    gap: 16px
  }
  .table-preview {
    flex-basis: clamp(64px,12vw,98px);
    height: clamp(44px,7vw,60px)
  }
  .kyc-layout {
    grid-template-columns: 1fr;
    gap: 44px
  }
}
@media(max-width:700px) {
  .profile-password-form {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .profile-password-form .button-primary {
    grid-column: 2;
    grid-row: auto
  }
  .shop-offer {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 22px 30px
  }
  .shop-purchase {
    grid-column: 1 / -1
  }
  .shop-purchase .button-primary {
    width: 100%
  }
}
@media(max-width:480px) {
  .auth-layout,.account-page {
    padding: 48px 20px 64px
  }
  .page-heading {
    display: block;
    margin-bottom: 28px
  }
  .page-heading .text-link {
    margin-top: 20px
  }
  .challenge-flag {
    padding: 20px
  }
  .challenge-flag-value {
    padding-inline: 12px;
    font-size: 13px
  }
  .profile-name-form {
    grid-template-columns: 1fr
  }
  .profile-name-form .button-primary {
    justify-content: space-between
  }
  .profile-password-form {
    grid-template-columns: 1fr
  }
  .profile-password-form .button-primary {
    grid-column: 1
  }
  .shop-balance {
    margin-top: 18px
  }
  .shop-offer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0
  }
  .shop-sparks {
    width: 235px
  }
  .shop-emblem {
    width: 48px;
    height: 48px
  }
  .shop-offer-name h2 {
    font-size: 30px
  }
  .shop-price {
    text-align: left
  }
  .shop-purchase {
    grid-column: auto
  }
  .vip-plus-dialog {
    padding: 32px 24px 26px
  }
  .vip-plus-dialog h2 {
    font-size: 34px
  }
  .vip-plus-dialog-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px
  }
  .vip-plus-download {
    width: 100%
  }
  .lobby-account {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 20px
  }
  .bonus-dialog {
    padding: 26px 24px
  }
  .bonus-confetti-credit {
    font-size: 28px
  }
  .vip-dialog {
    padding: 32px 24px 28px
  }
  .vip-dialog h2 {
    font-size: 34px
  }
  .admin-dialog {
    padding: 32px 22px 28px
  }
  .admin-dialog h2 {
    font-size: 32px
  }
  .admin-flag {
    width: 19ch;
    padding-inline: 8px;
    font-size: 14px
  }
  .table-preview {
    display: none
  }
  .vip-particles span:nth-child(1) { left: 5%; top: -55% }
  .vip-particles span:nth-child(2) { left: 26%; top: -42% }
  .vip-particles span:nth-child(3) { left: 60%; top: -60% }
  .vip-particles span:nth-child(4) { left: 91%; top: -45% }
  .vip-particles span:nth-child(5) { left: 12%; top: 145% }
  .vip-particles span:nth-child(6) { left: 43%; top: 160% }
  .vip-particles span:nth-child(7) { left: 76%; top: 145% }
  .vip-particles span:nth-child(8) { left: 98%; top: 155% }
  .table-name {
    font-size: 20px
  }
  .table-summary {
    gap: 8px
  }
  .table-entry-arrow {
    width: 14px;
    height: 14px
  }
  .table-menu th:first-child {
    width: 46%
  }
  .table-menu thead th {
    padding: 14px 7px;
    font-size: 11px
  }
  .table-menu tbody th,.table-menu tbody td {
    padding: 23px 7px;
    font-size: 13px
  }
  .table-menu tbody th:first-child {
    padding-left: 0
  }
  .table-menu .table-buy-in {
    font-size: 15px
  }
  .leaderboard th,.leaderboard td {
    padding: 16px 7px
  }
  .leaderboard tbody th {
    font-size: 13px
  }
  .rank {
    width: 42px
  }
  .rank-badge,.self-label {
    margin-left: 6px
  }
  .kyc-upload h2,.kyc-state h2,.table-gate-content h2 {
    font-size: 23px
  }
}

@media(min-width:1600px) {
  .profile-page {
    --profile-control-height: clamp(46px,3vw,62px)
  }
  .auth-layout {
    width: min(1660px,100%);
    min-height: calc(100dvh - clamp(88px,6vh,124px));
    padding-block: clamp(72px,6vh,140px);
    grid-template-columns: minmax(0,500px) minmax(0,1fr);
    gap: clamp(100px,7vw,180px)
  }

  .auth-content h1,.page-heading h1 {
    font-size: clamp(48px,2.6vw,72px)
  }

  .auth-table {
    padding: clamp(16px,.9vw,28px)
  }

  .auth-wordmark {
    font-size: clamp(42px,2.5vw,74px)
  }

  .auth-deck img {
    width: clamp(112px,5vw,180px)
  }

  .account-page {
    width: min(1380px,100%);
    padding-block: clamp(72px,6vh,140px)
  }

  .lobby-page {
    width: min(1850px,100%)
  }

  .shop-page,.kyc-page,.table-gate-page {
    width: min(1260px,100%)
  }

  .page-heading {
    margin-bottom: clamp(40px,2.5vw,70px)
  }

  .field label {
    font-size: clamp(12px,.75vw,17px)
  }

  .field input {
    min-height: clamp(46px,3vw,62px);
    font-size: clamp(14px,.85vw,18px)
  }

  .account-form,.auth-switch,.text-link,
  .lobby-balance,.bonus-open,.shop-balance {
    font-size: clamp(13px,.85vw,18px)
  }

  .account-form .button-primary {
    min-height: clamp(49px,3vw,64px);
    font-size: clamp(13px,.85vw,18px)
  }

  .lobby-balance strong,.shop-balance strong {
    font-size: clamp(18px,1.15vw,27px)
  }

  .table-menu thead th {
    padding-block: clamp(16px,1vw,27px);
    font-size: clamp(12px,.75vw,17px)
  }

  .table-menu tbody th,.table-menu tbody td {
    padding-block: clamp(25px,1.4vw,44px);
    font-size: clamp(14px,.9vw,20px)
  }

  .table-name {
    font-size: clamp(23px,1.45vw,36px)
  }

  .table-summary {
    gap: clamp(25px,1.6vw,40px)
  }

  .table-preview {
    flex-basis: clamp(110px,8vw,180px);
    height: clamp(66px,4.7vw,104px)
  }

  .table-preview-cards img {
    width: clamp(16px,1.2vw,26px);
    height: auto;
    aspect-ratio: 16 / 23
  }

  .table-menu .table-buy-in {
    font-size: clamp(16px,1.05vw,24px)
  }

  .table-player .bot-avatar {
    --avatar-size: clamp(30px,1.7vw,50px)
  }

  .leaderboard th,.leaderboard td {
    padding-block: clamp(19px,1.4vw,38px)
  }

  .leaderboard thead th,.rank-badge,.self-label {
    font-size: clamp(11px,.7vw,16px)
  }

  .leaderboard tbody th,.profile-details dd {
    font-size: clamp(15px,.95vw,21px)
  }

  .leaderboard-bot-avatar {
    --avatar-size: clamp(28px,1.5vw,45px)
  }

  .profile-details dt,.shop-offer-name p,.shop-price span,
  .kyc-explanation,.table-gate-content p {
    font-size: clamp(13px,.8vw,18px)
  }

  .shop-offer-name h2 {
    font-size: clamp(33px,1.8vw,48px)
  }

  .shop-price strong {
    font-size: clamp(21px,1.3vw,31px)
  }
}

@media(min-width:2400px) and (min-height:1500px) {
  .lobby-page {
    min-height: calc(100dvh - clamp(88px,6vh,124px));
    display: flex;
    flex-direction: column;
    justify-content: center
  }
}
