/* SafeOdds – app.css  (dark "night" + light "day" themes) */
:root,[data-theme="dark"]{--bg:#0A0E0D;--surface:#121816;--surface2:#19211E;--border:#26322D;--text:#EEF3F0;--text2:#9DABA4;--accent:#C6F135;--on-accent:#0A0E0D;--away:#5AA9FF;--amber:#FFB23E;--draw:#5B6A63;--accent-soft:rgba(198,241,53,.12);--hero:#16210F;--rg-bg:#1B1608;--rg-border:#3A3016;--rg-text:#E7D6A0;--logo-bg:#C6F135;color-scheme:dark}
[data-theme="light"]{--bg:#F2F6F3;--surface:#FFFFFF;--surface2:#EAF0EC;--border:#D3DED7;--text:#0D1A13;--text2:#4A5B52;--accent:#0B7A3B;--on-accent:#FFFFFF;--away:#1F6FD6;--amber:#8A5A00;--draw:#A7B5AE;--accent-soft:rgba(11,122,59,.1);--hero:#E2F4CC;--rg-bg:#FFF6DD;--rg-border:#EBD99B;--rg-text:#5C4400;--logo-bg:#C6F135;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
img{max-width:100%}
.disp{font-family:'Barlow Condensed','Inter',sans-serif;text-transform:uppercase;letter-spacing:.01em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--on-accent);padding:8px 14px;z-index:999}
.skip:focus{left:8px;top:8px}
.muted{color:var(--text2)}
.wrap{max-width:1360px;margin:0 auto;padding:0 32px}

/* chrome */
.rg-bar{background:var(--rg-bg);border-bottom:1px solid var(--rg-border);padding:8px 32px;font-size:12px;color:var(--rg-text);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.rg-bar strong,.rg-bar a{color:var(--amber)}.rg-bar a{text-decoration:underline}
.hdr{display:flex;align-items:center;gap:28px;flex-wrap:wrap;padding:14px 32px;border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:50}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--logo-bg);display:flex;align-items:center;justify-content:center}
.brand-name{font-size:28px;font-weight:800;line-height:1}
.brand-name span{color:var(--accent)}
.nav{display:flex;gap:6px;flex-wrap:wrap;flex-grow:1;font-weight:500}
.nav a{padding:8px 14px;border-radius:8px;color:var(--text2)}
.nav a:hover{color:var(--text)}
.nav a.on{background:var(--surface2);color:var(--accent);font-weight:600}
.hdr-tools{display:flex;gap:10px;align-items:center}
.search{width:230px;height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit}
.btn-theme{height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);display:flex;align-items:center;gap:8px;font:inherit;font-size:12px;cursor:pointer}
.ftr{border-top:1px solid var(--border);background:var(--surface);padding:28px 32px;display:flex;gap:24px;flex-wrap:wrap;justify-content:space-between;color:var(--text2);font-size:12px;margin-top:40px}
.ftr nav{display:flex;gap:16px;flex-wrap:wrap}
.ftr a:hover{color:var(--accent)}

/* layout */
.page{display:flex;gap:32px;flex-wrap:wrap;align-items:flex-start;padding:24px 32px 0;max-width:1360px;margin:0 auto}
.col-main{flex:999 1 720px;min-width:0;display:flex;flex-direction:column;gap:28px}
.col-side{flex:1 1 300px;max-width:340px;min-width:280px;display:flex;flex-direction:column;gap:20px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px}
.card h3{margin:0 0 8px;font-size:22px;font-weight:800}
h2.sec{margin:0;font-size:32px;font-weight:800}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.sec-head .muted{font-size:12px}

/* hero */
.hero{border:1px solid var(--border);border-radius:18px;background:linear-gradient(120deg,var(--hero) 0%,var(--surface) 55%);padding:32px;display:flex;flex-direction:column;gap:14px}
.hero h1{margin:0;font-size:clamp(38px,6vw,60px);line-height:.95;font-weight:800;max-width:640px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{margin:0;max-width:560px;color:var(--text2);font-size:16px}
.pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid var(--border);color:var(--text2);background:var(--surface)}
.pill.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700}
.btn{display:inline-block;padding:12px 20px;border-radius:10px;border:1px solid var(--border);background:transparent;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.btn.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700}
.btn.sm{padding:8px 14px;font-size:13px}

