/* V10_R15F_R3R6_PRODUCTION_REDESIGN */
:root {
  color-scheme: dark;
  --bg: #090c12;
  --panel: #10151e;
  --panel-2: #141a24;
  --panel-soft: #0d1118;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f5f7fb;
  --muted: #919baa;
  --muted-2: #697383;
  --accent: #79e2b8;
  --accent-strong: #b3f6db;
  --warning: #f0c879;
  --danger: #ef8d94;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 30px 80px rgba(0,0,0,.28);
  --shell: min(1240px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% -10%, rgba(121,226,184,.10), transparent 30%), radial-gradient(circle at 90% 10%, rgba(118,146,255,.08), transparent 28%); z-index: -1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; background: rgba(9,12,18,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 11px; }
.brand-symbol { position: relative; width: 34px; height: 34px; border: 1px solid rgba(121,226,184,.38); border-radius: 12px; background: linear-gradient(145deg, rgba(121,226,184,.18), rgba(121,226,184,.03)); box-shadow: inset 0 0 22px rgba(121,226,184,.08); }
.brand-symbol::before, .brand-symbol::after, .brand-symbol i { content: ""; position: absolute; border-radius: 999px; background: var(--accent); }
.brand-symbol::before { width: 13px; height: 3px; left: 6px; top: 9px; transform: rotate(-25deg); }
.brand-symbol::after { width: 13px; height: 3px; right: 6px; bottom: 9px; transform: rotate(-25deg); }
.brand-symbol i { width: 5px; height: 5px; left: 14px; top: 14px; box-shadow: 0 0 16px var(--accent); }
.brand-symbol-small { width: 30px; height: 30px; border-radius: 10px; transform: scale(.88); }
.desktop-nav { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.desktop-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; transition: .2s ease; }
.desktop-nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.connection { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.connection span { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 5px rgba(240,200,121,.08); }
.connection.is-ready span { background: var(--accent); box-shadow: 0 0 0 5px rgba(121,226,184,.08); }
.connection.is-error span { background: var(--danger); box-shadow: 0 0 0 5px rgba(239,141,148,.08); }
main { padding: 52px 0 96px; }
.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(400px,.92fr); gap: 28px; align-items: stretch; }
.hero-copy, .summary-card { min-height: 430px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(18,24,34,.97), rgba(12,16,24,.97)); box-shadow: var(--shadow); }
.hero-copy { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 24px 0 18px; max-width: 720px; font-size: clamp(40px, 5.4vw, 72px); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
h1 em { color: var(--muted); font-style: normal; font-weight: 500; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }
.hero-status { margin-top: 30px; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.status-light { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 6px rgba(240,200,121,.08); }
.hero-status.is-ready .status-light { background: var(--accent); box-shadow: 0 0 0 6px rgba(121,226,184,.08); }
.hero-status div { display: grid; gap: 2px; }
.hero-status strong { font-size: 13px; }
.hero-status small { color: var(--muted); font-size: 11px; }
.hero-actions { margin-top: auto; padding-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 13px; font-weight: 700; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #07110d; }
.button-quiet { border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: var(--text); }
.summary-card { padding: 26px; display: flex; flex-direction: column; }
.summary-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.summary-head span { color: var(--text); font-weight: 700; }
.summary-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.summary-grid article { min-height: 122px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.025); }
.summary-grid small { color: var(--muted); font-size: 11px; }
.summary-grid strong { margin: 8px 0 3px; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.summary-grid span { margin-top: auto; color: var(--muted-2); font-size: 10px; }
.bank-strip { margin-top: auto; padding: 17px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(121,226,184,.12), rgba(121,226,184,.035)); border: 1px solid rgba(121,226,184,.18); }
.bank-strip span { color: var(--muted); font-size: 11px; }
.bank-strip strong { grid-row: 1 / span 2; grid-column: 2; font-size: 26px; letter-spacing: -.03em; }
.bank-strip small { color: var(--accent); font-size: 11px; }
.notice { margin-top: 22px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(240,200,121,.2); border-radius: var(--radius-lg); background: rgba(240,200,121,.055); }
.notice[hidden] { display: none; }
.notice-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; color: var(--warning); background: rgba(240,200,121,.1); font-size: 20px; }
.notice strong { font-size: 14px; }
.notice p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section { padding-top: 86px; }
.section-head { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-head > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: baseline; }
.section-kicker { grid-row: 1 / span 2; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); line-height: 1; letter-spacing: -.04em; }
.section-head p { grid-column: 2; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.section-stat { min-width: 118px; padding: 10px 13px; display: grid; gap: 2px; text-align: right; border-left: 1px solid var(--line); }
.section-stat span { color: var(--muted); font-size: 10px; }
.section-stat strong { font-size: 13px; }
.match-list { display: grid; gap: 10px; }
.match-card { display: grid; grid-template-columns: 58px minmax(250px,1.55fr) minmax(170px,.85fr) 92px 92px 36px; align-items: center; gap: 16px; min-height: 92px; padding: 13px 18px 13px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.match-card:hover { transform: translateY(-2px); border-color: rgba(121,226,184,.28); background: var(--panel-2); }
.rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.045); color: var(--muted); font-weight: 800; }
.rank.top { background: rgba(121,226,184,.12); color: var(--accent-strong); }
.match-main { min-width: 0; }
.match-meta { margin-bottom: 7px; display: flex; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teams { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 750; }
.teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams i { color: var(--muted-2); font-style: normal; font-weight: 500; }
.pick { min-width: 0; }
.pick small, .metric small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.pick strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.metric strong { font-size: 15px; }
.metric-quality strong { color: var(--accent-strong); }
.chevron { color: var(--muted-2); font-size: 18px; text-align: right; }
.express-grid, .single-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.express-card, .single-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel); overflow: hidden; }
.express-card { padding: 22px; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-top span { color: var(--muted); font-size: 10px; letter-spacing: .1em; font-weight: 800; }
.card-top strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.025em; }
.odds-badge { flex: 0 0 auto; padding: 8px 10px; border-radius: 11px; background: rgba(121,226,184,.1); color: var(--accent-strong); font-size: 13px; font-weight: 800; }
.leg-list { margin: 20px 0 0; padding: 0; display: grid; gap: 3px; list-style: none; }
.leg-list li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 9px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); }
.leg-list b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.045); color: var(--muted); font-size: 10px; }
.leg-list div { min-width: 0; }
.leg-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.leg-list small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.leg-list em { color: var(--muted); font-style: normal; font-size: 11px; }
.express-footer { margin-top: 16px; padding-top: 15px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.express-footer strong { color: var(--text); }
.single-card { padding: 22px; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.single-card:hover { transform: translateY(-2px); border-color: rgba(121,226,184,.28); }
.single-rank { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(121,226,184,.1); color: var(--accent); font-size: 12px; font-weight: 800; }
.single-teams { margin: 24px 0 18px; display: grid; gap: 7px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.single-teams small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.single-pick { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.035); }
.single-pick span { display: block; color: var(--muted); font-size: 10px; }
.single-pick strong { display: block; margin-top: 4px; font-size: 13px; }
.single-metrics { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.single-metrics div { padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.single-metrics span { display: block; color: var(--muted); font-size: 9px; }
.single-metrics strong { display: block; margin-top: 3px; font-size: 12px; }
.results-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 14px; }
.bank-card, .history-card { min-height: 340px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel); }
.bank-card > span { color: var(--muted); font-size: 11px; }
.bank-card > strong { display: block; margin-top: 8px; font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.055em; }
.bank-card > small { display: block; margin-top: 10px; color: var(--accent); }
.bank-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.bank-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.bank-grid span { display: block; color: var(--muted); font-size: 10px; }
.bank-grid b { display: block; margin-top: 5px; font-size: 14px; }
.history-head { display: flex; justify-content: space-between; align-items: center; }
.history-head div { display: grid; gap: 3px; }
.history-head span { color: var(--muted); font-size: 10px; }
.history-head strong { font-size: 20px; }
.history-head > b { display: grid; place-items: center; min-width: 38px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 12px; }
.history-list { margin-top: 18px; display: grid; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; min-height: 57px; border-top: 1px solid var(--line); }
.history-row:first-child { border-top: 0; }
.history-row div { min-width: 0; }
.history-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.result-badge { padding: 6px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.result-badge.won { color: var(--accent); background: rgba(121,226,184,.1); }
.result-badge.lost { color: var(--danger); background: rgba(239,141,148,.1); }
.result-badge.push, .result-badge.void { color: var(--warning); background: rgba(240,200,121,.1); }
.history-profit { min-width: 70px; text-align: right; font-size: 11px; }
.loading-card, .empty-card { min-height: 120px; display: grid; place-items: center; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); background: rgba(255,255,255,.015); text-align: center; font-size: 12px; }
.express-grid > .loading-card, .single-grid > .loading-card { min-height: 280px; }
.empty-mini { padding: 70px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.footer { min-height: 108px; padding: 24px 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand div { display: grid; gap: 2px; }
.footer-brand strong { color: var(--text); font-size: 12px; }
.detail-dialog { width: min(620px, calc(100% - 28px)); max-height: min(82vh,760px); padding: 0; color: var(--text); border: 1px solid var(--line-strong); border-radius: 24px; background: #111720; box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.detail-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; top: 14px; float: right; z-index: 2; margin: 14px 14px 0 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; }
.dialog-content { padding: 30px; }
.dialog-content > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dialog-content h3 { margin: 12px 44px 8px 0; font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.dialog-content > p { margin: 0; color: var(--muted); font-size: 12px; }
.dialog-pick { margin: 24px 0; padding: 18px; border-radius: 16px; background: rgba(121,226,184,.08); border: 1px solid rgba(121,226,184,.14); }
.dialog-pick span { color: var(--muted); font-size: 10px; }
.dialog-pick strong { display: block; margin-top: 5px; font-size: 16px; }
.dialog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.dialog-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.dialog-grid span { display: block; color: var(--muted); font-size: 9px; }
.dialog-grid strong { display: block; margin-top: 4px; font-size: 13px; }
.dialog-reason { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-reason span { color: var(--muted); font-size: 10px; }
.dialog-reason p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
.mobile-nav { display: none; }
@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .topbar { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy, .summary-card { min-height: auto; }
  .hero-copy { min-height: 430px; }
  .match-card { grid-template-columns: 50px minmax(0,1fr) 88px 32px; }
  .match-card .pick { grid-column: 2; }
  .match-card .metric-probability { grid-column: 3; grid-row: 1 / span 2; }
  .match-card .metric-quality { display: none; }
  .express-grid, .single-grid { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 24px); --radius-xl: 22px; }
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 66px; }
  .topbar { height: 64px; }
  .brand small { display: none; }
  .connection b { display: none; }
  main { padding-top: 24px; }
  .hero-copy { min-height: 405px; padding: 26px 22px; }
  h1 { margin-top: 22px; font-size: clamp(38px, 12vw, 56px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { width: 100%; }
  .button { flex: 1 1 130px; }
  .summary-card { padding: 16px; }
  .summary-grid { gap: 8px; }
  .summary-grid article { min-height: 104px; padding: 14px; border-radius: 16px; }
  .summary-grid strong { font-size: 28px; }
  .bank-strip { margin-top: 10px; }
  .notice { padding: 16px; align-items: flex-start; }
  .section { padding-top: 64px; }
  .section-head { align-items: flex-start; }
  .section-stat { display: none; }
  .section-head p { font-size: 12px; }
  .match-card { grid-template-columns: 42px minmax(0,1fr) 28px; gap: 10px; min-height: 112px; padding: 12px; }
  .rank { width: 38px; height: 38px; border-radius: 12px; }
  .match-main { grid-column: 2; }
  .pick { grid-column: 2; }
  .match-card .metric-probability { grid-column: 2; grid-row: auto; display: flex; gap: 7px; align-items: baseline; }
  .match-card .metric-probability small { margin: 0; }
  .match-card .metric-probability strong { font-size: 13px; }
  .chevron { grid-column: 3; grid-row: 1 / span 3; }
  .express-card, .single-card, .bank-card, .history-card { padding: 18px; border-radius: 20px; }
  .single-metrics { gap: 6px; }
  .bank-grid { margin-top: 28px; }
  .history-row { grid-template-columns: minmax(0,1fr) auto; }
  .history-profit { display: none; }
  .footer { padding-bottom: 20px; }
  .footer > span { text-align: right; }
  .mobile-nav { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 40; height: 52px; padding: 5px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(13,17,24,.94); backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
  .mobile-nav a { display: grid; place-items: center; border-radius: 11px; color: var(--muted); font-size: 10px; font-weight: 700; }
  .mobile-nav a:active { background: rgba(255,255,255,.06); color: var(--text); }
  .dialog-content { padding: 24px 18px; }
  .dialog-content h3 { font-size: 24px; }
}
@media (max-width: 360px) {
  :root { --shell: calc(100% - 18px); }
  .hero-copy { padding-inline: 18px; }
  .summary-grid strong { font-size: 25px; }
  .bank-strip strong { font-size: 22px; }
  .section-head > div:first-child { column-gap: 9px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }
