:root {
  --bg-dark: #0f0c29;
  --bg-mid: #302b63;
  --bg-soft: #24243e;
  --accent: #00d4ff;
  --accent-strong: #0088ff;
  --text-main: #ffffff;
  --text-muted: #b8b8c7;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-soft: rgba(14, 18, 44, 0.92);
  --panel-glow: rgba(0, 212, 255, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 215, 255, 0.75) rgba(7, 18, 52, 0.78);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: rgba(7, 18, 52, 0.78);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 215, 255, 0.85), rgba(158, 88, 255, 0.82));
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(0, 212, 255, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 136, 255, 0.18),
      transparent 40%
    ),
    linear-gradient(150deg, var(--bg-dark), var(--bg-mid), var(--bg-soft));
  color: var(--text-main);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

body.dashboard-menu-open {
  overflow: hidden;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.bg-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: 8%;
  left: 6%;
  animation: float 20s linear infinite;
}

.bg-circle:nth-child(2) {
  width: 220px;
  height: 220px;
  bottom: 8%;
  right: 8%;
  animation: float 17s linear infinite reverse;
}

@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-100px) rotate(360deg);
  }
}

.dashboard-shell {
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 31, 0.9);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
}

.dashboard-menu-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1300;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  background: rgba(11, 16, 40, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.dashboard-menu-toggle i {
  font-size: 18px;
  line-height: 1;
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  border: 0;
  background: rgba(5, 8, 21, 0.56);
  backdrop-filter: blur(3px);
}

.side-panel {
  padding: 16px 10px;
  border-right: 1px solid var(--panel-border);
  background: rgba(16, 19, 48, 0.94);
}

.brand {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  background: linear-gradient(45deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  cursor: pointer;
}

.brand:hover {
  opacity: 0.92;
}

.menu-title {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  margin-bottom: 10px;
}

.panel-menu {
  display: grid;
  gap: 10px;
  width: 100%;
}

.menu-btn {
  width: 100%;
  border: 1px solid transparent;
  background: rgba(30, 39, 82, 0.9);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s ease;
}

.menu-btn:hover,
.menu-btn.active {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.16);
  transform: translateX(3px);
}

.menu-btn:disabled,
.menu-btn.locked {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.menu-btn:disabled:hover,
.menu-btn.locked:hover {
  border-color: transparent;
  background: var(--panel);
  transform: none;
}

.account-submenu {
  margin-top: -2px;
  padding-left: 10px;
  display: grid;
  gap: 8px;
}

.account-sub-btn {
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.account-sub-btn:hover {
  background: rgba(0, 212, 255, 0.2);
}

.demo-inline-card {
  margin-top: 2px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.demo-inline-card h3 {
  font-size: 13px;
}

.main-view {
  padding: 0.5em;
  display: grid;
  gap: 0.5em;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-head h1 {
  font-size: 28px;
  font-weight: 700;
}

.main-head p {
  color: var(--text-muted);
  margin-top: 6px;
}

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

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #d8f8ff;
  font-size: 13px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.12);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  min-height: 34px;
  color: #d8f8ff;
  font-size: 11px;
  max-width: 140px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
}

.user-chip-icon {
  font-size: 14px;
  line-height: 1;
  color: #9be7ff;
}

.user-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  text-align: left;
  line-height: 1.1;
}

.return-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.return-btn {
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.return-btn:hover {
  background: rgba(0, 212, 255, 0.22);
}

.dashboard-view {
  display: none;
  gap: 18px;
}

.dashboard-view.active {
  display: grid;
  position: relative;
}

.simple-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px;
  color: var(--text-muted);
}

.outcomes-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.get-data-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.get-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  align-items: stretch;
}

.get-data-card,
.get-data-summary {
  border: 1px solid rgba(45, 77, 144, 0.46);
  background: rgba(6, 15, 46, 0.98);
  box-shadow: inset 0 0 0 1px rgba(12, 26, 69, 0.65);
}

.get-data-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.get-data-card h3 {
  margin: 0 0 6px;
  color: #f6f8ff;
  font-size: 18px;
}

.get-data-card p {
  max-width: 760px;
  margin: 0;
  color: #aeb8e6;
  font-size: 13px;
  line-height: 1.5;
}

.get-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.get-data-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.get-data-field {
  display: grid;
  gap: 6px;
  color: #8fa3d7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.get-data-field select,
.get-data-field input {
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(49, 76, 140, 0.72);
  border-radius: 2px;
  background: rgba(7, 14, 45, 0.96);
  color: #f6f8ff;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.get-data-field[hidden] {
  display: none !important;
}

.get-data-chart-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.get-data-chart-item {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(49, 76, 140, 0.46);
  background: rgba(8, 16, 48, 0.72);
}

.get-data-chart-item strong {
  color: #f6f8ff;
  font-size: 13px;
}

.get-data-chart-item span {
  color: #8fa3d7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.get-data-chart-item small {
  color: #aeb8e6;
  font-size: 11px;
  line-height: 1.35;
}

.get-data-chart-item.active {
  border-color: rgba(0, 212, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.28);
}

.get-data-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(72, 126, 255, 0.7);
  background: linear-gradient(180deg, #3f8dff, #285fbe);
  color: #fff;
  font-weight: 800;
}

.get-data-action.secondary-action {
  border-color: rgba(49, 76, 140, 0.58);
  background: rgba(8, 16, 48, 0.92);
  color: #f6f8ff;
}

.get-data-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.get-data-summary {
  display: grid;
  align-content: stretch;
}

.get-data-summary > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid rgba(45, 77, 144, 0.34);
}

.get-data-summary > div:last-child {
  border-bottom: 0;
}

.get-data-summary span {
  color: #8fa3d7;
  font-size: 11px;
  text-transform: uppercase;
}

.get-data-summary strong {
  color: #f6f8ff;
  font-size: 22px;
}

.get-data-status {
  min-height: 20px;
  color: #aeb8e6;
  font-size: 12px;
}

.get-data-status.error {
  color: #ff9aa2;
}

.get-data-status.success {
  color: #72d34f;
}

.outcomes-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outcome-window-note {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.18);
  color: #d7fbff;
  font-size: 12px;
}

.outcomes-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.outcome-stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.outcome-stat-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.outcome-stat strong {
  font-size: 22px;
  color: #f6fcff;
}

.outcomes-groups {
  display: grid;
  gap: 12px;
}

.outcome-round-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
}

.outcome-round-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.12),
    rgba(0, 212, 255, 0.02)
  );
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.outcome-round-head h3 {
  margin: 0;
  font-size: 18px;
  color: #f7fcff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.outcome-round-meta {
  font-size: 12px;
  color: #d6f8ff;
}

.outcome-round-card + .outcome-round-card {
  margin-top: 4px;
}

.outcome-table-wrap::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0.16),
    rgba(0, 212, 255, 0)
  );
}

.outcome-table-wrap {
  overflow-x: auto;
}

.outcome-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.outcome-table th,
.outcome-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 13px;
}

.outcome-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.outcome-market-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #d9fbff;
  font-size: 12px;
}

.outcome-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.outcome-badge.float {
  background: rgba(0, 212, 255, 0.16);
  color: #9defff;
  border: 1px solid rgba(0, 212, 255, 0.24);
}

.outcome-badge.drown {
  background: rgba(249, 115, 22, 0.16);
  color: #ffd3b2;
  border: 1px solid rgba(249, 115, 22, 0.24);
}

.outcome-empty {
  padding: 18px;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  color: var(--text-muted);
  text-align: center;
}

.game-container {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 58, 0.92),
    rgba(11, 16, 40, 0.92)
  );
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  min-height: 320px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.game-container-head {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  min-height: 30px;
  grid-column: 1 / -1;
  position: relative;
}

.game-stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px dashed rgba(0, 212, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
  min-height: 340px;
}

.game-stage-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  pointer-events: none;
}

.unity-gameplay-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  background: #050a16;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  pointer-events: none;
  z-index: 0;
  visibility: visible;
  transition: opacity 180ms ease;
  opacity: 0;
}

#unityGameplayFramePreload {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  /* Keep it in the paint stack so Unity can start, but let the shared
     `.gameplay-frame-active` styles control visibility when promoted. */
  pointer-events: none;
  visibility: visible !important;
}

.unity-gameplay-frame.gameplay-frame-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.unity-gameplay-frame::-webkit-scrollbar {
  display: none;
}

.game-stage-label {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: rgba(5, 10, 22, 0.72);
  font-size: 14px;
  font-weight: 600;
  color: #d6f8ff;
  text-align: left;
  max-width: calc(100% - 24px);
}

.round-number-chip,
.round-countdown {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d6f8ff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  padding: 4px 8px;
}

.round-number-chip {
  min-width: 116px;
  color: #eef3ff;
}

.round-countdown {
  min-width: 62px;
}

.round-countdown.warn {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.7);
}

.round-countdown.danger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.75);
}

.global-state-indicator {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-meta {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  padding-bottom: 46px;
}

.game-meta h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.game-meta ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #d6d6e6;
  font-size: 14px;
}

.betting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 12px;
  align-items: start;
}

.odds-container {
  background: linear-gradient(
    180deg,
    rgba(19, 27, 64, 0.95),
    rgba(12, 18, 46, 0.95)
  );
  border: 1px solid var(--panel-border);
  border-radius: 0;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.character-odds-board,
.odds-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2em;
}

.odds-market-card {
  --character-accent: #39a0ff;
  --character-accent-dark: #1d4ed8;
  --character-accent-soft: rgba(57, 160, 255, 0.22);
  border: 1px solid rgba(105, 154, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(20, 31, 68, 0.96),
    rgba(13, 22, 49, 0.96)
  );
  border-radius: 0.1em;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  zoom: 0.9;
}

.odds-market-card.selected {
  border-color: rgba(0, 212, 255, 0.68);
  transform: none;
  z-index: 2;
  box-shadow:
    0 12px 26px rgba(0, 212, 255, 0.12),
    0 0 0 1px rgba(0, 212, 255, 0.12) inset;
}

.odds-market-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.odds-market-title {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.odds-market-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--character-accent);
  color: #f7fbff;
  background: linear-gradient(180deg, var(--character-accent), var(--character-accent-dark));
  box-shadow: 0 0 0 3px var(--character-accent-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.character-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #f7fbff;
  border: 2px solid var(--character-accent);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--character-accent), var(--character-accent-dark));
  box-shadow: 0 0 0 4px var(--character-accent-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.odds-market-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f6f8ff;
  position: relative;
  z-index: 1;
  isolation: isolate;
  text-shadow: none;
  -webkit-text-fill-color: #f6f8ff;
}

.odds-market-sub {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 1px;
}

.odds-market-stats {
  display: grid;
  gap: 3px;
  margin: 0 .3em ;
}

.odds-stat-row {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
}

.odds-stat-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.odds-stat-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17d9ff, #39ffa2);
}

.odds-market-sections {
  display: grid;
  gap: 6px;
}

.odds-market-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 0.1em;
  padding: 0.1em;
}

.odds-market-block h3 {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.odds-market-hint {
  color: var(--text-muted);
  font-size: 9px;
  margin-bottom: 6px;
}

.odds-grid {
  display: grid;
  gap: 9px;
  grid-auto-rows: 1fr;
}

.odds-grid-single {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-grid-double {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-grid-double .odd-btn {
  padding-left: 6px;
  padding-right: 6px;
}

/* Center-align last row when it has 1 or 2 items */
.odds-grid .odd-btn:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

.odds-grid .odd-btn:nth-last-child(2):nth-child(3n + 1) {
  grid-column: 2;
}

.odds-grid .odd-btn:last-child:nth-child(3n + 2) {
  grid-column: 3;
}

.odd-btn {
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.12),
    rgba(0, 136, 255, 0.08)
  );
  border-radius: 9px;
  color: var(--text-main);
  padding-top: 5px; 
  padding-left:0;
  padding-right:0;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  min-width: 0;
  min-height: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 12px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.odd-btn strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
  margin-top: 1px;
}

.odd-btn,
.odd-btn strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odd-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
  cursor: default;
}

