/* =====================================================================
   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. */
@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{margin-left:auto;gap:8px}.btns .ghost{display:none}
  .btns .b{min-height:40px;padding:0 16px;font-size:14px;border-radius:10px;box-shadow:none;justify-content:center}

  /* ---- 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)}
  .tp{max-width:none;justify-self:stretch}
  .tp .lbl{font-size:16px}
  .tp .vs{margin:14px 0}.tp .vs img{width:48px;height:48px}
  .tp .vs div{font-size:16px}
  .tp .cf{display:inline-block;margin-top:14px;padding:8px 16px;border-radius:99px;font-size:14px}

  /* 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:13px;color:var(--m);text-align:right}
  .mn .tb td:nth-child(2){grid-area:lg;font-size:13px;color:var(--m);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mn .tb td:nth-child(3){grid-area:mt;font-weight:700;font-size:16px;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:14.5px}
  .mn .tb td:nth-child(5){grid-area:od;font-weight:800;color:#fff;font-size:15px}
  .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:4px 12px}

  /* 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:13px;color:var(--m);text-align:right;white-space:nowrap}
  .pw .tb td:nth-child(2){grid-area:lg;font-size:13px;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:16px}
  .pw .tb td:nth-child(3) b{font-size:16px;line-height:1.3}
  .pw .tb td:nth-child(4){grid-area:pr;color:var(--g);font-weight:700;font-size:15px}
  .pw .tb td:nth-child(5){grid-area:od;font-size:16px}
  .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}}
