/* EnPelotas interface skin. One visual vocabulary: bright desktop software,
   circa 2005. app.css owns behaviour; this sheet owns the presentation. */
:root {
  --bg: #9bdde9;
  --panel: #f7fcff;
  --ink: #183250;
  --line: #6b94c5;
  --shadow: none;
  --orange: #ffd55c;
}

body {
  color: #183250;
  font: 12px Tahoma, Verdana, Arial, sans-serif;
  background: var(--bg);
}

.interface-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.interface-icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.page-shell {
  width: calc(100% - 48px);
  max-width: 1040px;
  min-height: 0;
  margin: 24px auto;
  padding: 3px;
  border: 1px solid #3479bd;
  border-radius: 7px 7px 3px 3px;
  background: #d9edfa;
  box-shadow: 0 2px 3px #fff inset, 0 3px 12px #1d5c943b;
}

.topbar { display: block; margin: 0; }
.brand-block {
  display: grid;
  grid-template-columns: 38px max-content minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 0 7px;
  padding: 7px 12px;
  background: linear-gradient(112deg, #faffff 0%, #d5f7ff 45%, #b9d7ff 100%);
  border-top: 1px solid #fff;
}
.brand-mark { width: 34px; height: 34px; grid-row: 1; align-self: center; }
.brand-block h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #1b4e9b;
  font: bold 21px "Trebuchet MS", Tahoma, sans-serif;
  letter-spacing: -.5px;
  text-transform: none;
}
.subtitle { grid-column: 3; grid-row: 1; align-self: center; max-width: none; margin: 0 0 0 8px; color: #657381; font: 10px Tahoma, sans-serif; }
.presence-light { display: inline-block; width: 7px; height: 7px; border: 1px solid #527d37; background: #82be5d; box-shadow: inset 1px 1px #d7f0c5; vertical-align: middle; }
.topbar-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  padding: 4px 8px;
  background: linear-gradient(#fffbe1, #f6db72);
  border-block: 1px solid #b58b28;
}
.topbar-stats { gap: 0; flex-wrap: nowrap; margin-right: auto; align-items: center; }
.mobile-brand { display: none; }
.pill, .pill.accent {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 28px;
  padding: 3px 10px;
  border: 0;
  border-right: 1px solid #bbc2cd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #244f8b;
}
.pill-label { font: 11px Tahoma, sans-serif; text-transform: none; letter-spacing: 0; }
.pill strong { font: bold 12px Tahoma, sans-serif; letter-spacing: 0; }
.mobile-pc-hint { display: none; }

/* One client window, subdivided into panes rather than a collection of cards. */
.layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 242px;
  gap: 8px;
  padding: 8px;
  align-items: start;
}
.sidebar, .broadcast-card { gap: 8px; }
.broadcast-card { width: 100%; max-width: none; margin: 0; }
.panel, .auth-panel, .arena-frame, .history-strip, .matchup-stat, .stat-chip,
.store-panel, .profile-panel, .modal-card, .viewer-popover {
  border: 1px solid #6190c7;
  border-radius: 0;
  box-shadow: none;
  background: #f8fcff;
}
.panel { padding: 8px; }
.panel-head, .store-head, .modal-head, .broadcast-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 7px;
  margin: -8px -8px 8px;
  min-height: 28px;
  color: #1e4e8e;
  border-bottom: 1px solid #6190c7;
  background: linear-gradient(#d9f6ff, #a7d5f6);
}
.panel-head h2, .panel-head h3, .store-head h3, .modal-head h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font: bold 12px Tahoma, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
.broadcast-title { margin: 0; border: 1px solid #4b9caa; font-weight: bold; background: linear-gradient(#d8fff5, #86dfcb); color: #176d68; }
.broadcast-title > span { display: flex; align-items: center; gap: 5px; }
.live-indicator { font-size: 10px; font-weight: normal; color: #61705b; }
.panel-tag { font-size: 11px; }
.panel-collapse-button {
  padding: 2px 5px;
  min-height: 22px;
  font: 10px Tahoma, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
#rankingPanel .panel-head { background: linear-gradient(#fff9bf, #f6cd5d); color: #775000; border-bottom-color: #c7962d; }
#chatPanel .panel-head { background: linear-gradient(#f3e5ff, #c7aaf2); color: #593381; border-bottom-color: #9674c3; }
.auth-panel > .panel-head { background: linear-gradient(#ecffd3, #a9dd75); color: #37651d; border-bottom-color: #70aa45; }

/* Native-looking controls. Small on desktop, with larger targets on touch. */
.ghost-button, .header-auth-button, .auth-tab, .team-bet, .reward-button,
.panel-collapse-button, .chat-form button, .auth-form button, .store-nav-button,
.store-buy-button, .profile-equip-button, .radio-picker-toggle {
  border: 1px solid #8293ad;
  border-radius: 2px;
  background: linear-gradient(#fff, #ececf0);
  box-shadow: inset 0 0 0 1px #fff;
  color: #283754;
  font-family: Tahoma, Arial, sans-serif;
  font-weight: normal;
  text-transform: none;
  text-shadow: none;
  transition: none;
}
.ghost-button:hover, .header-auth-button:hover, .team-bet:hover,
.reward-button:hover, .auth-tab:hover, .auth-form button:hover, summary:hover,
.store-nav-button:hover, .chat-form button:hover {
  transform: none;
  filter: none;
  border-color: #547ca9;
  background: #f2f7fe;
}
.ghost-button:active, .team-bet:active, .chat-form button:active { box-shadow: inset 1px 1px 2px #98a5ba; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #587aac;
  outline-offset: 2px;
}
.topbar-actions .store-toggle, .topbar-actions .profile-toggle,
.topbar-actions .ranking-toggle, .topbar-actions .audio-toggle, .topbar-actions .header-auth-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  height: 28px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  background: transparent;
  font-size: 11px;
}
.topbar-actions .ranking-toggle { display: none; }
.topbar-actions .audio-toggle { width: 30px; padding: 0; }
.topbar-actions .audio-toggle::before { background-size: 16px; }
.topbar-actions .header-auth-button { border-color: #93a3bb; background: linear-gradient(#fff, #e7edf5); }
.topbar-actions .header-auth-button::before { content: none; }
.topbar-actions button:hover { border-color: #98a6b9; background: #fff9e2; }
.audio-toggle.is-muted::after { width: 23px; height: 2px; }
#logoutButton, #profileLogoutButton {
  min-width: 48px;
  width: auto;
  padding: 3px 6px;
  border: 1px solid #af8b8b;
  border-radius: 2px;
  background: #f6eded;
  color: #7b3333;
  font-size: 10px;
}

/* The names are labels in the client, not oversized poster typography. */
.match-banner, .match-banner:not(.is-ffa) {
  width: 100%;
  min-height: 43px;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #bcc7d8;
}
.match-banner.is-ffa { grid-template-columns: minmax(0, 1fr); }
.fighter-label, .match-banner:not(.is-ffa) .fighter-label {
  min-width: 0;
  padding: 0 0 4px;
  border-bottom: 2px solid currentColor;
  text-align: center;
  -webkit-text-stroke: 0;
  filter: none;
}
.team-name, .team-name.is-compact, .team-name.is-dense, .team-name.is-multiline {
  font: bold 16px/1.25 Tahoma, Arial, sans-serif;
  color: #263b5e;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
  text-transform: none;
  -webkit-text-stroke: 0;
}
.team-name.is-dense { font-size: 13px; }
.versus-wrap { color: #8c98a9; font: 11px Tahoma, sans-serif; text-shadow: none; }
.history-strip { gap: 4px; padding: 5px 8px; background: #fff8b8; font-size: 10px; font-weight: normal; }
.history-title, .history-map { color: #69705c; text-transform: none; }
.matchup-stats { gap: 5px; }
.matchup-stat { padding: 4px 7px; background: #edf2f9; }
.matchup-stat-label { font-size: 9px; color: #6b7a90; text-transform: none; }
.matchup-stat-value { font-size: 11px; margin: 2px 0 0; }
.arena-frame { padding: 4px; background: var(--bg); }
#arenaCanvas { width: 100%; max-width: none; border: 1px solid #677a94; box-shadow: 1px 1px #fff; }
.arena-watermark { color: #8a95a2; font: 10px Tahoma, sans-serif; bottom: 16px; }
.broadcast-footer { gap: 3px; }
.stat-chip, .stat-chip.left, .stat-chip.right { background: #e2f4ff; padding: 4px; border-color: #8dbbdf; }
.stat-chip.left { background: #fff2aa; border-color: #dfa83a; }
.stat-chip.right { background: #ffe0f1; border-color: #cf8db8; }
.chip-label { font-size: 9px; color: #65738a; text-transform: none; }
.stat-chip strong { font: 11px Tahoma, sans-serif; }
.match-bet-panel { margin-top: 0; padding: 5px; font-size: 10px; }
.match-bet-track { border: 1px solid #8e9eb6; border-radius: 0; }
.match-bet-meta { font-size: 10px; }

/* Contact lists and conversations have rows, not individual message cards. */
.leaderboard-list, .feed-list { gap: 0; background: #fff; }
.leaderboard-list { gap: 4px; }
.leaderboard-list li, .feed-list li {
  gap: 5px;
  padding: 8px 6px;
  border: 0;
  border-bottom: 1px solid #e4e9f1;
  border-radius: 0;
  background: #fff;
  font-size: 10px;
  font-weight: normal;
}
.leaderboard-list li:nth-child(odd) { background: #f5fbff; }
.leaderboard-list .leaderboard-entry { cursor: pointer; }
.leaderboard-list .leaderboard-entry:hover { background: #fff4b6; }
.leaderboard-list .leaderboard-entry:focus-visible { position: relative; z-index: 1; outline: 2px solid #577fc2; outline-offset: -2px; }

.leaderboard-list .leaderboard-entry.leaderboard-first,
.leaderboard-list .leaderboard-entry.leaderboard-second,
.leaderboard-list .leaderboard-entry.leaderboard-third {
  border: 2px solid transparent;
  background-size: 200% 100%;
  animation: royal-gold 6s linear infinite;
}

.leaderboard-list .leaderboard-entry.leaderboard-first {
  background: linear-gradient(105deg, #fff9e5, #ffefbd, #fffbea, #fff2cb, #fff9e5) padding-box,
    linear-gradient(105deg, #a66b08, #dca526, #fff0a3, #dca526, #a66b08) border-box;
  background-size: 200% 100%;
}

.leaderboard-list .leaderboard-entry.leaderboard-second {
  background: linear-gradient(105deg, #f7f9fc, #dfe5ec, #ffffff, #e8edf3, #f7f9fc) padding-box,
    linear-gradient(105deg, #7b8798, #b5bfcc, #f5f8fc, #b5bfcc, #7b8798) border-box;
  background-size: 200% 100%;
  animation-duration: 7s;
  animation-delay: -2.3s;
}

.leaderboard-list .leaderboard-entry.leaderboard-third {
  background: linear-gradient(105deg, #fff5eb, #f1d5b9, #fff8ef, #f6e1cc, #fff5eb) padding-box,
    linear-gradient(105deg, #895126, #bd844d, #f4d1a7, #bd844d, #895126) border-box;
  background-size: 200% 100%;
  animation-duration: 8s;
  animation-delay: -5.1s;
}

.title-rey {
  color: #805000;
  font-weight: bold;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .title-rey {
    background: linear-gradient(100deg, #704000, #966000, #805000, #a06a08, #704000);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: royal-gold 4s linear infinite;
  }
}

@keyframes royal-gold {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .title-rey,
  .leaderboard-list .leaderboard-entry.leaderboard-first,
  .leaderboard-list .leaderboard-entry.leaderboard-second,
  .leaderboard-list .leaderboard-entry.leaderboard-third { animation: none; }
}
.leaderboard-top { font-size: 12px; align-items: center; }
.leaderboard-top > span { color: #284b7d; }
.leaderboard-top .leaderboard-identity { display: flex; align-items: center; gap: 4px; min-width: 0; }
.leaderboard-identity .rank-badge { flex-shrink: 0; margin-right: 0; }
.leaderboard-badge { width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.leaderboard-player { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.leaderboard-name { overflow-wrap: anywhere; }
.leaderboard-title { font-size: 10px; overflow-wrap: anywhere; }
.leaderboard-top > strong { flex-shrink: 0; }
.rank-badge {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-right: 5px;
  border: 1px solid #abbad0;
  border-radius: 0;
  background: #eff3fa;
  font: bold 10px Tahoma, sans-serif;
  color: #5c7094;
  box-shadow: inset 1px 1px #fff;
}
.chat-shell { gap: 6px; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; }
.chat-messages {
  min-height: 212px;
  max-height: 300px;
  padding: 5px;
  gap: 7px;
  background: #fff;
  border: 1px solid #a0afc5;
  box-shadow: inset 1px 1px #e8edf4;
  overflow-y: auto;
  scrollbar-color: #bdc8db #edf0f6;
}
.chat-messages:empty::after { content: "Todavía no hay mensajes."; color: #8b93a0; font-size: 11px; padding: 4px; }
.chat-message { gap: 2px; padding: 2px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.chat-meta { align-items: center; font: 9px Tahoma, sans-serif; color: #8c929c; text-transform: none; }
.chat-user { color: #6f7a8b; }
.chat-user::after { content: " dice:"; }
.chat-badge { width: 14px; height: 14px; flex-basis: 14px; }
.chat-body { padding-left: 3px; color: #12398b; font: 12px/1.4 Tahoma, Arial, sans-serif; }
.chat-title { font-size: 9px; color: #87909c; }
.chat-bet-tag { border-width: 1px; border-radius: 0; min-height: 16px; font-size: 9px; box-shadow: none; padding: 1px 3px; }
.chat-form { gap: 5px; grid-template-columns: minmax(0, 1fr) auto; }
.chat-form input, .chat-form button { min-width: 0; padding: 6px; min-height: 29px; font-size: 11px; }
.chat-form input, .auth-form input, .bet-amount input, .bet-amount select, .radio-search input {
  border: 1px solid #91a2be;
  border-radius: 0;
  box-shadow: inset 1px 1px #e6e9ee;
  background: #fff;
  font-weight: normal;
}
.chat-form input { color: #222; }

.user-block { gap: 9px; }
.wallet-hero { gap: 6px; padding: 6px; border: 0; border-radius: 0; background: #edf2fa; box-shadow: none; }
.wallet-name { font: bold 12px Tahoma, sans-serif; overflow-wrap: anywhere; }
.wallet-coins { font: 12px Tahoma, sans-serif; color: #5b6d85; }
.wallet-badge { width: 26px; height: 26px; flex-basis: 26px; padding: 2px; border: 1px solid #acbca5; background: #fff; }
.action-row { gap: 5px; margin: 5px 0; }
.reward-button { padding: 5px 8px; font-size: 11px; }
.reward-button:not(:disabled) {
  color: #163d16;
  font-weight: bold;
  background: linear-gradient(#dfffb0, #8dde47 52%, #5ead27);
  border-color: #39791c;
  box-shadow: inset 1px 1px #f5ffdd, inset -1px -1px #4d9226, 1px 1px #467928;
}
.reward-button:not(:disabled):hover { background: linear-gradient(#efffc8, #a9f45c 52%, #6fc534); border-color: #285e14; }
.hint-text { font: 10px/1.4 Tahoma, sans-serif; color: #69788e; text-transform: none; letter-spacing: 0; }
.bet-box, .guest-compact, .fold-panel, .auth-form { border: 1px solid #b7c3d7; border-radius: 0; padding: 8px; background: #fff; }
.bet-box h3, .panel h3 { font: bold 12px Tahoma, sans-serif; color: #304e7b; text-transform: none; letter-spacing: 0; }
.bet-actions { gap: 5px; grid-template-columns: minmax(0, 1fr); }
.team-bet { padding: 9px 5px; font: bold 11px Tahoma, sans-serif; }
.team-bet.left { color: #724300; border-color: #c88b22; background: linear-gradient(#fff6b3, #ffcc53); }
.team-bet.right { color: #6b1d51; border-color: #b95f92; background: linear-gradient(#ffd7eb, #e68bc0); }
.bet-amount { margin-top: 8px; font-size: 10px; }
.bet-amount input, .bet-amount select { margin-top: 4px; padding: 5px; }
#betControls > .bet-amount {
  display: grid;
  grid-template-columns: max-content 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 3px 4px;
  border: 1px solid #9caec8;
  background: #e8eef7;
  color: #405778;
  font-weight: bold;
}
#betControls .bet-amount-label { padding-left: 2px; }
#betControls .bet-amount-coin { display: inline-flex; align-items: center; justify-content: center; }
#betControls .bet-amount-coin .coin-icon { width: 15px; height: 15px; }
#betControls .bet-amount input {
  width: 100%;
  min-width: 0;
  min-height: 24px;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid #8299ba;
  text-align: right;
  font-weight: bold;
  font-size: 13px;
}
.bet-summary { border: 1px solid #b4c5a6; border-radius: 0; background: #f3f8ed; font: 11px/1.4 Tahoma, sans-serif; padding: 7px; }
.fold-panel { padding: 0; }
summary { padding: 6px 8px; font: 11px Tahoma, sans-serif; }
.guest-copy { font: 12px/1.5 Tahoma, sans-serif; }
.status-line { font: 10px/1.4 Tahoma, sans-serif; color: #727d8e; }
.store-panel, .profile-panel { padding: 8px; background: #f4f6fa; }
.store-head h3 { flex: 1; }
.store-head .ghost-button { min-width: 0; width: auto; padding: 3px 7px; font-size: 10px; }
.store-item, .profile-badge-card, .store-nav-button { border: 1px solid #b8c5da; border-radius: 0; font-size: 12px; }
.store-item-name { font-family: Tahoma, sans-serif; }
.store-panel .store-item { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
.store-panel .store-item-name { overflow-wrap: normal; word-break: normal; }
.store-panel .store-item-tag { grid-column: 2; }
.store-panel .store-buy-button { grid-column: 1 / -1; grid-row: auto; width: 100%; min-width: 0; }
.store-panel .store-item-title .store-item-name,
.store-panel .store-item-title .store-item-tag { grid-column: 1 / -1; }
.profile-panel .profile-badge-grid { grid-template-columns: 1fr; gap: 6px; }
.profile-panel .profile-badge-card { grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 6px; }
.profile-panel .profile-badge-name { overflow-wrap: normal; word-break: normal; }
.profile-panel .profile-equip-button { min-width: 0; padding: 3px 6px; white-space: nowrap; }
.profile-block { background: #fff; }
.profile-block h4 { color: #38577e; font-size: 12px; }
.modal-card { border-radius: 3px; padding: 12px; }
.modal-head { margin: -9px -9px 10px; }
.welcome-content, .auth-form { font-size: 12px; }
.welcome-accept-button { background: linear-gradient(#fff, #e5edf8); border: 1px solid #879cbf; border-radius: 2px; color: #25406a; font-size: 12px; box-shadow: inset 0 0 0 1px #fff; }

@media (max-width: 1060px) and (min-width: 821px) {
  .page-shell { width: calc(100% - 20px); margin: 10px auto; }
  .layout { grid-template-columns: 190px minmax(0, 1fr) 200px; gap: 5px; padding: 5px; }
  .panel { padding: 6px; }
  .panel-head { margin: -6px -6px 6px; }
  .wallet-hero { flex-direction: column; }
}

@media (max-width: 820px) {
  .page-shell {
    --mobile-arena-width: 100%;
    width: 100%; max-width: 600px; margin: 0 auto; padding: 2px;
    border-radius: 0; border-width: 0 1px; box-shadow: none;
    overflow: visible;
  }
  .topbar { max-width: none; margin: 0; }
  .brand-block { display: none; }
  .mobile-brand {
    display: flex;
    flex: 0 0 51px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-direction: column;
    color: #1b4e9b;
    font: bold 9px/1 Tahoma, sans-serif;
    white-space: nowrap;
  }
  .mobile-brand svg { width: 21px; height: 21px; }
  .topbar-actions { gap: 2px; padding: 2px 3px; flex-wrap: nowrap; }
  .topbar-stats { gap: 0; margin-right: 0; }
  .pill, .pill.accent { padding: 2px 5px; min-height: 32px; gap: 1px; flex-direction: column; justify-content: center; }
  .pill-label { font-size: 9px; }
  .pill strong { font-size: 11px; }
  .topbar-actions .store-toggle, .topbar-actions .profile-toggle,
  .topbar-actions .ranking-toggle, .topbar-actions .header-auth-button { height: 34px; min-width: 32px; padding: 3px 5px; font-size: 10px; }
  .topbar-actions .ranking-toggle { display: inline-flex; min-width: 57px; }
  .topbar-actions .audio-toggle { width: 32px; height: 34px; }
  .topbar-actions .interface-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .layout {
    display: grid; grid-template-columns: minmax(105px, .68fr) minmax(0, 1.32fr);
    gap: 6px; padding: 6px; width: 100%; max-width: none; margin: 0; align-items: stretch;
  }
  .left-rail, .right-rail { display: contents; }
  .broadcast-card { grid-column: 1 / -1; grid-row: 1; width: 100%; max-width: none; gap: 5px; margin: 0; }
  .broadcast-title { min-height: 25px; padding: 3px 6px; font-size: 11px; }
  .broadcast-title .interface-icon { width: 15px; height: 15px; flex-basis: 15px; }
  .match-banner, .match-banner:not(.is-ffa) { gap: 5px; padding: 6px; min-height: 39px; }
  .team-name, .team-name.is-compact { font: bold 14px/1.25 Tahoma, sans-serif; }
  .team-name.is-dense { font-size: 12px; }
  .fighter-label.left, .fighter-label.right { text-align: center; -webkit-text-stroke: 0; }
  .matchup-stats { display: none; }
  .history-strip { min-height: 0; gap: 2px; padding: 4px 6px; font-size: 10px; }
  .arena-frame { width: 100%; max-width: none; padding: 3px; }
  #arenaCanvas { width: 100%; max-width: none; border-width: 1px; }
  .mobile-bet-host { width: 100%; max-width: none; margin: 0; }
  .mobile-bet-host .bet-box { gap: 5px; padding: 6px; border: 1px solid #a4b3cc; border-radius: 0; background: #f4f6fa; box-shadow: none; }
  .mobile-bet-host #betBoxTitle { font: bold 11px Tahoma, sans-serif; align-self: center; }
  .mobile-bet-host #betControls > .bet-amount { display: flex; align-items: center; gap: 4px; width: 68px; margin: 0; padding: 0; border: 0; background: transparent; }
  .mobile-bet-host .bet-amount-label { display: none; }
  .mobile-bet-host #betControls .bet-amount input { min-width: 0; min-height: 29px; margin: 0; padding: 3px; border: 1px solid #91a2be; border-radius: 0; font-size: 16px; }
  .mobile-bet-host .bet-actions { gap: 5px; }
  .mobile-bet-host .team-bet { min-height: 39px; padding: 5px; border-radius: 2px; font: bold 11px/1.2 Tahoma, sans-serif; }
  #chatPanel, .right-rail .auth-panel { height: 164px; min-height: 0; border: 1px solid #a4b3cc; border-radius: 0; padding: 5px; background: #f4f6fa; overflow: hidden; }
  #chatPanel { display: flex; flex-direction: column; grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
  #chatPanel .panel-head { margin: -5px -5px 5px; padding: 3px 5px; min-height: 28px; }
  #chatPanel .panel-head h2 { font-size: 10px; }
  #chatPanel .chat-shell { min-height: 0; flex: 1; gap: 4px; grid-template-rows: minmax(0, 1fr) auto auto; overflow: hidden; }
  #chatPanel .chat-messages { min-height: 0; max-height: none; padding: 3px; gap: 4px; overflow-y: auto; }
  #chatPanel .chat-form { grid-template-columns: minmax(0, 1fr) auto; gap: 3px; }
  #chatPanel .chat-form input { font-size: 16px; width: 100%; padding: 3px; }
  #chatPanel .chat-form input::placeholder { font-size: 10px; }
  #chatPanel .chat-form button { min-height: 31px; padding: 4px; width: auto; font-size: 10px; }
  .right-rail .auth-panel { grid-column: 1; grid-row: 2; }
  .right-rail .auth-panel #userBlock:not(.hidden) { gap: 6px; }
  .right-rail .auth-panel .wallet-hero { display: flex; flex-direction: column; gap: 5px; padding: 5px 2px; align-items: flex-start; border: 0; background: transparent; }
  .right-rail .auth-panel .wallet-name { font-size: 10px; gap: 4px; }
  .right-rail .auth-panel .wallet-coins { font-size: 11px; }
  .right-rail .auth-panel .action-row { display: grid; gap: 3px; margin: 3px 0; }
  .right-rail .auth-panel .reward-button { width: 100%; min-height: 31px; padding: 4px; font-size: 10px; }
  .right-rail .auth-panel .guest-compact { border: 0; padding: 4px; background: transparent; text-align: left; }
  .guest-copy { font-size: 11px; }
  .mobile-top-panel-host { max-width: none; width: auto; margin: 0 6px; gap: 6px; }
  .mobile-top-panel-host:has(> :not(.hidden):not(#rankingPanel)), .mobile-top-panel-host:has(#rankingPanel.mobile-ranking-open) { margin-top: 6px; }
  .mobile-top-panel-host .store-panel, .mobile-top-panel-host .profile-panel, #rankingPanel.mobile-ranking-open {
    position: static; width: 100%; max-height: min(65dvh, 520px); margin: 0; padding: 8px;
    border: 1px solid #a4b3cc; border-radius: 0; box-shadow: none; background: #f4f6fa;
  }
  #rankingPanel.mobile-ranking-open { display: block; }
  .utility-panel-host:empty { display: none; }
}

@media (max-width: 360px) {
  .topbar-actions .store-toggle, .topbar-actions .profile-toggle { gap: 2px; padding-inline: 3px; }
  .topbar-actions .store-toggle .interface-icon, .topbar-actions .profile-toggle .interface-icon { display: none; }
  .topbar-actions .ranking-toggle { min-width: 0; padding-inline: 3px; }
  .topbar-actions .ranking-toggle .interface-icon { display: none; }
  .mobile-brand { flex-basis: 27px; }
  .mobile-brand span { display: none; }
  .layout { grid-template-columns: minmax(96px, .65fr) minmax(0, 1.35fr); gap: 4px; padding: 4px; }
}