.odd-btn.selected {
  position: relative;
  border-color: #00f0ff;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.95),
    rgba(0, 136, 255, 0.85)
  );
  box-shadow:
    0 10px 20px rgba(0, 212, 255, 0.35),
    0 0 0 1px rgba(0, 212, 255, 0.6) inset;
  opacity: 1;
}

.odd-btn.selected strong {
  color: #001018;
}

.odd-btn:disabled,
.odd-btn.disabled {
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

.odd-btn.selected.disabled,
.odd-btn.selected:disabled {
  opacity: 0.85;
}

.odds-empty-board {
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.odd-btn:disabled strong,
.odd-btn.disabled strong {
  color: #9ea7b6;
}

.slip-container {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 58, 0.96),
    rgba(12, 18, 46, 0.96)
  );
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 12px;
  min-height: 100%;
  display: grid;
  gap: 9px;
}

.slip-container h2 {
  font-size: 18px;
}

.slip-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
  min-height: 170px;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.slip-empty {
  color: var(--text-muted);
  font-size: 12px;
}

.slip-meta {
  font-size: 12px;
  color: #d8f8ff;
}

.slip-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  color: #d6f8ff;
  font-size: 12px;
}

.slip-summary strong {
  color: #f6fdff;
  font-size: 15px;
}

.slip-item {
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(0, 212, 255, 0.08);
}

.slip-item-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.slip-item-line strong {
  color: var(--accent);
}

.slip-item-odd {
  margin-top: 2px;
  font-size: 10px;
  color: #d6f8ff;
}

.slip-item-footer {
  margin-top: 2px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.slip-item-cancel {
  border: none;
  background: transparent;
  color: #777777;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.slip-item-cancel:hover {
  color: #cfcfcf;
}

.place-bet-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  transition: 0.25s ease;
}

.place-bet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 212, 255, 0.25);
}

.place-bet-btn:disabled,
.place-bet-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.place-bet-btn:disabled:hover,
.place-bet-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.close-round-btn {
  background: linear-gradient(45deg, #ff8f00, #ff5a36);
}

.result-box {
  font-size: 12px;
  color: #d8f8ff;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px;
}

.transactions-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.transactions-redesign {
  padding: 0;
  background: transparent;
  border: 0;
}

.transactions-redesign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.transactions-column,
.transactions-card {
  min-width: 0;
}

.transactions-card {
  border: 1px solid rgba(45, 77, 144, 0.46);
  background: rgba(6, 15, 46, 0.98);
  padding: 16px 16px 12px;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 69, 0.65);
  display: grid;
  gap: 14px;
}

.transactions-card-head,
.transactions-toolbar,
.transactions-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transactions-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.transactions-card-title h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f6f8ff;
}

.transactions-count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(100, 62, 188, 0.8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.transactions-select-wrap select,
.transactions-search-box input,
.transactions-page-btn,
.transactions-filter-tab {
  border: 1px solid rgba(49, 76, 140, 0.48);
  background: rgba(8, 16, 48, 0.92);
  color: #f6f8ff;
}

.transactions-select-wrap select {
  min-width: 170px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.transactions-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.transactions-filter-tab {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.transactions-filter-tab.active {
  background: linear-gradient(180deg, rgba(113, 56, 209, 0.95), rgba(75, 37, 160, 0.92));
  border-color: rgba(142, 95, 247, 0.8);
}

.transactions-filter-tab[data-slip-filter="wins"] {
  color: #4fe67e;
}

.transactions-filter-tab[data-slip-filter="losses"] {
  color: #ff4b54;
}

.transactions-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid rgba(49, 76, 140, 0.48);
  background: rgba(8, 16, 48, 0.92);
}

.transactions-search-box i {
  color: #93a6d6;
  font-size: 14px;
}

.transactions-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  outline: none;
}

.transactions-scroll-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.transactions-current-list {
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.transactions-past-list {
  max-height: 648px;
  overflow: auto;
  padding-right: 2px;
}

.transactions-slip-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(37, 58, 113, 0.74);
  background: linear-gradient(180deg, rgba(11, 20, 56, 0.98), rgba(7, 16, 46, 0.98));
  padding: 12px 14px 10px;
}

.transactions-slip-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.transactions-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transactions-status-chip.pending {
  background: rgba(107, 64, 18, 0.64);
  color: #ffbe4a;
}

.transactions-status-chip.win {
  background: rgba(17, 74, 44, 0.58);
  color: #38e07d;
}

.transactions-status-chip.loss {
  background: rgba(87, 22, 29, 0.58);
  color: #ff5e69;
}

.transactions-slip-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.transactions-slip-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.transactions-slip-id {
  font-size: 17px;
  font-weight: 700;
  color: #f6f8ff;
}

.transactions-slip-copy {
  color: #95a9dd;
  font-size: 14px;
}

.transactions-slip-meta {
  color: #a4b3dd;
  font-size: 12px;
}

.transactions-slip-summary-metric {
  display: grid;
  gap: 3px;
  min-width: 72px;
}

.transactions-slip-summary-metric span {
  color: #95a9dd;
  font-size: 11px;
}

.transactions-slip-summary-metric strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.transactions-slip-summary-arrow {
  color: #bfcfff;
  font-size: 16px;
  align-self: center;
  transition: transform 160ms ease;
}

.transactions-slip-card:not(.transactions-slip-card-collapsed) .transactions-slip-summary-arrow {
  transform: rotate(90deg);
}

.transactions-slip-card.transactions-slip-card-collapsed .transactions-slip-summary-arrow {
  transform: rotate(0deg);
}

.transactions-slip-table {
  border: 1px solid rgba(31, 50, 101, 0.74);
  background: rgba(5, 12, 38, 0.64);
  margin-left: 18px;
}

.transactions-slip-table-head,
.transactions-slip-table-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1.8fr) minmax(80px, 1fr) 82px 104px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
}

.transactions-slip-table-head {
  color: #7f92c5;
  font-size: 11px;
  border-bottom: 1px solid rgba(31, 50, 101, 0.74);
}

.transactions-slip-table-row {
  font-size: 13px;
  color: #f6f8ff;
}

.transactions-slip-table-row + .transactions-slip-table-row {
  border-top: 1px solid rgba(31, 50, 101, 0.46);
}

.transactions-slip-table-row .muted {
  color: #a9b8df;
}

.transactions-past-row {
  padding: 12px 14px 10px;
}

.transactions-past-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto;
  gap: 12px;
  align-items: center;
}

.transactions-past-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  border-radius: 50%;
}

.transactions-past-icon.win {
  background: rgba(17, 74, 44, 0.42);
  color: #38e07d;
}

.transactions-past-icon.loss {
  background: rgba(87, 22, 29, 0.42);
  color: #ff5e69;
}

.transactions-past-icon.settled {
  background: rgba(89, 56, 11, 0.42);
  color: #ffad3f;
}

.transactions-past-main,
.transactions-past-metric {
  display: grid;
  gap: 4px;
}

.transactions-past-detail-row {
  grid-template-columns: 24px minmax(84px, 1fr) minmax(86px, 1fr) 58px 72px 88px;
}

.transactions-past-detail-row span:nth-child(2),
.transactions-past-detail-row span:nth-child(3) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transactions-past-row .transactions-slip-table-head span,
.transactions-past-row .transactions-slip-table-row span {
  justify-self: center;
  text-align: center;
}

.transactions-past-round {
  color: #f6f8ff;
  font-size: 15px;
  font-weight: 700;
}

.transactions-past-date,
.transactions-past-metric span {
  color: #9cabd6;
  font-size: 12px;
}

.transactions-past-selection {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.transactions-past-selection-label {
  color: #7f92c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transactions-past-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.transactions-past-selection-chip,
.transactions-past-selection-more,
.transactions-past-selection-empty {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border: 1px solid rgba(57, 160, 255, 0.24);
  background: rgba(10, 25, 67, 0.82);
  color: #dce5ff;
  font-size: 10px;
  line-height: 1;
}

.transactions-past-selection-chip {
  gap: 5px;
  max-width: 100%;
  padding: 0 7px;
}

.transactions-past-selection-chip em {
  min-width: 0;
  max-width: 122px;
  color: #aeb8e6;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transactions-past-selection-chip strong {
  color: #3ee7ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.transactions-past-selection-more,
.transactions-past-selection-empty {
  padding: 0 8px;
}

.transactions-past-selection-empty {
  color: #9cabd6;
}

.transactions-past-metric strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.transactions-past-metric strong.win {
  color: #38e07d;
}

.transactions-past-metric strong.loss {
  color: #ff4b54;
}

.transactions-slip-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(31, 50, 101, 0.74);
  color: #9cabd6;
  font-size: 12px;
}

.transactions-slip-table-footer strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.transactions-result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.transactions-result-pill.win {
  background: rgba(17, 74, 44, 0.46);
  color: #38e07d;
}

.transactions-result-pill.loss {
  background: rgba(87, 22, 29, 0.46);
  color: #ff4b54;
}

.transactions-result-pill.settled {
  background: rgba(76, 86, 123, 0.34);
  color: #c9d5ff;
}

.transactions-chevron {
  color: #bfcfff;
  font-size: 18px;
}

.transactions-footer-note {
  color: #a4b3dd;
  font-size: 13px;
}

.transactions-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transactions-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.transactions-page-btn.active {
  background: linear-gradient(180deg, rgba(113, 56, 209, 0.95), rgba(75, 37, 160, 0.92));
  border-color: rgba(142, 95, 247, 0.8);
}

.bets-list .slip-empty,
.transactions-scroll-list .slip-empty {
  margin: 0;
}

.slip-outcome-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.slip-outcome-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d8f8ff;
  background: rgba(255, 255, 255, 0.06);
}

.slip-outcome-chip.won {
  border-color: rgba(46, 204, 113, 0.45);
  color: #9ff0be;
  background: rgba(46, 204, 113, 0.18);
}

.slip-outcome-chip.lost {
  border-color: rgba(231, 76, 60, 0.45);
  color: #ffb0a7;
  background: rgba(231, 76, 60, 0.18);
}

.slip-outcome-chip.pending {
  border-color: rgba(255, 255, 255, 0.14);
  color: #d8f8ff;
  background: rgba(255, 255, 255, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .transactions-current-list,
  .transactions-past-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .transactions-card {
    padding: 14px 12px 12px;
  }

  /* Keep transaction headers as a single row on narrow screens
     to avoid forcing the title and count to stack vertically. */
  .transactions-toolbar,
  .transactions-card-head,
  .transactions-footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .transactions-search-box,
  .transactions-select-wrap select {
    width: 100%;
    min-width: 0;
  }

  .transactions-past-row {
    padding: 10px;
  }

  .transactions-past-detail-row {
    grid-template-columns: 22px minmax(72px, 1fr) minmax(76px, 1fr) 52px 66px 78px;
  }

  .transactions-slip-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(50px, auto) minmax(64px, auto) auto;
    align-items: center;
    gap: 8px;
  }

  .transactions-past-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(44px, auto) minmax(52px, auto) minmax(52px, auto) auto auto;
    gap: 7px;
  }

  .transactions-past-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .transactions-slip-id,
  .transactions-past-round {
    font-size: 13px;
  }

  .transactions-slip-meta,
  .transactions-past-date,
  .transactions-slip-summary-metric span {
    font-size: 10px;
  }

  .transactions-slip-summary-metric {
    min-width: 0;
    gap: 2px;
  }

  .transactions-slip-summary-metric strong {
    font-size: 12px;
  }

  .transactions-result-pill {
    min-width: 54px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 10px;
  }

  .transactions-slip-summary-arrow {
    justify-self: end;
  }

  .transactions-slip-table-head,
  .transactions-slip-table-row {
    grid-template-columns: 26px minmax(120px, 1.5fr) minmax(70px, 1fr) 70px 90px;
    gap: 8px;
    padding: 8px 10px;
  }
}

.performance-section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.section-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 16px;
  line-height: 1.15;
}

.section-body {
  min-width: 0;
}

.section-body[data-section-body="performance-compare"] {
  display: grid;
  gap: 12px;
}

.section-body[hidden] {
  display: none !important;
}

