:root {
  color-scheme: dark;
  --bg: #071321;
  --surface: #0d2233;
  --surface-2: #10293a;
  --line: #244052;
  --text: #f1f6fa;
  --muted: #9ab0c0;
  --subtle: #708c9d;
  --green: #c4f65e;
  --green-soft: #183b2f;
  --green-border: #3e7847;
  --warning: #ffd18b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100dvh; margin: 0; overflow-x: hidden; background:
  radial-gradient(ellipse 650px 310px at 65% -80px, #16384c 0%, transparent 80%), var(--bg);
  color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 11px 16px;
  background: var(--green); color: var(--bg); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7,19,33,.92);
  border-bottom: 1px solid rgba(126,166,183,.14); backdrop-filter: blur(20px); }
.header-inner { max-width: 1130px; min-height: 75px; margin: auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green);
  display: grid; place-items: center; color: var(--bg); font-weight: 950; font-size: 25px;
  letter-spacing: -.1em; flex-shrink: 0; }
.brand-mark span { color: #0e8c89; }
.brand-word { display: flex; flex-direction: column; font-size: 17px; font-weight: 900;
  letter-spacing: .085em; line-height: 1.05; }
.brand-word small { margin-top: 5px; font-size: 8px; color: #8ca4b4; letter-spacing: .16em; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.analysis-link { font-size: 13px; color: #c7d5df; text-decoration: none; font-weight: 750; padding: 11px 12px; }
.analysis-link:hover, .bottom-link a:hover { color: var(--green); }
.refresh-button { display: grid; place-items: center; width: 44px; height: 44px;
  color: #e1ecf2; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.refresh-button:hover { border-color: #6d9c7a; }
.install-button { min-height: 44px; padding: 0 15px; border: 0; border-radius: 12px;
  color: var(--bg); background: var(--green); font-weight: 850; font-size: 12px; }
.notice-banner { position: sticky; top: 75px; z-index: 25; padding: 12px 16px;
  background: #60432a; color: #fff0d8; font-size: 13px; text-align: center; }
main { max-width: 1080px; margin: 0 auto; padding: 0 28px 46px; }
.intro { padding: 62px 0 51px; max-width: 790px; }
.eyebrow, .section-kicker { font-size: 11px; letter-spacing: .15em; font-weight: 850; color: var(--green); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(196,246,94,.12); }
h1 { margin: 17px 0 15px; font-size: clamp(40px, 5.3vw, 67px);
  letter-spacing: -.065em; line-height: 1.08; font-weight: 900; }
h1 span { color: var(--green); }
.intro p { max-width: 540px; margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.intro strong { color: var(--text); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; }
h2 { font-size: 26px; margin: 7px 0 0; letter-spacing: -.045em; }
.data-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: #b3c5d0; white-space: nowrap; padding-bottom: 4px; }
.data-status.error { color: var(--warning); }
.controls { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; padding: 17px; background: rgba(14,35,51,.75);
  border: 1px solid var(--line); border-radius: 17px; }
.control-block { min-width: 0; }
.control-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700;
  margin-bottom: 10px; }
.segmented { display: flex; gap: 5px; flex-wrap: wrap; }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; background: #152e40; color: #b4c6d1;
  border-radius: 10px; min-height: 43px; padding: 0 17px; font-size: 12px; font-weight: 800; }
.segmented button.selected { color: var(--bg); background: var(--green); border-color: var(--green); }
.segmented button:not(.selected):hover { border-color: #547386; color: #fff; }
.green-dot { width: 7px; height: 7px; border-radius: 50%; background: #4c9b55; }
.selected .green-dot { background: #071321; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0 18px; }
.signal-count { display: flex; align-items: center; gap: 11px; }
.signal-icon { width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border);
  border-radius: 13px; }
.signal-count div { display: flex; flex-direction: column; gap: 2px; }
.signal-count strong { font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.signal-count div span { color: var(--muted); font-size: 12px; }
.last-update { color: var(--subtle); font-size: 12px; text-align: right; }
.picks-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.match-card { background: linear-gradient(145deg,#102839,#0c2131); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; min-width: 0; }
.match-card.green { border-color: #39664b; background: linear-gradient(145deg,#12352f,#0d2530 72%); }
.match-meta { display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; font-size: 11px; color: #91a9b9; }
.match-league { font-weight: 800; color: #c2d5df; }
.match-kickoff { color: #94aebd; }
.match-title { margin-top: 16px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.match-teams { min-width: 0; }
.pick-caption { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: #a1b8c6; }
.match-card.green .pick-caption { color: var(--green); }
.match-teams h3 { font-size: clamp(18px, 2vw, 23px); line-height: 1.2; letter-spacing: -.035em;
  margin: 6px 0 7px; font-weight: 850; overflow-wrap: anywhere; }
.match-opponent { color: #a4b7c3; font-size: 12px; line-height: 1.5; }
.match-percent { flex-shrink: 0; text-align: right; color: #f0f6f8; }
.match-card.green .match-percent { color: var(--green); }
.match-percent strong { display: block; font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.05; font-weight: 900; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.match-percent small { display: block; margin-top: 6px; font-size: 10px; color: #a4b8c4; font-weight: 650; }
.chance-bar { height: 6px; background: #244354; border-radius: 8px; margin: 19px 0 15px; overflow: hidden; }
.chance-bar span { display: block; height: 100%; border-radius: inherit; background: #698ba0; }
.match-card.green .chance-bar span { background: var(--green); }
.match-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.signal-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px;
  border: 1px solid var(--green-border); border-radius: 9px; background: var(--green-soft);
  color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .045em; }
.signal-badge .green-dot { background: var(--green); }
.neutral-badge { color: #b2c4d0; font-size: 11px; font-weight: 750; }
.outcomes { color: #98aebe; font-size: 11px; font-variant-numeric: tabular-nums; }
.outcomes b { color: #dbe6eb; font-weight: 700; }
.empty-state { grid-column: 1/-1; padding: 49px 26px; background: rgba(15,35,49,.65);
  border: 1px dashed #345166; border-radius: 18px; text-align: center; color: #aabfcb;
  line-height: 1.65; }
.empty-state strong { display: block; color: #f2f7fa; font-size: 17px; margin-bottom: 6px; }
.empty-state a { color: var(--green); }
.error-message { margin-bottom: 15px; padding: 12px 15px; color: #ffe0bd;
  background: #51362c; border: 1px solid #815745; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.load-more { display: block; min-height: 48px; margin: 20px auto 0; padding: 0 24px;
  background: #173247; border: 1px solid #35556a; color: #e4eff3; border-radius: 12px;
  font-weight: 800; font-size: 13px; }
.load-more:hover { border-color: var(--green); }
.explain { display: flex; align-items: flex-start; gap: 12px; margin: 36px 0 0; padding: 19px 20px;
  border: 1px solid #2a4556; border-radius: 15px; background: rgba(18,41,54,.55); }
.explain-icon { width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%;
  border: 1px solid #68899b; display: grid; place-items: center; font-size: 13px;
  font-weight: 900; color: #c0d2dc; }
.explain p { margin: 0; color: #a8bdc9; font-size: 12px; line-height: 1.75; }
.explain strong { color: #e8f0f5; }
.bottom-link { margin: 22px 0 0; text-align: center; }
.bottom-link a { font-size: 13px; color: #d5e5ec; text-decoration: none; font-weight: 750; }
.ios-tip { text-align: center; color: #8ea9b8; font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; max-width: 1130px;
  margin: 0 auto; padding: 25px 28px 34px; border-top: 1px solid #203749;
  color: #728b9b; font-size: 10px; letter-spacing: .06em; gap: 15px; }
.mobile-nav { display: none; }
@media(max-width: 790px) {
  .header-inner { padding: 0 18px; }
  main { padding-left: 18px; padding-right: 18px; }
  .intro { padding-top: 43px; padding-bottom: 39px; }
  .controls { flex-direction: column; align-items: stretch; }
  .picks-list { grid-template-columns: minmax(0,1fr); }
  .site-footer { padding-left: 18px; padding-right: 18px; }
}
@media(max-width: 580px) {
  body { padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)); }
  .header-inner { min-height: 64px; padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 23px; }
  .brand-word { font-size: 15px; }
  .brand-word small { font-size: 7px; }
  .analysis-link { display: none; }
  .header-actions { gap: 8px; }
  .refresh-button { width: 44px; height: 44px; }
  .notice-banner { top: 64px; }
  main { padding: 0 16px 25px; }
  .intro { padding: 35px 0 33px; }
  .eyebrow, .section-kicker { font-size: 10px; }
  h1 { font-size: clamp(34px, 10vw, 48px); margin: 16px 0 12px; }
  .intro p { font-size: 13px; line-height: 1.7; }
  .section-heading { margin-bottom: 17px; align-items: center; }
  h2 { font-size: 23px; }
  .data-status { font-size: 10px; max-width: 105px; text-align: right; white-space: normal; }
  .controls { gap: 17px; padding: 14px; border-radius: 14px; }
  .segmented { flex-wrap: nowrap; gap: 5px; }
  .segmented button { flex: 1 1 0; padding: 0 7px; font-size: 11px; min-height: 45px; white-space: nowrap; }
  .results-heading { padding: 21px 0 15px; }
  .signal-icon { width: 37px; height: 37px; }
  .signal-count strong { font-size: 21px; }
  .signal-count div span, .last-update { font-size: 10px; }
  .last-update { max-width: 150px; }
  .picks-list { gap: 11px; }
  .match-card { padding: 17px 15px; border-radius: 15px; }
  .match-title { margin-top: 15px; }
  .match-teams h3 { font-size: clamp(17px, 5.2vw, 22px); }
  .match-percent strong { font-size: clamp(24px, 7vw, 30px); }
  .match-opponent { font-size: 11px; }
  .outcomes { font-size: 10px; }
  .explain { margin-top: 25px; padding: 15px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 18px 16px 20px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 35;
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
    background: rgba(8,23,35,.97); border-top: 1px solid #2e4a5a;
    min-height: calc(65px + env(safe-area-inset-bottom, 0px));
    padding: 5px max(12px, env(safe-area-inset-left, 0px))
      calc(5px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-right, 0px));
    backdrop-filter: blur(18px); }
  .mobile-nav-item { display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; min-height: 53px; text-decoration: none;
    border-radius: 10px; font-size: 10px; font-weight: 800; color: #a2bac7; }
  .mobile-nav-item.current { color: var(--green); background: #1c3a35; }
}
@media(max-width: 355px) {
  .brand-word small { display: none; }
  .segmented button { font-size: 10px; }
  .match-percent strong { font-size: 23px; }
}
@media(display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
