/* =====================================================================
   mobile.css  v2  -  loaded LAST on every page (see lib/layout.php).
   Desktop (>1000px) is untouched, except Inter now loads properly.

   What changed vs v1:
   - phone body text 14px -> 16px, and nothing smaller than 12px anywhere
   - tap targets 44-48px (inputs 48, buttons 44-46, links 40 hit area)
   - hero "Get Started" button is compact instead of full width
   - no blur / infinite float on phones (smoother scroll, less battery)
   - Inter is self-hosted (no Google round trip, same look on every phone)
   ===================================================================== */

@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---- always on: stop iOS text inflation, stop sideways scroll ---- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:72px}
body{overflow-x:clip}
img,svg,video,canvas{max-width:100%}
.bnav{display:none}

/* ---- tablets and phones (<= 1000px) -------------------------------
   grids written as "1fr" can never shrink below their widest child, so
   minmax(0,1fr) lets columns shrink and tables scroll inside their box. */
/* Today's Top Pick: phone-only layout block (see index.php .tpm) */
.tpm{display:none}

@media(max-width:1000px){
  .h2 .wrap,.mn,.wh,.ph .wrap,.pw,.bw,.vg,.ad-grid,.sd-hero .wrap{grid-template-columns:minmax(0,1fr)!important}
  .wrap>*,.glass,.col,.mn>div,.pw>*,.bw>*,.vg>*{min-width:0}
  .dh{grid-template-columns:minmax(0,1fr)!important}
  .tw{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* touch screens: no sticky hover states */
@media(hover:none){
  .b:hover{transform:none}
  .glass:hover{box-shadow:none}
}

/* =====================================================================
   PHONE TYPE FLOOR (<= 760px)
   Generated from the real font sizes in app/home/pred/bet/vip/doctor/auth
   css: 9-11px -> 12px, 11.5-12px -> 13px, 12.5 -> 13.5, 13 -> 14 ...
   The hand-written phone block below overrides where it needs to.
   ===================================================================== */
@media(max-width:760px){
  body{font-size:16px}
  .b{font-size:16px}
  .tag{font-size:14px}
  .lbl{font-size:13px}
  .vs span{font-size:14px}
  .ring b{font-size:15px}
  .triL{font-size:12px}
  .stat span{font-size:14px}
  .mc .top{font-size:13px}
  .mc .teams em{font-size:13px}
  .chip{font-size:14px}
  .odds{font-size:13px}
  label{font-size:14px}
  .note{font-size:13.5px}
  .leg .n{font-size:13px}
  .sum div{font-size:13px}
  .steps p{font-size:15px}
  footer{font-size:13.5px}
  .bk span{font-size:14px}
  .fs div{font-size:13.5px}
  .fs b{font-size:14px}
  .pend{font-size:14px}
  .va{font-size:13px}
  .tb{font-size:14.5px}
  .pc{font-size:13px}
  .pm{font-size:14px}
  .pm .fo span{font-size:13px}
  .bk4 div{font-size:16px}
  .bk4 small{font-size:12px}
  .nw{font-size:11px}
  .wf div{font-size:13px}
  .wf b{font-size:14px}
  .ws span{font-size:13px}
  footer .fr b{font-size:16px}
  .tb th{font-size:13px}
  .pm b{font-size:13.5px}
  .bf p{font-size:16px}
  .bf label{font-size:13px}
  .bf input,.bf select{font-size:15px}
  .mi span{font-size:14px}
  .bf .big{font-size:15px}
  .cap{font-size:12px}
  .bf .note{font-size:12px}
  .h2 .lead{font-size:16px}
  .pk .cr2 em{font-size:11px}
  .pk .tm{font-size:13px}
  .pk .lg2{font-size:12px}
  .pk .tip{font-size:12px}
  .pk .rg b{font-size:13px}
  .pk .pf span{font-size:12px}
  .pk .pf span b{font-size:16px}
  .ph .sub{font-size:15px}
  .hf div{font-size:13px}
  .hf b{font-size:13px}
  .sm h3{font-size:16px}
  .sm h3 small{font-size:13px}
  .s3 small{font-size:12px}
  .s3 i{font-size:12px}
  .pr2 small{font-size:12px}
  .pr2 i{font-size:12px}
  .tabs a{font-size:14px}
  .fl select,.fl input{font-size:14px}
  .bs h3 small{font-size:13px}
  .lgc span{font-size:13px}
  .mt b{font-size:13.5px}
  .lv{font-size:12px}
  .dtl{font-size:13px}
  .dx span{font-size:12px}
  .dx b{font-size:16px}
  .pgn{font-size:13.5px}
  .ig b{font-size:14px}
  .ig small{font-size:13px}
  .ig em{font-size:12px}
  .hrw b{font-size:15px}
  .hrw small{font-size:12px}
  .mb{font-size:13.5px}
  .mb b{font-size:13px}
  .pcta p{font-size:13px}
  .pcta .b{font-size:14px}
  .bi div{font-size:13px}
  .bh .sub{font-size:15px}
  .stp li{font-size:13px}
  .stp i{font-size:12px}
  .fg label,.bl{font-size:13px}
  .fg small{font-size:12px}
  .mi input{font-size:15px}
  .seg span{font-size:13px}
  .bs .big{font-size:15px}
  .ai{font-size:11px}
  .ct{font-size:13px}
  .mn2 b{font-size:13.5px}
  .mn2 small{font-size:12px}
  .sf small{font-size:12px}
  .sf .b{font-size:14px}
  .empty{font-size:15px}
  .pl div{font-size:14px}
  .hl{font-size:13.5px}
  .rb{font-size:11px}
  .hw i{font-size:12px}
  .hw b{font-size:13.5px}
  .hw small{font-size:12px}
  .sc b{font-size:16px}
  .sc p{font-size:13.5px}
  .ps{font-size:13px}
  .pg div{font-size:13px}
  .pg b{font-size:13.5px}
  .pv{font-size:13.5px}
  .ga .b{font-size:15px}
  .gate small{font-size:12px}
  .st{font-size:12px}
  .vcode small{font-size:12px}
  .cpb{font-size:13px}
  .vm small{font-size:12px}
  .vm b{font-size:15px}
  summary{font-size:13.5px}
  details li{font-size:13px}
  .chips button{font-size:13.5px}
  .sec small{font-size:13px}
  .lt{font-size:13px}
  .lvb{font-size:12px}
  .ftb,.ktb{font-size:12px}
  .tm1{font-size:13.5px}
  .sd-hl .sub{font-size:16px}
  .sd-hf div{font-size:13px}
  .sd-hf b{font-size:13.5px}
  .sd-card h2 small{font-size:13px}
  .sd-card h3{font-size:15px}
  .sd-hint{font-size:13.5px}
  .sd-hint code{font-size:13px}
  .sd-tabs b{font-size:14.5px}
  .sd-tabs small{font-size:12px}
  label.sd-drop{font-size:14px}
  .sd-drop small{font-size:13px}
  .sd-drop .b{font-size:14px}
  .sd-ocr small{font-size:12px}
  .sd-pk label{font-size:13px}
  .sd-pk input,.sd-pk select{font-size:15px}
  .sd-pk .b{font-size:15px}
  .sd-tx label{font-size:13px}
  textarea{font-size:15px}
  .sd-m3 small{font-size:12px}
  .sd-tb{font-size:13.5px}
  .sd-tb th{font-size:12px}
  .sd-tb small{font-size:12px}
  .sd-mt b{font-size:13.5px}
  .sd-bad{font-size:12px}
  .sd-pip.sd-na{font-size:14px}
  .sd-tot{font-size:14px}
  .sd-risk{font-size:12px}
  .sd-ring small{font-size:12px}
  .sd-iss span b{font-size:13.5px}
  .sd-iss span small{font-size:13px}
  .sd-wl{font-size:12px}
  .sd-wk h3{font-size:15px}
  .sd-wk p{font-size:13.5px}
  .sd-kv{font-size:13px}
  .sd-qb{font-size:13.5px}
  .sd-notes ul{font-size:13.5px}
  .sd-why p{font-size:13.5px}
  .sd-pop button{font-size:13.5px}
  .sd-act{font-size:12px}
  .sd-none pre{font-size:13.5px}
  .sd-fold{font-size:13px}
  .sd-eb li{font-size:13px}
  .sd-eb li small{font-size:12px}
  .sd-eo{font-size:13px}
  .sd-qs input{font-size:15px}
  .sd-qs .b{font-size:14px}
  .sd-qmeta{font-size:13.5px}
  .sd-qmeta b{font-size:16px}
  .sd-qt td:nth-child(2){font-size:15px}
  .sd-vd{font-size:13px}
  .sd-pref{font-size:14px}
  .sd-how i{font-size:13px}
  .sd-how b,.sd-why2 b{font-size:14px}
  .sd-how small,.sd-why2 small{font-size:13px}
  .sd-safe b{font-size:15px}
  .sd-safe p{font-size:13.5px}
  .sd-toast{font-size:14px}
  .au-card label{font-size:14px}
  label.au-ck{font-size:13.5px}
  .au-card .b{font-size:16px}
  .au-err{font-size:14px}
  .au-link{font-size:14px}
  .au-fine{font-size:13px}
  .mbar{font-size:13.5px}
  .mbar button{font-size:13px}
  .ko{font-size:13px}
  .vc .note2{font-size:13px}
  .ad-card label{font-size:13.5px}
  .ad-card input,.ad-card select,.ad-card textarea{font-size:15px}
  .ad-card textarea{font-size:14px}
  .ad-hint{font-size:13px}
  .ad-msg{font-size:14px}
  .ad-tb{font-size:14px}
  .ad-tb th{font-size:13px}
  .ad-tb code{font-size:14px}
  .ad-act button{font-size:13px}
}

/* ---- phones (<= 760px) ------------------------------------------ */
@media(max-width:760px){
  body{font-size:16px;line-height:1.5;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .wrap{padding:0 16px}

  /* inputs 16px so iPhones do not zoom, 48px tall so thumbs hit them */
  input,select,textarea{font-size:16px!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]),select{min-height:48px;padding:12px 14px}
  .b,.nav nav a,.tabs a,.dtl{white-space:nowrap}
  .b:active{transform:scale(.98)}

  /* ---- compact sticky header (solid, no blur: smoother scroll) ---- */
  .nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:#04070f}
  .nav .wrap{height:58px;gap:10px}
  .logo{font-size:22px;gap:8px}
  .logo img,.logo .lg{width:36px!important;height:36px!important;font-size:32px}
  .logo small{font-size:7.5px;letter-spacing:1.8px;margin-top:-3px}
  .btns{display:none}  /* header "Get Started" removed on phones; hero button stays */

  /* ---- bottom tab bar (like the betting apps) ---- */
  .bnav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:70;
    background:#060a14;border-top:1px solid var(--bd);
    padding:6px 2px calc(6px + env(safe-area-inset-bottom,0px))}
  .bnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:4px 0;font-size:11px;line-height:1.1;color:var(--m);white-space:nowrap;-webkit-tap-highlight-color:transparent}
  .bnav .ic{width:24px;height:24px}
  .bnav a.on{color:var(--g);font-weight:600}
  .bnav a.on:before{content:"";position:absolute;top:-7px;left:28%;right:28%;height:2px;border-radius:2px;background:var(--g)}
  .bnav i{position:absolute;top:5px;left:calc(50% + 9px);width:8px;height:8px;border-radius:50%;background:var(--r)}

  /* ---- generic cards: solid-ish, no blur, no hover glow ---- */
  .glass{padding:16px;border-radius:16px;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(14,20,35,.82)}
  .glass:hover{box-shadow:none}
  .pick{animation:none}
  .bs{padding:16px;border-radius:16px}
  .mn,.pw{gap:14px}.mn>div,.col{gap:14px}
  footer{padding:28px 0 12px;margin-top:16px}
  footer .fr{flex-direction:column;align-items:flex-start;gap:14px}
  footer .fr nav{display:flex;flex-wrap:wrap;gap:0 18px}
  footer .fr nav a{display:inline-flex;align-items:center;min-height:40px;font-size:14px}
  footer p{font-size:13px;line-height:1.55}

  /* "View all" style links get a real thumb-sized hit area */
  .va{display:inline-flex;align-items:center;min-height:40px;margin-top:-10px;margin-bottom:-10px}

  /* =============== HOME =============== */
  .h2{padding:0 0 22px;background:var(--bg)}
  .h2:before{content:"";position:absolute;left:0;right:0;top:0;height:230px;
    background:var(--hero-m,var(--hero,radial-gradient(400px 200px at 70% 30%,rgba(0,194,255,.28),transparent 70%))) 60% 20%/cover no-repeat}
  .h2:after{content:"";position:absolute;left:0;right:0;top:0;height:230px;background:linear-gradient(180deg,rgba(4,7,15,.1) 0,rgba(4,7,15,.5) 55%,var(--bg) 100%)}
  .h2 .wrap{position:relative;z-index:1;padding-top:154px!important;min-height:0;gap:18px}
  .tag{font-size:13px;padding:6px 14px}
  .h2 h1{font-size:clamp(30px,8.6vw,36px);line-height:1.06;letter-spacing:-1px;margin:14px 0 10px}
  .h2 .lead{font-size:16px;line-height:1.55}
  .fs{display:none}
  /* compact CTA: auto width, 46px tall, soft glow (was full-width and glowing) */
  .h2 .b{width:auto;min-height:46px;padding:0 22px;font-size:15px;margin-top:16px;border-radius:12px;justify-content:center;box-shadow:0 8px 20px -10px rgba(34,240,138,.55)}
  /* ---- Today's Top Pick card (phone): label, crests, recommended pick, odds + confidence bar ---- */
  .tp{max-width:none;justify-self:stretch;padding:14px 16px 16px;border-radius:18px}
  .tp .lbl{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;gap:10px}
  .tp .lbl .ic{display:none}
  .tp .lbl::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--g);box-shadow:0 0 10px rgba(34,240,138,.8)}
  .tp .vs{margin:12px 0 12px;align-items:flex-start}
  .tp .vs>div{flex:1;min-width:0;font-size:14px;font-weight:700;line-height:1.25;color:#fff}
  .tp .vs img{width:44px;height:44px;margin-bottom:6px}
  .tp .vs>span{flex:none;align-self:flex-start;margin-top:10px;padding:6px 10px;border-radius:99px;background:rgba(255,255,255,.07);color:#c9d5ee;font-size:12px;font-weight:800}
  .tpd{display:none}
  .tpm{display:block;border-top:1px solid var(--bd);padding-top:12px}
  .tpm .k{display:block;font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;color:var(--m);font-weight:700}
  .tpm .pk2{font-size:19px;font-weight:800;line-height:1.2;color:#fff;margin:4px 0 12px;letter-spacing:-.3px}
  .tpm .tr{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .tpm .fo{padding-right:16px;border-right:1px solid var(--bd)}
  .tpm .fo b{display:block;margin-top:4px;font-size:28px;line-height:1;font-weight:800;color:var(--g);letter-spacing:-1px}
  .tpm .cn{padding-left:16px}
  .tpm .cl{display:flex;align-items:center;gap:8px;color:var(--g);font-size:13px;font-weight:700;white-space:nowrap}
  .tpm .bar{display:block;height:6px;margin-top:9px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
  .tpm .bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#12c96e,var(--g))}

  /* ---- Bet For Me form: stack Budget/Target, quiet caption (was bold and touching the button) ---- */
  .bf .two{grid-template-columns:1fr;gap:0}
  .bf p.cap,.bf p.note{font-weight:400;font-size:12px;line-height:1.45;color:var(--m)}
  .bf p.cap{margin:14px 0 0}
  .bf p.note{margin-top:10px}

  /* upcoming matches: table rows become compact match cards */
  .mn .tb,.mn .tb tbody{display:block}
  .mn .tb tr:has(th){display:none}
  .mn .tb tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"lg lg tm" "mt mt mt" "tip od pc";gap:8px 12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--bd)}
  .mn .tb tr:last-child{border-bottom:0}
  .mn .tb td{display:block;padding:0;border:0;white-space:normal;min-width:0}
  .mn .tb td:nth-child(1){grid-area:tm;font-size:12px;color:var(--m);text-align:right}
  .mn .tb td:nth-child(2){grid-area:lg;font-size:12px;color:var(--m);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mn .tb td:nth-child(3){grid-area:mt;font-weight:600;font-size:14px;line-height:1.3}
  .mn .tb td:nth-child(3) span{max-width:none;display:inline;white-space:normal;vertical-align:middle}
  .mn .tb td:nth-child(4){grid-area:tip;color:var(--g);font-weight:700;font-size:13px}
  .mn .tb td:nth-child(5){grid-area:od;font-weight:800;color:#fff;font-size:14px}
  .mn .tb td:nth-child(5):before{content:"@";color:var(--m);font-weight:500}
  .mn .tb td:nth-child(6){grid-area:pc;justify-self:end}
  .mn .tb tr:has(td[colspan]){display:block}
  .pc{padding:3px 10px;font-size:11px;min-width:46px}

  /* top predictions: swipe sideways instead of a tall grid */
  .g5{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:2px 16px 8px;scrollbar-width:none}
  .g5::-webkit-scrollbar{display:none}
  .g5 .pk{flex:0 0 176px;scroll-snap-align:start}
  .g5 .pend{flex:1}

  .wh .nb{display:none}.wf{grid-template-columns:1fr 1fr}.wh{gap:8px}.ws{margin:0 0 12px;padding:16px}
  .bk4{grid-template-columns:1fr 1fr}

  /* =============== PREDICTIONS =============== */
  .ph{padding:16px 0 14px}
  .ph .wrap{min-height:0;gap:14px}
  .ph h1{font-size:clamp(30px,8.6vw,36px);margin:10px 0 8px;letter-spacing:-1px}
  .ph .sub{font-size:15px;margin:0 0 12px}
  .hf{display:none}
  .ph .b{width:auto;min-height:46px;padding:0 22px;justify-content:center}
  .sm{padding:16px}.s3 b{font-size:20px}

  /* filter bar sticks under the header while you scroll the list */
  .tbar{position:sticky;top:58px;z-index:40;-webkit-backdrop-filter:none;backdrop-filter:none;background:#04070f}
  .tbar .wrap{gap:0}
  .tabs{max-width:100%;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
  .tabs a{padding:14px 14px;font-size:14px}
  .fl{width:100%;padding:0 0 12px}.fl select,.fl input{flex:1;width:auto;min-width:0}

  /* prediction table: every row becomes one match card */
  .pw .tb,.pw .tb tbody{display:block}
  .pw .tb tr:has(th){display:none}
  .pw .tb tr{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"lg lg lg tm" "mt mt mt mt" "pr pr pr pr" "od pc lv dt";gap:8px 12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--bd)}
  .pw .tb td{display:block;padding:0;border:0;white-space:normal;min-width:0}
  .pw .tb td:nth-child(1){grid-area:tm;font-size:12px;color:var(--m);text-align:right;white-space:nowrap}
  .pw .tb td:nth-child(2){grid-area:lg;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pw .tb td:nth-child(3){grid-area:mt;min-width:0;white-space:normal;font-size:14px;font-weight:600}
  .pw .tb td:nth-child(3) b{font-size:14px;font-weight:600;line-height:1.3}
  .pw .tb td:nth-child(4){grid-area:pr;color:var(--g);font-weight:700;font-size:13px}
  .pw .tb td:nth-child(5){grid-area:od;font-size:14px}
  .pw .tb td:nth-child(5):before{content:"Odds";display:block;font-size:12px;font-weight:500;color:var(--m)}
  .pw .tb td:nth-child(6){grid-area:pc}
  .pw .tb td:nth-child(7){grid-area:lv}
  .pw .tb td:nth-child(8){grid-area:dt;justify-self:end}
  .dtl{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;font-size:14px}
  /* expanded details row (shown when you tap "Details") */
  .pw .tb tr.dr{display:none;padding:0;border:0}
  .pw .tb tr.dr.open{display:block;border-bottom:1px solid var(--bd)}
  .pw .tb tr.dr td,.pw .tb tr.dr td:nth-child(1){display:block;grid-area:auto;text-align:left;color:inherit;font-size:inherit;white-space:normal;padding:8px 0 14px}
  .pw .tb tr.dr td:before{display:none}
  .pw .tb .eg{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--m)}
  .pw .tb .lgc img{width:20px;height:20px;max-width:20px}
  .mh,.mr{gap:8px}
  /* selection bar sits above the bottom tab bar */
  /* predictions.php sets #slip{bottom:0;z-index:60} in an inline style that loads after this file,
     which hid the slip bar behind the tab bar. "body" in front wins on specificity. */
  body #slip{bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:65;padding:10px 16px;-webkit-backdrop-filter:none;backdrop-filter:none;background:#060a14;border-bottom:1px solid var(--bd)}
  .ss{gap:10px}
  .bn{flex-wrap:wrap;padding:0 16px 14px}.bn .nb{width:100%;min-height:80px}.bi{flex-direction:column;gap:10px}

  /* =============== OTHER PAGES =============== */
  .fg,.pg,.bkp{grid-template-columns:1fr 1fr}
  .sf{grid-template-columns:1fr 1fr;gap:12px}
  .lgrid,.vgrid,.teaser{grid-template-columns:minmax(0,1fr)}
  .ad-row{grid-template-columns:minmax(0,1fr)}
  .sd-pk{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cards{grid-template-columns:minmax(0,1fr)}
  .stats .wrap,.steps{grid-template-columns:1fr 1fr}
  .au-card{padding:24px 18px}
  /* predictions.php has its own inline <style> that loads AFTER this file,
     so these use "body" in front to win on specificity */
  body .db>small{font-size:12px}
  body .pickb span,body .poh span,body .rt{font-size:13px}
  body .rt i,body .lg2{font-size:12px}
  body .lg2 b{font-size:12px}
  body .wl span{font-size:13.5px}
  body .kn span,body .mh{font-size:12px}
  body #slip .sp{font-size:13px;padding:7px 10px}
  body #slip .sp button{font-size:20px;min-width:32px;min-height:32px}
  body #slip .ss span{font-size:12px}
  body #slip .sc{font-size:13px;min-height:40px;padding:0 14px}
  .b.big{min-height:50px}
}

/* very small phones */
@media(max-width:360px){
  .logo small{display:none}
  .h2 h1,.ph h1{font-size:28px}
  .bnav a{font-size:10.5px}
  .g5 .pk{flex-basis:164px}
}

@media(prefers-reduced-motion:reduce){.g5{scroll-behavior:auto}}

/* ---- lighter weights on phones (less "bold everywhere"): home + shared ---- */
@media(max-width:760px){
  .h2 h1,.ph h1{font-weight:800}
  .b,.pc,.cf{font-weight:700}
  .tag{font-weight:600}
  .h2 .lead b{font-weight:600}
  .bf p,.bf h3{font-weight:500}
  .bf p.cap,.bf p.note{font-weight:400}
  .mn h3,.wh h3,.glass h3{font-weight:600}
  .lbl{font-weight:600}
  .pk .tm,.pk .tip,.pk .pf b,.pk .pf span b{font-weight:600}
  .mc .teams,.chip{font-weight:600}
  .mn .tb td:nth-child(4),.pw .tb td:nth-child(4){font-weight:600}
  .mn .tb td:nth-child(5){font-weight:700}
  .wi b,.fs b,.sum b,.odds b{font-weight:600}
  .tp .vs>div{font-weight:600}
  .tpm .pk2{font-weight:700}
  .tpm .fo b{font-weight:700}
  .tpm .cl{font-weight:600}
}

/* ---- Predictions page (phone): go straight to the picks ---- */
@media(max-width:760px){
  .ph .b,.ph .sm{display:none!important}   /* "Explore Predictions" button + Prediction Summary card */
  .ph{padding:14px 0 6px}
}

/* ---- Predictions page (phone): lighter weights ---- */
@media(max-width:760px){
  .lv,.pgn a,.ig em{font-weight:600}
  .bs h3{font-weight:600}
  .bs h3 small{font-weight:400}
  .pw .tb td:nth-child(5) b,.pw .tb td:nth-child(5){font-weight:700}
  .pw .tb td:nth-child(3),.pw .tb td:nth-child(3) b{font-weight:600}
  .poh b,.poh span{font-weight:600}
  .tabs a,.dtl{font-weight:500}
  .tabs a.on{font-weight:600}
  .pw .tb .eg{font-weight:400}
}

/* ---- Predictions list (phone): wider cards -> side gap 16 -> 12px, inner padding 16 -> 14px ---- */
@media(max-width:760px){
  .pw,.tbar .wrap{padding-left:12px;padding-right:12px}
  .bs{padding:14px}
}

/* ---- Bet For Me page (phone) ---- */
@media(max-width:760px){
  .bh{padding:10px 0 16px}
  .bh h1{font-weight:800}
  .bh .sub b{font-size:15px;font-weight:600;margin-bottom:4px}
  .fg{grid-template-columns:1fr!important;gap:14px}            /* Budget + Target stacked: "Custom target (₦" no longer cut off */
  .fg>div{grid-column:auto!important;min-width:0}
  .bs h3,.pr h3,.sc b,.hw b{font-weight:600}
  .bs label,.bl{font-weight:500}
  .bs small{font-weight:400}
  .bw .glass.bs{padding:14px}
  .bw{padding-left:12px;padding-right:12px}
}

/* ---- Bet For Me: generated slip as stacked rows (Market / Odds / % were hidden off-screen to the right) ---- */
@media(max-width:760px){
  #legs,#legs tbody{display:block;width:100%}
  #legs tr:has(th){display:none}
  #legs tr{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;grid-template-areas:"n mt mt rm" ". mk od pc";gap:8px 10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--bd)}
  #legs tr:last-child{border-bottom:0}
  #legs td{display:block;padding:0;border:0;min-width:0;white-space:normal}
  #legs td:nth-child(1){grid-area:n;color:var(--m);font-size:13px}
  #legs td:nth-child(2){grid-area:mt}
  #legs td:nth-child(2) b{font-size:14px;font-weight:600;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip}
  #legs td:nth-child(2) small{font-size:12px}
  #legs td:nth-child(3){grid-area:mk;color:var(--g);font-weight:600;font-size:13px}
  #legs td:nth-child(4){grid-area:od;font-size:14px;font-weight:700;color:#fff}
  #legs td:nth-child(4):before{content:"@";color:var(--m);font-weight:500}
  #legs td:nth-child(5){grid-area:pc;justify-self:end}
  #legs td:nth-child(6){grid-area:rm;justify-self:end}
}

/* ---- AI Slip Doctor (phone): clean, just add your slip -> see the result ---- */
@media(max-width:760px){
  .sd-hf,.sd-ecg{display:none!important}                 /* 4 feature icons + heartbeat line */
  .sd-hl .sub{font-size:14px;line-height:1.5}
  /* three compact tabs in one row instead of three big stacked buttons */
  .sd-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .sd-tabs button{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;min-height:0;padding:10px 4px;border-radius:10px}
  .sd-tabs button small{display:none}
  .sd-tabs button b{font-size:12.5px;font-weight:600;line-height:1.2}
  .sd-tabs button svg{width:20px;height:20px}
  #pn-paste .sd-hint{display:none}                        /* "One selection per line, like Arsenal vs Leeds..." */
  .sd-ex{display:none}                                    /* "Try an example" cards */
  body:not(:has(#results)) .sd-low{display:none}          /* "What should I play instead?" tool only after a result */
}

/* ---- AI Slip Doctor (phone): screenshot upload only ---- */
@media(max-width:760px){
  .sd-tabs{display:none!important}                         /* no Paste / Pick-from-fixtures tabs */
  #pn-paste,#pn-pick{display:none!important}
  #pn-shot,#pn-shot[hidden]{display:block!important}       /* upload box always showing */
  /* slip text box + "Analyse slip" button: not needed, the screenshot is read and analysed automatically
     (the box stays in the form, just not shown, so the slip still gets sent) */
  .sd-tx{display:none!important}
}


/* ---- AI Slip Doctor: new upload card (all screens) ---- */
label.sd-drop{position:relative;gap:0;padding:26px 18px 22px;border:1px solid rgba(34,240,138,.35);border-radius:20px;
  background:radial-gradient(120% 90% at 50% 0%,rgba(34,240,138,.14),rgba(4,10,24,.9) 62%);box-shadow:0 0 28px -10px rgba(34,240,138,.55),inset 0 0 0 1px rgba(255,255,255,.03)}
label.sd-drop:hover,label.sd-drop.over{border-color:var(--g);background:radial-gradient(120% 90% at 50% 0%,rgba(34,240,138,.22),rgba(4,10,24,.9) 62%)}
.sd-drop .sd-cl{display:grid;place-items:center;width:74px;height:74px;margin-bottom:12px;border-radius:50%;color:var(--g);background:radial-gradient(circle,rgba(34,240,138,.22),rgba(34,240,138,.04) 70%);border:1px solid rgba(34,240,138,.4);box-shadow:0 0 22px rgba(34,240,138,.35)}
.sd-drop .sd-cl svg{width:42px;height:42px}
.sd-drop>b{font-size:22px;font-weight:700;line-height:1.15;color:#fff;letter-spacing:-.3px}
.sd-drop>b em{font-style:normal;color:var(--g)}
.sd-drop .sd-sub{margin-top:6px;font-size:13.5px;color:var(--m)}
.sd-drop .sd-pill{display:flex;align-items:center;gap:0;margin-top:16px;border:1px solid var(--bd);border-radius:99px;background:rgba(255,255,255,.03);font-size:12px;color:var(--m)}
.sd-drop .sd-pill i{font-style:normal;padding:8px 14px}
.sd-drop .sd-pill i+i{border-left:1px solid var(--bd)}
.sd-drop .b{margin-top:16px;width:100%;max-width:300px;min-height:48px;justify-content:center;border-radius:99px;font-size:15px;font-weight:700}
@media(max-width:760px){
  .sd-bks{gap:26px}
  .sd-bks img[alt="SportyBet"]{display:none}   /* 3 logos fit cleanly on a phone */
}

/* ---- AI Slip Doctor: no button, no bookmaker logos (the whole card is the upload tap area) ---- */
.sd-drop .b,.sd-bks{display:none!important}
label.sd-drop{padding-bottom:24px;cursor:pointer}

/* ---- VIP Codes (phone): smaller login card, 2 teaser cards, lighter text, 12px side gap ---- */
@media(max-width:760px){
  .vh{padding:14px 0 14px}
  .vh .wrap,.vw{padding-left:12px;padding-right:12px}
  .vh h1{font-size:clamp(26px,7.4vw,31px);font-weight:800;margin:10px 0 6px}
  .vh .sub{font-size:14px;line-height:1.5}
  .vw{padding-top:14px}
  .vg{gap:12px}
  .gate{padding:18px 16px 16px;border-radius:16px}
  .gate .lk{width:42px;height:42px;font-size:20px}
  .gate h2{font-size:17px;font-weight:600;margin:10px 0 4px;line-height:1.25}
  .gate p{font-size:14px;line-height:1.45;margin:0 0 14px}
  .ga{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .ga>:only-child{grid-column:1/-1}
  .ga .b{min-height:44px;padding:0 8px;font-size:13.5px;font-weight:600;justify-content:center;white-space:nowrap;width:100%}
  .gate small{margin-top:10px;font-size:11.5px}
  .teaser{gap:10px}
  .teaser .vc:nth-child(n+3){display:none}                 /* two locked previews are enough */
  .vc{padding:14px}
  .vc .st{font-weight:600}
  .vcode{margin:10px 0;padding:9px 11px}
  .vcode b{font-size:18px;font-weight:700}
  .vm b{font-weight:600}
}

/* ---- Predictions on desktop/laptop: keep the table inside its card (it ran under the Performance Stats card) ---- */
@media(min-width:1001px){
  .pw>.col,.pw>*{min-width:0}
  .pw .bs{min-width:0}
  .pw .tw{overflow-x:auto;max-width:100%}
  .pw .tb{font-size:12px}
  .pw .tb th,.pw .tb td{padding-left:5px;padding-right:5px}
  .pw .tb .dtl{padding:6px 9px;white-space:nowrap}
}
