:root {
  --bg: #f4ead7;
  --panel: #fff7eb;
  --ink: #17120f;
  --line: #201814;
  --mint: #78f2b6;
  --blue: #4c80ff;
  --orange: #ffb54a;
  --gold: #ffe38f;
  --shadow: 0 10px 0 rgba(32, 24, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(180deg, #f9efde 0%, #f0e3cd 100%);
  color: var(--ink);
  min-height: 100vh;
}

button,
input,
select,
summary {
  font: inherit;
}

.coin-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  vertical-align: -0.18em;
}

.page-shell {
  max-width: 1880px;
  margin: 0 auto;
  padding: 24px 24px 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b6d4e;
  font-weight: 700;
}

.brand-block h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: 1rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
}

.topbar-stats {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.stat-chip,
.panel,
.arena-frame,
.history-strip,
.modal-card {
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
}

.pill {
  min-width: 118px;
  padding: 8px 12px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.viewer-pill {
  cursor: pointer;
}

.viewer-pill:hover,
.viewer-pill[aria-expanded="true"] {
  background: #e9fff3;
}

.viewer-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(240px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.viewer-popover > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.viewer-list {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.viewer-list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 2px solid rgba(32, 24, 20, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.viewer-list-meta {
  color: #7b5f45;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pill.accent {
  background: #ffefbf;
}

.pill-label,
.chip-label,
.panel-tag,
.hint-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill strong,
.stat-chip strong {
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.sidebar,
.broadcast-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sidebar {
  position: relative;
  z-index: 3;
}

.left-rail {
  padding-right: 0;
}

.right-rail {
  position: relative;
  z-index: 6;
}

.broadcast-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  margin-top: -145px;
}

.match-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.matchup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: -4px;
}

.matchup-stat {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.matchup-stat.left {
  background: #e9fff3;
}

.matchup-stat.right {
  background: #ebf0ff;
}

.matchup-stat-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.matchup-stat-value {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 800;
}

.fighter-label {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 3.35rem);
  min-width: 0;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 3px #18120f;
  paint-order: stroke fill;
  overflow-wrap: normal;
  word-break: normal;
}

.team-name {
  display: block;
  white-space: nowrap;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.team-name.is-compact {
  font-size: 0.84em;
  line-height: 0.9;
}

.team-name.is-dense {
  font-size: 0.7em;
  line-height: 0.88;
}

.team-name.is-multiline {
  white-space: normal;
  text-wrap: balance;
}

.team-name-separator {
  display: inline;
  font-size: 0.62em;
  letter-spacing: 0.01em;
}

.team-name-vs {
  color: #fffaf1;
  -webkit-text-stroke-color: #050505;
}

.team-name-part {
  display: inline;
}

.match-banner.is-ffa {
  grid-template-columns: minmax(0, 1fr);
}

.match-banner.is-ffa .versus-wrap,
.match-banner.is-ffa .fighter-label.right {
  display: none;
}

.match-banner.is-ffa .fighter-label.left {
  text-align: center;
}

.match-banner.is-ffa .team-name {
  white-space: normal;
  text-wrap: balance;
}

.fighter-label.left {
  color: var(--mint);
}

.fighter-label.right {
  color: var(--blue);
}

.versus-wrap {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
}

.history-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff4cf;
  font-size: 0.92rem;
  font-weight: 700;
}

.history-title {
  text-transform: uppercase;
  color: #7e5628;
}

.history-map {
  color: #9b4f18;
  white-space: nowrap;
}

.match-bet-panel {
  margin-top: 6px;
  border: 2px solid rgba(70, 56, 46, 0.55);
  box-shadow: none;
  border-radius: 14px;
  padding: 6px 8px 7px;
  background: rgba(255, 255, 255, 0.74);
}

.match-bet-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

#matchBetLeftLabel {
  justify-self: start;
}

#matchBetRightLabel {
  justify-self: end;
  text-align: right;
}

.match-bet-track {
  position: relative;
  margin-top: 5px;
  display: flex;
  width: 100%;
  height: 14px;
  border: 1px solid rgba(70, 56, 46, 0.5);
  border-radius: 999px;
  overflow: hidden;
  background: #f0ece7;
}

.match-bet-fill {
  display: block;
  height: 100%;
}

.match-bet-fill.left {
  width: 50%;
  background: var(--mint);
}

.match-bet-fill.right {
  width: 50%;
  background: #7c92f2;
}

.match-bet-center-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.64rem;
  line-height: 1;
  white-space: nowrap;
  font-weight: 800;
  color: #2f251f;
  background: rgba(255, 249, 239, 0.84);
  border: 1px solid rgba(70, 56, 46, 0.35);
  border-radius: 999px;
  padding: 1px 6px;
}

.arena-frame {
  position: relative;
  min-width: 0;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdfd 100%);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

#arenaCanvas {
  display: block;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border: 4px solid #111;
  background: #fff;
  image-rendering: auto;
}