/* top picks */
.picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pick{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:12px}
.pick:hover{border-color:var(--accent)}
.pick .meta{display:flex;justify-content:space-between;font-size:12px;color:var(--text2);gap:8px}
.pick .teams{font-size:24px;font-weight:700;line-height:1.1}
.pick .row{display:flex;align-items:flex-end;justify-content:space-between}
.big{font-size:44px;font-weight:800;line-height:1;color:var(--accent)}
.tm{display:inline-flex;align-items:center;gap:8px}
.logo{width:22px;height:22px;object-fit:contain;border-radius:50%;flex-shrink:0}
.logo-fb{width:22px;height:22px;border-radius:50%;background:var(--surface2);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:var(--text2);flex-shrink:0}
.bar{display:flex;height:8px;border-radius:99px;overflow:hidden;gap:2px}
.bar.s{height:6px}.bar.l{height:14px;gap:3px}
.bar i{display:block}
.bar .h{background:var(--accent)}.bar .d{background:var(--draw)}.bar .a{background:var(--away)}
.oddbox{font-weight:700;padding:6px 12px;border-radius:8px;background:var(--surface2);border:1px solid var(--border)}

/* controls */
.tabs{display:flex;gap:4px;padding:4px;border-radius:10px;background:var(--surface);border:1px solid var(--border);flex-wrap:wrap}
.tabs button{padding:8px 14px;border-radius:7px;border:0;background:transparent;color:var(--text2);font:inherit;font-weight:600;cursor:pointer}
.tabs button[aria-selected="true"]{background:var(--accent);color:var(--on-accent);font-weight:700}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:7px 14px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text2);font:inherit;font-size:13px;cursor:pointer}
.chip.on{border-color:var(--accent);color:var(--accent);font-weight:600}