.performance-section.section-collapsed,
.outcomes-panel.section-collapsed,
.get-data-panel.section-collapsed {
  padding: 10px 12px;
  gap: 0;
}

.performance-section.section-collapsed > .section-head,
.outcomes-panel.section-collapsed > .section-head,
.get-data-panel.section-collapsed > .section-head {
  margin-bottom: 0;
  align-items: center;
}

.performance-section.section-collapsed .section-head h2,
.outcomes-panel.section-collapsed .section-head h2,
.get-data-panel.section-collapsed .section-head h2 {
  font-size: 16px;
  line-height: 1.15;
}

.performance-section.section-collapsed .section-head p,
.outcomes-panel.section-collapsed .section-head p,
.get-data-panel.section-collapsed .section-head p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
}

.performance-section.section-collapsed .performance-pill-btn,
.outcomes-panel.section-collapsed .performance-pill-btn,
.get-data-panel.section-collapsed .performance-pill-btn {
  min-height: 30px;
}

.performance-character-nav {
  display: grid;
  gap: 12px;
  width: 84px;
  align-content: start;
}

.perf-character-item {
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  border-radius: 4px;
  width: 70px;
  height: 70px;
  padding: 6px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.perf-character-item.active {
  background: rgba(0, 212, 255, 0.24);
  border-color: rgba(0, 212, 255, 0.65);
}

.perf-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perf-controls-bottom {
  margin-top: 6px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.control-group span {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.perf-btn {
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.perf-btn.active {
  background: rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.6);
}

.performance-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.performance-main-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.performance-main .bar-chart {
  min-height: 220px;
}

.performance-main {
  min-width: 0;
  overflow: hidden;
}

.chartjs-scroll-wrapper {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 14px;
  background: #fbfdff;
  border: 1px solid #d8e4ef;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 10px 8px 8px;
}

.chartjs-canvas {
  display: block;
  width: auto;
  max-width: none;
  height: 360px;
  background: #fbfdff;
}

.chartjs-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #bfd3e2;
  color: #2c607b;
  font-size: 12px;
  text-align: right;
}

.general-chart-shell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
}

.perf-history,
.analysis-panel,
.general-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
}

.perf-history h2,
.analysis-panel h2,
.general-panel h2 {
  font-size: 18px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  font-size: 12px;
  color: #d4d4e3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px 10px;
}

.history-item span:first-child {
  color: var(--accent);
  font-weight: 600;
}

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

.analysis-notes {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.compare-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.compare-label select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px 8px;
}

.compare-toggle-btn {
  min-width: 90px;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-select {
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}

.compare-select span {
  font-size: 11px;
  color: var(--text-muted);
}

.compare-select select {
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
}

.compare-select select:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.compare-series-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.compare-series-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

.compare-series-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.compare-series-chip.current i {
  background: rgba(250, 204, 21, 0.95);
  border: 1px solid rgba(161, 98, 7, 0.9);
}

.compare-series-chip.other i {
  background: rgba(59, 130, 246, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.9);
}

.compare-redesign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.compare-redesign-head .section-head-actions {
  align-items: flex-end;
  flex-wrap: nowrap;
}

.compare-redesign-head h2 {
  margin: 0;
  color: #f6f8ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.compare-redesign-head p {
  margin: 6px 0 0;
  color: #aeb8e6;
  font-size: 11px;
  line-height: 1.2;
}

.compare-round-filter {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: #dce6ff;
  font-size: 12px;
  align-self: end;
}

.compare-round-filter select {
  min-height: 34px;
  border: 1px solid rgba(49, 76, 140, 0.48);
  background: rgba(8, 16, 48, 0.92);
  color: #f6f8ff;
  padding: 0 12px;
}

.compare-redesign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 12px;
  align-items: start;
}

.compare-trend-card,
.compare-heatmap-card,
.compare-ranking-card {
  min-width: 0;
  border: 1px solid rgba(45, 77, 144, 0.46);
  background: rgba(6, 15, 46, 0.98);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 69, 0.65);
}

.compare-trend-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
}

.compare-heatmap-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

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

.compare-card-head h3 {
  margin: 0;
  color: #f6f8ff;
  font-size: 14px;
  font-weight: 800;
}

.compare-card-head h3 small {
  color: #aeb8e6;
  font-size: 11px;
  font-weight: 500;
}

.compare-series-info-redesign {
  margin-bottom: 8px;
}

.compare-series-chip-redesign {
  color: #f6f8ff;
  background: transparent;
  padding: 0;
  font-size: 11px;
}

.compare-series-chip-redesign i {
  width: 10px;
  height: 10px;
}

.compare-trend-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  min-height: 210px;
  height: auto;
  background: transparent;
  border-color: rgba(45, 77, 144, 0.34);
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 121, 214, 0.9) rgba(7, 18, 52, 0.88);
}

.compare-trend-scroll::-webkit-scrollbar {
  height: 10px;
}

.compare-trend-scroll::-webkit-scrollbar-track {
  background: rgba(7, 18, 52, 0.88);
}

.compare-trend-scroll::-webkit-scrollbar-thumb {
  background: rgba(86, 121, 214, 0.9);
  border-radius: 999px;
}

.compare-trend-canvas {
  background: transparent;
  display: block;
  min-width: 100%;
  height: 100%;
}

.compare-trend-card .performance-card-body {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: auto;
  overflow: hidden;
}

.compare-chart-note {
  margin-top: 8px;
  color: #9fb1da;
  font-size: 11px;
}

.compare-trend-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  min-height: 210px;
  height: auto;
  max-height: none;
  align-items: stretch;
}

.compare-trend-axis {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: 0;
  padding: 2px 0 22px;
}

.compare-trend-axis-title {
  position: absolute;
  align-self: center;
  justify-self: center;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  color: #aeb8e6;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.compare-trend-axis-ticks {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  justify-items: end;
  min-height: 0;
  color: #aeb8e6;
  font-size: 11px;
  padding-right: 2px;
}

.compare-trend-card.compare-trend-expanded {
  position: fixed;
  inset: 12px;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 18px 18px 16px;
  background: #071530;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(12, 26, 69, 0.65);
}

.compare-trend-card.compare-trend-expanded .compare-card-head,
.performance-trend-card.trend-expanded .performance-card-head {
  position: relative;
  z-index: 2;
  align-items: flex-start;
  padding-right: 4px;
}

.compare-trend-card.compare-trend-expanded .performance-card-body,
.performance-trend-card.trend-expanded .performance-card-body {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.compare-trend-card.compare-trend-expanded .performance-card-actions,
.performance-trend-card.trend-expanded .performance-card-actions {
  position: relative;
  z-index: 3;
}

.compare-trend-card.compare-trend-expanded .compare-trend-shell {
  grid-template-columns: 56px minmax(0, 1fr);
  height: clamp(330px, 46vh, 460px);
  min-height: 0;
  align-self: start;
}

.compare-trend-card.compare-trend-expanded .compare-trend-scroll {
  height: 100%;
  min-height: 0;
  padding-top: 0;
}

.compare-trend-card.compare-trend-expanded .compare-trend-axis {
  padding: 10px 0 18px;
}

.compare-trend-card.compare-trend-expanded .compare-trend-axis-title {
  font-size: 14px;
}

.compare-trend-card.compare-trend-expanded .compare-trend-axis-ticks {
  font-size: 14px;
  padding-right: 6px;
}

body.compare-trend-expanded-open {
  overflow: hidden;
}

body.compare-trend-expanded-open::before {
  content: none;
  display: none;
}

.compare-heatmap-table {
  display: grid;
  border: 1px solid rgba(45, 77, 144, 0.34);
  overflow-x: auto;
  overflow-y: visible;
  min-height: auto;
}

.compare-heatmap-card .performance-card-body {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: auto;
  overflow: hidden;
}

.compare-heatmap-row {
  display: grid;
  grid-template-columns: 130px repeat(5, minmax(0, 1fr));
}

.compare-heatmap-row span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-right: 1px solid rgba(24, 39, 86, 0.72);
  border-bottom: 1px solid rgba(24, 39, 86, 0.72);
  color: #f6f8ff;
  font-size: 12px;
}

.compare-heatmap-row span:last-child {
  border-right: 0;
}

.compare-heatmap-row:last-child span {
  border-bottom: 0;
}

.compare-heatmap-head span {
  min-height: 34px;
  background: rgba(10, 20, 58, 0.94);
  color: #dbe5ff;
  font-size: 11px;
}

.compare-heatmap-character {
  justify-content: start !important;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 10px;
  background: rgba(10, 20, 58, 0.82);
}

.compare-heatmap-avatar,
.compare-ranking-avatar {
  --character-accent: #39a0ff;
  --character-accent-dark: #1d4ed8;
  --character-accent-soft: rgba(57, 160, 255, 0.22);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--character-accent), var(--character-accent-dark));
  box-shadow: 0 0 0 3px var(--character-accent-soft);
}

.compare-heatmap-note,
.compare-ranking-note {
  margin-top: 8px;
  color: #9fb1da;
  font-size: 11px;
}

.compare-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.compare-heatmap-legend-swatch {
  display: inline-block;
  width: 36px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-heatmap-legend-swatch.level-1 {
  background: #8f2727;
}

.compare-heatmap-legend-swatch.level-2 {
  background: #9b5a2b;
}

.compare-heatmap-legend-swatch.level-3 {
  background: #9f8530;
}

.compare-heatmap-legend-swatch.level-4 {
  background: #6d9d34;
}

.compare-heatmap-legend-swatch.level-5 {
  background: #2d9d4a;
}

.compare-ranking-card {
  margin-top: 0;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.compare-ranking-head {
  align-items: flex-start;
}

.compare-attribute-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-attribute-tabs > span {
  color: #c7d3f7;
  font-size: 12px;
}

.compare-attribute-tabs .performance-pill-btn.active {
  background: linear-gradient(180deg, #3f8dff, #285fbe);
  border-color: rgba(72, 126, 255, 0.7);
}

.compare-ranking-table {
  display: grid;
  min-height: auto;
  overflow: visible;
  padding-right: 0;
}

.compare-ranking-card .performance-card-body {
  display: grid;
  grid-template-rows: auto auto;
  min-height: auto;
  overflow: hidden;
}

.compare-ranking-head-row,
.compare-ranking-row {
  display: grid;
  grid-template-columns: 74px 190px minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: center;
}

.compare-ranking-head-row {
  padding: 0 8px 6px;
  color: #aeb8e6;
  font-size: 11px;
  border-bottom: 1px solid rgba(45, 77, 144, 0.3);
}

.compare-ranking-head-row small {
  display: block;
  margin-top: 2px;
  color: #8fa0cb;
  font-size: 10px;
}

.compare-ranking-row {
  min-height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(45, 77, 144, 0.22);
}

.compare-ranking-row:last-child {
  border-bottom: 0;
}

.compare-rank-badge {
  color: #f6f8ff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.compare-ranking-character {
  display: inline-grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 8px;
  color: #f6f8ff;
  font-size: 12px;
}

.compare-ranking-bar-track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 32, 72, 0.94);
  overflow: hidden;
}

.compare-ranking-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.compare-ranking-value {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
}

.chart-card h3 {
  font-size: 13px;
  margin-bottom: 8px;
}

.bar-chart {
  display: block;
  width: 100%;
  overflow: hidden;
}

.history-chart {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: start;
}

.history-y-axis {
  height: 300px;
  display: grid;
  align-content: stretch;
  position: relative;
  padding-right: 8px;
}

.history-chart.divergence .history-y-axis {
  grid-template-rows: repeat(21, 1fr);
}

.history-chart.standard .history-y-axis {
  grid-template-rows: repeat(11, 1fr);
}

.history-y-axis .axis-y-tick {
  font-size: 11px;
  line-height: 1;
  color: #2f3441;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  font-variant-numeric: tabular-nums;
}

.history-y-axis::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 7px;
  width: 2px;
  background: #232833;
}

.history-chart.divergence .history-y-axis .axis-y-tick::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 10px;
  height: 2px;
  background: #232833;
}

.history-plot-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  max-width: 100%;
  width: min(100%, calc((20 * 1.8em) + (19 * 0.35em) + 24px));
}

