/* Info block under the game, v2 look (lane G3, agreed with SHELL). Scoped to the fx2 frame; tokens only.
   Order: the name row (frame-v2.css), the tabs, the time range, then About / stats cards / wins tables. */
.fx2 #info { gap: 14px; }

/* tabs: a dark pill track with pill tabs, like the Manual / Auto tabs; scrolls sideways when it does not fit */
.fx2 #info .tabs {
  display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%;
  background: var(--surface-2); border: 0; border-radius: 999px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 4px;
}
.fx2 #info .tabs::-webkit-scrollbar { display: none; }
.fx2 #info .tabs button {
  flex: none; scroll-snap-align: start; margin: 0; border: 0; border-radius: 999px;
  min-height: 36px; padding: 0 16px; background: transparent; color: var(--muted);
  font: 600 14px var(--font); white-space: nowrap; cursor: pointer;
  transition: background .1s, color .1s, transform .1s;
}
.fx2 #info .tabs button:hover:not([aria-selected="true"]) { color: var(--text); background: color-mix(in srgb, var(--surface-3) 50%, transparent); }
.fx2 #info .tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); border: 0; }
.fx2 #info .tabs button:active { transform: var(--press, scale(.98)); }
.fx2 #info .tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* time range: the same small pill track */
.fx2 #info .tab-tools .ui-seg { max-width: 340px; background: var(--surface-2); border: 0; border-radius: 999px; padding: 4px; gap: 4px; }
.fx2 #info .tab-tools .ui-seg button { border-radius: 999px; min-height: 32px; font: 600 13px var(--font); color: var(--muted); }
.fx2 #info .tab-tools .ui-seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

/* About */
.fx2 #info .about { background: var(--surface); border: 0; border-radius: var(--radius-sm); }

/* Stats / My stats: small clean cards */
.fx2 #info .info-stats { gap: 8px; }
/* on the dark box fill (not --surface) so a red loss figure reads at 4.8:1 */
.fx2 #info .ui-stat { background: var(--surface-2); border: 2px solid var(--surface-3); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.fx2 #info .ui-stat-label { font: 600 12px var(--font); color: var(--muted); }
.fx2 #info .ui-stat-value { font: 700 16px var(--font-num); font-variant-numeric: tabular-nums; margin-top: 4px; }

/* Big wins / Lucky wins: the home bets table's rows */
.fx2 #info .info-bets { background: var(--surface); border: 0; border-radius: var(--radius-sm); }
.fx2 #info .info-bets th { font: 600 12px var(--font); color: var(--muted); }
.fx2 #info .info-bets td { font: 600 14px var(--font-num); font-variant-numeric: tabular-nums; }
.fx2 #info .info-bets td.muted { color: var(--muted); }
.fx2 #info .info-bets .ib-user { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.fx2 #info .info-bets .empty { color: var(--muted); }

@media (max-width: 760px) {
  /* phone: the tab strip runs the full width and fits all five tabs at 390 px; it still scrolls if a label grows */
  .fx2 #info .tabs { width: 100%; gap: 2px; }
  .fx2 #info .tabs button { flex: 1 0 auto; padding: 0 8px; font-size: 13px; min-height: 36px; }
  .fx2 #info .tab-tools .ui-seg { max-width: none; }
  .fx2 #info .info-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx2 #info .info-bets .ib-user { max-width: 110px; }
  .fx2 #info .info-bets td { font-size: 13px; }
}
.gi-tab-loading { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.gi-tab-loading i, .gi-tab-loading::after {
  content: ''; display: block; height: 10px; width: 58%; border-radius: 3px;
  background: var(--surface-3); animation: gi-tab-pulse .8s ease-in-out infinite alternate;
}
.gi-tab-loading::after { width: 36%; }
@keyframes gi-tab-pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .gi-tab-loading i, .gi-tab-loading::after { animation: none; } }
