:root {
  color-scheme: light;
  --bg: #f4f5f0;
  --surface: #ffffff;
  --surface-soft: #eef5f7;
  --ink: #1d2329;
  --muted: #647079;
  --line: #d8dedf;
  --teal: #187e7f;
  --mint: #d9f4e5;
  --coral: #e35d4f;
  --gold: #d69a19;
  --violet: #6853ad;
  --page-black: #03070b;
  --metallic-blue:
    linear-gradient(145deg, #d9f7ff 0%, #7ed8ff 12%, #268df4 38%, #0b47bd 64%, #07215e 100%);
  --metallic-blue-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 18px rgba(0, 14, 70, 0.38),
    0 7px 18px rgba(20, 104, 255, 0.28);
  --shadow: 0 18px 48px rgba(32, 43, 52, 0.14);
  --radius: 8px;
  --mobile-keyboard-offset: 0px;
  --mobile-keyboard-viewport-height: 100svh;
  --mobile-chat-lift: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page-black);
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-black);
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(94, 163, 255, 0.2);
  background:
    radial-gradient(circle at 12% 0%, rgba(46, 119, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(5, 12, 21, 0.97), rgba(3, 7, 11, 0.94));
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 158, 255, 0.28), transparent 60%),
    transparent;
  filter: drop-shadow(0 8px 13px rgba(17, 79, 180, 0.24));
}

.brand-mark::after {
  content: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.82),
    0 0 18px rgba(30, 104, 255, 0.28);
}

.brand-lockup h1,
.market-toolbar h2,
.drawer-header h2 {
  margin: 0;
  line-height: 1.05;
}

.brand-lockup h1 {
  font-size: 1.1rem;
  color: #f7fbff;
}

.brand-lockup p,
.market-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-header .brand-lockup p {
  color: rgba(214, 233, 255, 0.78);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px;
  background: transparent;
  box-shadow: none;
}

.top-nav a,
.top-nav button {
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(219, 236, 255, 0.82);
  padding: 8px 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.top-nav a[aria-current="page"],
.top-nav button[aria-current="page"] {
  background: var(--metallic-blue);
  color: #fff;
  box-shadow: var(--metallic-blue-shadow);
  text-shadow: 0 1px 2px rgba(0, 16, 64, 0.55);
}

.top-nav a[aria-disabled="true"],
.top-nav button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-button,
.account-button,
.settings-button,
.primary-action,
.secondary-action,
.icon-button,
.segmented-control button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

.credits-button,
.account-button,
.primary-action {
  background: var(--teal);
  color: #fff;
  padding: 0 16px;
}

.credits-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 118px;
  padding: 0 8px;
  border-color: rgba(24, 126, 127, 0.16);
  background: transparent;
  color: var(--ink);
  text-align: center;
  line-height: 1.05;
}

.app-header .credits-button,
.app-header .account-button,
.app-header .settings-button {
  border-color: transparent;
  color: #f4faff;
}

.app-header .credits-button,
.app-header .account-button {
  background: transparent;
}

.app-header .currency-amount,
.app-header .account-name {
  color: #f4faff;
}

.app-header .settings-button {
  background-color: transparent;
  filter: drop-shadow(0 0 8px rgba(64, 164, 255, 0.18));
}

.app-header .settings-button:hover,
.app-header .settings-button:focus-visible {
  border-color: transparent;
}

.currency-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 1000;
  line-height: 1;
}

.currency-amount img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(29, 35, 41, 0.2));
  pointer-events: none;
}

.currency-amount strong {
  font: inherit;
  letter-spacing: 0;
}

.account-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  border-color: rgba(24, 126, 127, 0.14);
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}

.account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-button {
  display: grid;
  width: 38px;
  min-width: 38px;
  place-items: center;
  border-color: rgba(24, 126, 127, 0.14);
  background: transparent url("assets/Icons/Settings.png") center / 24px 24px no-repeat;
  color: var(--ink);
  padding: 0;
  font-size: 0;
}

.settings-button::before {
  content: none;
}

.mobile-game-settings-button {
  background: transparent url("assets/Icons/Settings.png") center / 24px 24px no-repeat;
  font-size: 0;
}

.settings-button:hover,
.settings-button:focus-visible {
  border-color: transparent;
  outline: 0;
}

.credits-button:disabled,
.account-button:disabled,
.settings-button:disabled,
.primary-action:disabled,
.secondary-action:disabled,
.icon-button:disabled,
.segmented-control button:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.primary-action:disabled {
  background: #8eaeb0;
}

.secondary-action:disabled {
  background: #f3f5f4;
  color: var(--muted);
}

.credits-button.connected,
.account-button.connected {
  background: transparent;
  color: var(--ink);
}

.app-header .credits-button.connected,
.app-header .account-button.connected {
  color: #f4faff;
}

.player-avatar {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(135deg, var(--avatar-start), var(--avatar-end));
  color: var(--avatar-ink);
  font-size: 0.88rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow:
    inset 0 -2px 5px rgba(29, 35, 41, 0.18),
    0 2px 8px rgba(29, 35, 41, 0.14);
  overflow: hidden;
}

.player-avatar img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(29, 35, 41, 0.24));
  pointer-events: none;
}

.account-avatar {
  width: 24px;
  font-size: 0.72rem;
}

.market-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 22px clamp(16px, 3vw, 36px) 36px;
}

.app-page[hidden] {
  display: none;
}

.preview-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 72px);
  padding: 22px clamp(16px, 3vw, 36px) 36px;
}

.preview-controls-panel,
.preview-stage {
  min-width: 0;
}

.preview-controls-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(36, 50, 58, 0.06);
}

.preview-control-header,
.preview-form,
.preview-details {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-control-header h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.preview-form {
  display: grid;
  gap: 10px;
}

.preview-submit {
  margin-top: 4px;
}

.preview-details {
  margin: 0;
  border-bottom: 0;
}

.preview-details div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(216, 222, 223, 0.75);
}

.preview-details div:last-child {
  border-bottom: 0;
}

.preview-stage {
  display: grid;
  min-height: 620px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(238, 245, 247, 0.72)),
    repeating-linear-gradient(45deg, rgba(24, 126, 127, 0.05) 0 12px, transparent 12px 24px);
}

.preview-card-slot {
  display: grid;
  width: min(360px, 86vw);
  place-items: center;
}

.preview-card-slot .bingo-card {
  width: 100%;
}

.leaderboard-shell {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 72px);
  padding: 22px clamp(16px, 3vw, 36px) 36px;
}

.leaderboard-hero,
.leaderboard-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(36, 50, 58, 0.07);
}

.leaderboard-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 8% 18%, rgba(214, 154, 25, 0.18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(48, 213, 200, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 248, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.leaderboard-hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.leaderboard-hero h2,
.leaderboard-panel h3 {
  margin: 4px 0 0;
  line-height: 1.08;
}

.leaderboard-hero h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.leaderboard-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.leaderboard-season-card {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 190px;
  border: 1px solid rgba(24, 126, 127, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 20%, rgba(214, 154, 25, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(217, 244, 229, 0.92), rgba(255, 248, 222, 0.84)),
    #fff;
  padding: 14px 16px;
}

.leaderboard-season-card span,
.leaderboard-season-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-season-card strong {
  color: var(--ink);
  font-size: 1.36rem;
  line-height: 1.1;
}

.leaderboard-season-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.leaderboard-season-stats span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal);
  padding: 4px 7px;
  font-size: 0.66rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.leaderboard-panel {
  overflow: hidden;
}

.leaderboard-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 250, 0.82));
  padding: 14px 16px;
}

.leaderboard-chip {
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.11);
  color: var(--teal);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.leaderboard-list,
.leaderboard-side {
  display: grid;
  gap: 12px;
}

.leaderboard-list {
  padding: 12px;
}

.leaderboard-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: rgba(24, 126, 127, 0.07);
  color: var(--ink);
  padding: 10px 12px;
}

.leaderboard-list-header strong,
.leaderboard-list-header small {
  display: block;
}

.leaderboard-list-header small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 12px 6px;
}

.leaderboard-podium-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  justify-items: center;
  border: 1px solid rgba(216, 222, 223, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 250, 0.92));
  padding: 26px 10px 12px;
  text-align: center;
}

.leaderboard-podium-card.first {
  border-color: rgba(214, 154, 25, 0.56);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 209, 102, 0.32), transparent 40%),
    linear-gradient(180deg, rgba(255, 248, 222, 0.96), rgba(255, 255, 255, 0.94));
  transform: translateY(-4px);
}

.leaderboard-podium-card.second {
  border-color: rgba(51, 199, 255, 0.34);
}

.leaderboard-podium-card.third {
  border-color: rgba(255, 122, 69, 0.34);
}

.leaderboard-medal {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 1000;
}

.leaderboard-podium-card.first .leaderboard-medal {
  background: var(--gold);
  color: #25130b;
}

.leaderboard-podium-card.second .leaderboard-medal {
  background: #86d9f0;
  color: #102019;
}

.leaderboard-podium-card.third .leaderboard-medal {
  background: #e6a16c;
  color: #25130b;
}

.leaderboard-podium-card .leaderboard-avatar {
  width: 44px;
  box-shadow: 0 8px 16px rgba(36, 50, 58, 0.14);
}

.leaderboard-podium-card strong,
.leaderboard-podium-card small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-podium-card strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.leaderboard-podium-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(96px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(216, 222, 223, 0.88);
  border-radius: 12px;
  background: rgba(251, 252, 251, 0.92);
  padding: 12px;
}

.leaderboard-row.top {
  border-color: rgba(214, 154, 25, 0.48);
  background:
    radial-gradient(circle at 95% 18%, rgba(255, 209, 102, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 248, 222, 0.95), rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow: inset 4px 0 0 var(--gold);
}

.leaderboard-rank {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 1000;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-avatar {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #30d5c8, #6853ad);
  color: #fff;
  font-weight: 1000;
}

.leaderboard-avatar.ember {
  background: linear-gradient(135deg, #ff7a45, #d69a19);
  color: #25130b;
}

.leaderboard-avatar.lagoon {
  background: linear-gradient(135deg, #33c7ff, #187e7f);
}

.leaderboard-avatar.violet {
  background: linear-gradient(135deg, #a978ff, #4d3a91);
}

.leaderboard-avatar.gold {
  background: linear-gradient(135deg, #ffd166, #b7791f);
  color: #25130b;
}

.leaderboard-player strong,
.leaderboard-player small {
  display: block;
  min-width: 0;
}

.leaderboard-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.leaderboard-score {
  display: grid;
  justify-items: end;
  color: var(--teal);
  white-space: nowrap;
}

.leaderboard-score strong {
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.05;
}

.leaderboard-score small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-room-list,
.leaderboard-jackpot-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.leaderboard-room-list div,
.leaderboard-jackpot-list div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(216, 222, 223, 0.88);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 250, 0.9));
  padding: 11px 12px;
}

.leaderboard-room-list dt,
.leaderboard-room-list dd {
  margin: 0;
}

.leaderboard-room-list dt,
.leaderboard-jackpot-list span,
.leaderboard-room-list small,
.leaderboard-jackpot-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-room-list dd,
.leaderboard-jackpot-list strong {
  color: var(--ink);
  font-weight: 1000;
}

.leaderboard-jackpot-list strong {
  color: var(--gold);
  font-size: 1.14rem;
}

.leaderboard-empty {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(119, 132, 137, 0.34);
  border-radius: 12px;
  background: rgba(247, 250, 250, 0.74);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.game-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 72px);
  padding: 22px clamp(16px, 3vw, 36px) 36px;
}

.mobile-game-stepbar,
.mobile-card-confirm,
.mobile-game-meta-bar {
  display: none;
}

.mobile-game-resize-button {
  display: none;
}

.game-setup-panel,
.game-stage {
  min-width: 0;
}

.game-setup-panel {
  align-self: start;
  border: 1px solid rgba(111, 184, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, rgba(38, 141, 244, 0.16), transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(79, 216, 255, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(6, 13, 22, 0.97), rgba(3, 7, 11, 0.98));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-control-header,
.custom-room-panel,
.game-table-tabs,
.game-join-block,
.game-picker-block,
.game-start-actions,
.game-prize-table {
  padding: 16px;
  border-bottom: 1px solid rgba(111, 184, 255, 0.16);
}

.game-control-header h2,
.game-toolbar h2 {
  margin: 4px 0 0;
  line-height: 1.1;
}

.game-setup-panel .eyebrow,
.game-setup-panel .field-label {
  color: rgba(214, 233, 255, 0.74);
}

.game-control-header h2,
.game-selection-header,
.game-status-note {
  color: #f7fbff;
}

.game-join-block {
  display: grid;
  gap: 10px;
}

.room-launchers {
  display: grid;
  gap: 14px;
  padding: 12px 16px 18px;
}

.room-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 168px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(54, 172, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(7, 16, 28, 0.42), rgba(1, 5, 10, 0.68));
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  padding: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.room-launcher::before {
  content: "";
  position: absolute;
  inset: 14px 22px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(83, 209, 255, 0.24), transparent 64%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -1;
}

.room-launcher img {
  display: block;
  width: min(100%, 252px);
  max-height: 180px;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(0);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.42));
}

.room-launcher span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.room-launcher:hover,
.room-launcher:focus-visible {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-2px) scale(1.015);
  outline: none;
}

.room-launcher:focus-visible {
  box-shadow:
    0 0 0 3px rgba(126, 216, 255, 0.36),
    0 16px 34px rgba(0, 0, 0, 0.38);
}

.room-launcher-live img {
  width: min(100%, 246px);
}

.room-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.room-panel-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 0px) + 12px);
  right: max(18px, env(safe-area-inset-right, 0px) + 12px);
  z-index: 2502;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.room-panel-close img {
  width: 32px;
  height: 32px;
}

body.room-panel-modal-open {
  overflow: hidden;
}

.custom-room-panel {
  display: grid;
  gap: 12px;
  margin: 12px;
  border: 1px solid rgba(160, 142, 255, 0.38);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 10%, rgba(104, 83, 173, 0.3), transparent 36%),
    linear-gradient(135deg, rgba(12, 20, 36, 0.96), rgba(5, 10, 18, 0.94));
  padding: 14px;
  color: #f7fbff;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 4px 0 0 rgba(160, 142, 255, 0.58);
}

.custom-room-panel + .game-table-tabs {
  padding-top: 0;
}

.custom-room-header,
.custom-room-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.custom-room-header strong {
  display: block;
  margin-top: 2px;
}

.custom-room-tv-link {
  flex: 0 0 auto;
  border: 1px solid rgba(126, 216, 255, 0.28);
  border-radius: 999px;
  color: #9ee9ff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 7px 10px;
  text-decoration: none;
}

.custom-room-join-form {
  display: grid;
  gap: 8px;
}

.custom-room-code-row .text-input {
  min-width: 0;
  text-transform: uppercase;
}

.custom-room-code-row .secondary-action {
  min-width: 118px;
  justify-content: center;
}

.custom-room-code-row .text-input.readonly {
  background: rgba(217, 244, 229, 0.58);
  color: var(--teal);
  font-weight: 900;
}