.history-plot {
  position: relative;
  min-width: max-content;
  height: 300px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d7d7df;
  padding: 0 10px;
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
}

.history-plot.divergence {
  background-image: none;
}

.history-plot.standard {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(10% - 1px),
    rgba(0, 0, 0, 0.08) calc(10% - 1px),
    rgba(0, 0, 0, 0.08) 10%
  );
}

.history-zero-line {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: #232833;
}

.history-col {
  flex: 0 0 1.8em;
  width: 1.8em;
  display: grid;
  grid-template-rows: 260px;
  justify-items: center;
  align-items: end;
}

.history-bar-area {
  position: relative;
  width: 100%;
  height: 260px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.history-bar {
  position: absolute;
  width: 1.1em;
}

.history-bar.positive {
  bottom: 50%;
  background: #0ea45a;
}

.history-chart.standard .history-bar.positive {
  bottom: 0;
}

.history-bar.negative {
  top: 50%;
  background: #dc2626;
}

.history-col.is-hover .history-bar {
  outline: 1px solid rgba(0, 0, 0, 0.24);
}

.history-col.is-hover .history-label {
  color: #111;
  font-weight: 700;
}

.history-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #3a3f4d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.history-chart.divergence .history-label {
  top: calc(50% + 10px);
}

.history-chart.standard .history-label {
  top: calc(100% + 6px);
}

.hover-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.hover-panel h3 {
  font-size: 13px;
}

.hover-panel p {
  font-size: 11px;
  color: var(--text-muted);
}

.hover-character {
  color: #d8f8ff;
}

.hover-stat {
  display: grid;
  gap: 4px;
}

.hover-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #d8d8e7;
}

.hover-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hover-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.general-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.pie-card,
.line-card {
  background: linear-gradient(180deg, rgba(8, 17, 55, 0.92), rgba(4, 11, 38, 0.92));
  border: 1px solid rgba(45, 77, 144, 0.42);
  border-radius: 12px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 69, 0.45);
}

.pie-card h3,
.line-card h3 {
  font-size: 16px;
  margin: 0;
  color: #f7fbff;
}

.general-card-subtitle {
  color: #aeb8e6;
  font-size: 12px;
  margin: -6px 0 6px;
}

.general-distribution-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

#generalDistributionChart,
#generalTrendChart {
  width: 100%;
  border: 1px solid rgba(37, 58, 112, 0.48);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(9, 20, 60, 0.88), rgba(5, 14, 42, 0.88));
}

#generalDistributionChart {
  height: 240px;
}

#generalTrendChart {
  height: 260px;
}

.general-chart-footnote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  color: #9fb1da;
  font-size: 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.general-chart-footnote i {
  color: #2db3ff;
  font-size: 12px;
}

.demo-user {
  font-size: 12px;
  color: #d4e9f7;
}

.demo-balance-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
}

.demo-balance-line strong {
  font-size: 14px;
  color: #00d4ff;
}

.demo-input-wrap {
  font-size: 13px;
  color: #d4e9f7;
}

.demo-balance-input {
  width: 100%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 10px;
  font-size: 12px;
}

.demo-save-btn {
  border: none;
  border-radius: 10px;
  padding: 7px 9px;
  background: linear-gradient(45deg, #00d4ff, #0088ff);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
}

.demo-message {
  min-height: 18px;
  font-size: 12px;
  color: #d4e9f7;
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .dashboard-overlay {
    background: transparent;
    backdrop-filter: none;
  }

  .side-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1250;
    width: min(82vw, 290px);
    padding: 78px 14px 20px;
    border-right: 1px solid var(--panel-border);
    border-bottom: none;
    background: rgba(12, 16, 40, 0.98);
    box-shadow: 18px 0 36px rgba(0, 0, 0, 0.36);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  body.dashboard-menu-open .side-panel {
    transform: translateX(0);
  }

  .dashboard-menu-toggle {
    display: inline-flex;
  }

  body.dashboard-menu-open .dashboard-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .panel-menu {
    grid-template-columns: 1fr;
  }

  .game-container {
    grid-template-columns: 1fr;
  }

  .odds-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .odds-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-odds-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .betting-layout {
    grid-template-columns: 1fr;
  }

  .current-bets-panel {
    position: static;
    width: 100%;
    max-height: none;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .general-grid {
    grid-template-columns: 1fr;
  }

  .performance-layout {
    grid-template-columns: 1fr;
  }

  .transactions-layout {
    grid-template-columns: 1fr;
  }

  .main-view {
    padding: 68px 16px 18px;
  }

  .main-head {
    padding-left: 0;
  }

  .main-head h1 {
    font-size: 24px;
  }

  .main-head p {
    font-size: 14px;
  }

  .menu-btn,
  .account-sub-btn {
    font-size: 12px;
    padding: 9px 10px;
  }

  .brand {
    font-size: 18px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  .menu-title {
    font-size: 9px;
  }
}

@media (max-width: 560px) {
  .main-view {
    padding: 58px 10px 12px;
  }

  .odds-grid {
    grid-template-columns: 1fr;
  }

  .odds-board-grid {
    grid-template-columns: 1fr;
  }

  .character-odds-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .odds-market-card {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    zoom: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .odds-market-head {
    gap: 10px;
    align-items: flex-start;
  }

  .odds-market-title {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }

  .odds-market-avatar {
    width: 30px;
    height: 30px;
  }

  .odds-market-name {
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .odds-market-sub {
    font-size: 10px;
  }

  .odds-market-stats {
    gap: 5px;
    margin: 0;
  }

  .odds-stat-row {
    grid-template-columns: 48px 1fr 34px;
    gap: 5px;
    font-size: 9px;
  }

  .odds-market-sections {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
  }

  .odds-market-block {
    padding: 8px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .odds-market-block h3 {
    font-size: 10px;
    margin-bottom: 3px;
    letter-spacing: 0.08em;
  }

  .odds-market-hint {
    font-size: 8px;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .main-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
  }

  .dashboard-menu-toggle {
    top: 10px;
    left: 10px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 14px;
    justify-content: center;
    font-size: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  }

  .dashboard-menu-toggle span {
    display: none;
  }

  .dashboard-menu-toggle i {
    font-size: 18px;
  }

  .side-panel {
    width: min(86vw, 270px);
    padding: 64px 12px 18px;
  }

  .brand {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .head-actions {
    width: auto;
    max-width: 132px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }

  .balance-chip,
  .return-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 9px;
  }

  .user-chip {
    max-width: 100%;
    min-height: 30px;
    font-size: 10px;
  }

  .main-head h1 {
    font-size: 18px;
    line-height: 1.05;
    max-width: 170px;
  }

  .main-head p {
    display: none;
  }

  .game-container {
    padding: 8px;
    gap: 8px;
    min-height: 0;
    border-radius: 14px;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: 176px;
    border-radius: 10px;
  }

  .game-meta {
    padding: 10px;
    padding-bottom: 38px;
    border-radius: 10px;
  }

  .game-meta h3 {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }

  .game-meta ul {
    gap: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .round-countdown {
    font-size: 11px;
    right: 10px;
    top: 8px;
    padding: 4px 7px;
  }

  .global-state-indicator {
    font-size: 0.68rem;
    margin-top: 10px;
  }

  .slip-container h2,
  .section-head h2 {
    font-size: 16px;
  }

  .control-group {
    flex-wrap: wrap;
    padding: 0;
  }

  .perf-btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .odds-container {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .character-odds-board {
    gap: 10px;
  }

  .odds-grid,
  .odds-grid-single,
  .odds-grid-double {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .odds-grid .odd-btn:last-child:nth-child(3n + 1),
  .odds-grid .odd-btn:nth-last-child(2):nth-child(3n + 1),
  .odds-grid .odd-btn:last-child:nth-child(3n + 2) {
    grid-column: auto;
  }

  .odd-btn {
    min-height: 38px;
    padding: 5px 3px;
    font-size: 8px;
    border-radius: 8px;
    line-height: 1.05;
  }

  .odd-btn strong {
    font-size: 9px;
    margin-top: 1px;
  }

  .slip-container {
    border-radius: 14px;
    padding: 10px;
    gap: 8px;
  }

  .slip-meta,
  .slip-summary,
  .slip-empty {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .main-view {
    padding: 56px 8px 10px;
  }

  .main-head h1 {
    font-size: 16px;
    max-width: 152px;
  }

  .head-actions {
    max-width: 118px;
  }

  .odds-market-sections {
    gap: 6px;
  }

  .odds-market-block {
    padding: 7px 5px;
  }

  .odds-grid,
  .odds-grid-single,
  .odds-grid-double {
    gap: 4px;
  }

  .odd-btn {
    min-height: 34px;
    padding: 4px 2px;
    font-size: 7px;
  }

  .odd-btn strong {
    font-size: 8px;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: 164px;
  }

  .game-meta ul {
    font-size: 10px;
  }

  .odds-market-name {
    font-size: 13px;
  }

  .odds-stat-row {
    grid-template-columns: 44px 1fr 32px;
    font-size: 8px;
  }
}

/* Betting arena redesign */
:root {
  --arena-bg: #020724;
  --arena-panel: rgba(8, 17, 55, 0.82);
  --arena-panel-strong: rgba(10, 20, 62, 0.94);
  --arena-line: rgba(67, 101, 197, 0.32);
  --arena-cyan: #12d7ff;
  --arena-blue: #248bff;
  --arena-pink: #ff3fbd;
  --arena-purple: #562cff;
  --arena-muted: #aeb8e6;
}

body {
  background:
    radial-gradient(circle at 14% 12%, rgba(17, 122, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(255, 63, 189, 0.08), transparent 34%),
    linear-gradient(180deg, #020724 0%, #061038 52%, #020724 100%);
}

.bg-animation {
  display: none;
}

.dashboard-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  gap: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 7, 36, 0.96);
  border: 0;
  box-shadow: none;
}

.dashboard-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(2, 7, 36, 0.86);
  border-bottom: 1px solid rgba(67, 101, 197, 0.2);
}

.topbar-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--arena-cyan);
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.topbar-brand img,
.brand img {
  width: clamp(58px, 4.6vw, 74px);
  height: auto;
  max-height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
}

.topbar-brand span,
.brand span {
  background: linear-gradient(90deg, var(--arena-cyan), #2b83ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.side-panel {
  grid-row: 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 28px 16px 24px;
  background: linear-gradient(180deg, rgba(8, 18, 58, 0.92), rgba(4, 10, 37, 0.92));
  border: 1px solid rgba(67, 101, 197, 0.22);
  border-left: 0;
  border-bottom-left-radius: 3px;
  border-top-right-radius: 3px;
}

.side-panel > .brand {
  display: none;
}

.menu-title {
  margin: 0 10px 4px;
  color: #9ca8d8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-menu {
  align-content: start;
  gap: 12px;
}

.menu-btn {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: #eef3ff;
  border: 1px solid transparent;
  border-radius: 1px;
  background: transparent;
  font-size: 14px;
  line-height: 1.25;
}

.menu-btn i {
  color: #aeb8e6;
  font-size: 20px;
}

.menu-btn:hover,
.menu-btn.active {
  color: var(--arena-cyan);
  background: linear-gradient(100deg, rgba(16, 153, 255, 0.22), rgba(86, 44, 255, 0.32));
  border-left-color: var(--arena-pink);
  transform: none;
}

.menu-btn:hover i,
.menu-btn.active i {
  color: var(--arena-cyan);
}

.support-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  border: 1px solid var(--arena-line);
  border-radius: 2px;
  background: rgba(9, 19, 58, 0.78);
}

.support-card > i {
  color: #aeb8e6;
  font-size: 30px;
}

.support-card strong,
.support-card span {
  display: block;
}

.support-card strong {
  font-size: 13px;
}

.support-card span {
  margin-top: 2px;
  color: var(--arena-muted);
  font-size: 11px;
}

.support-card button {
  grid-column: 1 / -1;
  min-height: 38px;
  color: #f7f9ff;
  border: 1px solid var(--arena-line);
  border-radius: 1px;
  background: rgba(12, 24, 70, 0.84);
}

.main-view {
  grid-row: 2;
  gap: 12px;
  padding: 24px 18px 16px 22px;
  background: transparent;
}

.main-head {
  align-items: flex-start;
  min-height: 54px;
}

.main-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f6f8ff;
  font-size: 24px;
  font-weight: 800;
}

.main-head h1::after,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0 9px;
  color: #ff6fd0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255, 63, 189, 0.22);
  border-radius: 200px;
  background: rgba(255, 63, 189, 0.12);
}

.main-head h1::after {
  content: "Live";
}

.live-badge i,
.live-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--arena-pink);
  box-shadow: 0 0 14px rgba(255, 63, 189, 0.7);
}

.main-head p {
  margin-top: 5px;
  color: var(--arena-muted);
  font-size: 14px;
}

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.local-time-chip,
.balance-chip,
.live-chip,
.user-chip,
.icon-action,
.return-btn {
  min-height: 46px;
  color: #f7f9ff;
  border: 1px solid var(--arena-line);
  border-radius: 1px;
  background: rgba(7, 14, 45, 0.86);
}

.local-time-chip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 238px;
  padding: 0 13px;
  white-space: nowrap;
}

.local-time-chip i {
  color: var(--arena-cyan);
  font-size: 16px;
}

.local-time-chip__zone {
  color: var(--arena-muted);
  font-size: 11px;
  font-weight: 700;
}

.local-time-chip__value {
  color: #f7fbff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.balance-chip {
  display: grid;
  min-width: 108px;
  padding: 7px 12px;
}

.balance-chip small {
  color: var(--arena-muted);
  font-size: 11px;
  line-height: 1;
}

.balance-chip span {
  color: #f6f8ff;
  font-size: 15px;
  font-weight: 800;
}

.live-chip,
.icon-action,
.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-menu {
  position: relative;
  display: inline-flex;
}

.user-menu[hidden],
.user-menu-dropdown[hidden] {
  display: none !important;
}

.live-chip {
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
}

.icon-action {
  width: 46px;
  color: #fff;
  font-size: 18px;
}

.user-chip {
  gap: 9px;
  max-width: 210px;
  padding: 0 12px;
  font-size: 13px;
  font: inherit;
  cursor: pointer;
}

.user-chip-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--arena-cyan);
  font-size: 20px;
  border: 1px solid var(--arena-cyan);
  border-radius: 50%;
}

.user-chip-chevron {
  transition: transform 0.18s ease;
}

.user-menu.open .user-chip-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--arena-line);
  border-radius: 4px;
  background: rgba(7, 14, 45, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

.user-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: #f7f9ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  color: #ffffff;
  outline: none;
  background: rgba(0, 212, 255, 0.16);
}