.arena-watermark {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.16);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.6rem);
  pointer-events: none;
}

.arena-winner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}

.arena-winner-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 225, 0.08) 0%, rgba(255, 248, 225, 0.42) 100%);
}

.arena-winner-label,
.arena-winner-overlay strong {
  position: relative;
  z-index: 1;
}

.arena-winner-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.arena-winner-overlay strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.broadcast-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mobile-bet-host {
  display: none;
}

.mobile-drawer-host {
  display: none;
}

.mobile-drawer {
  border: 3px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-drawer summary {
  padding: 14px 16px;
  background: #fff4cf;
}

.mobile-drawer-content {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.stat-chip {
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  text-align: center;
}

.stat-chip.left {
  background: #dfffe8;
}

.stat-chip.right {
  background: #dfe8ff;
}

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.panel h2,
.panel h3 {
  margin: 0;
  text-transform: uppercase;
  font-family: "Arial Narrow", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.panel-tag {
  color: #9b6d37;
}

.panel-collapse-button {
  padding: 5px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff4cf;
  color: #8b663a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.panel-collapse-button:hover {
  background: #ffe7a7;
}

.guest-compact,
.auth-form,
.bet-box,
.fold-panel,
.wallet-hero {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.guest-compact {
  padding: 14px;
}

.guest-copy {
  margin: 0;
  font-weight: 700;
}

.wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff8d6 0%, #ffe7a8 100%);
}

.wallet-name,
.wallet-coins {
  margin: 0;
}

.wallet-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.wallet-badge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: fill;
}

.wallet-coins {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 1.4rem;
  color: #825002;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.auth-form,
.bet-box {
  padding: 14px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-form input,
.bet-amount input,
.bet-amount select {
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}

.auth-form button,
.reward-button,
.team-bet,
.ghost-button,
.header-auth-button,
.auth-tab {
  padding: 11px 13px;
  border: 3px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
  font-weight: 700;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.auth-form button:hover,
.reward-button:hover,
.team-bet:hover,
.ghost-button:hover,
.header-auth-button:hover,
summary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.auth-form button,
.header-auth-button {
  background: var(--orange);
}

.auth-form button {
  margin-top: 14px;
}

#logoutButton {
  padding: 5px 9px;
  min-width: 68px;
  width: auto;
  background: #ffd4d4;
  color: #7f1010;
  border-color: #7f1010;
  font-size: 0.78rem;
  justify-self: end;
}

#logoutButton:hover {
  filter: brightness(1.02);
}

.radio-panel {
  display: grid;
  gap: 10px;
}

.radio-player-shell {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fffdf6;
  padding: 10px;
}

.radio-now-playing {
  display: grid;
  gap: 4px;
  min-height: 48px;
}

.radio-now-playing strong {
  font-size: 1.05rem;
}

.radio-now-playing span {
  color: #6f573b;
  font-size: 0.92rem;
}

.radio-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.radio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.radio-actions .ghost-button {
  flex: 0 0 auto;
  background: #fff1c7;
}

.radio-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radio-picker-toggle {
  width: 100%;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff1c7;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.radio-picker {
  display: grid;
  gap: 9px;
}

.radio-search {
  display: grid;
  gap: 4px;
}

.radio-search span {
  color: #8b6d4e;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.radio-form input {
  width: 100%;
  padding: 11px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}

.radio-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.radio-category-tab {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff7eb;
  color: #6f573b;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.radio-category-tab.is-active {
  background: #201814;
  color: #fff7eb;
}

.radio-track-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.radio-track-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fffdf6;
  box-shadow: 0 4px 0 rgba(32, 24, 20, 0.13);
  text-align: left;
  cursor: pointer;
}

.radio-track-option:hover,
.radio-track-option.is-selected {
  background: #fff1c7;
}

.radio-track-option.is-selected {
  outline: 3px solid rgba(255, 181, 74, 0.5);
}

.radio-track-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.radio-track-main strong,
.radio-track-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-track-main strong {
  font-size: 0.95rem;
}

.radio-track-main small {
  color: #6f573b;
  font-size: 0.82rem;
  font-weight: 700;
}

.radio-track-category {
  max-width: 92px;
  overflow: hidden;
  padding: 5px 8px;
  border: 2px solid #8b6d4e;
  border-radius: 999px;
  background: #ffe38f;
  color: #5f3c16;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.radio-empty {
  padding: 12px;
  border: 3px dashed #8b6d4e;
  border-radius: 14px;
  background: #fff7eb;
  color: #6f573b;
  font-weight: 800;
}

.radio-form > button {
  padding: 11px 13px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--orange);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.radio-queue {
  max-height: 220px;
  overflow-y: auto;
}

.radio-queue-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b6d4e;
}

.radio-queue li strong {
  display: block;
}

@media (max-width: 560px) {
  .radio-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .radio-track-option {
    grid-template-columns: 1fr;
  }

  .radio-track-category {
    max-width: 100%;
    justify-self: start;
  }
}

.auth-field {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.auth-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-tab {
  background: #fff;
  flex: 1;
}

.auth-tab.is-active {
  background: var(--gold);
}

.auth-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  font-weight: 700;
  color: #8f2f19;
}

.ghost-button {
  background: #fff;
}

.header-auth-button {
  min-width: 134px;
}

.audio-toggle {
  min-width: 108px;
}

.audio-toggle {
  position: relative;
  min-width: 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  background: #fff;
}

.audio-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 24px 24px no-repeat url("/static/sonido.svg");
}

.audio-toggle.is-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 3px;
  background: #c62828;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.store-toggle {
  min-width: 96px;
  background: #fff3cf;
}