.custom-room-create,
.custom-room-find {
  border: 1px solid rgba(126, 216, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.custom-room-create summary,
.custom-room-find summary {
  cursor: pointer;
  font-weight: 900;
}

.custom-room-submit {
  min-height: 34px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.custom-room-submit:hover,
.custom-room-submit:focus-visible {
  background: #147778;
  color: #fff;
}

.custom-room-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.custom-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.custom-room-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-room-wide-field {
  grid-column: 1 / -1;
}

.custom-room-start-field {
  position: relative;
  display: grid;
  gap: 6px;
}

.date-picker-trigger {
  appearance: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(24, 126, 127, 0.26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 12%, rgba(214, 154, 25, 0.16), transparent 36%),
    linear-gradient(135deg, #ffffff, rgba(239, 250, 248, 0.95));
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  border-color: rgba(24, 126, 127, 0.58);
  box-shadow: 0 10px 22px rgba(24, 126, 127, 0.09);
  outline: 0;
}

.calendar-glyph {
  position: relative;
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 8px 0 rgba(24, 126, 127, 0.14);
}

.calendar-glyph::before,
.calendar-glyph::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

.calendar-glyph::before {
  left: 9px;
}

.calendar-glyph::after {
  right: 9px;
}

.calendar-glyph span {
  display: grid;
  width: 18px;
  height: 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.calendar-glyph span::before,
.calendar-glyph span::after {
  content: "";
  border-radius: 3px;
  background: rgba(24, 126, 127, 0.28);
  box-shadow:
    0 9px 0 rgba(24, 126, 127, 0.18),
    9px 9px 0 rgba(24, 126, 127, 0.18);
}

.date-picker-trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.date-picker-trigger-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker-trigger-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-picker-popover {
  position: static;
  z-index: 130;
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(24, 126, 127, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 45px rgba(36, 50, 58, 0.2);
  padding: 14px;
  text-transform: none;
}

.date-picker-popover[hidden] {
  display: none;
}

.date-picker-popover-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.date-picker-popover-header strong,
.date-picker-popover-header small {
  display: block;
}

.date-picker-popover-header strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.date-picker-popover-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.date-picker-close {
  appearance: none;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(227, 93, 79, 0.28);
  border-radius: 9px;
  background: rgba(255, 234, 230, 0.96);
  color: #b63326;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 1000;
  cursor: pointer;
}

.ui-icon-img,
.date-picker-close img,
.mobile-battlepass-close img,
.icon-button img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  pointer-events: none;
}

.date-picker-close:hover,
.date-picker-close:focus-visible {
  background: #e35d4f;
  color: #fff;
  outline: 0;
}

.date-picker-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.date-picker-quick-actions button {
  appearance: none;
  min-height: 34px;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: 999px;
  background: rgba(247, 250, 250, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.date-picker-quick-actions button:hover,
.date-picker-quick-actions button:focus-visible {
  border-color: rgba(24, 126, 127, 0.48);
  color: var(--teal);
  outline: 0;
}

.date-picker-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px;
}

.date-picker-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-picker-footer {
  display: grid;
  gap: 10px;
}

.date-picker-footer small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.date-picker-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.date-picker-actions .primary-action,
.date-picker-actions .secondary-action {
  min-height: 36px;
  border-radius: 999px;
}

.custom-room-find-body {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.custom-room-find-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.custom-room-find-row {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(216, 222, 223, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.custom-room-find-row:hover,
.custom-room-find-row:focus-visible {
  border-color: rgba(24, 126, 127, 0.45);
  outline: 0;
}

.custom-room-find-row span:first-child {
  display: grid;
  min-width: 0;
}

.custom-room-find-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.custom-room-find-row small,
.custom-room-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.custom-room-find-code {
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.08);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  padding: 5px 8px;
}

.custom-room-find-host {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-room-game-mode {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.custom-room-game-mode legend {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-mode-toggle label {
  position: relative;
  display: grid;
  min-height: 54px;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 10px 10px 34px;
}

.game-mode-toggle input {
  position: absolute;
  top: 15px;
  left: 12px;
  accent-color: var(--teal);
}

.game-mode-toggle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.game-mode-toggle strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-mode-toggle small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-mode-toggle label:has(input:checked) {
  border-color: rgba(24, 126, 127, 0.58);
  background:
    radial-gradient(circle at 92% 12%, rgba(214, 154, 25, 0.12), transparent 32%),
    rgba(239, 250, 248, 0.96);
  box-shadow: inset 4px 0 0 var(--teal);
}

.game-mode-toggle label:has(input:focus-visible) {
  outline: 2px solid rgba(24, 126, 127, 0.28);
  outline-offset: 2px;
}

.game-mode-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(216, 222, 223, 0.82);
  border-radius: 12px;
  background: rgba(247, 250, 250, 0.84);
  padding: 10px;
}

.game-mode-panel[hidden] {
  display: none;
}

.game-mode-prize-grid {
  gap: 8px;
}

.custom-room-patterns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-room-patterns label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.custom-room-status {
  color: rgba(214, 233, 255, 0.74);
  font-weight: 800;
  line-height: 1.35;
}

.game-table-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  overflow: visible;
  padding: 12px;
  transition: padding 180ms ease, gap 180ms ease;
}

.game-table-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: start;
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 10%, rgba(214, 154, 25, 0.13), transparent 34%),
    #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.game-table-button strong,
.game-table-button small {
  display: block;
}

.game-table-button > strong {
  font-size: 1.08rem;
}

.game-table-button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.game-table-button > small {
  justify-self: end;
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.08);
  color: var(--teal);
  padding: 4px 9px;
  text-align: right;
}

.game-table-button.active {
  border-color: rgba(24, 126, 127, 0.55);
  box-shadow: inset 4px 0 0 var(--teal);
}

.game-table-button.joined strong::after {
  content: " Joined";
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.game-table-button.countdown {
  background: linear-gradient(135deg, rgba(214, 154, 25, 0.12), #fff);
}

.game-table-button.custom-room {
  border-color: rgba(104, 83, 173, 0.26);
  background:
    radial-gradient(circle at 90% 10%, rgba(104, 83, 173, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 248, 0.94));
}

.game-table-button.table-theme-fiesta {
  border-color: rgba(217, 164, 35, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 252, 238, 0.7), rgba(255, 255, 255, 0.56)),
    url("assets/fiesta-table-1-scene.svg") center center / cover no-repeat,
    #fff8df;
}

.game-table-button.table-theme-beach {
  border-color: rgba(0, 167, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(242, 253, 255, 0.68), rgba(255, 255, 255, 0.55)),
    url("assets/beach-table-2-scene.svg") center center / cover no-repeat,
    #e9fbff;
}

.game-table-button.table-theme-halloween {
  border-color: rgba(122, 44, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 246, 236, 0.62), rgba(255, 255, 255, 0.52)),
    url("assets/halloween-table-3-scene.svg") center center / cover no-repeat,
    #fbecff;
}

.game-table-button.table-theme-fiesta > small,
.game-table-button.table-theme-beach > small,
.game-table-button.table-theme-halloween > small {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.game-table-button.table-theme-fiesta .game-room-metric,
.game-table-button.table-theme-beach .game-room-metric,
.game-table-button.table-theme-halloween .game-room-metric {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
}

.game-room-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.custom-room-summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-room-metric {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(216, 222, 223, 0.82);
  border-radius: 8px;
  background: rgba(247, 250, 250, 0.86);
  padding: 8px;
}

.game-room-metric-icon {
  display: none;
}

.game-room-metric small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-room-metric strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.game-room-cta {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room) {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  min-height: 364px;
  overflow: hidden;
  border: 2px solid rgba(255, 193, 34, 0.94);
  border-radius: 24px;
  background:
    radial-gradient(circle at 5% 82%, rgba(245, 42, 49, 0.32), transparent 11%),
    radial-gradient(circle at 18% 84%, rgba(24, 150, 255, 0.34), transparent 12%),
    radial-gradient(circle at 89% 83%, rgba(42, 205, 74, 0.3), transparent 12%),
    radial-gradient(circle at 96% 78%, rgba(180, 80, 255, 0.34), transparent 13%),
    linear-gradient(180deg, rgba(82, 31, 128, 0.98) 0 31%, transparent 31%),
    linear-gradient(180deg, rgba(255, 238, 168, 0.82), rgba(255, 250, 213, 0.92) 38%, rgba(93, 181, 137, 0.44) 100%),
    url("assets/fiesta-table-1-scene.svg") center center / cover no-repeat,
    #ffed96;
  color: #2c0e43;
  padding: 16px 16px 18px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.35),
    inset 0 0 0 5px rgba(124, 33, 176, 0.78),
    inset 0 0 0 9px rgba(255, 205, 41, 0.78);
}

.game-shell.room-panel-live-open .game-table-button.table-theme-beach:not(.custom-room) {
  background:
    radial-gradient(circle at 5% 82%, rgba(245, 42, 49, 0.32), transparent 11%),
    radial-gradient(circle at 18% 84%, rgba(24, 150, 255, 0.34), transparent 12%),
    radial-gradient(circle at 89% 83%, rgba(42, 205, 74, 0.3), transparent 12%),
    radial-gradient(circle at 96% 78%, rgba(180, 80, 255, 0.34), transparent 13%),
    linear-gradient(180deg, rgba(55, 34, 135, 0.98) 0 31%, transparent 31%),
    linear-gradient(180deg, rgba(255, 238, 168, 0.78), rgba(234, 255, 255, 0.9) 38%, rgba(68, 204, 233, 0.38) 100%),
    url("assets/beach-table-2-scene.svg") center center / cover no-repeat,
    #dff9ff;
}

.game-shell.room-panel-live-open .game-table-button.table-theme-halloween:not(.custom-room) {
  background:
    radial-gradient(circle at 5% 82%, rgba(245, 42, 49, 0.32), transparent 11%),
    radial-gradient(circle at 18% 84%, rgba(24, 150, 255, 0.34), transparent 12%),
    radial-gradient(circle at 89% 83%, rgba(42, 205, 74, 0.3), transparent 12%),
    radial-gradient(circle at 96% 78%, rgba(180, 80, 255, 0.34), transparent 13%),
    linear-gradient(180deg, rgba(83, 30, 133, 0.98) 0 31%, transparent 31%),
    linear-gradient(180deg, rgba(255, 221, 158, 0.78), rgba(255, 240, 232, 0.9) 38%, rgba(126, 76, 205, 0.38) 100%),
    url("assets/halloween-table-3-scene.svg") center center / cover no-repeat,
    #fbecff;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room)::before,
.game-shell.room-panel-live-open .game-table-button:not(.custom-room)::after {
  content: "★";
  position: absolute;
  top: 23px;
  color: #ffd82d;
  font-size: 2.1rem;
  line-height: 1;
  text-shadow:
    0 2px 0 #9b4b00,
    0 0 12px rgba(255, 255, 255, 0.84);
  pointer-events: none;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room)::before {
  left: 18px;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room)::after {
  right: 18px;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room) > strong {
  grid-column: 1 / -1;
  z-index: 1;
  justify-self: center;
  max-width: calc(100% - 82px);
  overflow: visible;
  color: #fff8ff;
  font-size: clamp(1.2rem, 6vw, 1.86rem);
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #321246,
    0 6px 0 rgba(0, 0, 0, 0.2);
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room) > strong::first-letter {
  color: inherit;
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room) > small {
  grid-column: 1 / -1;
  z-index: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 2px solid rgba(255, 191, 36, 0.94);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(112, 45, 172, 0.98), rgba(58, 22, 112, 0.98));
  color: #fff9ff;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
  box-shadow:
    0 4px 0 rgba(76, 24, 100, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.game-shell.room-panel-live-open .game-table-button:not(.custom-room) > small::before {
  content: "⏰";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff1cf;
  box-shadow:
    inset 0 0 0 2px rgba(255, 190, 45, 0.95),
    0 2px 0 rgba(0, 0, 0, 0.18);
  color: #30104a;
  font-size: 1rem;
  text-shadow: none;
}

.game-shell.room-panel-live-open .game-room-metrics {
  z-index: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.game-shell.room-panel-live-open .game-room-metric {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  min-height: 82px;
  border: 2px solid rgba(244, 150, 0, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 222, 0.96), rgba(255, 236, 144, 0.96));
  padding: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.52),
    0 4px 0 rgba(164, 82, 0, 0.24);
}

.game-shell.room-panel-live-open .game-room-metric-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(135deg, #7442ff, #f448d6);
  box-shadow:
    inset 0 0 0 2px rgba(255, 229, 111, 0.62),
    0 3px 0 rgba(48, 13, 73, 0.32);
  font-size: 1.45rem;
}

.game-shell.room-panel-live-open .game-room-metric small {
  color: #4d1b5c;
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1;
}

.game-shell.room-panel-live-open .game-room-metric strong {
  color: #2d0f44;
  font-size: clamp(1.2rem, 5.2vw, 2.05rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
}

.game-shell.room-panel-live-open .game-room-cta {
  z-index: 1;
  min-height: 56px;
  border: 2px solid rgba(255, 233, 88, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #44db48, #099b13 52%, #08780f);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 69, 10, 0.62);
  box-shadow:
    0 5px 0 rgba(31, 112, 0, 0.72),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 0 22px rgba(87, 255, 70, 0.32);
}

.game-shell.room-panel-live-open .game-room-cta::before,
.game-shell.room-panel-live-open .game-room-cta::after {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 14px;
  border-radius: 50%;
  background: #ffbd26;
  color: #fff;
  font-size: 1.9rem;
  line-height: 0.8;
  text-shadow: 0 2px 0 rgba(132, 78, 0, 0.52);
}

.game-shell.room-panel-live-open .game-room-cta::before {
  transform: rotate(180deg);
}

.game-shell.room-panel-live-open .game-table-button.room-banner-table-1:not(.custom-room) {
  --live-room-banner: url("assets/Stickers/ROOM-1%20banner.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.room-banner-table-2:not(.custom-room) {
  --live-room-banner: url("assets/Stickers/ROOM-2%20banner.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.room-banner-table-3:not(.custom-room) {
  --live-room-banner: url("assets/Stickers/ROOM-3%20banner.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) {
  position: relative;
  display: block;
  aspect-ratio: 1574 / 999;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(14px, 4vw, 24px);
  background: var(--live-room-banner) center center / 100% 100% no-repeat;
  box-shadow: none;
  color: #2c123f;
  padding: 0;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room)::before,
.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room)::after,
.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) > strong,
.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) > small,
.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-cta {
  display: none;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metrics {
  position: absolute;
  top: 34%;
  right: 14%;
  left: 14%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.5vw, 12px);
  height: 34%;
  margin: 0;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric {
  display: grid;
  grid-template-columns: clamp(24px, 7vw, 42px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 clamp(6px, 1.3vw, 10px);
  align-items: center;
  align-content: center;
  min-height: 0;
  border: clamp(1px, 0.38vw, 2px) solid rgba(255, 176, 32, 0.9);
  border-radius: clamp(8px, 2.4vw, 16px);
  background: linear-gradient(180deg, rgba(255, 250, 221, 0.94), rgba(255, 233, 151, 0.94));
  padding: clamp(5px, 1.8vw, 10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    0 3px 0 rgba(140, 70, 0, 0.22);
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric-icon {
  width: clamp(24px, 7vw, 42px);
  height: clamp(24px, 7vw, 42px);
  border-radius: clamp(8px, 2vw, 14px);
  background:
    var(--room-metric-icon) center center / 86% auto no-repeat,
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.48), transparent 31%),
    linear-gradient(135deg, #7a35ff 0%, #f04be5 72%, #ff8fe8 100%);
  color: transparent;
  font-size: 0;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric small {
  color: #542060;
  font-size: clamp(0.48rem, 1.8vw, 0.78rem);
  line-height: 1;
  align-self: end;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric strong {
  color: #2d0f44;
  font-size: clamp(0.78rem, 4.2vw, 1.92rem);
  line-height: 0.95;
  align-self: start;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="timer"] strong {
  font-size: clamp(0.58rem, 2.7vw, 1.34rem);
  white-space: nowrap;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="timer"] .game-room-metric-icon {
  --room-metric-icon: url("assets/Stickers/Room_Banner_Icon_Timer.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="players"] .game-room-metric-icon {
  --room-metric-icon: url("assets/Stickers/Room_Banner_Icon_Players.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="rewards"] .game-room-metric-icon {
  --room-metric-icon: url("assets/Stickers/Room_Banner_Icon_Rewards.png?v=20260530-room-banners");
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="jackpot"] .game-room-metric-icon {
  --room-metric-icon: url("assets/Stickers/Room_Banner_Icon_Jackpot.png?v=20260530-room-banners");
}

.creator-draw-controls {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: end;
}

.creator-room-code {
  border-radius: 999px;
  background: rgba(37, 48, 54, 0.08);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 8px 10px;
}

.creator-control-button {
  min-height: 34px;
  padding: 7px 10px;
}

.pause-control-button[aria-pressed="true"] {
  border-color: rgba(157, 55, 55, 0.28);
  background: rgba(255, 235, 231, 0.92);
  color: #9d3737;
}

.game-shell.room-selector-collapsed .game-table-tabs {
  gap: 0;
  padding: 10px 16px;
}

.game-shell.room-selector-collapsed .custom-room-panel {
  display: none;
}

.game-shell:not(.room-selector-collapsed) .custom-room-panel {
  border-color: rgba(104, 83, 173, 0.26);
  box-shadow: inset 4px 0 0 rgba(104, 83, 173, 0.72);
}

.game-shell.room-selector-collapsed .game-table-button:not(.active) {
  display: none;
}

.game-shell.room-selector-collapsed .game-table-button.active {
  min-height: 46px;
  border-radius: 10px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 90% 12%, rgba(24, 126, 127, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.95);
}

.game-shell.room-selector-collapsed .game-table-button.active > strong {
  align-self: center;
  font-size: 0.98rem;
}

.game-shell.room-selector-collapsed .game-table-button.active > small {
  align-self: center;
  padding: 3px 8px;
  font-size: 0.66rem;
}

.game-shell.room-selector-collapsed .game-table-button.active .game-room-metrics,
.game-shell.room-selector-collapsed .game-table-button.active .custom-room-summary,
.game-shell.room-selector-collapsed .game-table-button.active .game-room-cta {
  display: none;
}

.game-shell.room-selector-collapsed .game-picker-block {
  animation: card-picker-slide-up 220ms ease-out both;
}

.game-shell:not(.room-panel-custom-open) .custom-room-panel,
.game-shell:not(.room-panel-live-open) .game-table-tabs {
  display: none;
}

.game-shell.room-selector-collapsed .room-launchers {
  display: none;
}

.game-shell.room-panel-custom-open .custom-room-panel,
.game-shell.room-panel-live-open .game-table-tabs {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2501;
  display: grid;
  width: min(92vw, 440px);
  max-height: min(86vh, 760px);
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(126, 216, 255, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(70, 190, 255, 0.18), transparent 36%),
    radial-gradient(circle at 100% 12%, rgba(167, 96, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.98), rgba(2, 7, 13, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 216, 255, 0.45) transparent;
}

.game-shell.room-panel-custom-open .custom-room-panel {
  padding: 16px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 5px 0 0 rgba(160, 142, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-shell.room-panel-live-open .game-table-tabs {
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(94vw, 680px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px;
}

.game-shell.room-panel-live-open .game-table-button:not(.active),
.game-shell.room-panel-live-open .game-table-button.active {
  display: grid;
}

.game-shell.room-panel-live-open .game-table-button.active .game-room-metrics,
.game-shell.room-panel-live-open .game-table-button.active .custom-room-summary {
  display: grid;
}

.game-shell.room-panel-live-open .game-table-button.active .game-room-cta {
  display: flex;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room),
.game-shell.room-panel-live-open .game-table-button.live-room-board-button.active {
  display: block;
  width: 100%;
  aspect-ratio: 1574 / 999;
  flex: 0 0 auto;
  margin: 0;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button.active .game-room-metrics {
  display: grid;
}

.game-shell.room-panel-live-open .game-table-button.live-room-board-button.active .game-room-cta {
  display: none;
}

@keyframes card-picker-slide-up {
  from {
    opacity: 0.86;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-status-note {
  color: rgba(214, 233, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
}

.game-selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.game-selection-header strong {
  font-size: 0.86rem;
}

.game-card-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 4px 4px 12px;
}

.game-picker-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.game-picker-card .bingo-card {
  justify-self: center;
  width: 100%;
  max-width: 168px;
  pointer-events: none;
}

.game-picker-card.selected .bingo-card,
.game-picker-card:focus-within .bingo-card {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(24, 126, 127, 0.28),
    0 0 0 1px rgba(29, 35, 41, 0.12),
    0 0 28px var(--rarity-glow, rgba(255, 255, 255, 0.35)),
    0 18px 38px rgba(29, 35, 41, 0.16);
}

.game-picker-card.favorite .game-picker-select-badge {
  border-color: rgba(227, 93, 79, 0.35);
}

.game-picker-card.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.game-picker-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.game-picker-select-badge {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  width: min(100%, 168px);
  border: 1px solid rgba(216, 222, 223, 0.94);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 249, 0.88));
  color: var(--teal);
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  box-shadow: 0 6px 12px rgba(29, 35, 41, 0.07);
}

.game-picker-select-badge::before {
  content: "";
  display: grid;
  width: 14px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

.game-picker-card.selected .game-picker-select-badge {
  border-color: rgba(24, 126, 127, 0.45);
  background:
    linear-gradient(180deg, rgba(238, 252, 248, 0.98), rgba(218, 243, 237, 0.9));
  color: var(--teal);
}

.game-picker-card.selected .game-picker-select-badge::before {
  border-color: var(--teal);
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 56%, transparent 57%),
    var(--teal);
  transform: rotate(-8deg);
}

.game-picker-card.disabled .game-picker-select-badge {
  color: var(--muted);
  background: rgba(247, 250, 250, 0.82);
}

.game-picker-card.disabled .game-picker-select-badge::before {
  opacity: 0.52;
}

.game-picker-empty {
  min-height: 96px;
  padding: 14px;
  text-align: center;
}

.game-start-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.game-prize-table {
  display: grid;
  gap: 8px;
  margin: 0;
  border-bottom: 0;
}

.game-prize-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 222, 223, 0.75);
}

.game-prize-table div:last-child {
  border-bottom: 0;
}

.game-stage {
  display: grid;
  position: relative;
  grid-template-columns: minmax(320px, 0.88fr) minmax(430px, 1.12fr);
  grid-template-rows: auto minmax(52px, auto) minmax(460px, auto);
  align-content: start;
  gap: 12px;
  padding: 0;
  background: #000;
  color: #f7fbff;
  --game-room-header-image: url("assets/Stickers/Bingoron_Livebingo_banner%20transparent.png?v=20260530-game-room-header");
}

.game-stage[data-room-header="table-1"] {
  --game-room-header-image: url("assets/Stickers/ROOM%201%20-%20header%20transparent.png?v=20260530-game-room-header");
}

.game-stage[data-room-header="table-2"] {
  --game-room-header-image: url("assets/Stickers/ROOM%202%20-%20header%20transparent.png?v=20260530-game-room-header");
}

.game-stage[data-room-header="table-3"] {
  --game-room-header-image: url("assets/Stickers/ROOM%203%20-%20header%20transparent.png?v=20260530-game-room-header");
}

.game-stage[data-room-header="custom"] {
  --game-room-header-image: url("assets/Stickers/Bingoron_Livebingo_banner%20transparent.png?v=20260530-game-room-header");
}

.game-room-header-banner {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  min-height: clamp(78px, 10.5vw, 132px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--game-room-header-image) center / cover no-repeat;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.42));
  isolation: isolate;
}

.game-room-header-banner .creator-draw-controls:not([hidden]) {
  position: absolute;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(8px, 1.4vw, 16px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(82px, auto) repeat(4, minmax(84px, auto));
  gap: 6px;
  width: min(620px, calc(100% - 24px));
}

.focused-game-header {
  display: none;
}

.focused-game-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.focused-game-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(42, 120, 255, 0.28));
}

.focused-game-brand strong {
  overflow: hidden;
  color: #f7fbff;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stage > .game-toolbar,
.game-stage > .game-hud {
  display: none !important;
}

.game-stage.table-theme-fiesta {
  --theme-fiesta-line: rgba(217, 164, 35, 0.34);
}

.game-stage.table-theme-fiesta .game-toolbar {
  padding: 14px 16px;
  border: 1px solid var(--theme-fiesta-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 228, 139, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 241, 0.9), rgba(252, 244, 224, 0.76));
  box-shadow: 0 12px 24px rgba(151, 103, 44, 0.08);
}

.game-stage.table-theme-fiesta .game-hud article,
.game-stage.table-theme-fiesta .called-ball-strip,
.game-stage.table-theme-fiesta .called-ball-exit,
.game-stage.table-theme-fiesta .ledger-section,
.game-stage.table-theme-fiesta .ledger-empty {
  border-color: var(--theme-fiesta-line);
  background-color: rgba(255, 252, 244, 0.86);
  backdrop-filter: blur(3px);
}

.game-stage.table-theme-beach {
  --theme-beach-line: rgba(0, 167, 255, 0.34);
}

.game-stage.table-theme-beach .game-toolbar {
  padding: 14px 16px;
  border: 1px solid var(--theme-beach-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 9% 16%, rgba(255, 212, 0, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(0, 209, 178, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(244, 253, 255, 0.91), rgba(232, 250, 255, 0.78));
  box-shadow: 0 12px 24px rgba(0, 121, 200, 0.08);
}

.game-stage.table-theme-beach .game-hud article,
.game-stage.table-theme-beach .called-ball-strip,
.game-stage.table-theme-beach .called-ball-exit,
.game-stage.table-theme-beach .ledger-section,
.game-stage.table-theme-beach .ledger-empty {
  border-color: var(--theme-beach-line);
  background-color: rgba(246, 253, 255, 0.86);
  backdrop-filter: blur(3px);
}

.game-stage.table-theme-halloween {
  --theme-halloween-line: rgba(122, 44, 255, 0.34);
}

.game-stage.table-theme-halloween .game-toolbar {
  padding: 14px 16px;
  border: 1px solid var(--theme-halloween-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 179, 26, 0.22), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(0, 224, 196, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(254, 249, 255, 0.92), rgba(246, 238, 255, 0.78));
  box-shadow: 0 12px 24px rgba(74, 28, 132, 0.08);
}

.game-stage.table-theme-halloween .game-hud article,
.game-stage.table-theme-halloween .called-ball-strip,
.game-stage.table-theme-halloween .called-ball-exit,
.game-stage.table-theme-halloween .ledger-section,
.game-stage.table-theme-halloween .ledger-empty {
  border-color: var(--theme-halloween-line);
  background-color: rgba(254, 249, 255, 0.86);
  backdrop-filter: blur(3px);
}

.game-toolbar {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 68px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.audio-action {
  min-width: 96px;
}

.audio-action.active {
  border-color: rgba(24, 126, 127, 0.42);
  background: #eef7f3;
  color: var(--teal);
}

.game-hud {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-self: stretch;
}

.game-hud article {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.game-hud small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.game-hud span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
}

.current-ball-tile span {
  color: var(--teal);
  font-size: 1.24rem;
}

.called-ball-row {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-self: stretch;
  min-width: 0;
  contain: layout paint;
}

.called-ball-strip {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
  contain: content;
}

.called-ball-row .called-ball-strip {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}

.called-ball-exit {
  appearance: none;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  place-items: center;
  min-width: 108px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 250, 0.82));
  color: #c1121f;
  cursor: pointer;
  font: inherit;
  font-size: 1.48rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(29, 35, 41, 0.1);
}

.called-ball-exit:hover,
.called-ball-exit:focus-visible {
  border-color: rgba(24, 126, 127, 0.45);
  background:
    linear-gradient(180deg, rgba(248, 255, 253, 0.98), rgba(230, 246, 241, 0.9));
  color: #a30e18;
}

body.game-room-focus {
  background: #000;
}

body.game-room-focus .app-header {
  display: none !important;
}

body.game-room-focus .game-shell[data-mobile-step="game"] {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100vh;
  width: 100svw;
  height: 100svh;
  overflow: auto;
  background: #000;
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px));
}

body.game-room-focus .game-setup-panel {
  display: none !important;
}

body.game-room-focus .game-stage {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(42px, auto) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 16px);
  min-height: calc(100svh - 16px);
}

body.game-room-focus .focused-game-header {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.94), rgba(0, 0, 0, 0.76));
  padding: 4px 4px 4px 8px;
}

body.game-room-focus .game-room-header-banner {
  grid-row: 2;
  min-height: clamp(64px, 8.8vw, 118px);
  border-radius: 10px;
  background-size: contain;
  background-position: center;
}

body.game-room-focus .called-ball-row {
  grid-row: 3;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
}

body.game-room-focus .called-ball-strip,
body.game-room-focus .game-stage.table-theme-fiesta .called-ball-strip,
body.game-room-focus .game-stage.table-theme-beach .called-ball-strip,
body.game-room-focus .game-stage.table-theme-halloween .called-ball-strip {
  min-width: 0;
  border-color: transparent;
  background: transparent;
  background-color: transparent;
  padding: 4px 10px;
  backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent 100%);
}

body.game-room-focus .called-ball-exit {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.1) url("assets/Icons/Cancel.png") center / 74% 74% no-repeat;
  padding: 0;
  color: transparent;
  font-size: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
}

body.game-room-focus .called-ball-exit:hover,
body.game-room-focus .called-ball-exit:focus-visible {
  background:
    rgba(255, 255, 255, 0.16) url("assets/Icons/Cancel.png") center / 74% 74% no-repeat;
  outline: 2px solid rgba(126, 216, 255, 0.76);
  outline-offset: 2px;
}

body.game-room-focus .game-cards-grid {
  grid-row: 4;
  min-height: calc(100vh - 230px);
  min-height: calc(100svh - 230px);
}

.called-ball,
.called-ball-empty {
  display: inline-grid;
  flex: 0 0 auto;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}

.called-ball {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.92) 0 9%, rgba(255, 255, 255, 0.38) 10% 20%, transparent 21%),
    radial-gradient(circle at 64% 72%, rgba(0, 0, 0, 0.24), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--ball-color, var(--teal)) 82%, #fff), var(--ball-color, var(--teal)) 45%, var(--ball-shadow, #0f5455));
  color: var(--ink);
  box-shadow:
    inset -9px -11px 15px rgba(0, 0, 0, 0.25),
    inset 6px 7px 12px rgba(255, 255, 255, 0.28),
    0 5px 10px rgba(29, 35, 41, 0.16);
  will-change: transform, opacity;
}

.called-ball-face {
  position: relative;
  display: grid;
  width: 66%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--ball-color, var(--teal)) 78%, #fff);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    inset -2px -3px 5px rgba(29, 35, 41, 0.1),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9);
}

.called-ball-face small,
.called-ball-face strong {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 0.9;
}

.called-ball-face small {
  margin-top: 3px;
  font-size: 0.42rem;
  font-weight: 1000;
}

.called-ball-face strong {
  margin-top: -5px;
  color: #171b20;
  font-size: 0.88rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.called-ball.current {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 3px rgba(29, 35, 41, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.92),
    inset -8px -10px 14px rgba(0, 0, 0, 0.2),
    inset 5px 6px 10px rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(29, 35, 41, 0.24);
}

.called-ball-empty {
  width: auto;
  aspect-ratio: auto;
  color: var(--muted);
}

.called-ball-empty.play-again-button {
  width: 100%;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(217, 164, 35, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #fff5be, #ffd96a 62%, #f5b93d);
  color: #6f4704;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 0 0 0 rgba(217, 164, 35, 0.34);
  animation: play-again-pulse 1s ease-in-out infinite;
}

.called-ball-empty.play-again-button:hover,
.called-ball-empty.play-again-button:focus-visible {
  color: #4d3100;
  border-color: rgba(217, 164, 35, 0.9);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(135deg, #fff9d8, #ffe58d 60%, #ffc947);
}

.called-ball-empty.play-again-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.called-ball.roll-in {
  animation: called-ball-roll-in 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.called-ball.push-slide {
  animation: called-ball-push-slide 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

@keyframes called-ball-roll-in {
  from {
    opacity: 0;
    transform: translateX(-34px) rotate(-300deg) scale(0.82);
  }

  72% {
    opacity: 1;
    transform: translateX(2px) rotate(14deg) scale(1.04);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes called-ball-push-slide {
  from {
    transform: translateX(-32px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes play-again-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(217, 164, 35, 0.34);
  }

  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 7px rgba(217, 164, 35, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .called-ball.roll-in,
  .called-ball.push-slide,
  .called-ball-empty.play-again-button {
    animation: none;
  }
}

.game-cards-grid {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  min-height: clamp(460px, 58vh, 650px);
  overflow: visible;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 245, 247, 0.72)),
    repeating-linear-gradient(45deg, rgba(24, 126, 127, 0.05) 0 12px, transparent 12px 24px);
}

.game-cards-grid.table-theme-fiesta {
  isolation: isolate;
  --theme-scene-height: 650px;
  border-color: rgba(217, 164, 35, 0.62);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 212, 0, 0.14) 0 7%, transparent 21%),
    radial-gradient(circle at 84% 18%, rgba(255, 52, 70, 0.09) 0 6%, transparent 19%),
    radial-gradient(circle at 76% 76%, rgba(22, 119, 255, 0.07) 0 8%, transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18)),
    url("assets/fiesta-table-1-scene.svg") center top / 100% var(--theme-scene-height) repeat-y,
    linear-gradient(180deg, #ffe1a2, #d7ead0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 14px 32px rgba(151, 103, 44, 0.1);
}

.game-cards-grid.table-theme-fiesta::before,
.game-cards-grid.table-theme-fiesta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}

.game-cards-grid.table-theme-fiesta::before {
  background-image: url("assets/fiesta-table-1-pattern.svg");
  background-size: 360px 240px;
  opacity: 0.5;
}

.game-cards-grid.table-theme-fiesta::after {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 76% 34%, rgba(255, 245, 208, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(255, 249, 233, 0.04), rgba(255, 255, 255, 0.14));
}

.game-cards-grid.table-theme-beach {
  isolation: isolate;
  --theme-scene-height: 650px;
  border-color: rgba(0, 167, 255, 0.56);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 212, 0, 0.12) 0 7%, transparent 21%),
    radial-gradient(circle at 84% 18%, rgba(255, 79, 137, 0.08) 0 6%, transparent 19%),
    radial-gradient(circle at 72% 78%, rgba(0, 209, 178, 0.08) 0 8%, transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.16)),
    url("assets/beach-table-2-scene.svg") center top / 100% var(--theme-scene-height) repeat-y,
    linear-gradient(180deg, #65dfff, #ffe46c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 14px 32px rgba(0, 121, 200, 0.1);
}

.game-cards-grid.table-theme-beach::before,
.game-cards-grid.table-theme-beach::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}

.game-cards-grid.table-theme-beach::before {
  background-image: url("assets/beach-table-2-pattern.svg");
  background-size: 360px 240px;
  opacity: 0.5;
}

.game-cards-grid.table-theme-beach::after {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 76% 34%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, rgba(246, 253, 255, 0.04), rgba(255, 255, 255, 0.14));
}

.game-cards-grid.table-theme-halloween {
  isolation: isolate;
  --theme-scene-height: 650px;
  border-color: rgba(122, 44, 255, 0.54);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 179, 26, 0.13) 0 7%, transparent 21%),
    radial-gradient(circle at 84% 18%, rgba(255, 79, 184, 0.08) 0 6%, transparent 19%),
    radial-gradient(circle at 72% 78%, rgba(0, 224, 196, 0.07) 0 8%, transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.17)),
    url("assets/halloween-table-3-scene.svg") center top / 100% var(--theme-scene-height) repeat-y,
    linear-gradient(180deg, #3a1d8f, #ff8a18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 14px 32px rgba(74, 28, 132, 0.1);
}

.game-cards-grid.table-theme-halloween::before,
.game-cards-grid.table-theme-halloween::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
}

.game-cards-grid.table-theme-halloween::before {
  background-image: url("assets/halloween-table-3-pattern.svg");
  background-size: 360px 240px;
  opacity: 0.5;
}

.game-cards-grid.table-theme-halloween::after {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 76% 34%, rgba(255, 245, 208, 0.06), transparent 16%),
    linear-gradient(180deg, rgba(254, 249, 255, 0.04), rgba(255, 255, 255, 0.15));
}

.game-cards-grid,
.game-cards-grid.table-theme-fiesta,
.game-cards-grid.table-theme-beach,
.game-cards-grid.table-theme-halloween {
  border-color: rgba(94, 163, 255, 0.2);
  background:
    radial-gradient(circle at 18% 12%, rgba(38, 141, 244, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(5, 12, 21, 0.98), #000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.38);
}

.game-cards-grid.table-theme-fiesta::before,
.game-cards-grid.table-theme-fiesta::after,
.game-cards-grid.table-theme-beach::before,
.game-cards-grid.table-theme-beach::after,
.game-cards-grid.table-theme-halloween::before,
.game-cards-grid.table-theme-halloween::after {
  content: none;
}

.game-cards-grid.has-cards {
  display: block;
}

.game-card-frame {
  display: grid;
  gap: 8px;
  position: absolute;
  top: 0;
  left: 0;
  width: min(240px, calc(100% - 32px));
  min-width: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: filter 140ms ease, box-shadow 140ms ease;
}

.game-card-frame .bingo-card {
  width: 100%;
  pointer-events: auto;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame {
  width: min(288px, calc(100% - 32px));
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .bingo-card {
  grid-template-rows: 1fr;
  aspect-ratio: 5 / 5.35;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .art-panel {
  position: absolute;
  z-index: 0;
  inset: 0;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .art-panel::after {
  inset: 0;
  height: auto;
  background: rgba(255, 255, 255, 0.14);
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .nft-image {
  width: 100%;
  height: 100%;
  margin-top: 0;
  opacity: 0.5;
  object-fit: contain;
  filter: saturate(1.08) drop-shadow(0 10px 16px rgba(29, 35, 41, 0.2));
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .card-meta,
body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .card-owner-badge {
  display: none;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-panel {
  z-index: 2;
  grid-row: 1;
  align-self: stretch;
  padding: clamp(7px, 3cqw, 10px);
  background: transparent;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .bingo-grid {
  --bingo-header-row-height: clamp(13px, 6cqw, 19px);
  --bingo-panel-bottom-padding: 0px;
  --bingo-number-row-height: calc((92cqw - var(--bingo-header-row-height) - 15px) / 5);
  align-self: center;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell {
  background: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.74rem, 5.2cqw, 1rem);
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell:not(.header),
.game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell:not(.header) {
  border: 1px solid rgba(0, 0, 0, 0.46);
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell:not(.header):not(.free),
.game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell:not(.header):not(.free) {
  color: #101820;
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell:not(.header):not(.free) .grid-cell-value,
.game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell:not(.header):not(.free) .grid-cell-value {
  color: #101820;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 1px rgba(0, 0, 0, 0.34);
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell.free .grid-cell-value,
.game-shell[data-mobile-step="game"].mobile-cards-resized .game-card-frame .grid-cell.free .grid-cell-value {
  color: var(--teal);
}

body.desktop-game-tools .game-shell.mobile-cards-resized .game-card-frame .grid-cell.header {
  background: rgba(29, 35, 41, 0.92);
  color: #fff;
}

.game-celebration-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: min(100%, 520px);
  padding: clamp(14px, 3vw, 34px);
  pointer-events: none;
}

.game-celebration-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.game-confetti,
.game-glitter {
  position: absolute;
  top: -12%;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.48);
  border-radius: 2px;
  background: var(--color);
  opacity: 0.88;
  box-shadow: 0 0 8px color-mix(in srgb, var(--color) 68%, transparent);
  animation: game-confetti-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.game-glitter {
  height: var(--size);
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 18%, var(--color) 20% 56%, transparent 60%);
  box-shadow:
    0 0 10px var(--color),
    0 0 20px rgba(255, 255, 255, 0.42);
  animation-name: game-glitter-fall;
}

.game-celebration-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  gap: clamp(14px, 3vw, 30px);
  align-items: center;
  width: min(820px, 94%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.46), transparent 22%),
    linear-gradient(135deg, rgba(255, 249, 220, 0.96), rgba(255, 209, 102, 0.88) 42%, rgba(101, 228, 220, 0.9));
  color: #071112;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.16),
    0 0 46px rgba(255, 209, 102, 0.5),
    0 24px 70px rgba(0, 0, 0, 0.32);
  padding: clamp(16px, 3vw, 30px);
  animation: game-winner-pop 640ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
}

.game-celebration-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.game-celebration-kicker {
  color: rgba(7, 17, 18, 0.72);
  font-size: clamp(0.84rem, 1.6vw, 1.25rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.game-celebration-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(8px, 1.8vw, 14px);
  align-items: center;
}

.game-celebration-avatar {
  width: clamp(40px, 6vw, 66px);
  border-color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.7rem);
}

.game-celebration-name {
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.game-celebration-details {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(7, 17, 18, 0.12);
  color: rgba(7, 17, 18, 0.78);
  padding: 7px 13px;
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 1000;
}

.game-celebration-card-wrap {
  width: clamp(150px, 22vw, 245px);
  filter: drop-shadow(0 18px 26px rgba(29, 35, 41, 0.26));
  animation: game-winner-card-float 2.8s ease-in-out infinite;
}

.game-celebration-card-wrap .bingo-card {
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 26px rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(29, 35, 41, 0.25);
}

.game-no-winner-announcement {
  position: absolute;
  z-index: 38;
  top: clamp(10px, 2.5vw, 22px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  min-width: min(92%, 520px);
  max-width: calc(100% - 24px);
  min-height: clamp(58px, 9vw, 88px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, rgba(255, 246, 210, 0.96), rgba(255, 209, 102, 0.9) 48%, rgba(101, 228, 220, 0.92));
  color: #071112;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.14),
    0 14px 34px rgba(29, 35, 41, 0.22),
    0 0 36px rgba(255, 209, 102, 0.42);
  padding: 8px clamp(18px, 4vw, 34px);
  font-size: clamp(1.6rem, 5vw, 3.8rem);
  font-weight: 1000;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.32);
  pointer-events: none;
  animation: game-no-winner-flash 920ms ease-in-out infinite;
}

button.game-no-winner-announcement {
  cursor: pointer;
  pointer-events: auto;
}

.game-no-winner-announcement.play-again {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, rgba(240, 255, 249, 0.96), rgba(101, 228, 220, 0.94) 48%, rgba(255, 209, 102, 0.9));
}

.game-no-winner-announcement.wait-round {
  min-height: clamp(48px, 7vw, 72px);
  border-color: rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(101, 228, 220, 0.86) 52%, rgba(255, 246, 210, 0.9));
  color: rgba(7, 17, 18, 0.92);
  box-shadow:
    0 10px 24px rgba(29, 35, 41, 0.18),
    0 0 28px rgba(101, 228, 220, 0.32);
  font-size: clamp(1.2rem, 3.5vw, 2.4rem);
  animation: none;
}

.game-no-winner-announcement.paused,
.game-no-winner-announcement.wait-players {
  min-height: clamp(52px, 7vw, 78px);
  border-color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.48), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(101, 228, 220, 0.86) 54%, rgba(255, 246, 210, 0.92));
  color: rgba(7, 17, 18, 0.94);
  box-shadow:
    0 12px 28px rgba(29, 35, 41, 0.2),
    0 0 30px rgba(101, 228, 220, 0.34);
  font-size: clamp(1.2rem, 3.4vw, 2.5rem);
  animation: none;
}

.game-no-winner-announcement.paused {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(255, 240, 235, 0.96), rgba(255, 209, 102, 0.82) 52%, rgba(255, 255, 255, 0.88));
  color: #7a3027;
}

.game-no-winner-announcement.select-card {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(240, 255, 249, 0.98), rgba(101, 228, 220, 0.94) 50%, rgba(255, 209, 102, 0.92));
  animation: game-select-card-pulse 1.05s ease-in-out infinite;
}

.game-no-winner-announcement.countdown {
  min-height: clamp(48px, 7vw, 68px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(7, 17, 18, 0.88);
  box-shadow:
    0 10px 24px rgba(29, 35, 41, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-size: clamp(1.1rem, 3vw, 2rem);
  animation: none;
}

@keyframes game-no-winner-flash {
  0%,
  100% {
    opacity: 0.94;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.035);
  }
}

@keyframes game-select-card-pulse {
  0%,
  100% {
    opacity: 0.94;
    box-shadow:
      0 0 0 7px rgba(255, 255, 255, 0.14),
      0 14px 34px rgba(29, 35, 41, 0.22),
      0 0 28px rgba(101, 228, 220, 0.34);
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 0 9px rgba(255, 255, 255, 0.2),
      0 16px 38px rgba(29, 35, 41, 0.24),
      0 0 42px rgba(255, 209, 102, 0.48);
  }
}

@keyframes game-winner-pop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }

  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.025);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes game-winner-card-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes game-confetti-fall {
  from {
    opacity: 0;
    transform: translate3d(0, -12%, 0) rotate(0deg);
  }

  12% {
    opacity: 0.95;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--drift), 118vh, 0) rotate(720deg);
  }
}

@keyframes game-glitter-fall {
  from {
    opacity: 0;
    transform: translate3d(0, -12%, 0) scale(0.5);
  }

  14%,
  70% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--drift), 112vh, 0) scale(1.18);
  }
}

@media (max-width: 760px), (max-height: 520px) {
  .game-celebration-overlay {
    align-items: start;
    min-height: min(100%, 360px);
    padding: 10px;
  }

  .game-celebration-spotlight {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: min(96%, 560px);
    border-radius: 18px;
    padding: 12px;
  }

  .game-celebration-name {
    font-size: clamp(1.55rem, 7vw, 2.55rem);
  }

  .game-celebration-card-wrap {
    width: clamp(104px, 24vw, 152px);
  }
}

@media (max-width: 520px) {
  .game-celebration-spotlight {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-celebration-card-wrap {
    justify-self: center;
    width: min(168px, 58vw);
  }
}

.game-card-frame.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 20px 28px rgba(29, 35, 41, 0.28));
}

.other-player-cards-zone {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.other-player-cards-title {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.other-player-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 128px));
  gap: 12px;
}

.other-player-card-frame {
  display: grid;
  gap: 6px;
  min-width: 0;
  opacity: 0.94;
}

.other-player-card-frame .bingo-card {
  width: 100%;
  border-width: 4px;
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(29, 35, 41, 0.1),
    0 8px 18px rgba(29, 35, 41, 0.12);
}

.other-player-card-frame .nft-image {
  width: 66%;
  height: 38%;
  margin-top: calc(clamp(4px, 3cqw, 8px) + 8px);
  filter: drop-shadow(0 8px 12px rgba(29, 35, 41, 0.22));
}

.other-player-card-frame .card-meta {
  top: calc(var(--card-frame-inset) - var(--card-content-top-bleed) + 1px);
  left: 5px;
  right: 34px;
  min-height: 24px;
}

.other-player-card-frame .asset-name {
  font-size: clamp(0.38rem, 5.6cqw, 0.56rem);
  line-height: 1;
  text-shadow:
    0 1px 1px rgba(29, 35, 41, 0.9),
    0 0 5px rgba(29, 35, 41, 0.58);
}

.other-player-card-frame .card-owner-badge {
  top: calc(var(--card-frame-inset) - var(--card-content-top-bleed) + 2px);
  right: 5px;
  width: 26px;
}

.other-player-card-frame .card-owner-badge .player-avatar {
  width: 22px;
  border-width: 1px;
  font-size: 0.48rem;
}

.other-player-card-frame .card-owner-name {
  font-size: 0.42rem;
}

.other-player-card-frame .grid-panel {
  padding: clamp(3px, 2.5cqw, 5px);
  padding-top: 0;
}

.other-player-card-frame .bingo-grid {
  --bingo-header-row-height: clamp(7px, 5.2cqw, 10px);
  --bingo-panel-bottom-padding: clamp(3px, 2.6cqw, 5px);
  --bingo-grid-gap: clamp(1px, 1.2cqw, 2px);
}

.other-player-card-frame .grid-cell {
  border-radius: 2px;
  font-size: clamp(0.42rem, 5.8cqw, 0.58rem);
}

.other-player-card-frame .grid-cell.header {
  font-size: clamp(0.42rem, 5.2cqw, 0.54rem);
}

.other-player-card-frame .grid-cell.free {
  font-size: clamp(0.36rem, 4.5cqw, 0.48rem);
}

.table-chat-panel {
  position: absolute;
  z-index: 1000;
  top: 16px;
  right: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(320px, calc(100% - 32px));
  height: clamp(360px, 58vh, 520px);
  max-height: calc(100% - 32px);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 223, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 34px rgba(29, 35, 41, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(6px);
  contain: layout paint;
}

.table-chat-header {
  display: grid;
  gap: 8px;
  min-height: 68px;
  border-bottom: 1px solid rgba(216, 222, 223, 0.88);
  padding: 10px 12px;
}

.table-chat-header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.table-chat-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.table-chat-title strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.1;
}

.table-chat-room-label {
  justify-self: end;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.table-chat-menu {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.table-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid rgba(216, 222, 223, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 3px;
}

.table-chat-tab {
  appearance: none;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.table-chat-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(29, 35, 41, 0.08);
}

.table-chat-tab:hover,
.table-chat-tab:focus-visible {
  color: var(--ink);
  outline: 0;
}

.friend-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.1);
  color: var(--teal);
  padding: 1px 5px;
  font-size: 0.65rem;
  font-weight: 1000;
}

.friend-presence-dot {
  display: inline-block;
  width: 8px;
  min-width: 8px;
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 1px rgba(29, 35, 41, 0.14);
}

.friend-presence-dot.online {
  background: #18b26b;
  box-shadow:
    0 0 0 1px rgba(24, 178, 107, 0.28),
    0 0 10px rgba(24, 178, 107, 0.45);
}

.table-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px;
}