.return-btn {
  padding: 0 16px;
  font-weight: 700;
}

.dashboard-view.active {
  display: grid;
  min-height: 0;
}

.betting-arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 300px);
  gap: 16px;
  min-height: 0;
  padding-right: 0;
}

.arena-main-column {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: minmax(250px, 0.82fr) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.arena-side-rail {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.arena-side-rail > .live-feed-panel,
.arena-side-rail > .slip-container {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
}

.game-container,
.live-feed-panel,
.slip-container,
.odds-container,
.performance-section,
.transactions-panel,
.outcomes-panel,
.get-data-panel,
.simple-panel {
  border: 1px solid var(--arena-line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(8, 17, 55, 0.9), rgba(4, 11, 38, 0.9));
  box-shadow: inset 0 0 42px rgba(36, 139, 255, 0.04);
}

.game-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 22%);
  gap: 14px;
  min-height: 370px;
  padding: 20px;
  align-items: stretch;
}

.game-stage {
  grid-column: 1;
  min-height: 330px;
  border: 1px solid rgba(67, 101, 197, 0.36);
  border-radius: 1px;
  background: rgba(1, 5, 22, 0.7);
}

.unity-gameplay-frame {
  min-height: 330px;
}

.game-status-rail {
  grid-column: 2;
  display: grid;
  align-content: stretch;
  gap: 10px;
  min-width: 0;
}

.game-status-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px 10px;
  border: 1px solid rgba(67, 101, 197, 0.28);
  background: linear-gradient(180deg, rgba(10, 18, 56, 0.94), rgba(4, 11, 38, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 92, 0.04),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

.game-status-card--countdown {
  align-content: center;
}

.game-status-card--round {
  position: relative;
}

.game-status-card--round::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 209, 92, 0), rgba(255, 209, 92, 0.85));
}

.game-status-label {
  color: #9fb1da;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-meta {
  display: none;
}

.game-meta h3 {
  color: var(--arena-pink);
  font-size: 18px;
}

.game-meta li {
  color: var(--arena-muted);
}

.round-number-chip,
.round-countdown {
  color: #dce5ff;
  border-color: transparent;
  background: rgba(2, 7, 28, 0.72);
}

.round-number-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  width: 100%;
  padding: 9px 10px;
  color: #eef3ff;
  border: 1px solid rgba(94, 113, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 16, 48, 0.98), rgba(4, 11, 38, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 209, 92, 0.04);
}

.round-number-chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffd15c;
  font-size: 14px;
  border: 1px solid rgba(255, 209, 92, 0.36);
  background: rgba(96, 71, 10, 0.28);
}

.round-number-chip__value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.round-countdown {
  display: grid;
  place-items: center;
  min-height: 98px;
  width: 100%;
  padding: 10px 8px;
  color: #f7fbff;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 113, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(8, 16, 48, 0.98), rgba(3, 9, 30, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(120, 225, 255, 0.08),
    inset 0 10px 24px rgba(18, 215, 255, 0.03),
    0 0 24px rgba(18, 215, 255, 0.06);
}

.global-state-indicator {
  color: #ff6fd0;
  text-align: right;
}

.live-feed-panel {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  padding: 18px;
}

.live-feed-panel h2,
.slip-container h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f6f8ff;
  font-size: 20px;
}

.feed-list {
  display: grid;
  align-content: start;
  max-height: 338px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-top: 10px;
}

.feed-list article {
  display: grid;
  grid-template-columns: minmax(42px, 0.9fr) auto minmax(44px, 1fr) minmax(38px, auto);
  align-items: center;
  gap: 4px;
  min-height: 44px;
  border-bottom: 1px solid rgba(67, 101, 197, 0.18);
  font-size: 12px;
}

.feed-list span {
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--arena-cyan);
  border-radius: 50%;
}

.feed-list strong {
  color: #fbfdff;
  font-size: 12px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-list em {
  color: #b8c7f0;
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}

.feed-list b {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-list b.float {
  color: #f6f8ff;
}

.feed-list b.drown {
  color: #f6f8ff;
}

.feed-list mark {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  background: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.main-view,
.feed-list,
.slip-list,
.transactions-current-list,
.transactions-past-list,
.outcome-table-wrap,
.compare-heatmap-table,
.performance-history-grid,
.performance-trend-wrap,
.compare-trend-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 215, 255, 0.75) rgba(7, 18, 52, 0.78);
}

.main-view::-webkit-scrollbar,
.feed-list::-webkit-scrollbar,
.slip-list::-webkit-scrollbar,
.transactions-current-list::-webkit-scrollbar,
.transactions-past-list::-webkit-scrollbar,
.outcome-table-wrap::-webkit-scrollbar,
.compare-heatmap-table::-webkit-scrollbar,
.performance-history-grid::-webkit-scrollbar,
.performance-trend-wrap::-webkit-scrollbar,
.compare-trend-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.main-view::-webkit-scrollbar-track,
.feed-list::-webkit-scrollbar-track,
.slip-list::-webkit-scrollbar-track,
.transactions-current-list::-webkit-scrollbar-track,
.transactions-past-list::-webkit-scrollbar-track,
.outcome-table-wrap::-webkit-scrollbar-track,
.compare-heatmap-table::-webkit-scrollbar-track,
.performance-history-grid::-webkit-scrollbar-track,
.performance-trend-wrap::-webkit-scrollbar-track,
.compare-trend-scroll::-webkit-scrollbar-track {
  background: rgba(7, 18, 52, 0.78);
}

.main-view::-webkit-scrollbar-thumb,
.feed-list::-webkit-scrollbar-thumb,
.slip-list::-webkit-scrollbar-thumb,
.transactions-current-list::-webkit-scrollbar-thumb,
.transactions-past-list::-webkit-scrollbar-thumb,
.outcome-table-wrap::-webkit-scrollbar-thumb,
.compare-heatmap-table::-webkit-scrollbar-thumb,
.performance-history-grid::-webkit-scrollbar-thumb,
.performance-trend-wrap::-webkit-scrollbar-thumb,
.compare-trend-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 215, 255, 0.85), rgba(158, 88, 255, 0.82));
}

.odds-container {
  padding: 0;
  overflow: hidden;
}

.character-odds-board,
.odds-board-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
}

.odds-market-card {
  gap: 10px;
  padding: 13px 12px;
  border-color: rgba(116, 137, 190, 0.12);
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(13, 22, 54, 0.94), rgba(7, 13, 35, 0.94));
  zoom: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    inset 1px 0 0 rgba(255, 255, 255, 0.018),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