.profile-toggle {
  min-width: 96px;
  background: #e9efff;
}

.mobile-pc-hint {
  display: none;
}

.store-panel {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 25;
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.store-head h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
  font-size: 1.2rem;
  flex: 1;
  text-align: center;
}

#storeBackButton,
#storeCloseButton {
  min-width: 82px;
}

#storeCloseButton {
  min-width: 64px;
  padding: 6px 9px;
  border-width: 2px;
  font-size: 0.72rem;
  border-radius: 9px;
}

.store-root-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 6px 4px 10px;
}

.store-nav-button {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff6d8;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.store-nav-button:hover {
  filter: brightness(1.03);
}

.store-grid {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.store-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(136px, auto);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.store-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-item-tag {
  grid-column: 2 / -1;
  font-size: 0.75rem;
  color: #6d4f33;
}

.store-item-title {
  grid-template-columns: minmax(0, 1fr) minmax(136px, auto);
}

.store-item-title .store-item-name {
  grid-column: 1;
}

.store-item-title .store-item-tag {
  grid-column: 1;
  margin-top: -2px;
}

.store-item-title .store-buy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.store-item-mode {
  grid-template-columns: minmax(0, 1fr) minmax(136px, auto);
  align-items: start;
}

.store-item-mode .store-item-name {
  grid-column: 1;
  font-size: 1.18rem;
  line-height: 0.96;
  overflow-wrap: normal;
  word-break: normal;
}

.store-item-mode .store-item-tag {
  grid-column: 1;
  margin-top: -1px;
}

.store-item-mode .store-buy-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.store-thumb {
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: inline-block;
}

.store-thumb-map {
  border-radius: 8px;
}

.store-thumb-title {
  border-radius: 10px;
  background: #ffe4a8;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-thumb-badge {
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.store-thumb-map-normal { background: linear-gradient(135deg, #f5f0de, #e6dfc7); }
.store-thumb-map-desierto { background: linear-gradient(135deg, #eac77d, #b47b34); }
.store-thumb-map-infierno { background: linear-gradient(135deg, #ff8a55, #931e0a); }
.store-thumb-map-tormenta { background: linear-gradient(135deg, #8fb4ff, #2f4f94); }
.store-thumb-map-pinball { background: linear-gradient(135deg, #ffef96, #d874ea); }
.store-thumb-map-veneno { background: linear-gradient(135deg, #8ff5c0, #197d52); }

.store-buy-button {
  min-width: 136px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--gold);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
}

.store-buy-button:disabled {
  background: #d8d2c6;
  color: #6d6659;
  cursor: not-allowed;
}

.profile-panel {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 26;
  width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.profile-block {
  padding: 10px;
}

.profile-block h4 {
  margin: 0 0 8px;
  text-transform: uppercase;
}

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

.profile-badge-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.profile-badge-card img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid var(--line);
}

.profile-badge-copy {
  min-width: 0;
}

.profile-badge-name {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.profile-equip-button {
  margin-top: 6px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffe4a8;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-equip-button:disabled {
  background: #d8d2c6;
  color: #6d6659;
  cursor: not-allowed;
}

.status-line:empty,
.auth-status:empty {
  display: none;
}

.reward-button {
  flex: 1;
  background: var(--mint);
}

.reward-button:disabled {
  background: #d5d1c7;
  color: #6d6659;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.bet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.odds-card {
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.odds-card.left {
  background: #e9fff3;
}

.odds-card.right {
  background: #ebf0ff;
}

.odds-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.odds-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.08rem;
  font-weight: 800;
}

.team-bet.left {
  background: var(--mint);
}

.team-bet.right {
  background: #a8bbff;
}

.bet-amount {
  display: block;
  margin-top: 12px;
}

.bet-summary {
  padding: 12px 14px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff4cf;
  font-weight: 700;
}

.fold-panel {
  padding: 0;
  overflow: hidden;
}

summary {
  list-style: none;
  padding: 14px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

.fold-panel .feed-list {
  padding: 0 14px 14px;
}

.leaderboard-list,
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.leaderboard-list li,
.feed-list li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.leaderboard-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rank-badge {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--gold);
  margin-right: 8px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

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

.chat-messages {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.chat-message {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.chat-message:focus-visible {
  outline: 3px solid #ffb54a;
  outline-offset: 2px;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b6d4e;
}

.chat-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chat-user-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.chat-badge {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: fill;
}

.chat-user {
  color: var(--ink);
}

.chat-title {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #8b6d4e;
}

.chat-bet-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(32, 24, 20, 0.08);
}

.chat-body {
  font-weight: 700;
  line-height: 1.22;
  word-break: break-word;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chat-form input,
.chat-form button {
  border: 3px solid var(--line);
  border-radius: 12px;
}

.chat-form input {
  padding: 11px 12px;
  background: #fff;
  font-weight: 700;
}

.chat-form button {
  padding: 11px 13px;
  background: var(--orange);
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

.status-line {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-weight: 700;
  color: #7d331c;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
  padding: 12px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 6, 0.42);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
}

.welcome-card {
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
}

.welcome-content {
  display: grid;
  gap: 12px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding: 8px 2px 4px;
  color: #2b211b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.32;
}

.welcome-content p {
  margin: 0;
  white-space: pre-line;
}

.welcome-question {
  display: inline;
}

.welcome-answer {
  display: inline-block;
  font-size: 0.92em;
}

.welcome-content strong {
  font-weight: 900;
}

.welcome-accept-button {
  width: 100%;
  margin-top: 16px;
  padding: 11px 13px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--orange);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-matchup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.badge-collection-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.badge-collection-tab,
.badge-option {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.badge-collection-tab {
  padding: 10px 12px;
  text-transform: uppercase;
}

.badge-collection-tab.is-active {
  background: var(--gold);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: auto;
  scrollbar-color: #ffb54a #fff3d1;
}

.badge-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.1;
}

.badge-option.is-selected {
  background: #fff4cf;
}

.badge-option-image {
  width: 36px;
  height: 36px;
  object-fit: fill;
}

.badge-grid::-webkit-scrollbar {
  width: 18px;
}

.badge-grid::-webkit-scrollbar-track {
  background: #fff3d1;
  border-radius: 999px;
  border: 2px solid #201814;
}

.badge-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffcc74 0%, #ff9f2f 100%);
  border-radius: 999px;
  border: 2px solid #201814;
}

.badge-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffd483 0%, #ffad45 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

@media (max-width: 1260px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .broadcast-card,
  .sidebar {
    width: min(100%, 760px);
    justify-self: center;
  }
}

@media (max-width: 1620px) {
  .layout {
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .broadcast-card {
    max-width: 590px;
    margin-top: -108px;
  }

  #arenaCanvas {
    max-width: 540px;
  }
}

@media (max-width: 1260px) {
  .broadcast-card {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    --mobile-arena-width: min(calc(100vw - 16px), 470px);
    padding: 10px 8px 18px;
    overflow-x: hidden;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .brand-block {
    display: none;
  }

  .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .topbar-stats {
    display: flex;
    gap: 5px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .mobile-pc-hint {
    display: flex;
    flex: 1 1 52px;
    min-width: 48px;
    max-width: 72px;
    flex-direction: column;
    color: #6f573b;
    font-size: 0.42rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 0.98;
    text-align: center;
    text-transform: uppercase;
  }

  .pill {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .pill-label {
    font-size: 0.66rem;
  }

  .pill strong,
  .stat-chip strong {
    font-size: 0.92rem;
  }

  .audio-toggle,
  .header-auth-button,
  .store-toggle,
  .profile-toggle {
    width: 54px;
    min-width: 54px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
  }

  .header-auth-button {
    position: relative;
    min-width: 60px;
    font-size: 0;
  }

  .header-auth-button::before {
    content: "Entrar";
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .store-toggle {
    position: static;
    z-index: auto;
    width: 52px;
    min-width: 52px;
    height: 40px;
    border-width: 2px;
    border-radius: 10px;
    padding: 0;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    background: #fff3cf;
  }

  .profile-toggle {
    width: 52px;
    min-width: 52px;
    height: 40px;
    border-width: 2px;
    border-radius: 10px;
    padding: 0;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
  }

  .store-panel {
    top: 48px;
    right: 8px;
    width: min(360px, calc(100vw - 16px));
    max-height: min(68vh, 500px);
    padding: 10px;
    border-width: 2px;
    border-radius: 12px;
  }

  .profile-panel {
    top: 48px;
    right: 8px;
    width: min(360px, calc(100vw - 16px));
    max-height: min(68vh, 500px);
    padding: 10px;
    border-width: 2px;
    border-radius: 12px;
  }

  .store-item {
    grid-template-columns: 30px minmax(0, 1fr) minmax(124px, auto);
    gap: 6px;
    padding: 7px 8px;
  }

  .store-item-tag {
    grid-column: 2 / -1;
    font-size: 0.68rem;
  }

  .store-buy-button {
    min-width: 124px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .store-item-title {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .store-item-title .store-item-name {
    grid-column: 1;
  }

  .store-item-title .store-item-tag {
    grid-column: 1;
    margin-top: 0;
  }

  .store-item-title .store-buy-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-width: 0;
    width: min(156px, 100%);
  }

  .store-item-mode {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .store-item-mode .store-item-name {
    grid-column: 1;
    font-size: 1rem;
  }

  .store-item-mode .store-item-tag {
    grid-column: 1;
    margin-top: 0;
  }

  .store-item-mode .store-buy-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    min-width: 0;
    width: min(156px, 100%);
  }

  .layout {
    grid-template-columns: repeat(2, minmax(0, calc((var(--mobile-arena-width) - 26px) / 2)));
    gap: 10px;
    justify-content: center;
    justify-items: stretch;
  }

  .broadcast-card {
    order: 1;
    grid-column: 1 / -1;
    max-width: var(--mobile-arena-width);
    width: var(--mobile-arena-width);
    margin-top: 0;
    margin-inline: auto;
    gap: 8px;
    justify-self: stretch;
  }

  .sidebar {
    display: grid;
    width: 100%;
    gap: 10px;
    justify-self: stretch;
  }

  .left-rail {
    order: 3;
    grid-column: 2;
  }

  .right-rail {
    order: 2;
    grid-column: 1;
  }

  .left-rail .panel {
    width: calc(100% - 18px);
    justify-self: start;
    margin-left: 8px;
  }

  .match-banner {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
  }

  .team-name {
    display: block;
    font-size: clamp(1.55rem, 8.5vw, 2.65rem);
    letter-spacing: -0.02em;
    line-height: 0.88;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .team-name.is-compact {
    font-size: clamp(1.22rem, 6.2vw, 2.08rem);
    line-height: 0.9;
  }

  .team-name.is-dense {
    font-size: clamp(1rem, 4.9vw, 1.7rem);
    line-height: 0.92;
  }

  .fighter-label {
    font-size: inherit;
    -webkit-text-stroke: 1.6px #18120f;
    line-height: 0.86;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .fighter-label.left {
    text-align: right;
  }

  .fighter-label.right {
    text-align: left;
  }

  .match-banner.is-ffa {
    grid-template-columns: minmax(0, 1fr);
  }

  .match-banner.is-ffa .fighter-label.left {
    text-align: center;
  }

  .versus-wrap {
    font-size: 1rem;
    text-align: center;
  }

  .history-strip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.74rem;
    padding: 7px 10px;
    border-radius: 11px;
  }

  .match-bet-panel {
    margin-top: 5px;
    padding: 5px 7px 6px;
    border-radius: 11px;
    border-width: 1px;
  }

  .match-bet-meta {
    font-size: 0.64rem;
    gap: 5px;
  }

  .match-bet-center-label {
    font-size: 0.56rem;
    padding: 1px 5px;
  }

  .match-bet-track {
    margin-top: 4px;
    height: 12px;
    border-width: 1px;
  }

  .arena-frame {
    padding: 6px;
    width: var(--mobile-arena-width);
    max-width: var(--mobile-arena-width);
    margin: 0 auto;
  }

  #arenaCanvas {
    max-width: none;
    width: 100%;
    border-width: 3px;
  }

  .arena-watermark {
    bottom: 18px;
    font-size: 0.7rem;
  }

  .panel {
    padding: 10px;
    box-sizing: border-box;
  }

  .panel-head h2 {
    font-size: 0.88rem;
  }

  .panel-tag {
    font-size: 0.62rem;
  }

  .wallet-hero {
    gap: 8px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-name {
    font-size: 1rem;
  }

  .wallet-coins {
    font-size: 1.2rem;
  }

  .action-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .odds-row,
  .bet-actions,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    gap: 4px;
  }

  .chat-messages {
    min-height: 58px;
    max-height: 92px;
    gap: 5px;
  }

  .chat-form button {
    width: 100%;
  }

  .chat-message {
    gap: 3px;
    padding: 6px 7px;
  }

  .chat-meta {
    gap: 6px;
    font-size: 0.64rem;
  }

  .chat-badge {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .chat-body {
    font-size: 0.86rem;
    line-height: 1.08;
  }

  .chat-form {
    gap: 5px;
  }

  .chat-form input {
    padding: 6px 8px;
    font-size: 0.84rem;
  }

  .chat-form button {
    padding: 6px 8px;
    font-size: 0.84rem;
  }

  .matchup-stats,
  .broadcast-footer,
  .mobile-drawer-host,
  .radio-panel {
    display: none !important;
  }

  .mobile-bet-host {
    display: block;
    width: var(--mobile-arena-width);
    max-width: var(--mobile-arena-width);
    margin: 2px auto 0;
  }

  .mobile-bet-host .bet-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    align-items: start;
  }

  .mobile-bet-host #betBoxTitle {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1;
  }

  .mobile-bet-host #betHint {
    display: none;
  }

  .mobile-bet-host #betControls {
    display: contents;
  }

  .mobile-bet-host .bet-amount {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 2px;
    margin: 0;
    min-width: 0;
    width: 72px;
    justify-self: end;
    text-align: center;
  }

  .mobile-bet-host .bet-amount span {
    font-size: 0.62rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .mobile-bet-host .bet-amount input {
    margin-top: 0;
    padding: 5px 6px;
    min-height: 0;
    border-width: 2px;
    border-radius: 8px;
    font-size: 0.98rem;
    text-align: center;
  }

  .mobile-bet-host .bet-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .mobile-bet-host .team-bet {
    min-height: 46px;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.02;
  }

  .mobile-bet-host .bet-summary {
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 9px 10px;
    border-width: 2px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.1;
  }

  .right-rail .auth-panel > .panel-head h2,
  .right-rail .auth-panel > .wallet-hero,
  .right-rail .auth-panel > .action-row {
    display: none;
  }

  .right-rail .auth-panel > .panel-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -4px;
    padding-bottom: 0;
    border-bottom: 0;
    min-height: 0;
  }

  .right-rail .auth-panel > .panel-head #logoutButton {
    min-width: 58px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .left-rail .panel:first-child,
  .guest-compact,
  .status-line {
    display: none;
  }

  .right-rail .auth-panel {
    display: grid;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 8px 8px 16px;
  }

  .layout {
    grid-template-columns: repeat(2, minmax(0, calc((var(--mobile-arena-width) - 22px) / 2)));
    gap: 8px;
    justify-content: center;
  }

  .left-rail {
    grid-column: 2;
  }

  .right-rail {
    grid-column: 1;
  }

  .left-rail .panel {
    width: calc(100% - 14px);
    margin-left: 6px;
  }

  .pill {
    min-width: 0;
    padding: 5px 7px;
  }

  .pill strong {
    font-size: 0.88rem;
  }

  .mobile-pc-hint {
    flex: 1 1 42px;
    min-width: 38px;
    max-width: 54px;
    font-size: 0.34rem;
    line-height: 1;
  }

  .pill-label,
  .chip-label,
  .panel-tag,
  .hint-text {
    font-size: 0.66rem;
  }

  .team-name {
    font-size: clamp(1.45rem, 8.9vw, 2.25rem);
  }

  .team-name.is-compact {
    font-size: clamp(1.08rem, 6vw, 1.74rem);
  }

  .team-name.is-dense {
    font-size: clamp(0.92rem, 4.6vw, 1.34rem);
  }

  .fighter-label {
    -webkit-text-stroke: 1.4px #18120f;
  }

  .reward-button,
  .team-bet,
  .ghost-button,
  .header-auth-button,
  .auth-tab {
    width: 100%;
  }

  .audio-toggle,
  .header-auth-button,
  .store-toggle,
  .profile-toggle {
    width: 48px;
    min-width: 48px;
    height: 42px;
  }

  .audio-toggle::before {
    background-size: 22px 22px;
  }

  .header-auth-button::before {
    font-size: 0.68rem;
  }

  .store-toggle {
    width: 48px;
    min-width: 48px;
    height: 34px;
    font-size: 0.58rem;
    border-radius: 8px;
  }

  .profile-toggle {
    width: 48px;
    min-width: 48px;
    height: 34px;
    font-size: 0.58rem;
    border-radius: 8px;
  }

  .store-head #storeBackButton,
  .store-head #storeCloseButton {
    width: auto;
    min-width: 56px;
  }

  .store-head #storeCloseButton {
    min-width: 52px;
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .store-panel {
    top: 44px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: 66vh;
    padding: 8px;
  }

  .profile-panel {
    top: 44px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: 66vh;
    padding: 8px;
  }

  .profile-badge-grid {
    grid-template-columns: 1fr;
  }

  .match-banner {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 4px;
  }

  .match-bet-meta {
    grid-template-columns: 1fr 1fr;
  }

  .match-bet-center-label {
    font-size: 0.52rem;
    padding: 1px 4px;
  }

  .arena-frame {
    max-width: 100%;
  }

  #arenaCanvas {
    width: 100%;
  }

  .chat-meta {
    font-size: 0.6rem;
  }

  .chat-user-wrap {
    flex-wrap: wrap;
  }

  .panel-head h2 {
    font-size: 0.8rem;
  }

  .wallet-name {
    font-size: 0.84rem;
  }

  .wallet-coins {
    font-size: 0.92rem;
  }

  .chat-messages {
    min-height: 48px;
    max-height: 74px;
  }

  .chat-bet-tag {
    min-height: 22px;
    font-size: 0.62rem;
  }

  .chat-message {
    padding: 5px 6px;
  }

  .chat-body {
    font-size: 0.8rem;
  }

  .chat-form input,
  .chat-form button {
    padding: 5px 7px;
    font-size: 0.78rem;
  }

  .modal-card {
    width: min(100vw - 12px, 760px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
  }

  .badge-grid {
    max-height: 180px;
  }
}

@media (max-width: 560px) {
  .modal {
    place-items: start center;
    padding: 6px;
  }

  .modal-card {
    width: min(100vw - 12px, 760px);
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }

  .modal-head {
    align-items: start;
  }

  .modal-head h2 {
    font-size: 1.1rem;
    line-height: 0.95;
  }

  .auth-switch {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 8px;
    background: var(--panel);
  }

  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 156px;
  }
}