.friends-chat-messages {
  padding: 8px 10px;
}

.friends-chat-content {
  display: grid;
  gap: 10px;
}

.friends-access-note {
  border: 1px solid rgba(24, 126, 127, 0.18);
  border-radius: 8px;
  background: rgba(24, 126, 127, 0.07);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.friend-add-form {
  position: sticky;
  top: -8px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  border-bottom: 1px solid rgba(216, 222, 223, 0.76);
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 0 10px;
  backdrop-filter: blur(4px);
}

.friend-add-input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216, 222, 223, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
}

.friend-add-input:focus {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(24, 126, 127, 0.12);
}

.friend-add-button {
  appearance: none;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 1000;
  cursor: pointer;
}

.friend-add-button:disabled {
  background: rgba(107, 119, 128, 0.24);
  color: rgba(107, 119, 128, 0.72);
  cursor: not-allowed;
}

.friends-list {
  display: grid;
  gap: 4px;
}

.friend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-radius: 8px;
  padding: 6px;
}

.friend-row.online {
  background: rgba(24, 126, 127, 0.06);
}

.friend-identity {
  position: relative;
  display: inline-grid;
}

.friend-identity .friend-presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
}

.friend-avatar {
  width: 30px;
}

.friend-copy {
  display: grid;
  min-width: 0;
}