.odds-market-card.selected {
  border-color: var(--character-accent);
  background:
    linear-gradient(180deg, rgba(255, 63, 189, 0.04), rgba(5, 13, 43, 0.93)),
    linear-gradient(180deg, rgba(10, 22, 64, 0.92), rgba(5, 13, 43, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 99, 204, 0.18) inset,
    0 8px 20px rgba(0, 0, 0, 0.12);
  transform: none;
}

.odds-market-avatar {
  border-color: var(--character-accent);
}

.odds-market-head {
  align-items: center;
  min-height: 34px;
}

.odds-market-title {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
}

.odds-market-title > div {
  display: flex;
  align-items: center;
  min-width: 0;
}

.odds-market-avatar {
  width: 34px;
  height: 34px;
  border-width: 2px;
  box-shadow: 0 0 0 1px var(--character-accent-soft);
}

.odds-market-name {
  color: #f6f8ff;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.odds-market-card .odds-market-name,
.odds-market-card.selected .odds-market-name {
  color: #f6f8ff !important;
  -webkit-text-fill-color: #f6f8ff !important;
}

.odds-market-card.selected .odds-market-title,
.odds-market-card.selected .odds-market-title div,
.odds-market-card.selected .odds-market-title div {
  color: #f6f8ff !important;
}

.odds-market-block {
  border: 0;
  background: transparent;
  padding: 0;
}

.odds-market-block h3 {
  color: var(--arena-cyan);
  font-size: 12px;
  font-weight: 800;
}

.odds-grid {
  gap: 7px;
}

.odd-btn {
  --odd-edge-strong: rgba(18, 215, 255, 0.62);
  --odd-edge-soft: rgba(18, 215, 255, 0.14);
  min-height: 34px;
  padding: 4px 3px 5px;
  gap: 2px;
  color: #ffffff;
  font-family: "Montserrat", "Poppins", sans-serif;
  border-color: transparent;
  border-radius: 1px;
  background:
    linear-gradient(to bottom, var(--odd-edge-strong), var(--odd-edge-soft) 66%, transparent) left top / 1px 100% no-repeat,
    linear-gradient(to right, var(--odd-edge-strong), var(--odd-edge-soft) 66%, transparent) left bottom / 100% 1px no-repeat;
  box-shadow: none;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transform: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.odd-btn-label {
  display: block;
  width: 100%;
  color: #f8fbff;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-shadow: none;
}

.odd-btn strong,
.odd-btn-value {
  display: block;
  width: 100%;
  color: var(--arena-cyan);
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.odds-grid-double .odd-btn {
  min-height: 32px;
  padding: 3px 1px 4px;
}

.odds-grid-double .odd-btn-label {
  font-size: 9px;
  line-height: 1;
}

.odds-grid-double .odd-btn-value {
  font-size: 10px;
}

.odd-btn.drown {
  --odd-edge-strong: rgba(255, 84, 199, 0.64);
  --odd-edge-soft: rgba(255, 84, 199, 0.13);
}

.odd-btn.drown strong,
.odd-btn.drown .odd-btn-value {
  color: var(--arena-pink);
  text-shadow: none;
}

.odd-btn.float,
.odd-btn.double {
  --odd-edge-strong: rgba(18, 215, 255, 0.62);
  --odd-edge-soft: rgba(18, 215, 255, 0.14);
}

.odd-btn.float strong,
.odd-btn.double strong,
.odd-btn.float .odd-btn-value,
.odd-btn.double .odd-btn-value {
  color: var(--arena-cyan);
}

.odd-btn:hover:not(:disabled):not(.disabled) {
  --odd-edge-strong: rgba(120, 225, 255, 0.8);
  --odd-edge-soft: rgba(120, 225, 255, 0.18);
  transform: none;
  box-shadow: none;
}

.odd-btn.drown:hover:not(:disabled):not(.disabled) {
  --odd-edge-strong: rgba(255, 136, 216, 0.76);
  --odd-edge-soft: rgba(255, 136, 216, 0.16);
  box-shadow: none;
}

.odd-btn.selected {
  --odd-edge-strong: rgba(139, 233, 255, 0.9);
  --odd-edge-soft: rgba(139, 233, 255, 0.22);
  transform: none;
  box-shadow: none;
}

.odd-btn.drown.selected {
  --odd-edge-strong: rgba(255, 136, 216, 0.82);
  --odd-edge-soft: rgba(255, 136, 216, 0.2);
  box-shadow: none;
}

.odd-btn.selected .odd-btn-label,
.odd-btn.selected .odd-btn-value,
.odd-btn.selected strong {
  color: #f7fbff;
  text-shadow: none;
}

body.dashboard-logged-out .odd-btn,
body.dashboard-logged-out .odd-btn strong,
body.dashboard-logged-out .odd-btn .odd-btn-label,
body.dashboard-logged-out .odd-btn .odd-btn-value,
body.dashboard-logged-out .odds-market-card .odds-market-block h3 {
  color: #5f6883;
}

body.dashboard-logged-out .balance-chip,
body.dashboard-logged-out .user-menu,
body.dashboard-logged-out .demo-inline-card {
  display: none !important;
}

body.dashboard-logged-out .odd-btn {
  --odd-edge-strong: rgba(99, 111, 145, 0.38);
  --odd-edge-soft: rgba(99, 111, 145, 0.1);
  box-shadow: none;
  cursor: not-allowed;
}

body.dashboard-logged-out .odd-btn.float,
body.dashboard-logged-out .odd-btn.drown,
body.dashboard-logged-out .odd-btn.double,
body.dashboard-logged-out .odd-btn.selected,
body.dashboard-logged-out .odd-btn.drown.selected {
  --odd-edge-strong: rgba(99, 111, 145, 0.38);
  --odd-edge-soft: rgba(99, 111, 145, 0.1);
  box-shadow: none;
}

body.dashboard-logged-out .odds-market-card,
body.dashboard-logged-out .odds-market-card.selected {
  border-color: rgba(105, 116, 150, 0.1);
  background: linear-gradient(180deg, rgba(12, 18, 39, 0.94), rgba(7, 12, 30, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.018),
    inset 1px 0 0 rgba(255, 255, 255, 0.012),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

body.dashboard-logged-out .odds-market-title > div,
body.dashboard-logged-out .odds-market-stats,
body.dashboard-logged-out .odds-market-sections {
  filter: grayscale(0.95);
  opacity: 0.58;
}

body.dashboard-logged-out .odds-market-card.selected .odds-market-title,
body.dashboard-logged-out .odds-market-card.selected .odds-market-title div,
body.dashboard-logged-out .odds-market-card.selected .odds-market-name {
  color: #f6f8ff !important;
  -webkit-text-fill-color: #f6f8ff !important;
}

body.dashboard-logged-in .odd-btn:not(.disabled):not(:disabled) {
  color: #f6f8ff;
}

body.dashboard-logged-in .odd-btn:not(.disabled):not(:disabled) strong {
  color: var(--arena-cyan);
}

body.dashboard-logged-in .odd-btn.drown:not(.disabled):not(:disabled) strong {
  color: var(--arena-pink);
}

.slip-container {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  position: static;
  width: auto;
  min-height: 0;
  border-radius: 0;
  padding: 8px 8px 6px;
  gap: 6px;
  align-content: start;
  background: rgba(5, 12, 38, 0.98);
}

.slip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.slip-container h2 {
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.slip-container h2 i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #f5eeff;
  font-size: 11px;
  border-radius: 0;
  border: 1px solid rgba(175, 84, 255, 0.24);
  background: rgba(50, 28, 92, 0.88);
  box-shadow: none;
}

.slip-clear-btn {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 113, 196, 0.24);
  border-radius: 0;
  background: rgba(12, 20, 58, 0.88);
  color: #c9d5ff;
  font-size: 10px;
}

.slip-clear-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.slip-section {
  display: grid;
  gap: 4px;
}

.slip-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #f6f8ff;
}

.slip-meta {
  color: #aeb8e6;
  font-size: 9px;
  line-height: 1.2;
}

#selectedCharacterTitle,
#selectedCharacterMeta {
  display: none;
}

.slip-stake {
  display: grid;
  gap: 5px;
}

.slip-stake label {
  font-size: 10px;
  font-weight: 700;
}

.slip-stake-box {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 38px;
  padding: 0 5px;
  border: 1px solid rgba(94, 113, 196, 0.22);
  border-radius: 0;
  background: rgba(10, 18, 56, 0.9);
}

.slip-stake input {
  height: 100%;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.slip-stake input:focus {
  outline: none;
}

.slip-stake input::-webkit-outer-spin-button,
.slip-stake input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slip-stake input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.slip-step-btn {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: rgba(21, 31, 70, 0.92);
  color: #d4dcff;
  font-size: 11px;
  justify-self: center;
}

.slip-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.slip-preset-btn {
  min-height: 22px;
  border: 1px solid rgba(94, 113, 196, 0.22);
  border-radius: 0;
  background: rgba(11, 19, 56, 0.84);
  color: #b9c5ef;
  font-size: 10px;
  font-weight: 700;
}

.slip-preset-btn.active {
  border-color: #6d72ff;
  background: rgba(17, 28, 74, 0.96);
  color: #ffffff;
}

.slip-list {
  min-height: 48px;
  max-height: 260px;
  align-content: start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.slip-empty {
  padding: 6px 5px;
  text-align: center;
  border: 1px solid rgba(94, 113, 196, 0.18);
  border-radius: 0;
  background: rgba(8, 15, 45, 0.58);
}

.slip-item {
  display: grid;
  gap: 4px;
  padding: 5px 6px;
  border: 1px solid rgba(94, 113, 196, 0.24);
  border-radius: 0;
  background: rgba(9, 17, 50, 0.92);
}

.slip-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.slip-item-head-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slip-item-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.slip-item-tag {
  min-width: 22px;
  min-height: 20px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 1px solid rgba(58, 162, 255, 0.22);
  border-radius: 0;
  background: rgba(7, 54, 94, 0.92);
  color: #38d8ff;
  font-size: 10px;
  font-weight: 800;
}

.slip-item-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
}

.slip-item-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px;
  min-height: 12px;
  padding-right: 3px;
  border-right: 1px solid rgba(94, 113, 196, 0.22);
}

.slip-item-metric span {
  color: #94a2d3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.slip-item-metric strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slip-item-metric:first-child strong {
  color: #9b52ff;
}

.slip-item-metric-win strong {
  color: #22d67d;
}

.slip-item-cancel {
  width: 22px;
  height: 22px;
  align-self: center;
  justify-self: end;
  border: 0;
  border-radius: 0;
  background: rgba(31, 41, 77, 0.88);
  color: #f1f4ff;
  font-size: 11px;
}

.slip-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 5px;
  padding: 6px;
  min-height: 46px;
  color: #f6f8ff;
  border: 1px solid rgba(94, 113, 196, 0.22);
  border-radius: 0;
  background: rgba(10, 18, 56, 0.9);
}

.slip-summary-main,
.slip-summary-side {
  display: grid;
  align-content: center;
  gap: 2px;
}

.slip-summary-main span,
.slip-summary-side span {
  font-size: 8px;
  color: #e9eeff;
}

.slip-summary-main strong {
  color: #7a6bff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.slip-summary-side {
  padding: 6px;
  border: 1px solid rgba(120, 90, 255, 0.12);
  border-radius: 0;
  background: rgba(20, 24, 62, 0.72);
}

.slip-summary-side strong {
  color: #9859ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.place-bet-btn {
  min-height: 30px;
  border-radius: 0;
  background: #3e62ff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
}

.place-bet-btn i {
  font-size: 11px;
}

.slip-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #7d88b5;
  font-size: 8px;
}

.slip-security-note i {
  font-size: 9px;
}

.performance-redesign-head {
  margin-bottom: 2px;
}

.performance-redesign-head h2 {
  font-size: 16px;
  color: #f6f8ff;
  font-weight: 800;
  line-height: 1.15;
}

.performance-redesign-head p {
  margin-top: 6px;
  color: #9dacd6;
  font-size: 11px;
  line-height: 1.2;
}

.performance-redesign-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.performance-character-rail {
  width: 88px;
  gap: 8px;
}

.perf-character-item {
  --character-accent: #39a0ff;
  --character-accent-dark: #1d4ed8;
  --character-accent-soft: rgba(57, 160, 255, 0.22);
  width: 84px;
  min-height: 82px;
  padding: 8px;
  gap: 8px;
  border: 1px solid rgba(52, 82, 150, 0.38);
  background: rgba(8, 17, 49, 0.96);
  justify-items: start;
  align-content: center;
}

.perf-character-item.active {
  background: rgba(7, 21, 58, 0.98);
  border-color: #1fd8ff;
  box-shadow: inset 0 0 0 1px rgba(31, 216, 255, 0.18);
}

.perf-character-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--character-accent), var(--character-accent-dark));
  box-shadow: 0 0 0 3px var(--character-accent-soft);
}

.perf-character-name {
  display: block;
  color: var(--character-accent);
  font-size: 12px;
  line-height: 1.1;
  text-align: left;
}

.performance-redesign-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.performance-history-card,
.performance-phase-card,
.performance-trend-card {
  min-width: 0;
  border: 1px solid rgba(45, 77, 144, 0.46);
  background: rgba(6, 15, 46, 0.98);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(12, 26, 69, 0.65);
}

.performance-history-card {
  display: grid;
  grid-template-rows: auto auto;
}

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

.performance-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.performance-card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f6f8ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.performance-card-head h3 small {
  color: #a7b5dc;
  font-size: 11px;
  font-weight: 500;
}

.performance-step-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f8dff, #285fbe);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.performance-card-title-text {
  color: #f2f6ff;
}

.performance-character-dedication {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 150px;
  padding: 0 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid rgba(49, 76, 140, 0.48);
  background: rgba(8, 16, 48, 0.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.performance-character-dedication[hidden] {
  display: none !important;
}

.performance-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(49, 76, 140, 0.48);
  background: rgba(8, 16, 48, 0.92);
  color: #f6f8ff;
  font-size: 12px;
}

.performance-subcard-head {
  margin-bottom: 10px;
}

.performance-subcard-head h3 {
  font-size: 13px;
  margin: 0;
}

.performance-card-body[hidden] {
  display: none !important;
}

.performance-card-collapsed,
.performance-card-collapsed.pie-card,
.performance-card-collapsed.line-card {
  padding-bottom: 14px;
}

.performance-card-collapsed .performance-card-head,
.performance-card-collapsed .compare-card-head {
  margin-bottom: 0;
}

.performance-history-card.performance-card-collapsed,
.performance-phase-card.performance-card-collapsed,
.performance-trend-card.performance-card-collapsed,
.compare-trend-card.performance-card-collapsed,
.compare-heatmap-card.performance-card-collapsed,
.compare-ranking-card.performance-card-collapsed,
.pie-card.performance-card-collapsed,
.line-card.performance-card-collapsed {
  min-height: auto;
  max-height: none;
}

.performance-history-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(204px, 204px);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 121, 214, 0.9) rgba(7, 18, 52, 0.88);
  min-height: 0;
  align-content: start;
}