/* match list */
.list{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.lg{padding:10px 18px;background:var(--surface2);font-size:12px;font-weight:700;color:var(--text2);letter-spacing:.06em;text-transform:uppercase;border-top:1px solid var(--border)}
.lg:first-child{border-top:0}
.mrow{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid var(--border)}
.mrow:hover{background:var(--surface2)}
.mrow .t{width:56px;color:var(--text2);font-size:13px}
.mrow .tms{flex:1 1 200px;min-width:0;font-weight:600;display:flex;flex-direction:column;gap:4px}
.odds{display:flex;gap:6px}
.odd{min-width:54px;text-align:center;padding:8px 10px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.odd small{display:block;color:var(--text2);font-weight:500;font-size:10px}
.odd:hover,.odd.in{border-color:var(--accent)}
.odd.hi{color:var(--accent);border-color:var(--accent);font-weight:700}
.odd.in{background:var(--accent-soft)}
.prob{width:150px;display:flex;flex-direction:column;gap:5px}
.prob .l{display:flex;justify-content:space-between;font-size:12px}
.lvl{width:78px;text-align:center;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:700}
.lvl.strong{background:var(--accent);color:var(--on-accent)}
.lvl.lean{background:var(--accent-soft);color:var(--accent)}
.lvl.none{border:1px solid var(--border);color:var(--text2);font-weight:600}
.empty{padding:32px;text-align:center;color:var(--text2)}
.legend{margin:0;font-size:12px;color:var(--text2)}

/* slip */
.slip-item{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}
.slip-item button{background:none;border:0;color:var(--text2);cursor:pointer;font-size:16px}
.kv{display:flex;justify-content:space-between;gap:10px;margin:6px 0}
.kv strong.big2{font-size:20px;color:var(--accent)}

/* record */
.rec{display:flex;gap:8px}
.rec>div{flex:1;padding:12px;border-radius:10px;background:var(--bg);border:1px solid var(--border);text-align:center}
.rec b{font-size:26px;font-weight:800;display:block;line-height:1.1}
.rec small{color:var(--text2)}

/* ad slots */
.ad{display:flex;align-items:center;justify-content:center;border:1px dashed var(--border);border-radius:10px;color:var(--text2);font-size:12px;letter-spacing:.08em;text-transform:uppercase;overflow:hidden}
.ad.hide{display:none}
.ad-top{min-height:90px;margin:16px auto 0;max-width:728px}
.ad-side{min-height:250px}
.ad-inline{min-height:120px}

/* match page */
.mh-hero{border:1px solid var(--border);border-radius:18px;background:linear-gradient(120deg,var(--hero) 0%,var(--surface) 55%);padding:28px 32px;display:flex;flex-direction:column;gap:20px}
.vs{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.side{display:flex;align-items:center;gap:16px;flex:1 1 220px}
.side.r{justify-content:flex-end;text-align:right}
.side .nm{font-size:40px;font-weight:800;line-height:1}
.crest{width:72px;height:72px;border-radius:50%;background:var(--surface);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;font-size:26px;font-weight:800}
.crest img{width:52px;height:52px;object-fit:contain}
.lean{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.lean .k{font-size:12px;color:var(--text2);text-transform:uppercase;letter-spacing:.08em}
.lean .v{font-size:36px;font-weight:800;line-height:1.1}
.lean .pct{font-size:64px;font-weight:800;line-height:.9;color:var(--accent)}
.legend3{display:flex;justify-content:space-between;font-size:13px;flex-wrap:wrap;gap:8px}
.mg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mk{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.mkh{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:700;font-size:13px}
.src{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text2);white-space:nowrap}
.src.m{color:var(--accent)}
.mc{display:flex;gap:6px;flex-wrap:wrap}
.ch{flex:1 1 72px;text-align:center;padding:8px 6px;border:1px solid var(--border);border-radius:8px;font-size:12px;color:var(--text2);line-height:1.3;background:transparent;font-family:inherit}
button.ch{cursor:pointer}
button.ch:hover,.ch.in{border-color:var(--accent)}
.ch b{display:block;font-size:15px;color:var(--text)}
.ch.hi{border-color:var(--accent)}.ch.hi b{color:var(--accent)}
.pl{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:6px 0;border-top:1px solid var(--border)}
.pl:first-child{border-top:0}
.more{font-size:12px;color:var(--accent);background:none;border:0;padding:0;cursor:pointer;text-align:left;font-family:inherit}
.gh{margin:6px 0 -2px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text2)}
.h2h{background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.h2h div{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid var(--border)}
.h2h div:first-child{border-top:0}
.note{border:1px solid var(--border);border-radius:14px;padding:16px 18px;background:var(--surface);display:flex;gap:12px;align-items:flex-start}
.note .i{width:28px;height:28px;border-radius:50%;background:var(--surface2);display:flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:700;color:var(--amber)}
.crumb{font-size:12px;color:var(--text2)}
.crumb a:hover{color:var(--accent)}
.side-list a{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--border)}

/* tools */
.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tool{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0;text-align:left;color:var(--text);font:inherit;cursor:pointer}
.tool:hover{border-color:var(--accent)}
.tool h3{margin:0;font-size:22px;font-weight:800}
.tool p{margin:0;color:var(--text2);font-size:13px}
.tool.soon{opacity:.75;cursor:default}.tool.soon:hover{border-color:var(--border)}
.tag{align-self:flex-start;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}
.tag.w{background:rgba(255,178,62,.14);color:var(--amber)}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:14px}
.panel h2{margin:0;font-size:32px;font-weight:800}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.field{display:flex;flex-direction:column;gap:4px}
.field label{font-size:12px;color:var(--text2)}
.field input,.field select{height:42px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;font-size:15px}
.res{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.res>div{padding:14px;border-radius:12px;background:var(--bg);border:1px solid var(--border)}
.res small{color:var(--text2);display:block}
.res strong{font-size:26px;font-weight:800;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase}
.res .good strong{color:var(--accent)}
.res>div.good{border-color:var(--accent)}
table.t{width:100%;border-collapse:collapse;font-size:13px}
table.t th,table.t td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left}
table.t th{color:var(--text2);font-weight:600}
.back{background:none;border:0;color:var(--accent);cursor:pointer;font:inherit;padding:0;text-align:left}

/* articles / prose */
.prose{max-width:760px}
.prose h1{font-size:clamp(34px,5vw,52px);line-height:1;margin:0 0 12px;font-weight:800}
.prose h2{font-size:28px;margin:28px 0 8px;font-weight:800}
.prose p,.prose li{font-size:16px;line-height:1.7;color:var(--text)}
.prose p.lead{font-size:18px;color:var(--text2)}
.prose a{color:var(--accent);text-decoration:underline}
.prose table{border-collapse:collapse;width:100%;margin:12px 0}
.prose th,.prose td{border:1px solid var(--border);padding:8px 12px;text-align:left}
.arts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.art{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:8px}
.art:hover{border-color:var(--accent)}
.art h3{margin:0;font-size:26px;font-weight:800;line-height:1.1}

/* age gate */
.gate{position:fixed;inset:0;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;z-index:200;padding:20px}
.gate .box{max-width:440px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:28px;display:flex;flex-direction:column;gap:14px}
.gate h2{margin:0;font-size:34px;font-weight:800}
.gate .acts{display:flex;gap:10px;flex-wrap:wrap}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--accent);color:var(--on-accent);padding:10px 16px;border-radius:10px;font-weight:700;z-index:300}
.skel{height:64px;border-radius:12px;background:linear-gradient(90deg,var(--surface),var(--surface2),var(--surface));background-size:200% 100%;animation:sk 1.4s linear infinite;margin:10px}
@keyframes sk{to{background-position:-200% 0}}