.friend-copy strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.friend-copy small,
.friends-empty {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.friend-remove-button {
  appearance: none;
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 1000;
  cursor: pointer;
}

.friend-remove-button:hover,
.friend-remove-button:focus-visible {
  background: rgba(15, 15, 15, 0.06);
  color: var(--ink);
  outline: 0;
}

.friend-remove-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.friends-chat-thread {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(216, 222, 223, 0.76);
  padding-top: 8px;
}

.table-chat-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.table-chat-message {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 4px;
  padding: 4px 2px;
}

.table-chat-message:hover {
  background: rgba(15, 15, 15, 0.035);
}

.table-chat-avatar {
  width: 28px;
  font-size: 0.76rem;
}

.table-chat-avatar.composer {
  width: 30px;
  align-self: end;
  margin-bottom: 4px;
}

.table-chat-line {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.table-chat-author {
  color: #606970;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
}

.table-chat-text {
  color: var(--ink);
  font-weight: 400;
}

.table-chat-reaction-layer {
  position: absolute;
  right: 8px;
  bottom: 76px;
  width: 92px;
  height: calc(100% - 124px);
  overflow: hidden;
  pointer-events: none;
}

.table-chat-floating-reaction {
  position: absolute;
  right: calc(6px + var(--reaction-lane, 0) * 18px);
  bottom: 0;
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 16px rgba(29, 35, 41, 0.14);
  font-size: 1.08rem;
  animation: table-chat-reaction-float 2200ms ease-out forwards;
}

@keyframes table-chat-reaction-float {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.72);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-230px) scale(1.18);
  }
}