.performance-history-grid::-webkit-scrollbar {
  height: 10px;
}

.performance-history-grid::-webkit-scrollbar-track {
  background: rgba(7, 18, 52, 0.88);
}

.performance-history-grid::-webkit-scrollbar-thumb {
  background: rgba(86, 121, 214, 0.9);
  border-radius: 999px;
}

.perf-history-cell {
  min-height: 94px;
  padding: 5px 6px 6px;
  border: 1px solid rgba(39, 65, 118, 0.46);
  background: linear-gradient(180deg, rgba(11, 24, 79, 0.98), rgba(6, 15, 46, 0.98));
  display: grid;
  align-content: start;
  gap: 5px;
  scroll-snap-align: start;
}

.perf-history-round {
  color: #f6f8ff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.perf-history-phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.perf-history-phase-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 48px;
  padding: 5px 3px 4px;
  color: #f6f8ff;
  text-align: center;
  border: 1px solid rgba(39, 65, 118, 0.58);
  border-radius: 6px;
  background: rgba(8, 17, 46, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.perf-history-phase-card.float {
  background: linear-gradient(180deg, rgba(92, 147, 59, 0.82), rgba(49, 92, 36, 0.98));
  border-color: rgba(93, 151, 66, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(206, 255, 186, 0.18),
    0 0 0 1px rgba(88, 147, 57, 0.18);
}

.perf-history-phase-card.drown {
  background: linear-gradient(180deg, rgba(134, 52, 44, 0.82), rgba(91, 31, 31, 0.98));
  border-color: rgba(155, 63, 54, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 197, 186, 0.12),
    0 0 0 1px rgba(161, 56, 48, 0.18);
}

.perf-history-phase-card.unreached {
  background: linear-gradient(180deg, rgba(24, 38, 74, 0.72), rgba(10, 20, 48, 0.92));
  border-color: rgba(39, 65, 118, 0.34);
  color: rgba(201, 214, 251, 0.78);
}

.perf-history-phase-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.perf-history-phase-outcome {
  align-self: center;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.96;
}

.perf-history-phase-score {
  font-size: 8px;
  font-weight: 800;
}

.perf-history-phase-card.float .perf-history-phase-score,
.perf-history-phase-card.float .perf-history-phase-outcome {
  color: #8cff5e;
}

.perf-history-phase-card.drown .perf-history-phase-score,
.perf-history-phase-card.drown .perf-history-phase-outcome {
  color: #ff5b72;
}

.perf-history-phase-card.unreached .perf-history-phase-score {
  color: transparent;
}

.perf-history-phase-card.unreached .perf-history-phase-outcome {
  color: transparent;
}

.performance-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  color: #d9e2ff;
  font-size: 11px;
}

.performance-history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.float {
  background: #68be41;
}

.legend-dot.drown {
  background: #ff3b30;
}

.legend-chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border: 1px solid rgba(181, 194, 238, 0.3);
  color: #f6f8ff;
  font-size: 10px;
}

.performance-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.performance-phase-card,
.performance-trend-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.performance-history-card .performance-card-body {
  display: grid;
  grid-template-rows: auto auto;
}

.performance-phase-card .performance-card-body,
.performance-trend-card .performance-card-body,
.compare-trend-card .performance-card-body,
.compare-heatmap-card .performance-card-body,
.compare-ranking-card .performance-card-body {
  min-height: auto;
}

.performance-phase-table {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.perf-phase-table-head,
.perf-phase-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 84px 84px 54px;
  align-items: center;
  gap: 8px;
}

.perf-phase-table-head {
  padding: 0 4px 6px;
  color: #9fb1da;
  font-size: 10px;
  border-bottom: 1px solid rgba(45, 77, 144, 0.3);
}

.perf-phase-row {
  min-height: 36px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(45, 77, 144, 0.22);
}

.perf-phase-row:last-child {
  border-bottom: 0;
}

.perf-phase-label {
  color: #f6f8ff;
  font-size: 12px;
}

.perf-phase-rate {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.perf-phase-rate strong,
.perf-phase-float {
  color: #79d84e;
}

.perf-phase-drown {
  color: #ff4b3e;
}

.perf-phase-float,
.perf-phase-drown {
  font-size: 12px;
}

.perf-phase-bar {
  display: block;
  width: 100%;
  height: 16px;
  background: rgba(18, 31, 67, 0.94);
  overflow: hidden;
  border-radius: 999px;
  min-width: 0;
}

.perf-phase-fill {
  display: block;
  height: 100%;
}

.perf-phase-fill.up {
  background: linear-gradient(90deg, #5da438, #79d84e);
}

.perf-phase-fill.down {
  background: linear-gradient(90deg, #9e2e2e, #ff4b3e);
}

.perf-phase-trend {
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.perf-phase-trend.up {
  color: #72d34f;
}

.perf-phase-trend.down {
  color: #ff3b30;
}

.performance-trend-shell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  min-height: 180px;
  height: auto;
  max-height: none;
  align-items: stretch;
}

.performance-trend-axis {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: 0;
  padding: 2px 0 20px;
  align-self: stretch;
}

.performance-trend-axis-title {
  position: absolute;
  align-self: center;
  justify-self: center;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  color: #aeb8e6;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.performance-trend-axis-ticks {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  align-items: center;
  justify-items: end;
  min-height: 0;
  color: #aeb8e6;
  font-size: 11px;
  padding-right: 2px;
}

.performance-trend-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 2px;
  min-width: 0;
  min-height: 180px;
  height: auto;
  align-self: stretch;
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 121, 214, 0.9) rgba(7, 18, 52, 0.88);
}

.performance-trend-wrap::-webkit-scrollbar {
  height: 10px;
}

.performance-trend-wrap::-webkit-scrollbar-track {
  background: rgba(7, 18, 52, 0.88);
}

.performance-trend-wrap::-webkit-scrollbar-thumb {
  background: rgba(86, 121, 214, 0.9);
  border-radius: 999px;
}

.performance-trend-canvas {
  background: transparent;
  display: block;
  min-width: 100%;
  height: 100%;
}

.performance-trend-card.trend-expanded {
  position: fixed;
  inset: 12px;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 18px 18px 16px;
  background: #071530;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(12, 26, 69, 0.65);
}

.performance-trend-card.trend-expanded .performance-trend-shell {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  height: clamp(330px, 46vh, 460px);
  min-height: 0;
  align-self: start;
}

.performance-trend-card.trend-expanded .performance-trend-axis {
  padding: 10px 0 18px;
}

.performance-trend-card.trend-expanded .performance-trend-wrap {
  height: 100%;
  min-height: 0;
  padding-top: 0;
}

.performance-trend-card.trend-expanded .performance-trend-axis-ticks {
  font-size: 14px;
  padding-right: 6px;
}

.performance-trend-card.trend-expanded .performance-trend-axis-title {
  font-size: 14px;
}

body.trend-expanded-open {
  overflow: hidden;
}

body.trend-expanded-open::before {
  content: none;
  display: none;
}

.performance-trend-card.trend-expanded #trendExpandBtn,
.compare-trend-card.compare-trend-expanded #compareTrendExpandBtn {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(255, 212, 0, 0.78);
  background: #ffd400;
  color: #07102c;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.24);
}

.performance-empty {
  padding: 24px;
  color: var(--arena-muted);
  text-align: center;
  border: 1px dashed rgba(67, 101, 197, 0.22);
}

@media (max-width: 980px) {
  .get-data-grid {
    grid-template-columns: 1fr;
  }

  .get-data-controls {
    grid-template-columns: 1fr 1fr;
  }

  .performance-redesign-layout {
    grid-template-columns: 1fr;
  }

  .compare-redesign-head,
  .compare-ranking-head {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-redesign-grid {
    grid-template-columns: 1fr;
  }

  .compare-ranking-head-row,
  .compare-ranking-row {
    grid-template-columns: 58px 160px minmax(0, 1fr) 96px;
  }

  .performance-character-rail {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .perf-character-item {
    width: 100%;
    min-height: 78px;
  }

  .performance-bottom-grid {
    grid-template-columns: 1fr;
  }

  .performance-history-grid {
    grid-auto-columns: minmax(240px, 240px);
  }
}

@media (max-width: 620px) {
  .performance-redesign-head h2 {
    font-size: 18px;
  }

  .performance-redesign-head p {
    font-size: 12px;
  }

  .performance-character-rail {
    gap: 6px;
  }

  .perf-character-item {
    min-height: 64px;
    padding: 8px 4px;
  }

  .perf-character-avatar {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .perf-character-name {
    font-size: 10px;
  }

  .performance-history-card,
  .performance-phase-card,
  .performance-trend-card {
    padding: 12px 10px;
  }

  .performance-card-head h3 {
    font-size: 14px;
  }

  .performance-card-head span,
  .performance-pill-btn {
    font-size: 11px;
  }

  .compare-round-filter {
    min-width: 0;
    width: 100%;
  }

  .compare-heatmap-table {
    overflow-x: auto;
  }

  .compare-heatmap-row {
    grid-template-columns: 110px repeat(5, minmax(72px, 1fr));
  }

  .compare-ranking-head-row,
  .compare-ranking-row {
    grid-template-columns: 42px 120px minmax(0, 1fr) 80px;
    gap: 8px;
  }

  .compare-ranking-character {
    font-size: 13px;
  }

  .compare-ranking-value {
    font-size: 13px;
  }

  .performance-history-grid {
    grid-auto-columns: minmax(216px, 216px);
  }

  .perf-history-cell {
    min-height: 146px;
    padding: 6px 8px 8px;
    gap: 6px;
  }

  .perf-history-phases {
    gap: 4px;
  }

  .perf-history-phase-card {
    min-height: 82px;
    padding: 8px 4px 6px;
  }

  .perf-history-round,
  .perf-history-phase-name,
  .perf-history-phase-outcome,
  .perf-history-phase-score {
    font-size: 10px;
  }

  .perf-phase-table-head,
  .perf-phase-row {
    grid-template-columns: 80px minmax(0, 1fr) 48px 48px 34px;
    gap: 6px;
  }

  .perf-phase-table-head {
    font-size: 10px;
  }

  .perf-phase-label,
  .perf-phase-float,
  .perf-phase-drown,
  .perf-phase-rate strong {
    font-size: 11px;
  }

  .perf-phase-rate {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
  }

  .perf-phase-bar {
    height: 14px;
  }

  .perf-phase-trend {
    font-size: 20px;
  }

  .performance-trend-canvas {
    height: 240px;
  }
}

@media (min-width: 621px) and (max-width: 1380px) {
  .dashboard-shell {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .betting-arena-grid,
  .arena-main-column,
  .arena-side-rail {
    gap: 12px;
  }

  .main-view {
    padding: 0.45em;
    gap: 0.45em;
  }

  .game-container,
  .live-feed-panel,
  .slip-container {
    padding: 14px;
  }

  .game-container {
    min-height: 320px;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: 280px;
  }

  .live-feed-panel h2,
  .slip-container h2 {
    font-size: 17px;
  }

  .feed-list article {
    grid-template-columns: minmax(40px, 0.9fr) auto minmax(42px, 1fr) minmax(36px, auto);
    gap: 4px;
    min-height: 40px;
    font-size: 10px;
  }

  .feed-list strong,
  .feed-list b,
  .feed-list mark {
    font-size: 10px;
  }

  .feed-list em {
    font-size: 9px;
  }

  .odds-market-card {
    padding: 10px;
    gap: 7px;
  }

  .odds-market-name {
    font-size: 14px;
  }

  .odds-market-block h3 {
    font-size: 11px;
  }

  .odd-btn {
    min-height: 30px;
    padding: 3px 2px 4px;
  }

  .odd-btn-label {
    font-size: 10px;
  }

  .odd-btn strong,
  .odd-btn-value {
    font-size: 11px;
  }
}

@media (min-width: 981px) and (max-width: 1380px) {
  .betting-arena-grid {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 260px);
    gap: 10px;
  }

  .arena-main-column {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
  }

  .arena-side-rail {
    gap: 10px;
  }

  .game-container {
    min-height: 236px;
    padding: 10px 12px;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: 186px;
  }

  .character-odds-board,
  .odds-board-grid {
    gap: 5px;
  }

  .odds-market-card {
    gap: 5px;
    padding: 8px;
  }

  .odds-market-title {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px;
  }

  .character-avatar {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .odds-market-avatar {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .odds-market-name {
    font-size: 12px;
    line-height: 1.05;
  }

  .odds-market-stats {
    gap: 2px;
    margin: 0;
  }

  .odds-stat-row {
    grid-template-columns: 38px 1fr 28px;
    gap: 3px;
    font-size: 8px;
    line-height: 1.05;
  }

  .odds-market-sections {
    gap: 4px;
  }

  .odds-market-block h3 {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .odds-market-hint {
    margin-bottom: 4px;
    font-size: 8px;
    line-height: 1.15;
  }

  .odds-grid,
  .odds-grid-single,
  .odds-grid-double {
    gap: 4px;
  }

  .odd-btn {
    min-height: 27px;
    padding: 1px 0;
    gap: 0;
  }

  .odd-btn-label {
    font-size: 9px;
    line-height: 1.05;
  }

  .odd-btn strong,
  .odd-btn-value {
    font-size: 10px;
    line-height: 1.05;
  }

  .odds-grid-double .odd-btn-label,
  .odds-grid-double .odd-btn-value {
    font-size: 9px;
    line-height: 1.05;
  }

  .slip-container {
    padding: 10px;
    gap: 7px;
  }

  .live-feed-panel {
    padding: 10px;
  }

  .feed-list {
    max-height: 180px;
    padding-right: 4px;
    margin-top: 8px;
  }

  .feed-list article {
    grid-template-columns: minmax(38px, 0.9fr) auto minmax(40px, 1fr) minmax(34px, auto);
    gap: 3px;
    min-height: 36px;
    font-size: 9px;
  }

  .feed-list strong,
  .feed-list b,
  .feed-list mark {
    font-size: 9px;
  }

  .feed-list em {
    font-size: 8px;
  }
}

@media (min-width: 981px) and (max-width: 1380px) and (max-height: 820px) {
  .dashboard-shell {
    grid-template-rows: 64px minmax(0, 1fr);
  }

  .main-view {
    padding: 8px 10px 10px;
    gap: 8px;
  }

  .game-container {
    min-height: 331px;
    padding: 8px 10px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: 278px;
  }

  .game-status-card {
    padding: 10px;
  }

  .round-number-chip {
    min-height: 56px;
    gap: 8px;
    padding: 8px 10px;
  }

  .round-number-chip i {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .round-number-chip span {
    font-size: 18px;
  }

  .round-countdown {
    min-height: 94px;
    font-size: clamp(28px, 3vw, 40px);
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: none;
  }

  .dashboard-topbar {
    padding-left: 0;
  }

  .dashboard-menu-toggle {
    display: none;
  }

  .side-panel {
    grid-row: auto;
    border-radius: 0;
  }

  .main-view {
    grid-row: auto;
    padding: 0.4em;
  }

  .game-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .game-status-rail {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    order: -1;
  }

  .game-status-card {
    padding: 10px;
  }

  .game-meta {
    border-left: 0;
    border-top: 1px solid rgba(67, 101, 197, 0.22);
    padding-top: 12px;
  }

  .betting-arena-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
  }

  .arena-main-column {
    grid-template-rows: minmax(220px, 0.72fr) minmax(0, 1fr);
    gap: 10px;
  }

  .arena-side-rail {
    gap: 10px;
  }

  .character-odds-board,
  .odds-board-grid {
    gap: 6px;
  }

  .slip-container,
  .live-feed-panel {
    padding: 10px;
  }
}

@media (max-width: 620px) {
  .dashboard-topbar {
    padding: 0 10px 0 58px;
  }

  .topbar-brand span {
    display: none;
  }

  .balance-chip,
  .live-chip,
  .icon-action {
    display: none;
  }

  .user-chip {
    min-height: 38px;
  }

  .main-head {
    align-items: flex-start;
    gap: 10px;
  }

  .main-head h1 {
    font-size: 20px;
  }

  .main-head p {
    display: block;
    font-size: 12px;
  }

  .return-btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .character-odds-board,
  .odds-board-grid {
    grid-template-columns: 1fr;
  }

  .main-view,
  .dashboard-view,
  .betting-arena-grid,
  .arena-main-column,
  .arena-side-rail,
  .odds-container,
  .character-odds-board,
  .odds-market-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .betting-arena-grid,
  .arena-main-column,
  .arena-side-rail {
    display: block;
  }

  .game-container {
    display: none;
  }

  .odds-container {
    overflow: visible;
    margin-top: 8px;
  }

  .character-odds-board,
  .odds-board-grid {
    display: block;
  }

  .odds-market-card {
    display: grid;
    margin-bottom: 8px;
    padding: 10px;
  }

  .odds-market-card:last-child {
    margin-bottom: 0;
  }

  .odds-market-sections {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .odds-grid,
  .odds-grid-single,
  .odds-grid-double {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slip-container {
    margin-top: 10px;
  }
}

.mobile-odds-head,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 620px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  .dashboard-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 84px;
  }

  .dashboard-topbar {
    position: sticky;
    top: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 8px 8px 8px 10px;
    background: rgba(3, 10, 34, 0.98);
  }

  .topbar-brand {
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
  }

  .topbar-brand span {
    display: none;
  }

  .topbar-brand img {
    width: 42px;
    height: auto;
    max-height: 32px;
  }

  .balance-chip {
    display: grid !important;
    order: 1;
    flex: 0 1 74px;
    min-width: 72px;
    min-height: 30px;
    padding: 3px 7px;
  }

  .balance-chip small {
    font-size: 8px;
  }

  .balance-chip span {
    font-size: 10px;
  }

  .head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .local-time-chip {
    order: 2;
    flex: 0 0 auto;
    grid-template-columns: auto auto;
    gap: 4px;
    min-width: auto;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .local-time-chip__zone {
    display: none;
  }

  .local-time-chip__value {
    font-size: 10px;
    letter-spacing: 0;
  }

  .live-chip,
  .icon-action {
    display: none !important;
  }

  .user-chip {
    display: none !important;
  }

  .user-chip span,
  .user-chip .bi-chevron-down {
    display: none;
  }

  .user-chip-icon {
    width: auto;
    height: auto;
    border: 0;
    font-size: 20px;
  }

  .dashboard-menu-toggle {
    position: static;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 0;
    color: #f7fbff;
    font-size: 0;
  }

  .dashboard-menu-toggle span {
    display: none;
  }

  .dashboard-menu-toggle i {
    display: block;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
  }

  .main-view {
    padding: 12px 12px 96px;
    gap: 12px;
  }

  .main-head {
    display: grid;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid rgba(67, 101, 197, 0.22);
    background: rgba(5, 12, 38, 0.96);
  }

  .main-head h1 {
    max-width: none;
    font-size: 18px;
    line-height: 1.05;
  }

  .main-head p {
    display: block;
    font-size: 12px;
    line-height: 1.35;
  }

  .main-head .return-btn {
    display: none;
  }

  .dashboard-view.active,
  .betting-arena-grid,
  .arena-main-column {
    gap: 12px;
  }

  .game-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
    gap: 12px;
    border-radius: 0;
  }

  .game-status-rail {
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-template-columns: none;
    gap: 8px;
    order: 0;
  }

  .game-status-card {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .game-status-label {
    display: none;
  }

  .round-number-chip {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 30px;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(2, 7, 28, 0.72);
  }

  .round-number-chip i {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .round-number-chip span {
    font-size: 11px;
    line-height: 1;
  }

  .round-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
    letter-spacing: 0.02em;
    background: rgba(2, 7, 28, 0.72);
    box-shadow: none;
  }

  .game-stage,
  .unity-gameplay-frame {
    min-height: clamp(360px, 46vh, 420px);
    border-radius: 0;
  }

  .mobile-odds-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
  }

  .mobile-odds-head h2 {
    color: #f6f8ff;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-slip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(189, 65, 255, 0.42);
    border-radius: 0;
    background: rgba(32, 17, 68, 0.88);
    color: #f0e8ff;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-slip-toggle strong {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(189, 65, 255, 0.4);
    background: rgba(52, 27, 92, 0.95);
    font-size: 11px;
  }

  .odds-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .character-odds-board,
  .odds-board-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    width: 100%;
  }

  .odds-market-card {
    width: 100%;
    margin: 0;
    padding: 12px;
    gap: 10px;
    border-radius: 0;
  }

  .odds-market-name {
    font-size: 14px;
  }

  .odds-market-sections {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .odds-grid,
  .odds-grid-single,
  .odds-grid-double {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .odd-btn {
    min-height: 34px;
    padding: 4px 2px;
  }

  .odd-btn-label {
    font-size: 10px;
  }

  .odd-btn-value,
  .odd-btn strong {
    font-size: 10px;
  }

  .live-feed-panel {
    display: none;
  }

  .slip-container {
    display: none;
    margin-top: 0;
    padding: 10px;
    gap: 8px;
  }

  body.mobile-slip-open .slip-container {
    display: grid;
  }

  /* Mobile: compact slip/transactions header as single row */
  .transactions-slip-header,
  .transactions-past-header {
    grid-template-columns: 40px 1fr 68px 68px 68px auto;
    align-items: center;
    gap: 8px;
  }

  /* Ensure identity/title truncates gracefully when space is limited */
  .transactions-slip-identity,
  .transactions-past-main {
    min-width: 0;
    overflow: hidden;
  }

  .transactions-slip-id,
  .transactions-past-round {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile logout: show prominent small icon in header */
  .mobile-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    margin-left: 6px;
    border-radius: 8px;
    background: rgba(11, 16, 40, 0.9);
    border: 1px solid rgba(67, 101, 197, 0.14);
    color: #f6f8ff;
    font-size: 16px;
  }

  .mobile-logout-btn i { font-size: 16px; }

  .mobile-bottom-nav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    border-top: 1px solid rgba(67, 101, 197, 0.22);
    background: rgba(3, 10, 34, 0.98);
  }

  /* Use a simple vertical stack layout per button with proper centering
     so icons and labels remain clear and consistently positioned. */
  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #b7c4ea;
    font-size: 11px;
    line-height: 1.05;
    transform: none !important;
  }

  .mobile-nav-btn i {
    display: block;
    font-size: 20px;
    line-height: 1;
    color: currentColor;
  }

  .mobile-nav-btn span {
    display: block;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .mobile-nav-btn:hover,
  .mobile-nav-btn.active {
    background: transparent;
    border-left-color: transparent;
    color: #ff4cb8;
  }
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
    overflow: hidden;
  }

  .dashboard-topbar {
    grid-column: 1;
    padding: 0 14px 0 58px;
  }

  .dashboard-menu-toggle {
    display: inline-flex !important;
  }

  .side-panel {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1250;
    width: min(82vw, 290px);
    max-width: calc(100vw - 32px);
    padding: 78px 14px 20px;
    border-right: 1px solid var(--panel-border);
    border-bottom: none;
    border-radius: 0;
    background: rgba(12, 16, 40, 0.98);
    box-shadow: 18px 0 36px rgba(0, 0, 0, 0.36);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  body.dashboard-menu-open .side-panel {
    transform: translateX(0);
  }

  .main-view {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 12px;
    overflow-x: hidden;
  }

  .dashboard-view,
  .dashboard-view.active,
  .betting-arena-grid,
  .arena-main-column,
  .arena-side-rail,
  .transactions-redesign-layout,
  .performance-redesign-layout {
    min-width: 0;
    width: 100%;
  }

  .betting-arena-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .arena-main-column {
    grid-template-rows: auto auto auto;
  }

  .game-container,
  .game-layout-grid,
  .live-stage-layout,
  .performance-redesign-grid,
  .transactions-redesign-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .arena-side-rail {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .slip-container,
  .live-feed-panel,
  .game-container,
  .odds-container {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .main-view {
    padding: 12px 10px 96px;
    overflow: visible;
  }

  .slip-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slip-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