@media (max-width:900px){
 .picks,.tool-grid{grid-template-columns:1fr}
 .arts,.mg{grid-template-columns:1fr}
 .col-side{max-width:none}
 .hdr,.rg-bar,.ftr{padding-left:16px;padding-right:16px}
 .page{padding:16px 16px 0}
 .search{width:100%}
 .hdr-tools{width:100%}
 .prob{width:100%}
 .side .nm{font-size:28px}
 .lean .pct{font-size:48px}
}

/* v2: model estimates and results */
.lvl.model{border:1px dashed var(--border);color:var(--text2);font-weight:600}
.rt{font-weight:800;font-size:16px;width:20px;text-align:center}
.rt.ok{color:var(--accent)}
.rt.no{color:#e5484d}
.mrow .t b{color:var(--text)}

/* ---- prediction category pages ---- */
.chd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:28px 0 12px}
.chd h2{margin:0}
.cbadge{padding:3px 10px;border-radius:999px;font-size:12px;border:1px solid var(--border);color:var(--text2);background:var(--surface)}
.cbadge.on{background:var(--accent-soft);color:var(--accent);border-color:transparent;font-weight:700}
.mlist{display:flex;flex-direction:column;gap:8px;margin:0 0 20px}
.prose a.crow,a.crow{display:grid;grid-template-columns:64px minmax(0,1.25fr) minmax(0,1fr) 74px 26px;align-items:center;gap:6px 14px;padding:11px 14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text);text-decoration:none;transition:border-color .15s,transform .15s}
.prose a.crow:hover,a.crow:hover{border-color:var(--accent);transform:translateY(-1px)}
a.crow .ct{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;line-height:1.2;color:var(--text2);text-align:center;border-right:1px solid var(--border);padding-right:12px;min-height:40px}
a.crow .ct b{font-size:16px;color:var(--text);letter-spacing:.02em}
a.crow .ct i{font-style:normal;font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
a.crow .ct .lv{color:var(--accent)}
a.crow .ct .tm0{font-size:15px;font-weight:700;color:var(--text)}
a.crow .cm{display:flex;flex-direction:column;gap:5px;min-width:0}
a.crow .ctm{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;min-width:0}
a.crow .ctm>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.crow .clg{font-size:11.5px;color:var(--text2);margin-top:1px}
a.crow .cpk{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
a.crow .cpk b{font-size:14px;font-weight:700;color:var(--text);line-height:1.25}
a.crow .cpk .lvl{width:auto;display:inline-block;padding:2px 8px;font-size:11px}
a.crow .cpk small{font-size:11px;color:var(--text2)}
a.crow .cp{display:flex;flex-direction:column;align-items:flex-end;font-weight:800;font-size:18px;color:var(--accent);line-height:1.1}
a.crow .cp small{font-weight:500;font-size:11px;color:var(--text2);margin-top:3px}
a.crow .crt{justify-self:center}
@media (max-width:640px){
  .prose a.crow,a.crow{grid-template-columns:54px minmax(0,1fr) auto 20px;grid-template-areas:"t m c x" "t k k x";padding:10px 12px;gap:6px 10px}
  a.crow .ct{grid-area:t;padding-right:8px}
  a.crow .cm{grid-area:m}
  a.crow .cp{grid-area:c}
  a.crow .crt{grid-area:x;align-self:center}
  a.crow .cpk{grid-area:k;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 8px;border-top:1px dashed var(--border);padding-top:8px}
}
.catnav{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.catnav div{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.catnav strong{min-width:92px;font-size:13px}
.catnav a{padding:4px 10px;border:1px solid var(--border);border-radius:999px;font-size:13px;text-decoration:none;color:var(--text2);background:var(--surface)}
.catnav a:hover{border-color:var(--accent);color:var(--text)}
.catnav a.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700}

.glance{margin:6px 0 12px;padding:10px 12px;border-left:3px solid var(--accent);background:var(--surface);border-radius:8px;font-size:14px;line-height:1.5}