.table-chat-reaction-bar {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  border-top: 1px solid rgba(216, 222, 223, 0.88);
  padding: 7px 10px 0;
}

.table-chat-reaction-button {
  appearance: none;
  display: grid;
  width: 32px;
  min-width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.table-chat-reaction-button:hover,
.table-chat-reaction-button:focus-visible {
  background: rgba(15, 15, 15, 0.06);
  outline: 0;
  transform: translateY(-1px);
}

.table-chat-form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 8px 12px 12px;
}

.table-chat-input {
  width: 100%;
  height: 34px;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(107, 119, 128, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 0 5px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
}

.table-chat-input:focus {
  border-bottom-color: var(--teal);
  outline: 0;
}

.table-chat-emoji-toggle,
.table-chat-send {
  appearance: none;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.table-chat-emoji-toggle {
  background: rgba(15, 15, 15, 0.04);
  color: var(--ink);
  font-size: 1.05rem;
}

.table-chat-emoji-toggle:hover,
.table-chat-emoji-toggle:focus-visible,
.table-chat-emoji-toggle[aria-expanded="true"] {
  background: rgba(15, 15, 15, 0.08);
  outline: 0;
}

.table-chat-emoji-picker {
  position: absolute;
  right: 48px;
  bottom: 54px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 4px;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(29, 35, 41, 0.18);
  padding: 8px;
}

.table-chat-emoji-picker[hidden] {
  display: none;
}

.table-chat-emoji-choice {
  appearance: none;
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.05rem;
  cursor: pointer;
}

.table-chat-emoji-choice:hover,
.table-chat-emoji-choice:focus-visible {
  background: rgba(15, 15, 15, 0.07);
  outline: 0;
}

.table-chat-send {
  background: var(--teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-12deg);
}

.table-chat-send:disabled {
  background: rgba(107, 119, 128, 0.24);
  color: rgba(107, 119, 128, 0.72);
  cursor: not-allowed;
  transform: rotate(-12deg);
}

.table-chat-send:hover,
.table-chat-send:focus-visible {
  background: #126d6e;
  outline: 0;
}

.game-stage.table-theme-fiesta .table-chat-panel {
  border-color: rgba(217, 164, 35, 0.44);
  background: rgba(255, 252, 244, 0.82);
}

.game-stage.table-theme-beach .table-chat-panel {
  border-color: rgba(0, 167, 255, 0.42);
  background: rgba(246, 253, 255, 0.82);
}

.game-stage.table-theme-halloween .table-chat-panel {
  border-color: rgba(122, 44, 255, 0.44);
  background: rgba(254, 249, 255, 0.82);
}

.mobile-game-quick-tools,
.mobile-battlepass-panel {
  display: none;
}

body.mobile-portrait-game .mobile-game-quick-tools,
body.mobile-landscape-game .mobile-game-quick-tools,
body.desktop-game-tools .mobile-game-quick-tools {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  display: contents;
  pointer-events: none;
}

.mobile-quick-tool {
  appearance: none;
  position: fixed;
  z-index: 1202;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid;
  min-width: 74px;
  min-height: 52px;
  align-content: center;
  gap: 1px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px 16px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 36%),
    linear-gradient(135deg, #2f8d88, #1a5d62);
  color: #fff;
  padding: 7px 12px 8px;
  font: inherit;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 -5px 0 rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}

.mobile-quick-tool::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px 11px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.mobile-quick-tool span {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-quick-tool small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-quick-tool[aria-pressed="true"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #ffd166, #d69a19);
  color: #22170a;
}

.mobile-quick-tool[aria-pressed="true"] small {
  color: rgba(34, 23, 10, 0.82);
}

.mobile-quick-tool:focus-visible {
  outline: 3px solid rgba(101, 228, 220, 0.62);
  outline-offset: 3px;
}

.mobile-quick-tool-battlepass {
  left: calc(12px + env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 36%),
    linear-gradient(135deg, #ffe66d, #d69a19);
  color: #2f2106;
  box-shadow:
    0 10px 22px rgba(123, 79, 7, 0.22),
    inset 0 -5px 0 rgba(123, 79, 7, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.mobile-quick-tool-chat {
  right: calc(12px + env(safe-area-inset-right, 0px));
}

.mobile-quick-tool-battlepass small {
  color: rgba(47, 33, 6, 0.78);
}

.mobile-quick-tool-chat[aria-pressed="false"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 36%),
    linear-gradient(135deg, #2f8d88, #1a5d62);
  color: #fff;
}

body.mobile-portrait-game .table-chat-panel.is-mobile-collapsed,
body.mobile-landscape-game .table-chat-panel.is-mobile-collapsed,
body.desktop-game-tools .table-chat-panel.is-chat-collapsed {
  display: none !important;
}

body.mobile-portrait-game .mobile-battlepass-panel,
body.mobile-game-lobby-tools:not(.mobile-landscape-game) .mobile-battlepass-panel,
body.mobile-landscape-game .mobile-battlepass-panel,
body.desktop-game-tools .mobile-battlepass-panel {
  position: fixed;
  z-index: 1150;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid rgba(24, 126, 127, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0, rgba(101, 228, 220, 0.22), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(255, 209, 102, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 252, 245, 0.82)),
    rgba(249, 252, 245, 0.94);
  color: var(--ink);
  box-shadow:
    0 18px 34px rgba(32, 43, 52, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 22px rgba(24, 126, 127, 0.18);
  pointer-events: auto;
  backdrop-filter: blur(14px) saturate(1.08);
}

body.mobile-portrait-game .mobile-battlepass-panel {
  left: calc(8px + env(safe-area-inset-left, 0px));
  right: calc(8px + env(safe-area-inset-right, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  height: min(238px, 34svh);
  max-height: calc(100svh - 138px);
}

body.mobile-landscape-game .mobile-battlepass-panel {
  left: calc(10px + env(safe-area-inset-left, 0px));
  right: calc(var(--mobile-landscape-chat-width, 280px) + 18px + env(safe-area-inset-right, 0px));
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  height: min(186px, calc(100svh - 104px));
}

body.mobile-landscape-game.mobile-chat-collapsed .mobile-battlepass-panel {
  right: calc(10px + env(safe-area-inset-right, 0px));
}

body.mobile-landscape-game:not(.mobile-chat-collapsed) .mobile-quick-tool-chat {
  right: calc(var(--mobile-landscape-chat-width, 280px) + 18px + env(safe-area-inset-right, 0px));
}

body.desktop-game-tools .mobile-quick-tool {
  position: absolute;
  bottom: 18px;
}

body.desktop-game-tools .mobile-quick-tool-battlepass {
  left: 22px;
}

body.desktop-game-tools .mobile-quick-tool-chat {
  right: 22px;
}

body.desktop-game-tools:not(.desktop-chat-collapsed) .mobile-quick-tool-chat {
  right: min(360px, calc(100% - 104px));
}

body.desktop-game-tools .mobile-battlepass-panel {
  left: 22px;
  right: 360px;
  bottom: 84px;
  height: min(242px, calc(100vh - 132px));
  min-width: 420px;
}

body.desktop-game-tools .game-cards-grid .mobile-battlepass-panel {
  position: absolute;
  left: 22px;
  right: 360px;
  bottom: 84px;
  width: auto;
  min-width: min(420px, calc(100% - 44px));
  height: min(242px, calc(100% - 110px));
  max-height: calc(100% - 110px);
}

body.desktop-game-tools.desktop-chat-collapsed .mobile-battlepass-panel {
  right: 22px;
  width: min(760px, calc(100vw - 44px));
}

body.desktop-game-tools.desktop-chat-collapsed .game-cards-grid .mobile-battlepass-panel {
  right: 22px;
  width: min(760px, calc(100% - 44px));
}

body.desktop-game-tools:not(.desktop-chat-collapsed) .game-no-winner-announcement {
  left: calc((100% - 352px) / 2);
  width: min(600px, max(240px, calc(100% - 384px)));
  max-width: max(240px, calc(100% - 384px));
}

.mobile-battlepass-tabs {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  width: min(248px, 68%);
  min-height: 26px;
  overflow: hidden;
  border: 1px solid rgba(24, 126, 127, 0.24);
  border-radius: 0 0 12px 12px;
  background: rgba(238, 245, 247, 0.76);
  box-shadow: 0 8px 16px rgba(32, 43, 52, 0.12);
}

.mobile-battlepass-tab {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(217, 244, 229, 0.72));
  color: rgba(29, 35, 41, 0.74);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-battlepass-tab[aria-pressed="true"] {
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
  background: linear-gradient(180deg, #203139, #151c22);
  color: #fffdf6;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.mobile-battlepass-header {
  display: grid;
  grid-template-columns: minmax(82px, 0.82fr) minmax(124px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 2px 10px 4px;
}

.mobile-battlepass-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.mobile-battlepass-copy span {
  color: rgba(24, 126, 127, 0.86);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-battlepass-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.9rem, 3.9vw, 1.1rem);
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-battlepass-progress {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-battlepass-progress-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  color: rgba(29, 35, 41, 0.78);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-battlepass-progress-meta small {
  overflow: hidden;
  color: rgba(151, 102, 12, 0.92);
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-battlepass-progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(24, 126, 127, 0.14);
  background: rgba(29, 35, 41, 0.12);
  box-shadow: inset 0 1px 2px rgba(32, 43, 52, 0.18);
}

.mobile-battlepass-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #187e7f, #65e4dc, #ffd166);
  box-shadow: 0 0 14px rgba(24, 126, 127, 0.34);
}

.mobile-battlepass-close {
  appearance: none;
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(24, 126, 127, 0.32);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 1000;
  cursor: pointer;
}

.mobile-battlepass-content {
  min-height: 0;
  overflow: hidden;
}

.mobile-battlepass-rewards {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 0 10px 8px 10px;
}

.mobile-battlepass-lane-labels {
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 0;
  padding-top: 2px;
  border-radius: 14px 0 0 14px;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(24, 126, 127, 0.1), rgba(24, 126, 127, 0.18));
}

.mobile-battlepass-lane-label {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 1px solid rgba(24, 126, 127, 0.22);
  color: var(--ink);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-battlepass-lane-label.premium {
  gap: 5px;
  color: #7b4f07;
  font-size: 0.62rem;
  font-style: italic;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mobile-battlepass-lane-label.premium.locked {
  color: rgba(80, 63, 44, 0.76);
}

.mobile-battlepass-lane-label.premium.active {
  color: #735005;
}

.mobile-battlepass-lane-label.free {
  color: #187e7f;
  font-size: 1.12rem;
  transform: rotate(-7deg);
  transform-origin: left center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mobile-battlepass-lane-label button {
  width: 56px;
  min-height: 18px;
  border: 1px solid rgba(123, 79, 7, 0.38);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 45%),
    linear-gradient(180deg, #ffe66d, #d69a19);
  color: #2f2106;
  padding: 0;
  font: inherit;
  font-size: 0.48rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.mobile-battlepass-lane-label button:disabled {
  cursor: default;
  opacity: 1;
}

.mobile-battlepass-lane-label.premium.locked button {
  border-color: rgba(24, 126, 127, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 45%),
    linear-gradient(180deg, #d9eeee, #9cc9c8);
  color: #194f54;
}

.mobile-battlepass-track {
  display: grid;
  grid-auto-columns: minmax(76px, 92px);
  grid-auto-flow: column;
  align-items: stretch;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 52%),
    rgba(255, 255, 255, 0.22);
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
}

.mobile-battlepass-track::-webkit-scrollbar {
  display: none;
}

.mobile-battlepass-tier {
  position: relative;
  display: grid;
  grid-template-rows: minmax(34px, 1fr) 20px minmax(34px, 1fr);
  height: 100%;
  min-width: 0;
  min-height: 0;
  scroll-snap-align: start;
}

.mobile-battlepass-tier::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  right: -1px;
  height: 4px;
  background:
    linear-gradient(90deg, rgba(24, 126, 127, 0.08), rgba(101, 228, 220, 0.9), rgba(255, 209, 102, 0.72), rgba(24, 126, 127, 0.08));
  box-shadow:
    0 0 12px rgba(101, 228, 220, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
  pointer-events: none;
}

.mobile-battlepass-level {
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: center;
  display: grid;
  width: 21px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(180deg, #d9f4e5, #60c8aa);
  color: #12353a;
  font-size: 0.54rem;
  font-weight: 1000;
  box-shadow: 0 0 10px rgba(24, 126, 127, 0.3);
}

.mobile-battlepass-tier.unlocked .mobile-battlepass-level,
.mobile-battlepass-tier.current .mobile-battlepass-level {
  background: linear-gradient(180deg, #fff7b0, #ffd166);
  color: #2f2106;
  box-shadow:
    0 0 18px rgba(255, 209, 102, 0.68),
    0 2px 7px rgba(32, 43, 52, 0.18);
}

.mobile-battlepass-reward {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left-width: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.28);
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.mobile-battlepass-reward::before,
.mobile-battlepass-reward::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mobile-battlepass-reward.premium {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 209, 102, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(255, 252, 236, 0.82), rgba(214, 154, 25, 0.16));
}

.mobile-battlepass-reward.standard {
  background:
    radial-gradient(circle at 50% 0, rgba(101, 228, 220, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(237, 255, 247, 0.82), rgba(53, 207, 193, 0.16));
}

.mobile-battlepass-reward.locked {
  filter: saturate(0.62) brightness(0.9);
  opacity: 0.74;
}

.mobile-battlepass-reward.premium-locked {
  filter: saturate(0.32) brightness(0.78);
  opacity: 0.62;
}

.mobile-battlepass-reward.locked::before {
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(29, 35, 41, 0.44), rgba(29, 35, 41, 0.08)),
    rgba(29, 35, 41, 0.16);
  box-shadow: inset 0 0 0 999px rgba(29, 35, 41, 0.05);
}

.mobile-battlepass-reward.locked::after {
  z-index: 3;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-top: 0;
  border-radius: 2px;
  background: rgba(29, 35, 41, 0.34);
  box-shadow: 0 -5px 0 -2px rgba(29, 35, 41, 0.38);
}

.mobile-battlepass-reward:not(.locked) {
  filter: saturate(1.14) brightness(1.05);
}

.mobile-battlepass-reward:not(.locked)::after {
  z-index: 3;
  top: -80%;
  bottom: -80%;
  left: -46%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(24deg);
  animation: mobileBattlePassShine 3.8s ease-in-out infinite;
}

.mobile-battlepass-reward-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.26));
}

.mobile-battlepass-reward.rarity-rare {
  background:
    radial-gradient(circle at 50% 0, rgba(72, 149, 239, 0.42), transparent 64%),
    rgba(53, 119, 168, 0.24);
}

.mobile-battlepass-reward.rarity-epic {
  background:
    radial-gradient(circle at 50% 0, rgba(155, 93, 229, 0.48), transparent 64%),
    rgba(91, 57, 143, 0.28);
}

.mobile-battlepass-reward.rarity-legendary {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 209, 102, 0.58), transparent 64%),
    rgba(172, 112, 20, 0.26);
}

.mobile-battlepass-reward.rarity-mythic {
  background:
    conic-gradient(from 160deg, rgba(101, 228, 220, 0.34), rgba(255, 209, 102, 0.4), rgba(244, 114, 182, 0.34), rgba(124, 92, 255, 0.36), rgba(101, 228, 220, 0.34));
}

@keyframes mobileBattlePassShine {
  0%,
  54% {
    transform: translateX(0) rotate(24deg);
    opacity: 0;
  }

  66% {
    opacity: 0.85;
  }

  84%,
  100% {
    transform: translateX(420%) rotate(24deg);
    opacity: 0;
  }
}

.mobile-battlepass-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 10px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mobile-battlepass-tasks::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mobile-battlepass-task {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(24, 126, 127, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  padding: 7px;
}

.mobile-battlepass-task-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mobile-battlepass-task-copy strong,
.mobile-battlepass-task-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-battlepass-task-copy strong {
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 1000;
}

.mobile-battlepass-task-copy span {
  color: #187e7f;
  font-size: 0.56rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-battlepass-task-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 35, 41, 0.14);
}

.mobile-battlepass-task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65e4dc, #ffd166);
}

.mobile-battlepass-task-action {
  appearance: none;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7b0, #ffd166);
  color: #2a1d08;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-battlepass-task-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.mobile-battlepass-task.completed {
  background: rgba(217, 244, 229, 0.76);
}

.mobile-battlepass-task.completed .mobile-battlepass-task-action {
  background: rgba(255, 255, 255, 0.68);
  color: rgba(29, 35, 41, 0.7);
}

.game-cards-grid .game-empty {
  position: relative;
  z-index: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding-right: min(356px, 40%);
}

.game-cards-grid.table-theme-fiesta .game-empty {
  border-color: rgba(217, 164, 35, 0.38);
  background: rgba(255, 252, 244, 0.42);
  backdrop-filter: blur(1px);
}

.game-cards-grid.table-theme-beach .game-empty {
  border-color: rgba(0, 167, 255, 0.38);
  background: rgba(246, 253, 255, 0.42);
  backdrop-filter: blur(1px);
}

.game-cards-grid.table-theme-halloween .game-empty {
  border-color: rgba(122, 44, 255, 0.38);
  background: rgba(254, 249, 255, 0.42);
  backdrop-filter: blur(1px);
}

.game-cards-grid.table-theme-fiesta .game-empty,
.game-cards-grid.table-theme-beach .game-empty,
.game-cards-grid.table-theme-halloween .game-empty {
  border-color: rgba(94, 163, 255, 0.18);
  background: rgba(0, 0, 0, 0.08);
  color: rgba(214, 233, 255, 0.72);
  backdrop-filter: none;
}

.game-card-footer {
  appearance: none;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  padding: 8px 10px;
  font: inherit;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.game-card-footer:not(:disabled):hover,
.game-card-footer:not(:disabled):focus-visible {
  border-color: rgba(24, 126, 127, 0.42);
  background: #187e7f;
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.game-card-footer.replace-card {
  border-color: rgba(24, 126, 127, 0.34);
  background: rgba(217, 244, 229, 0.88);
  color: var(--teal);
}

.game-card-footer.replace-card:not(:disabled):hover,
.game-card-footer.replace-card:not(:disabled):focus-visible {
  background: var(--teal);
  color: #fff;
}

.game-card-footer:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.game-card .grid-cell.marked {
  border-color: rgba(24, 126, 127, 0.34);
  background: #fff;
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 3px rgba(29, 35, 41, 0.08);
}

.game-card .grid-cell.free.marked {
  background: var(--mint);
  color: var(--teal);
}

.game-card .grid-cell.daubable {
  cursor: pointer;
}

.win-ledger {
  display: none;
  gap: 12px;
}

.ledger-section,
.ledger-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.ledger-section {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ledger-section h3 {
  margin: 0;
  font-size: 0.92rem;
}

.win-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  background: #fbfcfb;
}

.win-row strong,
.win-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.win-row b {
  color: var(--teal);
  font-size: 0.86rem;
}

.win-row.jackpot {
  background: linear-gradient(135deg, rgba(255, 228, 92, 0.22), rgba(86, 231, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(217, 164, 35, 0.28);
}

.ledger-empty {
  display: grid;
  min-height: 80px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.filters-panel,
.market-main {
  min-width: 0;
}

.filters-panel {
  position: absolute;
  z-index: 38;
  top: 58px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: min(620px, calc(100vw - 32px));
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.filters-panel[hidden] {
  display: none !important;
}

.panel-block {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-block:last-child {
  border-bottom: 0;
}

.section-label,
.field-label,
.sort-control span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field-label {
  margin-bottom: 7px;
}

.collection-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.collection-card.selected {
  border-color: rgba(24, 126, 127, 0.45);
  box-shadow: inset 4px 0 0 var(--teal);
}

.collection-code {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--teal);
  font-weight: 900;
}

.collection-card strong,
.collection-card small {
  display: block;
}

.collection-card small {
  color: var(--muted);
  margin-top: 2px;
}

.text-input,
.select-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
}

.text-input:focus,
.select-input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(24, 126, 127, 0.22);
  outline-offset: 2px;
}

.seed-rule {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.seed-rule div,
.asset-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 222, 223, 0.75);
}

.seed-rule div:last-child,
.asset-details div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.84rem;
}

dd {
  margin: 0;
  font-weight: 800;
}

.market-main {
  display: grid;
  gap: 18px;
  position: relative;
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(280px, 560px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.market-toolbar h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 12px;
}

.collection-viewbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.collection-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.collection-tabs button,
.collection-filter-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.collection-tabs button {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
}

.collection-tabs button.active {
  background: var(--metallic-blue);
  color: #fff;
  box-shadow: var(--metallic-blue-shadow);
  text-shadow: 0 1px 2px rgba(0, 16, 64, 0.5);
}

.collection-filter-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
}

.collection-filter-button span,
.collection-filter-button span::before,
.collection-filter-button span::after {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.collection-filter-button span {
  position: relative;
}

.collection-filter-button span::before,
.collection-filter-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.collection-filter-button span::before {
  top: -7px;
  width: 26px;
}

.collection-filter-button span::after {
  top: 7px;
  width: 14px;
}

.collection-filter-button.active,
.collection-filter-button:hover {
  background: rgba(31, 111, 232, 0.18);
}

.sort-control {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.segmented-control {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.segmented-control button {
  min-width: 76px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
}

.segmented-control button.active {
  background: var(--metallic-blue);
  color: #fff;
  box-shadow: var(--metallic-blue-shadow);
  text-shadow: 0 1px 2px rgba(0, 16, 64, 0.55);
}

.stats-strip {
  display: none;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.stats-strip article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.stats-strip span {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.stats-strip small {
  color: var(--muted);
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 18px;
}

.cards-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.collection-inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.collection-inventory-tile {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(9, 13, 18, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.collection-inventory-preview {
  display: grid;
  min-height: 132px;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), transparent 46%),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.collection-inventory-tile-border .collection-inventory-preview {
  aspect-ratio: 5 / 7;
  min-height: 174px;
  background:
    linear-gradient(180deg, rgba(226, 246, 238, 0.88), rgba(236, 239, 230, 0.9)),
    rgba(255, 255, 255, 0.12);
}

.collection-inventory-image {
  display: block;
  width: min(74%, 124px);
  height: min(74%, 124px);
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.32));
}

.collection-inventory-tile-border .collection-inventory-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.collection-inventory-tile strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.05;
}

.collection-inventory-status {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(114, 214, 210, 0.16);
  color: #9ff4ed;
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.collection-inventory-tile.locked .collection-inventory-preview {
  filter: grayscale(1) saturate(0.12);
  opacity: 0.58;
}

.collection-inventory-tile.locked .collection-inventory-status {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.collection-card-shell {
  position: relative;
}

.market-card-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.bingo-card {
  --rarity-frame-image: url("assets/card-borders/rarity-common-border.png");
  --card-frame-inset: 5.2%;
  --card-content-bleed: 1.4%;
  --card-content-top-bleed: 2.4%;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr 2fr;
  width: 100%;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  padding: var(--card-frame-inset);
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(29, 35, 41, 0.12),
    0 0 20px var(--rarity-glow, rgba(255, 255, 255, 0.28)),
    0 12px 28px rgba(29, 35, 41, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bingo-card::after {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--rarity-frame-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.bingo-card::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: -35%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0.1) 56%, transparent 70%);
  opacity: 0.42;
  transform: translateX(-58%) rotate(8deg);
  transition: opacity 220ms ease, transform 700ms ease;
}

.bingo-card.card-locked {
  --rarity-glow: rgba(84, 96, 108, 0.18);
  box-shadow:
    0 0 0 1px rgba(29, 35, 41, 0.1),
    0 10px 24px rgba(29, 35, 41, 0.1);
}

.bingo-card.card-locked::after {
  filter: grayscale(1) saturate(0);
  opacity: 0.72;
}

.bingo-card.card-locked::before {
  opacity: 0.18;
}

.bingo-card.card-locked .art-panel,
.bingo-card.card-locked .grid-panel {
  filter: grayscale(1) saturate(0.05);
}

.bingo-card.card-locked .art-panel {
  opacity: 0.66;
}

.card-lock-badge {
  position: absolute;
  z-index: 13;
  left: 50%;
  top: 49%;
  padding: 0.28em 0.62em;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(29, 35, 41, 0.78);
  color: #fff;
  font-size: clamp(0.64rem, 5cqw, 0.92rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(29, 35, 41, 0.22);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.bingo-card-winner-stamp {
  position: absolute;
  z-index: 12;
  top: 51%;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "chest title"
    "chest action";
  align-items: center;
  column-gap: 0.18em;
  width: 84%;
  padding: 0.16em 0.22em;
  border: 0.08em solid rgba(115, 58, 17, 0.72);
  border-radius: 0.22em;
  background:
    linear-gradient(135deg, rgba(255, 246, 194, 0.95), rgba(255, 197, 82, 0.92) 52%, rgba(166, 91, 32, 0.9)),
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.85), transparent 34%);
  color: #4a260b;
  font: inherit;
  font-size: clamp(0.78rem, 11cqw, 1.8rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 9px rgba(255, 247, 181, 0.6);
  box-shadow:
    0 0 0 0.045em rgba(255, 255, 255, 0.72),
    0 0 18px rgba(255, 214, 102, 0.55),
    0 9px 18px rgba(90, 47, 12, 0.28);
  overflow: hidden;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(-14deg);
  transform-origin: center;
}

.bingo-card-winner-stamp::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg);
  animation: winnerChestShine 2.4s ease-in-out infinite;
  pointer-events: none;
}

.bingo-card-winner-stamp:not(button) {
  pointer-events: none;
}

.bingo-card-winner-stamp:disabled {
  cursor: default;
}

.bingo-card-winner-stamp.is-opened {
  filter: saturate(0.75);
  opacity: 0.86;
}

.winner-chest-icon {
  grid-area: chest;
  position: relative;
  display: block;
  width: 1.35em;
  height: 1.08em;
  border: 0.08em solid #5d3512;
  border-radius: 0.14em 0.14em 0.22em 0.22em;
  background:
    linear-gradient(90deg, transparent 42%, rgba(92, 47, 14, 0.72) 42% 58%, transparent 58%),
    linear-gradient(#f7c651 0 43%, #b76f25 43% 100%);
  box-shadow:
    inset 0 0.1em 0 rgba(255, 255, 255, 0.42),
    0 0.08em 0 rgba(77, 35, 8, 0.22);
}

.winner-chest-icon::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: -0.34em;
  height: 0.46em;
  border: 0.08em solid #5d3512;
  border-bottom: 0;
  border-radius: 0.36em 0.36em 0.06em 0.06em;
  background: linear-gradient(135deg, #ffe08a, #c9862d);
}

.winner-chest-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.38em;
  width: 0.28em;
  height: 0.24em;
  border-radius: 999px;
  background: #fff2a6;
  box-shadow: 0 0 0 0.05em rgba(89, 47, 15, 0.45);
  transform: translateX(-50%);
}

.winner-chest-title {
  grid-area: title;
  font-size: 1.15em;
}

.winner-chest-action {
  grid-area: action;
  align-self: start;
  padding-top: 0.12em;
  color: rgba(74, 38, 11, 0.78);
  font-size: 0.42em;
  font-weight: 1000;
}

@keyframes winnerChestShine {
  0%, 36% {
    left: -38%;
  }
  72%, 100% {
    left: 118%;
  }
}

.reward-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 14, 18, 0.54);
  backdrop-filter: blur(6px);
}

.reward-modal {
  width: min(360px, 92vw);
  border: 1px solid rgba(255, 226, 137, 0.82);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 25% 5%, rgba(255, 235, 153, 0.9), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 217, 0.95));
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(255, 213, 99, 0.34);
}

.reward-modal-media {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(31, 48, 55, 0.1);
}

.reward-modal-media img {
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(40, 27, 8, 0.2));
}

.reward-modal-eyebrow {
  margin: 0 0 4px;
  color: var(--teal-700);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.reward-modal h2 {
  margin: 0;
  font-size: 1.65rem;
}

.reward-modal p:last-of-type {
  margin: 8px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.reward-modal-close {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--teal-700);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
}

.mobile-battlepass-close img {
  width: 76%;
  height: 76%;
}

.rarity-common {
  --rarity-border: rgba(255, 255, 255, 0.96);
  --rarity-glow: rgba(255, 255, 255, 0.42);
  --rarity-frame-image: url("assets/card-borders/rarity-common-border.png");
}

.rarity-rare {
  --rarity-border: #42a5ff;
  --rarity-glow: rgba(66, 165, 255, 0.5);
  --rarity-frame-image: url("assets/card-borders/rarity-rare-border.png");
}

.rarity-epic {
  --rarity-border: #9b5cff;
  --rarity-glow: rgba(155, 92, 255, 0.52);
  --rarity-frame-image: url("assets/card-borders/rarity-epic-border.png");
}

.rarity-legendary {
  --rarity-border: #d9a423;
  --rarity-glow: rgba(217, 164, 35, 0.58);
  --rarity-frame-image: url("assets/card-borders/rarity-legendary-border.png");
}

.rarity-mythic {
  --rarity-border: transparent;
  --rarity-glow: rgba(99, 228, 255, 0.55);
  --rarity-frame-image: url("assets/card-borders/rarity-mythic-border.png");
}

.rarity-mythic.bingo-card::after {
  animation: mythic-sparkle 2.8s ease-in-out infinite alternate;
}

.market-card-button:hover .bingo-card,
.market-card-button:focus-visible .bingo-card {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(29, 35, 41, 0.14),
    0 0 28px var(--rarity-glow, rgba(255, 255, 255, 0.35)),
    0 20px 42px rgba(29, 35, 41, 0.18);
}

.market-card-button:hover .bingo-card::before,
.market-card-button:focus-visible .bingo-card::before {
  opacity: 0.72;
  transform: translateX(58%) rotate(8deg);
}

.art-panel {
  position: relative;
  display: grid;
  grid-row: 1;
  margin: calc(var(--card-content-top-bleed) * -1) calc(var(--card-content-bleed) * -1) 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--art-primary, rgba(24, 126, 127, 0.16)), var(--art-secondary, rgba(214, 154, 25, 0.18))),
    #e9f3f2;
}

.art-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(29, 35, 41, 0.16));
  pointer-events: none;
}

.nft-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 82%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(29, 35, 41, 0.24));
}

.nft-image.is-hidden {
  display: none;
}

.fallback-art {
  position: absolute;
  inset: 12px;
  display: none;
  place-items: center;
  border: 1px dashed rgba(29, 35, 41, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(45deg, var(--art-primary, rgba(24, 126, 127, 0.12)) 0 9px, var(--art-secondary, rgba(227, 93, 79, 0.12)) 9px 18px);
}

.fallback-art.is-visible {
  display: grid;
}

.fallback-symbol {
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  font-weight: 1000;
  box-shadow: inset 0 0 0 2px rgba(24, 126, 127, 0.18);
}

.grid-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-row: 2;
  margin: 0 calc(var(--card-content-bleed) * -1) calc(var(--card-content-bleed) * -1);
  grid-template-rows: 1fr;
  min-height: 0;
  align-self: end;
  padding: clamp(3px, 2.6cqw, 9px);
  padding-top: 0;
  background:
    linear-gradient(180deg, #fff, #f9fbfa);
}

.full-art-card {
  background:
    linear-gradient(135deg, var(--art-primary, rgba(24, 126, 127, 0.16)), var(--art-secondary, rgba(214, 154, 25, 0.18))),
    #e9f3f2;
}

.rarity-mythic.full-art-card {
  background:
    linear-gradient(#eef5f7, #eef5f7) padding-box,
    conic-gradient(from 0deg, #ff4fd8, #56e7ff, #65ff8a, #ffe45c, #ff7a4d, #b46cff, #ff4fd8) border-box;
}

.full-art-card .art-panel {
  position: absolute;
  z-index: 0;
  inset:
    0
    calc(var(--card-frame-inset) - var(--card-content-bleed))
    calc(var(--card-frame-inset) - var(--card-content-bleed));
  margin: 0;
}

.full-art-card .art-panel::after {
  inset: 0;
  height: auto;
  background:
    linear-gradient(180deg, rgba(29, 35, 41, 0.02), rgba(29, 35, 41, 0.14)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.full-art-card .nft-image {
  width: 70%;
  height: 41%;
  align-self: start;
  margin-top: calc(var(--card-frame-inset) + clamp(6px, 3.2cqw, 12px) + 10px);
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 14px 22px rgba(29, 35, 41, 0.26));
}

.full-art-card .grid-panel {
  background: transparent;
}

.full-art-card .card-meta {
  position: absolute;
  z-index: 4;
  top: calc(var(--card-frame-inset) - var(--card-content-top-bleed) - clamp(3px, 1.2cqw, 5px));
  left: clamp(7px, 3.5cqw, 12px);
  right: calc(clamp(7px, 3.5cqw, 12px) + 48px);
  border-radius: 7px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.full-art-card .card-owner-badge {
  top: calc(var(--card-frame-inset) - var(--card-content-top-bleed) + clamp(7px, 3.5cqw, 12px) - 7px);
}

.card-owner-badge {
  position: absolute;
  z-index: 7;
  top: calc(clamp(7px, 3.5cqw, 12px) - 7px);
  right: clamp(7px, 3.5cqw, 12px);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 44px;
  pointer-events: none;
}

.card-owner-badge .player-avatar {
  width: 30px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  box-shadow: 0 4px 10px rgba(29, 35, 41, 0.22);
}

.card-owner-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow:
    0 1px 2px rgba(29, 35, 41, 0.92),
    0 0 8px rgba(29, 35, 41, 0.68);
  white-space: nowrap;
}

.full-art-card .asset-name,
.full-art-card .asset-seed {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(29, 35, 41, 0.88),
    0 0 10px rgba(29, 35, 41, 0.56);
}

.card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
}

@keyframes mythic-sparkle {
  from {
    opacity: 0.82;
  }

  to {
    opacity: 1;
  }
}

.asset-name,
.asset-seed {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-name {
  font-size: clamp(0.72rem, 5.4cqw, 0.9rem);
  line-height: 1.1;
}

.asset-seed {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bingo-card .asset-seed {
  display: none;
}

.price-pill {
  border-radius: 999px;
  background: #f4ecda;
  color: #7a520c;
  padding: 5px 7px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.bingo-grid {
  --bingo-grid-gap: clamp(1px, 1.25cqw, 3px);
  --bingo-header-row-height: clamp(7px, 5.2cqw, 18px);
  --bingo-panel-bottom-padding: clamp(3px, 2.6cqw, 9px);
  --bingo-number-row-height: calc((70cqw - var(--bingo-header-row-height) - var(--bingo-panel-bottom-padding) - (var(--bingo-grid-gap) * 5)) / 5);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: var(--bingo-header-row-height) repeat(5, var(--bingo-number-row-height));
  align-self: end;
  gap: var(--bingo-grid-gap);
  min-height: 0;
}

.grid-cell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(29, 35, 41, 0.11);
  border-radius: clamp(2px, 1.6cqw, 4px);
  background: #fff;
  font-size: clamp(0.48rem, 5.3cqw, 0.9rem);
  font-weight: 900;
  line-height: 1;
}

.grid-cell-value {
  position: relative;
  z-index: 2;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 5px rgba(255, 255, 255, 0.82);
}

.daub-stamp {
  position: absolute;
  inset: -6%;
  z-index: 3;
  width: 112%;
  height: 112%;
  opacity: 0.88;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(var(--stamp-rotation, -4deg)) scale(1.08);
  filter:
    saturate(1.18)
    drop-shadow(0 0 0 #000)
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000)
    drop-shadow(0 2px 3px rgba(29, 35, 41, 0.38));
}

.grid-cell.header {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: clamp(0.36rem, 4.6cqw, 0.72rem);
}

.grid-cell.free {
  background: var(--mint);
  color: var(--teal);
  font-size: clamp(0.32rem, 4.1cqw, 0.66rem);
}

.detail-drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 16px;
  align-content: start;
  width: min(420px, calc(100vw - 28px));
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(108%);
  transition: transform 220ms ease;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgba(29, 35, 41, 0.38);
}

.auth-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(29, 35, 41, 0.42);
}

.custom-room-code-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(29, 35, 41, 0.42);
}

.auth-dialog,
.custom-room-code-dialog {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.auth-header,
.custom-room-code-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.auth-header h2,
.custom-room-code-header h2 {
  margin: 4px 0 0;
  line-height: 1.1;
}

.custom-room-code-header small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
}

.custom-room-code-dialog-form {
  display: grid;
  gap: 10px;
}

.custom-room-code-error {
  min-height: 1.1em;
  color: #b54032;
  font-size: 0.78rem;
  font-weight: 900;
}

.custom-room-code-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.auth-close-icon {
  border-color: rgba(227, 93, 79, 0.32);
  background: rgba(227, 93, 79, 0.1);
  color: #9f2f25;
  font-size: 1rem;
}

.auth-close-icon:hover,
.auth-close-icon:focus-visible {
  border-color: rgba(227, 93, 79, 0.72);
  background: var(--coral);
  color: #fff;
  outline: 0;
}

.auth-alpha-note {
  margin: -4px 0 0;
  border: 1px solid rgba(227, 93, 79, 0.24);
  border-radius: 10px;
  background: rgba(227, 93, 79, 0.08);
  color: #8f251c;
  padding: 9px 11px;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.32;
}

.auth-entry,
.auth-form,
.auth-profile,
.auth-tv-panel,
.auth-signin-panel,
.auth-signup-panel {
  display: grid;
  gap: 10px;
}

.auth-guest-action,
.auth-tv-guest-action,
.auth-signin-action {
  min-height: 44px;
}

.auth-signin-action {
  border: 1px solid rgba(24, 126, 127, 0.26);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.auth-wallet-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(216, 222, 223, 0.88);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
}

.auth-wallet-block small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.ronin-mobile-link {
  display: grid;
  min-height: 44px;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.ronin-mobile-link[hidden] {
  display: none;
}

.auth-divider {
  display: grid;
  place-items: center;
  margin: -2px 0;
}

.auth-divider span {
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.1);
  color: var(--teal-dark);
  padding: 7px 14px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-form .primary-action,
.auth-profile .secondary-action,
.auth-actions > * {
  height: 40px;
}

.auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px;
}

.auth-code-group {
  display: grid;
  gap: 10px;
}

.auth-switch-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.auth-link-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-button:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(69, 137, 137, 0.35);
  outline-offset: 3px;
}

.auth-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(69, 137, 137, 0.2);
  border-radius: 8px;
  background: rgba(69, 137, 137, 0.07);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-confirm-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.auth-back-action {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 248, 246, 0.92);
  font-weight: 900;
  color: var(--muted);
}

.auth-close-action {
  background: var(--teal);
  color: #fff;
}

.auth-logout-action {
  border-color: rgba(227, 93, 79, 0.42);
  background: #fff;
  color: #9f2f25;
}

.auth-logout-action:hover,
.auth-logout-action:focus-visible {
  border-color: rgba(227, 93, 79, 0.72);
  background: rgba(227, 93, 79, 0.08);
  color: #8f251c;
  outline: 0;
}

.auth-details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #fbfcfb;
}

.auth-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(216, 222, 223, 0.75);
}

.auth-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.auth-details div:last-child {
  border-bottom: 0;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-note.error {
  color: var(--coral);
}

.credits-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(29, 35, 41, 0.24);
}

.credits-dialog {
  position: fixed;
  z-index: 50;
  top: 72px;
  right: clamp(16px, 3vw, 36px);
  display: grid;
  gap: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 16px;
}

.credits-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.credits-header h2 {
  margin: 4px 0 0;
  line-height: 1.1;
}

.credits-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.credits-balance-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 100px;
  border: 1px solid rgba(24, 126, 127, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 209, 102, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(217, 244, 229, 0.86), rgba(238, 245, 247, 0.9));
  padding: 14px 74px 14px 14px;
  overflow: hidden;
}

.credits-balance-card span,
.credits-balance-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.credits-balance-card strong {
  color: var(--ink);
  font-size: clamp(1.42rem, 8vw, 2rem);
  line-height: 1;
}

.credits-balance-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  width: clamp(44px, 12vw, 58px);
  height: clamp(44px, 12vw, 58px);
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 14px rgba(29, 35, 41, 0.16));
  pointer-events: none;
}

