/* GigaScore mobile visual layer. No entitlement, ad or navigation logic.
   Keep IDs, native bridges and the meaning of every displayed metric intact. */
:root {
  --bg: #050b14;
  --panel: #0b1726;
  --panel2: #102238;
  --line: #29445d;
  --text: #f3f7fc;
  --muted: #b2c2d2;
  --green: #59dcff;
  --danger: #ffacb5;
  --gs-live: #70edaf;
  --gs-gold: #ffda78;
  --gs-radius: 18px;
}
html { background: var(--bg); scroll-padding-top: 88px; }
body {
  background: radial-gradient(ellipse at 50% 0, #112c48 0, transparent 33rem), var(--bg);
  color: var(--text);
  line-height: 1.45;
}
.app { width: min(100% - 28px, 760px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.app .top {
  background: linear-gradient(180deg, #050b14 85%, #050b1400);
  padding-bottom: 12px;
  gap: 10px;
}
.app .brand .mark { width: 42px; height: 42px; }
.app .brand small { font-size: 11px; color: var(--muted); }
.app .status { border-color: var(--line); color: var(--muted); background: var(--panel); }
.app .main-tabs {
  gap: 8px;
  margin: 4px 0 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--gs-radius);
  background: #08121f;
}
.app .main-tabs button {
  min-height: 46px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.app .main-tabs button[aria-pressed="true"],
.app .filters button[aria-pressed="true"] {
  background: linear-gradient(145deg, #0964b3, #08477e);
  border-color: #53d8ff;
  color: #fff;
  box-shadow: inset 0 1px 0 #a7eaff38, 0 3px 16px #008cff18;
}
#games-view > .hero,
#games-view > .hero.giga-access {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--gs-radius);
  background: radial-gradient(ellipse at 100% 0, #176fa33b, transparent 65%), var(--panel);
  margin-bottom: 10px;
  box-shadow: 0 10px 30px #0002;
}
#games-view > .hero h1,
#games-view > .hero.giga-access h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; margin: 3px 0 5px; }
#games-view > .hero p { font-size: 12px; line-height: 1.5; margin: 5px 0 9px; color: var(--muted); }
#games-view > .hero .access-eyebrow { font-size: 10px; letter-spacing: .09em; color: var(--gs-gold); margin-bottom: 3px; }
#games-view > .hero .access-foot { font-size: 11px; margin-top: 7px; margin-bottom: 0; }
#games-view > .hero .giga-action { min-height: 44px; padding: 10px 12px; font-size: 13px; background: #0871c7; color: #fff; border: 1px solid #59bfff; }
.app .giga-plans-entry {
  border-color: #827044;
  background: linear-gradient(110deg, #182334, #292719);
  padding: 11px 14px;
  margin: 10px 0 14px;
  border-radius: 14px;
  min-height: 56px;
}
.app .giga-plans-entry strong { font-size: 13px; }
.app .giga-plans-entry small { color: #c3ccda; font-size: 11px; }
.app .giga-plans-entry > span:last-child { color: var(--gs-gold); white-space: normal; text-align: end; }
.app .controls { margin: 10px 0; }
.app .controls input { font-size: 16px; }
.app .controls button { font-size: 22px; }
.app .filters { gap: 7px; margin: 10px 0; }
.app .filters button { min-height: 48px; font-size: 11px; padding: 7px 3px; color: var(--muted); }
.app .filters button b { margin-top: 1px; font-size: 14px; font-variant-numeric: tabular-nums; }
.app .refresh {
  min-height: 44px;
  background: #10253b;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  margin-bottom: 4px;
}
.app .summary { gap: 7px; margin: 9px 0; }
.app .metric { padding: 9px; border-radius: 12px; }
.app .metric span { font-size: 11px; }
.app .metric b { margin-top: 2px; font-size: 17px; font-variant-numeric: tabular-nums; }
.app .metric-button .metric-action { margin-top: 3px; font-size: 11px; }
.app .group-tools { margin: 12px 0 8px; }
.app .group-tools span { font-size: 11px; }
.app .group-tools button { min-height: 44px; }
.app .group-toggle { background: #11253b; border-color: var(--line); }
.app .country-body { border-left-color: #233950; }
.app .competition-heading .group-toggle { background: #0b1726; }
.app .pin-league[aria-pressed="true"] { background: #123f59; border-color: #59dcff; color: #7ee4ff; }
.app .card {
  padding: 14px;
  background: radial-gradient(ellipse at 50% 0, #12385866, transparent 80%), linear-gradient(145deg, #0d1f33, #08131f);
  border: 1px solid #315371;
  border-radius: var(--gs-radius);
  box-shadow: 0 7px 20px #0002;
  margin-bottom: 11px;
}
.app .card .teams { grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); gap: 10px; }
.app .card .team { font-size: 14px; gap: 8px; }
.app .card .team .crest { width: 40px; height: 40px; min-width: 40px; }
.app .card .score { font-size: 23px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.app .card .meta { color: var(--muted); font-size: 11px; }
.app .live-state { color: var(--gs-live); }
.app .card .prediction { border-color: #29445d; }
.app .card .prob { color: var(--gs-live); font-size: 18px; }
.app .card .signal-score { background: #102d24; color: #a6f4c9; border-color: #3c795c; white-space: normal; }
.app .source, .app .footer { color: var(--muted); font-size: 11px; }
.app .open-match { min-height: 44px; font-size: 12px; background: #10263b; color: #90e5ff; }
.app .card .prediction-cta { background: #086ebc; color: white; border: 1px solid #59bfff; }
.app .growth-box { background: linear-gradient(145deg, #10263c, var(--panel)); }
.app .growth-heading button, .app .interest-toggle, .app .search-history { background: #113349; }
.app .interest-toggle[aria-pressed="true"] { background: #75e3ff; color: #042033; }
#mobile-detail .detail-box { border-color: #29445d; background: #0b1726; border-radius: 16px; }
#mobile-detail .detail-hero { padding: 16px 4px; background: radial-gradient(ellipse at 50% 0, #16538b66, transparent 75%); }
#mobile-detail .detail-score { font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; }
#mobile-detail .detail-head button, #mobile-detail .detail-tabs button, #mobile-detail .detail-range button { min-height: 44px; }
#mobile-detail .detail-head button { min-width: 44px; }
#mobile-detail .detail-tabs button[aria-pressed="true"], #mobile-detail .detail-range button[aria-pressed="true"] { color: #fff; border-color: #59dcff; background: #084c83; }
#mobile-detail .detail-team { min-height: 44px; }
#mobile-detail .detail-meta, #mobile-detail .detail-note { color: var(--muted); }
/* Preserve every billing action and gate; only the modal's surface is themed. */
#giga-plans { background: #081421; border-color: #466782; color: var(--text); }
#giga-plans .giga-plan { background: #0d1e30; border-color: #37546d; }
#giga-plans .giga-plan.pro { background: linear-gradient(145deg, #263025, #101d2b); border-color: #a38a48; }
#giga-plans .giga-plan-button { background: #8ce8ff; color: #062335; border-color: #a5edff; }
#giga-plans .giga-plan-option { border-color: #506976; }
#giga-plans .giga-plan-option:has(input:checked) { border-color: #ffda78; background: #313022; }
#giga-plans .giga-plan-option input { accent-color: #75e3ff; }
#giga-plans .giga-account-actions button { color: #d5e8f6; border-color: #496078; }
.app :is(button,input,select,summary,a):focus-visible,
#mobile-detail :is(button,a,select):focus-visible,
#giga-plans :is(button,input,a):focus-visible {
  outline: 3px solid #ffe293;
  outline-offset: 3px;
}
@media (max-width: 350px) {
  .app { width: calc(100% - 20px); }
  .app .brand .mark { width: 36px; height: 36px; }
  .app .brand-name { width: 104px; }
  .app .card { padding: 11px; }
  .app .card .teams { gap: 6px; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); }
  .app .card .team { font-size: 13px; }
  .app .giga-plans-entry { gap: 8px; }
  .app .giga-plans-entry > span:last-child { max-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app *, #mobile-detail *, #giga-plans * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .app .card, .app .main-tabs, #mobile-detail .detail-box { border: 1px solid CanvasText; }
  .app button[aria-pressed="true"], #mobile-detail button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
