@charset "UTF-8";

/* Shared surfaces, navigation and motion across the Oddscope workspace. */
:root {
  color-scheme: dark;
  --ui-bg: #101014;
  --ui-surface: rgba(30, 29, 39, .83);
  --ui-raised: rgba(46, 42, 61, .86);
  --ui-line: rgba(216, 210, 242, .14);
  --ui-text: #f7f5ff;
  --ui-muted: #aba6ba;
  --ui-accent: #b69aff;
  --ui-accent-ink: #201434;
  --ui-hot: #ffac70;
  --ui-live: #ff9d63;
  --ui-upcoming: #77b5ff;
  --ui-positive: #67dcd5;
  --ui-negative: #ff839e;
  --ui-warning: #f4cb6e;
  --ui-paused: #9692a4;
  --ui-strategy: #b69aff;
  --ui-radius: 10px;
  --ui-control-radius: 6px;
  --ui-nav-radius: 12px;
  --ui-nav-item-radius: 7px;
  --ui-font: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --ui-shadow: 0 12px 32px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(242, 235, 252, .035);
  --ui-ease: cubic-bezier(.2, .8, .2, 1);
  --ui-nav-clearance: calc(108px + env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-bottom: var(--ui-nav-clearance); }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 8% 0%, rgba(121, 77, 232, .055), transparent 48%),
    radial-gradient(ellipse at 94% 52%, rgba(240, 122, 70, .025), transparent 45%), var(--ui-bg);
  background-attachment: fixed;
  color: var(--ui-text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(199, 169, 239, .25); color: #fff; }
:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
input, select, textarea { accent-color: var(--ui-accent); }
option { color: var(--ui-text); background: #1e1b22; }
body:has(dialog[open]) { overflow: hidden; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; border-radius: var(--ui-control-radius); background: var(--ui-accent); color: #1a171e; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Reserve the data's space while a real request is still pending. */
.ui-loading { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ui-muted); font-size: 12px; }
.ui-spinner { display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: var(--ui-accent); vertical-align: middle; animation: ui-spin .9s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.bottom-nav {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  width: min(520px, calc(100% - 24px));
  padding: 7px;
  border: 1px solid rgba(255, 183, 120, .26);
  border-radius: var(--ui-nav-radius);
  background: rgba(35, 29, 26, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 218, 178, .05);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  backdrop-filter: blur(18px) saturate(110%);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
  border-radius: var(--ui-nav-item-radius);
  color: #ead7c8;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s var(--ui-ease);
}
.bottom-nav a > span { font-size: 19px; line-height: 1; }
.bottom-nav a.active { background: #ffb778; color: #2c190e; box-shadow: none; }
.bottom-nav a:active { transform: scale(.96); }
.bottom-nav a:focus-visible { outline-color: #ffd5af; }
@media (max-width: 540px) {
  .bottom-nav { gap: 3px; padding: 5px; border-radius: var(--ui-nav-radius); }
  .bottom-nav a { flex-direction: column; gap: 5px; min-height: 52px; padding: 7px 3px; font-size: 11px; border-radius: var(--ui-nav-item-radius); }
  .bottom-nav a > span { font-size: 18px; }
}
body > .phone-shell { padding-bottom: var(--ui-nav-clearance); }

/* Provider-backed location and sport identity; local flags render on Windows too. */
.match-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.country-identity, .sport-identity { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 11px; line-height: 1.4; color: var(--ui-muted); }
.country-flag { display: inline-block; width: 25px; height: 18px; flex: 0 0 25px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.13), 0 3px 8px #0002; }
.country-globe, .sport-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; color: var(--ui-hot); }
.country-globe { color: var(--ui-muted); }
.country-name, .sport-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sport-identity { --sport-color: var(--ui-muted); }
.sport-identity[data-sport="football"] { --sport-color: #b69aff; }
.sport-identity[data-sport="hockey"] { --sport-color: #81c8ff; }
.sport-identity[data-sport="basketball"] { --sport-color: #ffb06c; }
.sport-identity[data-sport="tennis"] { --sport-color: #84ddd3; }
.sport-identity[data-sport="handball"] { --sport-color: #ff97b8; }
.sport-identity[data-sport="esports"] { --sport-color: #d591ee; }
.sport-identity[data-sport="american"] { --sport-color: #ecbd7b; }
.sport-identity[data-sport="baseball"] { --sport-color: #ff8e87; }
.sport-identity[data-sport="darts"] { --sport-color: #f3ce77; }
.sport-identity[data-sport="golf"] { --sport-color: #8acaeb; }
.sport-identity[data-sport="athletics"] { --sport-color: #ffc68d; }
.sport-identity[data-sport="snooker"] { --sport-color: #9adbb5; }
.sport-identity[data-sport="volleyball"] { --sport-color: #f6d47d; }
.sport-identity[data-sport="badminton"] { --sport-color: #9dc2ff; }
.sport-identity[data-sport="racing"] { --sport-color: #ff918b; }
.sport-identity[data-sport="cycling"] { --sport-color: #f3de72; }
.sport-identity[data-sport="boxing"] { --sport-color: #ef98b0; }
.sport-identity .sport-icon { box-sizing: content-box; padding: 4px; border-radius: var(--ui-control-radius); color: var(--sport-color); background: color-mix(in srgb, var(--sport-color) 12%, transparent); }
.sport-identity .sport-label { color: var(--sport-color); }
[data-tone="positive"], .tone-positive { color: var(--ui-positive); }
[data-tone="negative"], .tone-negative { color: var(--ui-negative); }
[data-tone="warning"], .tone-warning { color: var(--ui-warning); }
[data-tone="live"], .tone-live { color: var(--ui-live); }
[data-tone="upcoming"], .tone-upcoming { color: var(--ui-upcoming); }
[data-tone="strategy"], .tone-strategy { color: var(--ui-strategy); }
[data-tone="muted"], .tone-muted { color: var(--ui-paused); }

@keyframes ui-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ui-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 169, 239, .12); }
  50% { box-shadow: 0 0 0 5px rgba(199, 169, 239, 0); }
}
.page-intro, .page-heading, .account-form-wrap { animation: ui-enter .55s var(--ui-ease) both; }
.strategy-card, .starter-card, .metric-card { animation: ui-enter .45s var(--ui-ease) backwards; }
:is(.strategy-card, .starter-card, .metric-card):nth-child(2) { animation-delay: .05s; }
:is(.strategy-card, .starter-card, .metric-card):nth-child(3) { animation-delay: .1s; }
:is(.strategy-card, .starter-card, .metric-card):nth-child(4) { animation-delay: .15s; }
.live-dot { animation: ui-live 2.6s ease-in-out infinite; }

@media (hover: hover) {
  .bottom-nav a:not(.active):hover { background: rgba(255, 183, 120, .13); color: #fff3e9; }
  :where(.action, .button, .close-button, .text-action):not(:disabled) { transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ui-ease); }
}
:where(.action, .button, .close-button):not(:disabled):active { transform: scale(.975); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .14s; }
::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --ui-surface: #1c1921; --ui-raised: #28242e; }
  .bottom-nav { background: #231d1a; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