@media (max-width: 480px) {
  .credits-balance-card {
    min-height: 92px;
    padding-right: 60px;
  }

  .credits-balance-icon {
    right: 10px;
    width: 46px;
    height: 46px;
  }
}

.demo-credits-button {
  width: 100%;
}

.credits-details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 4px 12px;
}

.credits-details div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 222, 223, 0.75);
}

.credits-details div:last-child {
  border-bottom: 0;
}

.credits-details dt,
.credits-details dd {
  margin: 0;
  font-size: 0.84rem;
}

.credits-details dt {
  color: var(--muted);
  font-weight: 900;
}

.credits-details dd {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.settings-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(29, 35, 41, 0.18);
}

.settings-menu {
  position: fixed;
  z-index: 50;
  top: 72px;
  right: clamp(16px, 3vw, 36px);
  display: grid;
  gap: 16px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 16px;
}

.settings-header,
.settings-player-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.settings-header h2 {
  margin: 4px 0 0;
  line-height: 1.1;
}

.settings-player-row {
  align-items: center;
  justify-content: start;
  border: 1px solid rgba(216, 222, 223, 0.88);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
}

.settings-player-avatar {
  width: 48px;
  font-size: 1.16rem;
}

.settings-player-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.settings-player-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-player-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.settings-name-section,
.settings-avatar-section,
.settings-daub-section {
  display: grid;
  gap: 10px;
}

