/* [project]/apps/web/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --bg: #090b12;
  --surface: #11151f;
  --surface-2: #181d29;
  --surface-3: #202635;
  --border: #2b3242;
  --border-soft: #202635;
  --text: #f7f8fa;
  --muted: #929bad;
  --accent: #f6c945;
  --accent-ink: #171303;
  --up: #42d990;
  --up-soft: #153c2c;
  --down: #ff6577;
  --down-soft: #451f2a;
  --info: #66a7ff;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

.app-shell {
  --app-header-height: calc(62px + env(safe-area-inset-top));
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-shell.has-mode-switch {
  --app-header-height: calc(112px + env(safe-area-inset-top));
}

.app-header {
  border-bottom: 1px solid var(--border-soft);
  height: var(--app-header-height);
  z-index: 20;
  background: #090b12f0;
  display: grid;
  position: sticky;
  top: 0;
}

.app-header-main {
  height: calc(62px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.app-header-main > * {
  flex-shrink: 0;
}

.app-mode-row {
  border-top: 1px solid var(--border-soft);
  height: 50px;
  padding: 5px 18px 6px;
}

.wordmark {
  cursor: pointer;
  background: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 20px;
  font-weight: 850;
  display: flex;
}

.brand-mark {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 31px;
  height: 31px;
  display: inline-flex;
}

.header-actions, .connection {
  align-items: center;
  display: flex;
}

.header-actions {
  gap: 12px;
}

.connection {
  color: var(--up);
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
}

.connection-dot {
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #42d99017;
}

.connection.connecting, .connection.reconnecting {
  color: var(--accent);
}

.connection.server-unavailable, .connection.device-offline {
  color: var(--down);
}

.avatar-button {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 11px;
  font-weight: 850;
}

.deposit-button {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  border-radius: 17px;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.view {
  height: calc(100dvh - var(--app-header-height) - 68px - env(safe-area-inset-bottom));
  max-width: var(--max-width);
  overscroll-behavior-y: contain;
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}

.play-view {
  gap: 12px;
  padding: 12px;
  display: grid;
}

.play-view .round-bar, .play-view .market-panel {
  transition: border-color .18s ease-out;
}

.round-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 12px;
  min-height: 72px;
  padding: 11px 13px;
  display: grid;
}

.round-identity {
  align-items: center;
  gap: 20px;
  min-width: 0;
  display: flex;
}

.round-identity > :last-child {
  min-width: 0;
}

.market-picker {
  flex: none;
  position: relative;
}

.market-picker-trigger {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 10px;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
}

button.market-picker-trigger {
  cursor: pointer;
}

.market-picker-trigger > svg {
  color: var(--muted);
  flex: none;
}

.market-picker-trigger[aria-expanded="true"] {
  background: var(--surface-3);
  border-color: var(--border);
}

.market-picker-trigger[aria-expanded="true"] > svg {
  color: var(--accent);
  transform: rotate(180deg);
}

.market-picker-options {
  background: var(--surface-2);
  border: 1px solid var(--border);
  z-index: 6;
  border-radius: 10px;
  min-width: 126px;
  padding: 4px;
  position: absolute;
  inset: calc(100% + 5px) auto auto 0;
  box-shadow: 0 8px 20px #00000059;
}

.market-picker-options button {
  cursor: pointer;
  background: none;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 750;
  display: flex;
}

.market-picker-options button:hover, .market-picker-options button[aria-pressed="true"] {
  background: var(--surface-3);
}

.market-picker-options button[aria-pressed="true"] {
  color: var(--accent);
}

.market-picker button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}

.round-number {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
}

.round-identity .round-number:first-child {
  margin-top: 0;
}

.round-times {
  text-align: right;
  gap: 3px;
  display: grid;
}

.round-times span {
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.round-times small {
  color: var(--muted);
  font-size: 10px;
}

.countdown {
  border-left: 1px solid var(--border);
  text-align: right;
  width: 100px;
  padding-left: 13px;
  display: grid;
}

.countdown span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.countdown strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  line-height: 1.1;
}

.countdown.closing strong {
  color: var(--down);
}

.round-bar.pick-open {
  border-color: #665526;
}

.round-bar.pick-open .countdown strong {
  color: var(--accent);
}

.round-progress {
  background: var(--surface-3);
  border-radius: 2px;
  grid-column: 1 / -1;
  width: 100%;
  height: 4px;
  overflow: hidden;
}

.round-progress > span {
  background: var(--accent);
  height: 100%;
  transition: width .25s linear;
  display: block;
}

.round-bar.closing .round-progress > span {
  background: var(--down);
}

.round-progress[aria-hidden="true"] {
  visibility: hidden;
}

.market-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px 15px 12px;
  overflow: hidden;
}

.price-header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  display: grid;
}

.active-battle .price-header {
  flex-wrap: wrap;
  display: flex;
}

.price-header > :first-child {
  min-width: 0;
}

.live-label {
  color: var(--up);
  align-items: center;
  gap: 5px;
  display: flex;
}

.current-price {
  margin-top: 7px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.price-value {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.price-value.tick-up {
  animation: .26s ease-out price-tick-up;
}

.price-value.tick-down {
  animation: .26s ease-out price-tick-down;
}

.price-tick {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 12px;
  padding-top: 4px;
  font-size: 9px;
  font-weight: 750;
}

.price-tick.up {
  color: var(--up);
}

.price-tick.down {
  color: var(--down);
}

.price-header-actions {
  justify-self: end;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  display: flex;
}

.active-battle .price-header-actions {
  margin-inline-start: auto;
}

.play-view .price-header > :first-child {
  grid-area: 1 / 1;
}

.play-view .price-header > .price-balance {
  grid-area: 1 / 2;
  justify-self: center;
}

.play-view .price-header-actions {
  grid-area: 1 / 3;
  align-self: center;
  align-items: center;
}

.play-view .price-header-actions :is(.price-change, .call-status-icon) {
  margin-top: 0;
}

.call-status-icon {
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  margin-top: 16px;
  display: flex;
}

.call-status-icon.ready {
  color: var(--accent);
  background: #352914;
  border-color: #5a4721;
}

.call-status-icon.waiting {
  background: var(--surface-3);
}

.call-status-icon.locked {
  background: var(--up-soft);
  color: var(--up);
  border-color: #28704f;
}

.call-status-icon.unavailable {
  background: var(--down-soft);
  color: var(--down);
  border-color: #7b3342;
}

.price-change {
  grid-template-columns: auto auto;
  place-items: flex-end end;
  margin-top: 16px;
  display: grid;
}

.price-change svg {
  grid-row: 1;
}

.price-change strong {
  grid-row: 1;
  font-size: 15px;
}

.price-change span {
  color: var(--muted);
  grid-column: 1 / 3;
  margin-top: 2px;
  font-size: 11px;
}

.price-change.up, .direction-copy.up {
  color: var(--up);
}

.price-change.down, .direction-copy.down {
  color: var(--down);
}

.price-balance {
  align-self: center;
  justify-items: center;
  gap: 2px;
  min-width: 58px;
  display: grid;
}

.price-balance span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.price-balance strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1;
}

.price-balance.live strong {
  color: #79d5d8;
}

.chart {
  color: var(--up);
  height: 188px;
  margin: 14px -2px 0;
  position: relative;
}

.chart.up {
  color: var(--up);
}

.chart.down {
  color: var(--down);
}

.chart.neutral {
  color: #c6cad3;
}

.chart.chart-loading svg {
  opacity: .25;
}

.chart-plot {
  height: 172px;
  position: relative;
}

.chart-loading-overlay {
  pointer-events: none;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
  position: absolute;
  inset: 0;
}

.chart-loading-overlay span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.chart-loading-pulse {
  background: var(--accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: 1.2s ease-in-out infinite chart-loading-pulse;
}

.chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

:is(.play-view, .active-battle) .chart-plot > svg {
  animation: .16s ease-out play-chart-in;
}

.grid-lines line {
  stroke: var(--border-soft);
  stroke-width: 1px;
}

.start-line {
  stroke: #c6cad3;
  stroke-dasharray: 5 6;
  stroke-opacity: .65;
  stroke-width: 1px;
}

.price-line, .price-tail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.last-point {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 4px;
  animation: 1.4s ease-out infinite live-point-pulse;
}

.start-label {
  background: var(--surface-3);
  color: #c6cad3;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 8px;
  font-weight: 850;
  position: absolute;
  left: 5px;
  transform: translateY(-50%);
}

.time-axis {
  color: var(--muted);
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  display: flex;
  position: absolute;
  bottom: 0;
}

.chart-footer {
  border-top: 1px solid var(--border-soft);
  justify-content: space-between;
  align-items: center;
  padding-top: 11px;
  font-size: 11px;
  display: flex;
}

.chart-footer > span {
  color: var(--muted);
}

.chart-footer strong {
  color: var(--text);
}

.chart-footer:empty {
  display: none;
}

:is(.play-view, .active-battle) .chart-footer {
  min-height: 26px;
  line-height: 14px;
}

:is(.play-view, .active-battle) .chart-footer:empty {
  visibility: hidden;
  display: flex;
}

.direction-copy {
  align-items: center;
  gap: 4px;
  font-weight: 750;
  display: flex;
}

.market-decision {
  border-top: 1px solid var(--border);
  gap: 12px;
  margin: 14px -15px -12px;
  padding: 14px 15px 15px;
  display: grid;
}

.play-actions {
  gap: 12px;
  display: grid;
}

.play-actions:empty {
  display: none;
}

.play-view[data-phase="decision"] .play-actions, .play-view[data-phase="trade"] .play-actions {
  animation: .18s ease-out play-actions-in;
}

.play-actions > .competition-play-block {
  margin-top: 0;
}

.market-decision > .demo-balance-bar {
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: none;
  border-radius: 0;
  padding: 0 0 12px;
}

.market-decision > .demo-balance-bar:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-connection-notice {
  color: var(--info);
  background: #1a2130;
  border: 1px solid #2e405e;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 10px;
  display: flex;
}

.price-connection-notice.server-unavailable, .price-connection-notice.device-offline {
  background: var(--down-soft);
  color: var(--down);
  border-color: #7b3342;
}

.price-connection-notice span {
  flex: 1;
  line-height: 1.4;
}

.price-connection-notice button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 1px solid;
  border-radius: 5px;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
}

.prediction-zone {
  min-width: 0;
}

.primary-prediction-zone {
  gap: 8px;
  display: grid;
}

.chart-decision-overlay {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
  max-width: calc(100% - 8px);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
  display: block;
  position: absolute;
  top: 4px;
  right: 4px;
  overflow: hidden;
}

.chart-decision-overlay > span {
  color: inherit;
}

.chart-start-countdown {
  text-align: center;
  white-space: nowrap;
  width: 0;
  max-width: none;
  height: 0;
  display: block;
  top: 50%;
  left: 50%;
  right: auto;
  overflow: visible;
  transform: none;
}

.chart-start-countdown > span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.chart-start-countdown strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.result-chart-overlay {
  pointer-events: none;
  z-index: 3;
  background: #090b127a;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  display: flex;
  position: absolute;
  inset: 0;
}

.result-chart-overlay > span {
  font-size: 12px;
  font-weight: 800;
}

.result-chart-overlay strong {
  letter-spacing: .02em;
  text-shadow: 0 3px #0000003d;
  font-family: Trebuchet MS, Arial Black, Impact, sans-serif;
  font-size: 68px;
  font-style: italic;
  font-weight: 900;
  line-height: .9;
  animation: .42s ease-out both result-stamp;
}

.result-chart-overlay.won {
  color: var(--up);
}

.result-chart-overlay.lost {
  color: var(--down);
}

.result-chart-overlay.void {
  color: var(--info);
}

.play-view[data-phase="decision"] .market-panel {
  border-color: #665526;
}

.supporting-prediction-zone .stake-picker {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.stake-controls {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 7px;
  min-width: 0;
  display: grid;
}

.game-mode-switch {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  width: 100%;
  height: 38px;
  padding: 3px;
  display: grid;
}

.game-mode-switch button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
}

.game-mode-switch button.active {
  color: var(--text);
  background: #303442;
}

.game-mode-switch button.live.active {
  color: #79d5d8;
  background: #17343a;
}

.game-mode-switch button:disabled {
  cursor: default;
  opacity: .42;
}

.market-trade-status {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.demo-balance-bar {
  background: #242315;
  border: 1px solid #5c5027;
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  display: flex;
}

.demo-balance-bar div {
  gap: 3px;
  display: grid;
}

.demo-balance-bar span, .demo-balance-bar small {
  color: var(--muted);
  font-size: 9px;
}

.demo-balance-bar strong {
  color: var(--accent);
  font-size: 22px;
}

.live-balance-bar {
  background: #14292e;
  border-color: #315e64;
}

.live-balance-bar strong {
  color: #79d5d8;
}

.demo-pnl {
  font-weight: 750;
  color: var(--text) !important;
  font-size: 11px !important;
}

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

.prediction-button {
  cursor: pointer;
  text-align: left;
  border-radius: 7px;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 11px 13px;
  transition: transform .14s, border-color .14s;
  display: flex;
}

.prediction-button:not(:disabled):active {
  transform: scale(.98);
}

.prediction-button.up {
  background: var(--up-soft);
  color: var(--up);
  border: 1px solid #28704f;
}

.prediction-button.down {
  background: var(--down-soft);
  color: var(--down);
  border: 1px solid #7b3342;
}

.prediction-button > span {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.prediction-button strong {
  font-size: 13px;
}

.prediction-button small {
  color: #c1c6cf;
  font-size: 9px;
}

.prediction-button:disabled {
  cursor: default;
  opacity: .48;
}

.prediction-button.selected {
  opacity: 1;
  box-shadow: inset 0 0 0 2px;
}

.prediction-button.selected small {
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
}

.prediction-status {
  color: var(--muted);
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 10px;
  line-height: 1.4;
  display: flex;
}

.prediction-status:empty {
  display: none;
}

.prediction-status.locked {
  color: var(--accent);
}

.stake-picker {
  border-top: 1px solid var(--border-soft);
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  display: grid;
}

.stake-picker > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.stake-presets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  display: grid;
}

.stake-presets button, .stake-picker input {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  min-height: 38px;
}

.stake-presets button {
  cursor: pointer;
  min-width: 0;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
}

.stake-presets button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.stake-presets button:disabled {
  color: #687183;
  cursor: default;
  opacity: 1;
  background: #10141d;
  border-color: #252c3a;
}

.stake-presets button.active:disabled {
  color: #687183;
  border-color: #252c3a;
}

.stake-picker input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  font-size: 14px;
}

.stake-picker input:disabled {
  color: #687183;
  background: #10141d;
  border-color: #252c3a;
}

.trade-cost-row {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  display: flex;
}

.trade-cost-row span {
  color: var(--muted);
  font-size: 9px;
}

.trade-cost-row strong {
  color: var(--text);
  font-size: 9px;
}

.spin {
  animation: .9s linear infinite spin;
}

.live-trade-banner {
  border: 1px solid;
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 14px;
  display: grid;
}

.live-trade-banner div {
  gap: 2px;
  display: grid;
}

.live-trade-banner span, .live-trade-banner small {
  color: #c5cad3;
  font-size: 9px;
}

.live-trade-banner strong {
  font-size: 16px;
}

.live-trade-banner.winning {
  background: var(--up-soft);
  color: var(--up);
  border-color: #28704f;
}

.live-trade-banner.losing {
  background: var(--down-soft);
  color: var(--down);
  border-color: #7b3342;
}

.live-trade-banner.neutral {
  background: var(--surface-3);
  color: #c6cad3;
  border-color: #3a4254;
}

.waiting-market {
  min-height: 274px;
  position: relative;
}

.round-wait-message {
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 174px;
  display: flex;
}

.round-wait-message strong {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.bottom-nav {
  border-top: 1px solid var(--border);
  height: calc(68px + env(safe-area-inset-bottom));
  padding: 4px max(10px, calc((100vw - var(--max-width)) / 2)) env(safe-area-inset-bottom);
  z-index: 30;
  background: #11151ff7;
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.bottom-nav button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  position: relative;
}

.bottom-nav button.active {
  color: var(--accent);
}

.bottom-nav button.active:before {
  background: var(--accent);
  content: "";
  border-radius: 0 0 3px 3px;
  width: 30px;
  height: 3px;
  position: absolute;
  top: -4px;
}

.content-view {
  gap: 16px;
  padding: 24px 14px;
  display: grid;
}

.view-heading > span, .profile-hero > div > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.view-heading h1, .profile-hero h1 {
  margin: 4px 0 5px;
  font-size: 28px;
}

.view-heading p, .profile-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.summary-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  grid-template-columns: repeat(3, 1fr);
  padding: 13px 0;
  display: grid;
}

.summary-strip div {
  border-right: 1px solid var(--border);
  gap: 4px;
  padding: 0 16px;
  display: grid;
}

.summary-strip div:last-child {
  border: 0;
}

.summary-strip span {
  color: var(--muted);
  font-size: 10px;
}

.summary-strip strong {
  font-size: 19px;
}

.list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.history-row {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px 13px;
  display: grid;
}

.history-row.shareable {
  grid-template-rows: auto auto;
  align-items: start;
}

.history-row:last-child {
  border: 0;
}

.history-share-tip {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

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

.history-share-actions button, .history-share-save {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.history-share-actions.won button, .history-share-actions.won .history-share-save {
  color: var(--up);
  border-color: #28704f;
}

.history-share-actions.lost button, .history-share-actions.lost .history-share-save {
  color: var(--down);
  border-color: #7b3342;
}

.share-card-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
  width: calc(100% - 36px);
  max-width: 480px;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 22px;
  position: relative;
  overflow: auto;
}

.share-card-modal[open] {
  display: grid;
}

.share-card-modal::backdrop {
  background: #05070bdb;
}

.share-card-modal.won {
  border-color: #28704f;
}

.share-card-modal.lost {
  border-color: #7b3342;
}

.share-card-modal .eyebrow {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 10px;
  font-weight: 800;
}

.share-card-modal h2 {
  margin: 0;
  padding-right: 28px;
  font-size: 18px;
  line-height: 1.15;
}

.share-card-modal.won h2 {
  color: var(--up);
}

.share-card-modal.lost h2 {
  color: var(--down);
}

.share-card-modal > p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.share-card-close {
  color: var(--muted);
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: inline-flex;
  position: absolute;
  top: 8px;
  right: 8px;
}

.share-card-close:hover {
  color: var(--text);
}

.share-card-preview {
  aspect-ratio: 1;
  background: #090b12;
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.share-card-preview img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.share-card-loading, .share-card-error {
  background: var(--bg);
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  display: flex;
  position: absolute;
  inset: 0;
}

.share-card-error button {
  background: var(--surface-3);
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  display: flex;
}

.share-card-actions {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.share-card-primary, .share-card-secondary {
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.share-card-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.share-card-primary:disabled {
  cursor: default;
  opacity: .45;
}

.share-card-secondary {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
}

.direction-icon {
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  width: 37px;
  height: 37px;
  display: flex;
}

.direction-icon.up {
  background: var(--up-soft);
  color: var(--up);
}

.direction-icon.down {
  background: var(--down-soft);
  color: var(--down);
}

.history-main, .outcome {
  gap: 4px;
  display: grid;
}

.history-main strong {
  text-transform: uppercase;
  font-size: 12px;
}

.history-main span, .outcome span {
  color: var(--muted);
  font-size: 9px;
}

.outcome {
  justify-items: end;
}

.outcome strong {
  text-transform: uppercase;
  font-size: 10px;
}

.outcome.won strong {
  color: var(--up);
}

.outcome.lost strong {
  color: var(--down);
}

.outcome.void strong {
  color: var(--info);
}

.outcome.pending strong {
  color: var(--accent);
}

.load-more {
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 6px;
  align-self: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 750;
  display: flex;
}

.load-more:disabled {
  cursor: default;
  opacity: .6;
}

.data-state {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  border-radius: 7px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  display: flex;
}

.data-state > span {
  font-size: 11px;
  line-height: 1.5;
}

.data-state > button {
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  border-radius: 6px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 800;
}

.metric-tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  display: grid;
}

.metric-tabs button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border-radius: 5px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 800;
}

.metric-tabs button.active {
  background: var(--surface-3);
  color: var(--accent);
}

.competition-play-block {
  color: var(--accent);
  background: #242315;
  border: 1px solid #5c5027;
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  margin-top: 14px;
  padding: 12px;
  display: grid;
}

.competition-play-block > div {
  gap: 4px;
  display: grid;
}

.competition-play-block strong {
  font-size: 12px;
}

.competition-play-block span {
  color: #c7c9ce;
  font-size: 9px;
  line-height: 1.4;
}

.competition-play-block .load-more {
  margin: 0;
}

.battle-view {
  gap: 20px;
}

.battle-section, .battle-detail, .active-battle, .battle-subsection {
  gap: 12px;
  display: grid;
}

.active-battle {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}

.battle-detail {
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  transition: opacity .32s ease-out;
}

.battle-detail.is-exiting {
  opacity: 0;
}

.battle-title-row {
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  display: flex;
}

.battle-title-row > div {
  min-width: 0;
}

.battle-title-row h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 4px 0 0;
  font-size: 18px;
  overflow: hidden;
}

.icon-action {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  flex: 0 0 38px;
  justify-content: center;
  align-items: center;
  height: 38px;
  display: flex;
}

.icon-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.battle-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 0;
  display: grid;
}

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

.battle-progress div {
  border-right: 1px solid var(--border);
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 8px;
  display: grid;
}

.battle-progress div:last-child {
  border: 0;
}

.battle-progress span {
  color: var(--muted);
  font-size: 9px;
}

.battle-progress strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 16px;
  overflow: hidden;
}

.battle-score-value {
  animation: .42s ease-out score-pop;
}

.battle-progress-track {
  background: var(--surface-3);
  border-radius: 3px;
  height: 5px;
  overflow: hidden;
}

.battle-progress-track > span {
  background: var(--accent);
  height: 100%;
  transition: width .25s linear;
  display: block;
}

.battle-pick-zone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
}

.battle-pick-zone.pick-open {
  border-color: #8b732a;
  animation: 1.5s ease-in-out infinite pick-zone-pulse;
}

.battle-pick-zone.pick-locked {
  border-color: #665526;
}

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

.battle-pick-heading > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.battle-pick-heading > div > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  overflow: hidden;
}

.battle-pick-state {
  color: var(--accent);
  flex: none;
  font-size: 10px;
  font-weight: 800;
}

.battle-pick-zone > .prediction-status {
  margin-top: 10px;
}

.battle-countdown-row {
  justify-content: center;
  display: flex;
}

.battle-countdown {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 6px;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
}

.battle-countdown svg, .battle-countdown strong {
  color: var(--accent);
}

.battle-countdown strong {
  font-variant-numeric: tabular-nums;
  text-align: start;
  white-space: nowrap;
  min-width: 3ch;
  font-size: 14px;
}

.battle-market-split {
  border-top: 1px solid var(--border-soft);
  gap: 7px;
  margin-top: 10px;
  padding-top: 11px;
  display: grid;
}

.battle-market-split-heading, .battle-market-split-values {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.battle-market-split-heading span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.battle-market-split-heading strong {
  color: var(--text);
  font-size: 9px;
}

.battle-market-split-values {
  font-size: 9px;
  font-weight: 800;
}

.battle-market-split-values span:first-child {
  color: var(--up);
}

.battle-market-split-values span:last-child {
  color: var(--down);
}

.battle-market-split-track {
  background: var(--down);
  border-radius: 3px;
  height: 7px;
  overflow: hidden;
}

.battle-market-split-track > span {
  background: var(--up);
  height: 100%;
  transition: width .3s;
  display: block;
}

.battle-message {
  background: var(--down-soft);
  color: var(--down);
  border: 1px solid #7b3342;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.4;
  display: flex;
}

.battle-overlap-warning {
  transition: opacity .32s ease-out;
}

.battle-overlap-warning > svg {
  flex-shrink: 0;
}

.battle-overlap-warning.is-exiting {
  opacity: 0;
}

.battle-primary {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 850;
  display: flex;
}

.battle-primary:disabled {
  cursor: default;
  opacity: .55;
}

.battle-leave {
  justify-self: start;
  margin: 0;
}

.battle-balance {
  min-height: 72px;
}

.battle-settlement {
  border: 1px solid;
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  display: grid;
}

.battle-settlement > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.battle-settlement span, .battle-settlement small {
  color: #c5cad3;
  font-size: 9px;
}

.battle-settlement strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.battle-settlement.won {
  background: var(--up-soft);
  color: var(--up);
  border-color: #28704f;
}

.battle-settlement.lost {
  background: var(--down-soft);
  color: var(--down);
  border-color: #7b3342;
}

.battle-settlement.refunded {
  color: var(--info);
  background: #1a2130;
  border-color: #2e405e;
  transition: opacity .32s ease-out;
}

.battle-settlement.refunded.is-exiting {
  opacity: 0;
}

.pool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 9px;
  display: grid;
}

.pool-list-item {
  gap: 7px;
  min-width: 0;
  display: grid;
}

.pool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 7px;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

.pool-card.selected {
  border-color: var(--accent);
}

.pool-card-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.pool-card-top > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.pool-card-top button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
}

.pool-card > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  overflow: hidden;
}

.pool-card > small {
  color: var(--muted);
  align-items: center;
  gap: 4px;
  font-size: 9px;
  line-height: 1.35;
  display: flex;
}

.pool-cost {
  border-top: 1px solid var(--border-soft);
  gap: 3px;
  padding-top: 8px;
  display: grid;
}

.pool-cost span {
  color: var(--muted);
  font-size: 9px;
}

.pool-join, .pool-leave {
  cursor: pointer;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-size: 10px;
  font-weight: 850;
  display: flex;
}

.pool-join {
  background: var(--accent);
  color: var(--accent-ink);
}

.pool-leave {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
}

.pool-join:disabled, .pool-leave:disabled {
  cursor: default;
  opacity: .55;
}

.pool-joined {
  color: var(--up);
  justify-content: center;
  align-items: center;
  min-height: 36px;
  font-size: 9px;
  font-weight: 850;
  display: flex;
}

.battle-standings > div {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
}

.battle-standings > div:last-child {
  border: 0;
}

.battle-standings b {
  color: var(--muted);
  font-size: 10px;
}

.battle-standings span {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.battle-standings strong {
  font-size: 10px;
}

.standing-result {
  justify-items: end;
  gap: 2px;
  display: grid;
}

.standing-result small {
  color: var(--up);
  font-size: 8px;
  font-weight: 800;
}

.battle-round-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  display: grid;
}

.battle-round {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 7px;
  min-width: 0;
  min-height: 96px;
  padding: 9px;
  display: grid;
}

.battle-round > div {
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.battle-round span, .battle-round small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.battle-round b {
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 3px;
  padding: 3px 4px;
  font-size: 7px;
}

.battle-round strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.battle-round.live, .battle-round.pick-open, .battle-round.settling {
  border-color: #665526;
}

.battle-round.live strong, .battle-round.pick-open strong, .battle-round.settling strong {
  color: var(--accent);
}

.battle-round.live b, .battle-round.pick-open b {
  color: var(--accent);
  background: #352914;
}

.battle-round.live, .battle-round.pick-open {
  animation: 1.5s ease-in-out infinite battle-round-live;
}

.battle-round.won {
  border-color: #28704f;
}

.battle-round.won strong, .battle-round.won b {
  color: var(--up);
}

.battle-round.lost {
  border-color: #7b3342;
}

.battle-round.lost strong, .battle-round.lost b {
  color: var(--down);
}

.battle-round.missed strong, .battle-round.missed b {
  color: #c3c8d2;
}

.battle-round.void, .battle-round.closed {
  border-color: #2e405e;
}

.battle-round.void strong, .battle-round.void b, .battle-round.closed strong, .battle-round.closed b {
  color: var(--info);
}

.compact-battle-list button {
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  text-align: left;
  background: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 12px;
  display: grid;
}

.compact-battle-list button:last-child {
  border: 0;
}

.compact-battle-list svg {
  color: var(--accent);
}

.compact-battle-list button > span {
  gap: 3px;
  display: grid;
}

.compact-battle-list strong {
  font-size: 11px;
}

.compact-battle-list small {
  color: var(--muted);
  font-size: 9px;
}

.compact-battle-list b {
  color: var(--text);
  font-size: 9px;
}

.stats-history {
  gap: 16px;
  display: grid;
}

.podium {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 190px;
  padding-top: 12px;
  display: grid;
}

.podium-player {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  padding: 17px 5px 0;
  display: flex;
  position: relative;
}

.podium-player svg {
  color: #a9b2c3;
}

.podium-player strong {
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 11px;
  overflow: hidden;
}

.podium-player span {
  color: var(--muted);
  font-size: 9px;
}

.podium-player b {
  color: var(--muted);
  font-size: 22px;
  position: absolute;
  bottom: 8px;
}

.podium-player.place-1 {
  border-color: #665526;
  height: 185px;
}

.podium-player.place-1 svg, .podium-player.place-1 b {
  color: var(--accent);
}

.podium-player.place-2 {
  height: 153px;
}

.podium-player.place-3 {
  height: 132px;
}

.leader-row {
  border-bottom: 1px solid var(--border-soft);
  grid-template-columns: 28px 34px minmax(0, 1fr) auto 35px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  display: grid;
}

.leader-row:last-child {
  border: 0;
}

.leader-row > b {
  color: var(--muted);
  font-size: 11px;
}

.mini-avatar {
  background: var(--surface-3);
  color: var(--accent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 9px;
  font-weight: 850;
  display: flex;
}

.leader-row > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.leader-row > span:not(.mini-avatar) {
  font-size: 10px;
  font-weight: 750;
}

.leader-row small {
  color: var(--muted);
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  display: flex;
}

.current-player {
  background: #242315;
}

.current-player em {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 3px;
  padding: 2px 3px;
  font-size: 7px;
  font-style: normal;
}

.profile-hero {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  display: flex;
}

.profile-avatar {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  flex: 0 0 62px;
  justify-content: center;
  align-items: center;
  height: 62px;
  font-size: 19px;
  font-weight: 900;
  display: flex;
}

.profile-hero h1 {
  font-size: 23px;
}

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

.profile-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px;
  display: grid;
}

.profile-contact > svg:first-child {
  color: var(--accent);
}

.profile-contact > svg:last-child {
  color: var(--muted);
}

.profile-contact span {
  overflow-wrap: anywhere;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.profile-contact strong {
  font-size: 11px;
}

.profile-contact small {
  color: var(--muted);
  font-size: 9px;
}

.profile-contact:hover {
  border-color: var(--accent);
}

.demo-balance-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.demo-balance-section .section-heading {
  margin-bottom: 0;
}

.demo-balance-display {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.demo-balance-display > div {
  gap: 4px;
  display: grid;
}

.demo-balance-display span {
  color: var(--muted);
  font-size: 9px;
}

.demo-balance-display strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.demo-balance-copy {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

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

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  gap: 6px;
  min-height: 111px;
  padding: 14px;
  display: grid;
}

.stat-tile svg {
  color: var(--muted);
}

.stat-tile span {
  color: var(--muted);
  font-size: 10px;
}

.stat-tile strong {
  font-size: 23px;
}

.stat-tile strong.rank-pair {
  font-size: 15px;
  line-height: 1.35;
}

.stat-tile.accent {
  background: #242315;
  border-color: #5c5027;
}

.stat-tile.accent svg, .stat-tile.accent strong {
  color: var(--accent);
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
}

.referral-section {
  gap: 10px;
  display: grid;
}

.referral-section > .section-heading {
  margin-bottom: 0;
}

.referral-code-row {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  grid-template-columns: minmax(0, 1fr) 32px 32px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 11px;
  display: grid;
}

.referral-code-row code {
  color: var(--accent);
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 850;
  overflow: hidden;
}

.referral-activate {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  display: grid;
}

.referral-activate input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-transform: uppercase;
  border-radius: 5px;
  min-width: 0;
  padding: 0 10px;
}

.referral-activate .load-more {
  margin: 0;
}

.referral-balances {
  border-top: 1px solid var(--border-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding-top: 11px;
  display: grid;
}

.referral-balances div {
  gap: 4px;
  display: grid;
}

.referral-balances span, .referral-balances small {
  color: var(--muted);
  font-size: 9px;
}

.referral-balances strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.referral-balances small {
  grid-column: 1 / -1;
  line-height: 1.45;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.section-heading h2 {
  margin: 0;
  font-size: 13px;
}

.section-heading span {
  color: var(--muted);
  font-size: 9px;
}

.battle-section .market-picker-options {
  inset-inline: auto 0;
}

.wallet-section {
  gap: 10px;
  display: grid;
}

.wallet-section > .section-heading, .wallet-deposits .section-heading {
  margin-bottom: 0;
}

.wallet-balances {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.wallet-balances > div {
  gap: 4px;
  display: grid;
}

.wallet-balances span, .wallet-copy-state {
  color: var(--muted);
  font-size: 9px;
}

.wallet-balances strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.wallet-address-row {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 7px 6px 10px;
  display: grid;
}

.wallet-address-row code {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  display: block;
  overflow: hidden;
}

.icon-button {
  background: var(--surface-3);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: inline-flex;
}

.wallet-withdraw {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.wallet-withdraw:hover {
  filter: brightness(1.06);
}

.wallet-deposits {
  border-top: 1px solid var(--border-soft);
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  display: grid;
}

.wallet-deposit-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.wallet-deposit-row > div {
  gap: 3px;
  display: grid;
}

.wallet-deposit-row strong {
  font-size: 11px;
}

.wallet-deposit-row span {
  color: var(--muted);
  font-size: 9px;
}

.wallet-deposit-row b {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.wallet-deposit-row b.credited, .wallet-deposit-row b.swept {
  color: var(--up);
}

.wallet-deposit-row b.failed, .wallet-deposit-row b.ignored {
  color: var(--down);
}

.wallet-withdrawals {
  border-top: 1px solid var(--border-soft);
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  display: grid;
}

.wallet-withdrawal-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.wallet-withdrawal-row > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.wallet-withdrawal-row strong {
  font-size: 11px;
}

.wallet-withdrawal-row span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  overflow: hidden;
}

.wallet-withdrawal-row b {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.wallet-withdrawal-row b.finalized {
  color: var(--up);
}

.wallet-withdrawal-row b.failed, .wallet-withdrawal-row b.rejected, .wallet-withdrawal-row b.cancelled, .wallet-withdrawal-row b.expired, .wallet-withdrawal-row b.security_hold {
  color: var(--down);
}

.wallet-withdrawal-row b.awaiting_approval {
  color: var(--info);
}

.withdrawal-status {
  place-items: flex-end end;
  gap: 5px;
  display: grid;
}

.withdrawal-cancel {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  min-height: 24px;
  padding: 0 6px;
  font-size: 8px;
}

.withdrawal-cancel:disabled {
  cursor: default;
  opacity: .5;
}

.profile-empty {
  color: var(--muted);
  padding: 8px 0;
  font-size: 11px;
  display: block;
}

.withdrawal-backdrop {
  z-index: 80;
  background: #05070bd1;
  justify-content: center;
  align-items: center;
  padding: 18px;
  display: flex;
  position: fixed;
  inset: 0;
}

.withdrawal-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 13px;
  width: 100%;
  max-width: 460px;
  padding: 22px;
  display: grid;
  position: relative;
}

.withdrawal-close {
  color: var(--muted);
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  display: inline-flex;
  position: absolute;
  top: 8px;
  right: 8px;
}

.withdrawal-close:hover {
  color: var(--text);
}

.withdrawal-icon {
  color: var(--accent);
  background: #242315;
  border: 1px solid #5c5027;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  display: flex;
}

.withdrawal-modal h1 {
  margin: 0;
  padding-right: 30px;
  font-size: 22px;
  line-height: 1.2;
}

.withdrawal-copy {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.withdrawal-field {
  gap: 6px;
  display: grid;
}

.withdrawal-field span, .withdrawal-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.withdrawal-field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 5px;
  outline: none;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  font-size: 12px;
}

.withdrawal-field input:focus {
  border-color: var(--accent);
}

.withdrawal-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.withdrawal-error {
  background: var(--down-soft);
  color: var(--down);
  border: 1px solid #7b3342;
  border-radius: 5px;
  margin: 0;
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.45;
}

.withdrawal-summary {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  gap: 12px;
  padding: 13px 0;
  display: grid;
}

.withdrawal-summary > div {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.withdrawal-summary strong {
  font-size: 16px;
}

.withdrawal-summary code {
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.45;
}

.withdrawal-primary, .withdrawal-secondary {
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  font-size: 11px;
  font-weight: 850;
  display: inline-flex;
}

.withdrawal-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.withdrawal-primary:disabled {
  cursor: default;
  opacity: .45;
}

.withdrawal-secondary {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
}

.withdrawal-secondary:disabled {
  cursor: default;
  opacity: .45;
}

.withdrawal-actions {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.demo-actions {
  gap: 10px;
  display: grid;
}

.demo-actions p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.tutorial-backdrop {
  z-index: 50;
  background: #05070bc7;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.tutorial-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  display: grid;
}

.tutorial-modal h1 {
  margin: 0;
  font-size: 24px;
}

.tutorial-modal p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.tutorial-steps {
  gap: 9px;
  display: grid;
}

.tutorial-steps span {
  background: var(--surface-2);
  border-radius: 5px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  font-size: 11px;
  display: flex;
}

.tutorial-steps b {
  color: var(--accent);
  font-size: 10px;
}

.tutorial-progress {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  display: grid;
}

.tutorial-progress span {
  background: var(--border);
  border-radius: 2px;
  height: 4px;
}

.tutorial-progress span.active {
  background: var(--accent);
}

.tutorial-actions {
  justify-content: flex-end;
  gap: 9px;
  display: flex;
}

.tutorial-actions .gate-action, .tutorial-actions .load-more {
  margin-top: 0;
}

.battle-alert-backdrop {
  z-index: 60;
  background: #05070bd1;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.battle-alert-modal {
  background: var(--surface);
  border: 1px solid #665526;
  border-radius: 8px;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  display: grid;
  position: relative;
}

.battle-alert-close {
  color: var(--muted);
  cursor: pointer;
  background: none;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
}

.battle-alert-close:hover {
  color: var(--text);
}

.battle-alert-icon {
  color: var(--accent);
  background: #352914;
  border: 1px solid #665526;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  display: flex;
}

.battle-alert-modal h1 {
  margin: 0;
  padding-right: 28px;
  font-size: 23px;
  line-height: 1.2;
}

.battle-alert-modal > p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.battle-alert-summary {
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
  display: grid;
}

.battle-alert-summary > div {
  border-right: 1px solid var(--border);
  gap: 4px;
  min-width: 0;
  padding: 0 10px;
  display: grid;
}

.battle-alert-summary > div:first-child {
  padding-left: 0;
}

.battle-alert-summary > div:last-child {
  border: 0;
  padding-right: 0;
}

.battle-alert-summary span {
  color: var(--muted);
  font-size: 8px;
}

.battle-alert-summary strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.battle-alert-open {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  font-size: 12px;
  font-weight: 850;
  display: flex;
}

.loading-shell {
  background: var(--bg);
  height: var(--app-boot-viewport-height, 100dvh);
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 0 20px;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.loading-shell strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.loading-emblem {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 82px;
  height: 82px;
  animation: 1.35s linear infinite spin;
  display: flex;
  box-shadow: 0 0 0 8px #f6c94514;
}

.gate-shell {
  min-height: var(--tg-viewport-stable-height, 100dvh);
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.gate-brand {
  align-items: center;
  gap: 9px;
  font-size: 21px;
  display: flex;
}

.gate-content {
  text-align: center;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  display: flex;
}

.gate-icon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 24px;
  display: flex;
}

.gate-content h1 {
  margin: 7px 0 9px;
  font-size: 27px;
}

.gate-content p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.gate-action {
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  margin-top: 22px;
  padding: 0 17px;
  font-weight: 800;
  display: flex;
}

.gate-footnote {
  color: var(--muted);
  font-size: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes price-tick-up {
  0% {
    color: var(--up);
    transform: translateY(3px);
  }

  100% {
    color: var(--text);
    transform: translateY(0);
  }
}

@keyframes price-tick-down {
  0% {
    color: var(--down);
    transform: translateY(-3px);
  }

  100% {
    color: var(--text);
    transform: translateY(0);
  }
}

@keyframes live-point-pulse {
  0%, 100% {
    stroke-width: 4px;
  }

  50% {
    stroke-width: 7px;
  }
}

@keyframes play-chart-in {
  from {
    opacity: .65;
  }

  to {
    opacity: 1;
  }
}

@keyframes play-actions-in {
  from {
    opacity: .8;
    transform: translateY(4px);
  }

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

@keyframes result-stamp {
  0% {
    opacity: 0;
    transform: scale(.82);
  }

  70% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes score-pop {
  0% {
    color: var(--accent);
    transform: scale(1.35);
  }

  100% {
    color: var(--text);
    transform: scale(1);
  }
}

@keyframes pick-zone-pulse {
  0%, 100% {
    box-shadow: 0 0 #f6c94500;
  }

  50% {
    box-shadow: 0 0 0 3px #f6c9451a;
  }
}

@keyframes battle-round-live {
  0%, 100% {
    border-color: #665526;
  }

  50% {
    border-color: #9a8131;
  }
}

@keyframes chart-loading-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-emblem, .spin {
    animation: none;
  }

  :is(.play-view, .active-battle) .chart-plot > svg, .play-view .play-actions {
    animation: none !important;
  }

  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media (max-width: 570px) {
  .round-bar {
    column-gap: 6px;
  }

  .round-identity {
    gap: 16px;
  }

  .round-bar .countdown {
    width: 88px;
    padding-left: 8px;
  }
}

@media (max-width: 520px) {
  .app-header-main, .app-mode-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .round-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .round-times {
    display: none;
  }

  .current-price {
    font-size: 32px;
  }

  .play-view .price-header {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 5px;
  }

  .play-view .price-header > .price-balance {
    grid-area: 2 / 1 / 3 / -1;
  }

  .play-view .price-header-actions {
    grid-area: 1 / 2;
  }

  .result-chart-overlay strong {
    font-size: 48px;
  }

  .chart {
    height: 170px;
  }

  .chart-plot {
    height: 154px;
  }

  .play-view .chart {
    height: 142px;
  }

  .play-view .chart-plot {
    height: 126px;
  }

  .prediction-button {
    min-height: 72px;
    padding: 9px;
  }

  .prediction-button > svg {
    flex: none;
  }

  .view {
    scrollbar-width: none;
  }

  .view::-webkit-scrollbar {
    display: none;
  }

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

  .pool-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pool-card-top, .pool-card > strong, .pool-card > small, .pool-cost {
    grid-column: 1;
  }

  .pool-card > .pool-join, .pool-card > .pool-leave, .pool-card > .pool-joined {
    grid-area: 1 / 2 / 5;
    min-width: 72px;
  }

  .battle-progress:not(.battle-summary) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .battle-progress:not(.battle-summary) div {
    min-height: 58px;
    padding: 11px 8px;
  }

  .battle-progress:not(.battle-summary) div:nth-child(2) {
    border-right: 0;
  }

  .battle-progress:not(.battle-summary) div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .battle-round-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .competition-play-block {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .competition-play-block .load-more {
    grid-column: 1 / 3;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .market-picker-trigger {
    min-width: 72px;
    padding-inline: 10px;
  }
}

@media (max-width: 350px) {
  .wordmark {
    font-size: 17px;
  }

  .connection span {
    display: none;
  }

  .deposit-button {
    justify-content: center;
    width: 34px;
    padding: 0;
  }

  .deposit-button span {
    display: none;
  }

  .play-view {
    padding: 9px;
  }

  .round-bar {
    padding-inline: 9px;
  }

  .round-identity {
    gap: 10px;
  }

  .round-identity .round-number {
    font-size: 12px;
  }

  .play-view .price-header {
    grid-template-rows: minmax(76px, auto) auto;
  }

  :is(.play-view, .active-battle) .current-price {
    font-size: 28px;
  }

  .play-view .price-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .prediction-buttons {
    grid-template-columns: 1fr;
  }

  .prediction-button {
    min-height: 58px;
  }

  .battle-round-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .battle-summary strong {
    font-size: 13px;
  }

  .leader-row {
    grid-template-columns: 24px 30px minmax(0, 1fr) auto;
  }

  .leader-row small {
    display: none;
  }
}

@media (min-width: 840px) {
  .app-shell {
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    max-width: 820px;
    margin: 0 auto;
  }

  .app-header {
    max-width: 820px;
    margin: 0 auto;
  }

  .play-view {
    padding: 18px 30px;
  }

  .content-view {
    padding: 32px 30px;
  }
}

.candle-body, .candle-wick {
  stroke-width: 1px;
}

.candle-up .candle-body {
  fill: #10b981;
  stroke: #10b981;
}

.candle-up .candle-wick {
  stroke: #10b981;
}

.candle-down .candle-body {
  fill: #ef4444;
  stroke: #ef4444;
}

.candle-down .candle-wick {
  stroke: #ef4444;
}

.candle-flat .candle-body {
  fill: #6b7280;
  stroke: #6b7280;
}

.candle-flat .candle-wick {
  stroke: #6b7280;
}

/*# sourceMappingURL=apps_web_app_globals_1lkgh9-fi_qx-.css.map*/