.settings-name-form {
  display: grid;
  gap: 8px;
}

.settings-name-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settings-audio-section {
  display: grid;
  gap: 10px;
}

.settings-past-games {
  border: 1px solid rgba(216, 222, 223, 0.88);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 10px;
}

.settings-past-games summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.settings-past-games-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.settings-past-game {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(216, 222, 223, 0.78);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.settings-past-game strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-past-game small,
.settings-past-game span,
.settings-past-game em,
.settings-past-games-empty {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.settings-past-game em {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}

.settings-audio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settings-preview-button {
  width: 100%;
  min-height: 42px;
}

.settings-save-button {
  width: 100%;
  min-height: 44px;
}

.settings-avatar-grid {
  display: grid;
  gap: 8px;
}

.settings-daub-grid {
  display: grid;
  gap: 8px;
}

.settings-picker-button {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgba(24, 126, 127, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 250, 245, 0.86)),
    radial-gradient(circle at 90% 0%, rgba(111, 219, 213, 0.18), transparent 36%);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.settings-picker-button:hover,
.settings-picker-button:focus-visible {
  border-color: rgba(24, 126, 127, 0.58);
  outline: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(24, 126, 127, 0.14);
}

.settings-picker-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.settings-picker-copy small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.settings-picker-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-picker-button em {
  border-radius: 999px;
  background: rgba(24, 126, 127, 0.12);
  color: #187e7f;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
}

.settings-avatar-option,
.settings-daub-option {
  appearance: none;
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 78px;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.settings-avatar-option.selected,
.settings-daub-option.selected {
  border-color: rgba(24, 126, 127, 0.74);
  background: rgba(217, 244, 229, 0.55);
  box-shadow: inset 0 0 0 1px rgba(24, 126, 127, 0.28);
}

.settings-daub-option.locked {
  cursor: not-allowed;
  opacity: 0.46;
  filter: grayscale(1);
}

.settings-daub-option.locked .settings-daub-preview {
  background: rgba(232, 236, 234, 0.88);
}

.mobile-battlepass-task-error {
  grid-column: 1 / -1;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 241, 239, 0.92);
  color: #9c3327;
  font-size: 0.72rem;
  font-weight: 900;
}

.settings-avatar-option:hover,
.settings-avatar-option:focus-visible,
.settings-daub-option:hover,
.settings-daub-option:focus-visible {
  border-color: rgba(24, 126, 127, 0.5);
  outline: 0;
}

.settings-avatar-preview {
  width: 42px;
  font-size: 0.98rem;
}

.settings-daub-preview {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(216, 222, 223, 0.95);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 246, 0.92)),
    repeating-linear-gradient(45deg, rgba(29, 35, 41, 0.05) 0 5px, transparent 5px 10px);
}

.settings-daub-preview .daub-stamp {
  position: relative;
  inset: auto;
  width: 36px;
  height: 36px;
  opacity: 0.92;
  transform: rotate(-6deg);
}

.settings-choice-backdrop {
  position: fixed;
  z-index: 58;
  inset: 0;
  background: rgba(13, 22, 26, 0.34);
  backdrop-filter: blur(2px);
}

.settings-choice-dialog {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 28px));
  max-height: min(78vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(24, 126, 127, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 246, 0.98)),
    radial-gradient(circle at top right, rgba(111, 219, 213, 0.18), transparent 34%);
  box-shadow: 0 24px 70px rgba(29, 35, 41, 0.28);
  padding: 16px;
  transform: translate(-50%, -50%);
}

.settings-choice-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.settings-choice-header h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.05;
}

.settings-choice-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.settings-choice-grid {
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.settings-avatar-choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settings-daub-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-choice-grid .settings-avatar-option,
.settings-choice-grid .settings-daub-option {
  min-height: 92px;
}

.settings-choice-grid .settings-daub-option small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.settings-choice-grid .settings-daub-option.locked small {
  color: #8c5f5a;
}

@media (max-width: 560px) {
  .settings-choice-dialog {
    top: auto;
    right: calc(10px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
    width: auto;
    max-height: min(74vh, 620px);
    transform: none;
  }

  .settings-avatar-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-daub-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  width: 38px;
  flex: 0 0 auto;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}

.drawer-card-slot {
  display: grid;
  width: min(240px, 100%);
  place-items: center;
  justify-self: center;
}

.drawer-card-slot .bingo-card {
  width: 100%;
  height: auto;
}

.asset-details {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #fbfcfb;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-actions > * {
  height: 38px;
  min-height: 38px;
}

.secondary-action {
  display: grid;
  place-items: center;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  text-decoration: none;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 800;
}

@media (min-width: 981px) {
  body.desktop-game-tools {
    background: var(--page-black);
  }

  body.desktop-game-tools:not(.game-room-focus) .app-header {
    grid-template-columns: minmax(240px, 0.75fr) minmax(360px, 1fr) minmax(270px, auto);
    gap: 14px;
    min-height: 64px;
    padding: 9px clamp(20px, 3vw, 38px);
  }

  body.desktop-game-tools:not(.game-room-focus) .brand-lockup {
    gap: 10px;
  }

  body.desktop-game-tools:not(.game-room-focus) .brand-mark {
    width: 40px;
  }

  body.desktop-game-tools:not(.game-room-focus) .brand-logo {
    width: 36px;
    height: 36px;
  }

  body.desktop-game-tools:not(.game-room-focus) .brand-lockup h1 {
    font-size: 1.02rem;
  }

  body.desktop-game-tools:not(.game-room-focus) .brand-lockup p {
    overflow: hidden;
    max-width: 290px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.desktop-game-tools:not(.game-room-focus) .top-nav {
    justify-self: center;
    width: min(100%, 520px);
  }

  body.desktop-game-tools:not(.game-room-focus) .top-nav button {
    flex: 1 1 0;
    min-height: 34px;
    padding: 6px 12px;
  }

  body.desktop-game-tools:not(.game-room-focus) .header-actions {
    justify-self: end;
    gap: 8px;
  }

  body.desktop-game-tools:not(.game-room-focus) .credits-button,
  body.desktop-game-tools:not(.game-room-focus) .account-button,
  body.desktop-game-tools:not(.game-room-focus) .settings-button {
    min-height: 36px;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell {
    display: block;
    min-height: calc(100vh - 64px);
    padding: clamp(14px, 2vw, 24px) clamp(70px, 7vw, 118px) 84px;
    background: var(--page-black);
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-stage,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-stage,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="game"] .game-setup-panel {
    display: none;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-setup-panel,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-setup-panel {
    display: grid;
    width: min(100%, 1120px);
    max-width: none;
    margin: 0 auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-control-header {
    border-bottom: 0;
    padding: 0 0 8px;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-join-block,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-picker-block,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .mobile-card-confirm,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-start-actions,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="rooms"] .game-prize-table {
    display: none;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-control-header,
  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-prize-table {
    display: none;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-join-block {
    display: grid;
    padding: 12px 0;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-picker-block {
    border-bottom: 0;
    padding: 0;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-card-picker {
    grid-template-columns: repeat(auto-fit, minmax(184px, 210px));
    justify-content: center;
    max-height: none;
    overflow: visible;
  }

  body.desktop-game-tools:not(.game-room-focus) .game-shell[data-mobile-step="cards"] .game-picker-card .bingo-card {
    max-width: 210px;
  }

  body.desktop-game-tools:not(.game-room-focus) .room-launchers {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(20px, 4vw, 54px);
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 22px) 0 0;
  }

  body.desktop-game-tools:not(.game-room-focus) .room-launcher {
    min-height: clamp(230px, 27vw, 320px);
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
  }

  body.desktop-game-tools:not(.game-room-focus) .room-launcher::before {
    inset: 18% 12%;
    opacity: 0.74;
  }

  body.desktop-game-tools:not(.game-room-focus) .room-launcher img {
    width: min(94%, 360px);
    max-height: 292px;
  }

  body.desktop-game-tools:not(.game-room-focus) .room-launcher-live {
    order: -1;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(12px, 1.8vw, 20px);
    width: min(96vw, 1180px);
    max-height: min(86vh, 620px);
    padding: clamp(12px, 1.8vw, 20px);
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room),
  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button.active {
    width: 100%;
    max-width: 360px;
    justify-self: center;
    border-radius: 16px;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metrics {
    top: 34%;
    right: 14%;
    left: 14%;
    gap: 7px;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0 7px;
    border-radius: 11px;
    padding: 6px 8px;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric small {
    font-size: 0.62rem;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) .game-room-metric strong {
    font-size: 1.12rem;
  }

  body.desktop-game-tools .game-shell.room-panel-live-open .game-table-button.live-room-board-button:not(.custom-room) [data-room-metric="timer"] strong {
    font-size: 0.88rem;
  }

  body.desktop-game-tools.game-room-focus {
    --desktop-game-side-lane: clamp(72px, 6vw, 108px);
    --desktop-game-chat-width: clamp(320px, 25vw, 390px);
    --desktop-game-header-height: clamp(94px, 12vh, 122px);
  }

  body.desktop-game-tools.game-room-focus .game-shell[data-mobile-step="game"] {
    display: grid;
    grid-template-columns: var(--desktop-game-side-lane) minmax(0, 1fr) var(--desktop-game-side-lane);
    grid-template-rows: var(--desktop-game-header-height) 52px minmax(0, 1fr);
    gap: 4px;
    overflow: hidden;
    padding: 6px;
  }

  body.desktop-game-tools.game-room-focus .game-stage {
    display: contents;
    min-height: 0;
  }

  body.desktop-game-tools.game-room-focus .focused-game-header {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(420px, 1fr) 52px;
    align-items: center;
    gap: 12px;
    min-height: var(--desktop-game-header-height);
    border-radius: 0;
    background: transparent;
    padding: 0 8px;
    pointer-events: none;
    z-index: 6;
  }

  body.desktop-game-tools.game-room-focus .focused-game-brand {
    grid-column: 1;
    justify-self: start;
    gap: 10px;
    transform: translateY(-1px);
  }

  body.desktop-game-tools.game-room-focus .focused-game-brand img {
    width: 34px;
    height: 34px;
  }

  body.desktop-game-tools.game-room-focus .focused-game-brand strong {
    max-width: none;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.05;
  }

  body.desktop-game-tools.game-room-focus .game-room-header-banner {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    width: min(52vw, 660px);
    min-height: var(--desktop-game-header-height);
    height: var(--desktop-game-header-height);
    border-radius: 0;
    background-size: contain;
    background-position: center;
    filter: saturate(1.08) brightness(1.08) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.46));
    pointer-events: none;
    z-index: 5;
  }

  body.desktop-game-tools.game-room-focus .game-room-header-banner .creator-draw-controls {
    pointer-events: auto;
  }

  body.desktop-game-tools.game-room-focus .called-ball-exit {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1) url("assets/Icons/Cancel.png") center / 74% 74% no-repeat;
    color: transparent;
    font-size: 0;
    pointer-events: auto;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 10px 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
  }

  body.desktop-game-tools.game-room-focus .called-ball-row {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-height: 52px;
    height: 52px;
  }

  body.desktop-game-tools.game-room-focus .called-ball-strip,
  body.desktop-game-tools.game-room-focus .game-stage.table-theme-fiesta .called-ball-strip,
  body.desktop-game-tools.game-room-focus .game-stage.table-theme-beach .called-ball-strip,
  body.desktop-game-tools.game-room-focus .game-stage.table-theme-halloween .called-ball-strip {
    align-items: center;
    min-height: 52px;
    height: 52px;
    gap: 6px;
    overflow: hidden;
    border-color: transparent;
    background: transparent;
    padding: 3px 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 38px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 38px), transparent 100%);
  }

  body.desktop-game-tools.game-room-focus .called-ball {
    width: 42px;
    will-change: transform;
  }

  body.desktop-game-tools.game-room-focus .called-ball-face {
    width: 72%;
    border-width: 1px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.9),
      inset -1px -2px 3px rgba(29, 35, 41, 0.12),
      inset 1px 1px 2px rgba(255, 255, 255, 0.95);
  }

  body.desktop-game-tools.game-room-focus .called-ball-face small {
    font-size: 0.36rem;
    margin-top: 0;
    transform: translateY(-3px);
    line-height: 0.85;
  }

  body.desktop-game-tools.game-room-focus .called-ball-face strong {
    color: #111;
    font-size: 0.82rem;
    font-weight: 1000;
    margin-top: -5px;
    line-height: 0.9;
  }

  body.desktop-game-tools.game-room-focus .called-ball.roll-in {
    animation: called-ball-roll-in 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
  }

  body.desktop-game-tools.game-room-focus .called-ball.push-slide {
    animation: called-ball-push-slide 560ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
  }

  body.desktop-game-tools.game-room-focus .game-cards-grid {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 12px;
  }

  body.desktop-game-tools.game-room-focus .game-cards-grid .game-empty {
    width: calc(100% - var(--desktop-game-chat-width) - 22px);
    height: calc(100% - 16px);
    margin: 8px 0 8px 8px;
    padding: 84px 16px 16px;
  }

  body.desktop-game-tools.game-room-focus .game-no-winner-announcement {
    top: 16px;
    left: calc((100% - var(--desktop-game-chat-width) - 24px) / 2);
    width: min(560px, calc(100% - var(--desktop-game-chat-width) - 48px));
    max-width: calc(100% - var(--desktop-game-chat-width) - 48px);
  }

  body.desktop-game-tools.game-room-focus .table-chat-panel {
    position: fixed;
    top: calc(6px + var(--desktop-game-header-height) + 4px + 52px + 4px);
    right: calc(var(--desktop-game-side-lane) + 10px);
    bottom: 8px;
    left: auto;
    width: min(var(--desktop-game-chat-width), calc(100vw - 32px));
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 12px;
  }

  body.desktop-game-tools.game-room-focus .table-chat-header {
    min-height: 54px;
    gap: 5px;
    padding: 7px 10px;
  }

  body.desktop-game-tools.game-room-focus .table-chat-tab {
    padding: 5px 8px;
  }

  body.desktop-game-tools.game-room-focus .mobile-quick-tool {
    position: fixed;
    bottom: 12px;
    min-width: 76px;
    min-height: 52px;
  }

  body.desktop-game-tools.game-room-focus .mobile-quick-tool-battlepass {
    left: 12px;
  }

  body.desktop-game-tools.game-room-focus .mobile-quick-tool-chat,
  body.desktop-game-tools.game-room-focus:not(.desktop-chat-collapsed) .mobile-quick-tool-chat {
    right: 12px;
  }

  body.desktop-game-tools.game-room-focus .mobile-battlepass-panel {
    inset: 0;
    z-index: 5000;
    width: auto;
    height: auto;
    max-height: none;
    min-width: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 12% 0%, rgba(116, 190, 214, 0.58), transparent 34%),
      radial-gradient(circle at 86% 18%, rgba(255, 213, 112, 0.34), transparent 30%),
      linear-gradient(180deg, #3a7891 0%, #235d78 46%, #123a52 100%);
    backdrop-filter: none;
  }
}

/* Mobile styles are split into mobile-vertical.css and mobile-horizontal.css. */
