/* =====================================================================
   DREAM11 CLASSIC THEME  (old red-header Dream11 look)
   Loaded AFTER fantasy.css. Every rule is prefixed with "html body" so it
   beats the per-page inline <style> blocks without needing !important.
   Change the variables below to re-colour the whole fantasy site.
   ===================================================================== */
:root{
  --d11-red:#d11f2b;
  --d11-red-dark:#a8121c;
  --d11-red-deep:#8c0d16;
  --d11-green:#1e9a45;
  --d11-green-dark:#157a35;
  --d11-gold:#f5a623;
  --d11-ink:#1c1c1c;
  --d11-grey:#6e6e6e;
  --d11-line:#e6e6e6;
  --d11-bg:#eeeeee;
  --d11-card:#ffffff;
}

/* ---------- base ---------- */
html body{background:var(--d11-bg)!important;font-family:'Roboto','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--d11-ink);}
html body .fantasy-app-shell,
html body .fantasy-mobile-page,
html body .mx-match-page,
html body .ftb-page{background:var(--d11-bg);}
html body .fantasy-mobile-page{width:min(100%,560px);box-shadow:0 0 0 1px rgba(0,0,0,.06);}
html body .fantasy-app-shell{padding-bottom:70px;}
@media (min-width:992px){html body .fantasy-mobile-page{border-radius:0;margin:0 auto;}}

/* ---------- red header (shared by every page) ---------- */
html body .fantasy-orange-header{
  background:linear-gradient(180deg,var(--d11-red) 0%,var(--d11-red-dark) 100%);
  color:#fff;padding:12px 14px 14px;border-radius:0;
  box-shadow:0 2px 6px rgba(0,0,0,.28);
}
html body .fantasy-orange-header:before,
html body .fantasy-orange-header:after{display:none;}
html body .fh-icon-btn,
html body .fh-back{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:rgba(255,255,255,.14);border:0;font-size:1.05rem;}
html body .fh-title h1,
html body .fh-title h2{font-size:1.15rem;font-weight:700;}
html body .fh-sub{font-size:.85rem;font-weight:500;opacity:.92;}
html body .fh-wallet{border-radius:4px;border:1px solid rgba(255,255,255,.55);background:transparent;padding:7px 12px;font-size:.9rem;font-weight:700;}
html body .fantasy-home-brand{font-size:1.1rem;font-weight:900;font-style:italic;letter-spacing:.5px;}
html body .fantasy-home-brand img{max-height:40px;filter:none;}

/* home: Fantasy / Prediction switch -> thin underline tabs like old Dream11 */
html body .fantasy-home-pill-tabs{gap:0;margin-top:10px;border-bottom:1px solid rgba(255,255,255,.25);}
html body .fantasy-home-pill-tabs a{flex:1;text-align:center;border:0;border-radius:0;background:transparent;padding:10px 6px 11px;font-weight:700;font-size:.92rem;color:rgba(255,255,255,.75);border-bottom:3px solid transparent;}
html body .fantasy-home-pill-tabs a.active{background:transparent;border-color:#fff;color:#fff;}
html body .fantasy-home-wallet-band{margin-top:12px;border-radius:6px;background:rgba(0,0,0,.18);border:0;}

/* ---------- Open / Locked / Completed tabs ---------- */
html body .fantasy-home-status-tabs{gap:0;margin:0 -12px 10px;background:#fff;border-bottom:1px solid var(--d11-line);overflow:auto;}
html body .fantasy-home-status-tabs a{flex:1;border:0;border-radius:0;background:#fff;color:var(--d11-grey);padding:13px 8px;font-weight:700;font-size:.9rem;border-bottom:3px solid transparent;}
html body .fantasy-home-status-tabs a.active{background:#fff;color:var(--d11-ink);border-bottom-color:var(--d11-red);}
html body .fantasy-section-wrap{padding:10px 10px 0;}
html body .fantasy-page-title{font-size:.8rem;font-weight:700;color:var(--d11-grey);text-transform:uppercase;letter-spacing:.8px;margin:6px 2px 8px;}

/* ---------- match cards (home / matches / my matches) ---------- */
html body .match-card-mobile,
html body .fd-match-card{
  margin:0 0 10px;padding:0;border-radius:6px;background:#fff;border:1px solid var(--d11-line);
  box-shadow:0 1px 3px rgba(0,0,0,.08);overflow:hidden;
}
html body .fh-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid #f1f1f1;}
html body .match-tour{font-size:.72rem;font-weight:700;color:var(--d11-grey);text-transform:uppercase;letter-spacing:.4px;margin:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body .fh-card-badges{display:flex;gap:6px;flex-wrap:nowrap;flex:0 0 auto;}
html body .fh-lineup-chip{font-size:.62rem;font-weight:700;border-radius:3px;padding:2px 6px;text-transform:uppercase;letter-spacing:.2px;background:#e9e9e9;color:#666;border:0;}
html body .fh-lineup-chip.available{background:#e6f5ea;color:var(--d11-green-dark);}
html body .fh-lineup-chip.available:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--d11-green);margin-right:4px;vertical-align:1px;}
html body .fh-joined-chip{font-size:.62rem;font-weight:700;background:#e8f0fe;color:#1a56c4;border-radius:3px;padding:2px 6px;}
/* teams | countdown | teams */
html body .match-inner{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center;padding:14px 12px 12px;}
html body .match-teams-box{display:contents;}
html body .match-teams-box .match-team-col:first-child{order:1;}
html body .match-teams-box .match-vs-icon{display:none;}
html body .match-teams-box .match-team-col:last-child{order:3;}
html body .match-time-box{order:2;background:transparent;padding:0 4px;min-width:84px;}
html body .match-team-col img,
html body .match-team-col .abbr{width:48px;height:48px;border:1px solid #ddd;box-shadow:none;margin:0 auto 6px;font-size:.95rem;}
html body .match-team-code{font-size:1rem;font-weight:900;color:var(--d11-ink);letter-spacing:.3px;}
html body .match-team-name{font-size:.68rem;color:var(--d11-grey);font-weight:500;margin-top:2px;}
html body .match-countdown{font-size:1rem;font-weight:700;color:var(--d11-red);}
html body .match-start{font-size:.72rem;font-weight:500;color:var(--d11-grey);margin-top:4px;}
/* grey footer strip: prize pool + contests */
html body .fh-card-footer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#f7f7f7;border-top:1px solid #efefef;}
html body .match-contest-chip{margin:0;color:var(--d11-ink);font-size:.8rem;font-weight:700;gap:6px;}
html body .match-contest-chip .coin{width:20px;height:20px;background:var(--d11-gold);border:0;color:#fff;font-size:.65rem;}
html body .fh-card-side-meta{font-size:.72rem;font-weight:500;color:var(--d11-grey);}

/* ---------- match page header (contests screen) ---------- */
html body .mx-header{background:linear-gradient(180deg,var(--d11-red) 0%,var(--d11-red-dark) 100%);padding:10px 12px 12px;box-shadow:0 2px 6px rgba(0,0,0,.28);}
html body .mx-header:after{display:none;}
html body .mx-back{width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.14);}
html body .mx-titlebox h1{font-size:1.2rem;font-weight:700;}
html body .mx-status{font-size:.8rem;font-weight:500;margin-top:2px;}
html body .mx-wallet{border-radius:4px;background:transparent;border:1px solid rgba(255,255,255,.55);font-size:.85rem;padding:6px 10px;}
html body .mx-switcher{margin-top:10px;gap:0;background:rgba(0,0,0,.18);border-radius:4px;padding:3px;}
html body .mx-switcher a{height:36px;border-radius:3px;border:0;background:transparent;font-size:.9rem;font-weight:700;}
html body .mx-switcher a.active{background:#fff;color:var(--d11-red);}
html body .mx-teambar{margin-top:10px;background:rgba(0,0,0,.16);border:0;border-radius:6px;padding:10px 12px;}
html body .mx-logo{width:44px;height:44px;box-shadow:none;border:1px solid rgba(255,255,255,.7);}
html body .mx-sidecode{font-size:1rem;font-weight:900;}
html body .mx-date{font-size:.8rem;font-weight:700;}
html body .mx-pillrow{gap:6px;margin-top:10px;}
html body .mx-pillrow span{padding:5px 10px;border-radius:3px;background:rgba(0,0,0,.18);font-weight:700;font-size:.72rem;}
html body .mx-subnav{display:flex;gap:6px;overflow:auto;padding:8px 10px 0;scrollbar-width:none;}
html body .mx-subnav span{background:#fff;border:1px solid var(--d11-line);border-radius:3px;padding:6px 10px;font-size:.72rem;font-weight:700;color:var(--d11-grey);white-space:nowrap;}
html body .mx-lineup-badge{border-radius:3px;background:var(--d11-green);}

/* tabs: Contests / My Contests / My Teams / Points */
html body .mx-tabs{display:grid;gap:0;padding:0;margin-top:8px;background:#fff;border-bottom:1px solid var(--d11-line);position:sticky;top:0;z-index:30;}
html body .mx-tabs a,
html body .mx-tabs.mx-tabs-four a{background:#fff;box-shadow:none;border-radius:0;padding:13px 2px;font-size:.78rem;font-weight:700;color:var(--d11-grey);border-bottom:3px solid transparent;}
html body .mx-tabs a.active{background:#fff;color:var(--d11-ink);border-bottom-color:var(--d11-red);}

/* ---------- CONTEST CARD (new markup: .d11c) ---------- */
html body .mx-listhead{padding:12px 14px 6px;font-size:.68rem;letter-spacing:.6px;color:var(--d11-grey);}
html body .mx-listhead button{color:var(--d11-ink);font-weight:700;font-size:.68rem;}
html body .d11c{display:block;margin:0 10px 10px;background:#fff;border:1px solid var(--d11-line);border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);overflow:hidden;color:inherit;text-decoration:none;}
html body .d11c.is-locked{opacity:.7;}
html body .d11c-body{padding:12px 12px 10px;}
html body .d11c-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
html body .d11c-lbl{font-size:.7rem;font-weight:500;color:var(--d11-grey);}
html body .d11c-prize{font-size:1.55rem;font-weight:900;line-height:1.1;color:var(--d11-ink);margin-top:1px;}
html body .d11c-title{font-size:.72rem;font-weight:500;color:var(--d11-grey);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;}
html body .d11c-entry{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:74px;padding:8px 12px;border-radius:4px;background:var(--d11-green);color:#fff;font-weight:900;font-size:1rem;line-height:1.1;box-shadow:0 2px 0 var(--d11-green-dark);}
html body .d11c-entry small{font-size:.58rem;font-weight:700;opacity:.9;text-transform:uppercase;letter-spacing:.4px;}
html body .d11c-entry.joined{background:#fff;color:var(--d11-green-dark);border:1.5px solid var(--d11-green);box-shadow:none;}
html body .d11c-entry.more{background:#fff;color:var(--d11-red);border:1.5px solid var(--d11-red);box-shadow:none;}
html body .d11c-entry.closed{background:#bdbdbd;box-shadow:none;}
html body .d11c-bar{height:5px;background:#f0d8d6;border-radius:3px;overflow:hidden;margin:12px 0 6px;}
html body .d11c-bar span{display:block;height:100%;background:var(--d11-red);border-radius:3px;}
html body .d11c-spots{display:flex;justify-content:space-between;font-size:.74rem;font-weight:700;}
html body .d11c-spots .left{color:var(--d11-red);}
html body .d11c-spots .all{color:var(--d11-grey);font-weight:500;}
html body .d11c-foot{display:flex;align-items:center;gap:14px;padding:7px 12px;background:#f7f7f7;border-top:1px solid #efefef;font-size:.7rem;font-weight:500;color:#555;}
html body .d11c-foot i{color:var(--d11-gold);margin-right:4px;}
html body .d11c-foot .win i{color:var(--d11-green);}
html body .d11c-foot .tag{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:18px;padding:0 5px;border:1px solid #bbb;border-radius:3px;font-weight:700;font-size:.62rem;color:#777;}
html body .d11c-foot .tag.m{border-color:var(--d11-green);color:var(--d11-green);}
/* legacy joined card on "My Contest" tab */
html body .mx-card{border-radius:6px;margin:0 10px 10px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.08);border:1px solid var(--d11-line);}
html body .mx-card.is-joined,html body .mx-card.joined-card{background:#fff;border-color:var(--d11-line);}
html body .mx-card-title{font-size:.95rem;font-weight:700;}
html body .mx-card-sub{font-size:.72rem;font-weight:500;}
html body .mx-entry{background:var(--d11-green);border-radius:4px;min-height:36px;min-width:70px;font-size:.95rem;box-shadow:0 2px 0 var(--d11-green-dark);}
html body .mx-prize{font-size:1.5rem;font-weight:900;}
html body .mx-progress{height:5px;background:#f0d8d6;}
html body .mx-progress span{background:var(--d11-red);}
html body .mx-progress.soft{background:#ececec;}
html body .mx-progress.soft span{background:var(--d11-red);}
html body .mx-meta-row span:first-child{color:var(--d11-red);}
html body .mx-btn{border-radius:4px;min-height:40px;font-weight:700;}
html body .mx-btn.green{background:var(--d11-green);}
html body .mx-btn.navy{background:#fff;color:var(--d11-red);border:1.5px solid var(--d11-red);}
html body .mx-joined-stats span{background:#f7f7f7;border-radius:4px;font-weight:700;}

/* my team cards inside match page (green pitch) */
html body .mx-teamcard{border-radius:6px;margin:0 10px 10px;box-shadow:0 1px 3px rgba(0,0,0,.1);}
html body .mx-teamtop{background:linear-gradient(180deg,#2a9a45,#1b7a34);}
html body .mx-cvc-badge,html body .mx-cvc-name{background:#111;}

/* ---------- floating "Create Team" button ---------- */
html body .sticky-create-btn{width:min(260px,calc(100% - 32px));bottom:78px;background:var(--d11-green);padding:13px 18px;border-radius:999px;font-size:1rem;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.3);text-transform:uppercase;letter-spacing:.5px;}
html body .myteam-create-next{background:var(--d11-green);border-radius:4px;}

/* ---------- bottom navigation: flat white bar, red active ---------- */
html body .bottom-nav-mobile{background:#fff;color:#777;border-radius:0;border-top:1px solid var(--d11-line);box-shadow:0 -2px 8px rgba(0,0,0,.08);padding:6px 4px calc(6px + env(safe-area-inset-bottom));align-items:stretch;}
html body .bottom-nav-mobile a{flex:1;color:#8a8a8a;font-size:.66rem;font-weight:500;opacity:1;gap:3px;padding:4px 0;position:relative;}
html body .bottom-nav-mobile a i{font-size:1.15rem;}
html body .bottom-nav-mobile a.active{color:var(--d11-red);font-weight:700;}
html body .bottom-nav-mobile a.active:before{content:"";position:absolute;top:-7px;left:25%;right:25%;height:3px;background:var(--d11-red);border-radius:0 0 3px 3px;}
html body .bottom-nav-mobile .center-btn{margin:0;width:auto;height:auto;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:inherit;}
html body .bottom-nav-mobile .center-btn:after{content:"Matches";font-size:.66rem;font-weight:500;}
html body .bottom-nav-mobile .center-btn i{font-size:1.15rem;}
html body .bottom-nav-mobile .center-btn.active{color:var(--d11-red);}

/* ---------- top shortcut chips ---------- */
html body .fantasy-top-shortcuts{background:#fff;padding:8px 10px;gap:8px;border-bottom:1px solid var(--d11-line);}
html body .fantasy-top-shortcuts a{box-shadow:none;border:1px solid var(--d11-line);border-radius:4px;padding:7px 11px;font-size:.78rem;font-weight:700;background:#fff;}
html body .fantasy-top-shortcuts a span{background:#f1f1f1;}
html body .fantasy-top-shortcuts a.active{background:var(--d11-red);border-color:var(--d11-red);color:#fff;}

/* ---------- my matches / dashboard (fd-*) ---------- */
html body .fd-filter-tabs a,html body .fd-filter-tabs button{border-radius:4px;font-weight:700;}
html body .fd-filter-tabs .active{background:var(--d11-red);border-color:var(--d11-red);color:#fff;}
html body .fd-countdown{color:var(--d11-red);}
html body .fd-summary-card,html body .fd-stat,html body .fd-kpi-chip{border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}

/* ---------- create team ---------- */
html body .ftb-page{padding-bottom:80px;}
html body .ftb-stat-card,html body .ftb-team-box{background:rgba(0,0,0,.16);border:0;border-radius:6px;backdrop-filter:none;}
html body .ftb-rule{color:#fff;font-weight:500;font-size:.8rem;opacity:.95;}
html body .ftb-step-dots{gap:5px;}
html body .ftb-step-dot{background:rgba(0,0,0,.25);color:#fff;box-shadow:none;border-radius:4px;aspect-ratio:auto;height:24px;font-size:.72rem;}
html body .ftb-step-dot.filled{background:#fff;color:var(--d11-red);}
html body .ftb-scroll-note{background:#fff8e1;border-color:#ffe29a;color:#8a6100;padding:7px 12px;font-size:.78rem;margin-bottom:0;}
html body .ftb-role-tabs{display:grid;gap:0;padding:0;margin:0;background:#fff;border-bottom:1px solid var(--d11-line);position:sticky;top:0;z-index:25;}
html body .ftb-role-tabs button{height:44px;border:0;border-radius:0;box-shadow:none;background:#fff;color:var(--d11-grey);font-size:.82rem;font-weight:700;border-bottom:3px solid transparent;}
html body .ftb-role-tabs button.active{background:#fff;color:var(--d11-ink);border-bottom-color:var(--d11-red);}
html body .ftb-role-strip{margin:0;border-radius:0;border:0;border-bottom:1px solid var(--d11-line);box-shadow:none;background:#f7f7f7;padding:9px 14px;font-size:.82rem;font-weight:700;}
html body .ftb-list-head{margin:0;padding:8px 12px;background:#fff;border-bottom:1px solid var(--d11-line);font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.4px;}
html body .ftb-player-list{padding:0;background:#fff;}
html body .ftb-player-row{border:0;border-bottom:1px solid #f0f0f0;border-radius:0;box-shadow:none;margin:0;padding:9px 12px;background:#fff;}
html body .ftb-player-row.selected{background:#fdecea;border-color:#f6cfcb;}
html body .ftb-player-thumb{width:46px;height:46px;border-radius:50%;}
html body .ftb-player-team-badge{border-radius:3px;background:var(--d11-red);border:1px solid #fff;height:17px;min-width:24px;font-size:.58rem;bottom:-4px;}
html body .ftb-player-name{font-size:.88rem;font-weight:700;min-height:0;}
html body .ftb-player-sub{font-size:.7rem;font-weight:500;}
html body .ftb-player-dot{background:var(--d11-green);}
html body .ftb-player-toggle-btn{width:30px;height:30px;box-shadow:none;}
html body .ftb-player-toggle-btn.plus-btn{background:var(--d11-green);}
html body .ftb-player-toggle-btn.minus-btn{background:var(--d11-red);}
html body .ftb-fixed-actions{background:#fff;border-top:1px solid var(--d11-line);box-shadow:0 -2px 8px rgba(0,0,0,.08);padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
html body .ftb-fixed-actions .ghost,html body .ftb-fixed-actions .solid{height:44px;border-radius:4px;font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:.3px;}
html body .ftb-fixed-actions .ghost{color:var(--d11-ink);border:1.5px solid #bbb;background:#fff;}
html body .ftb-fixed-actions .solid{background:var(--d11-green);}
html body .ftb-fixed-actions .solid[disabled]{background:#c4c4c4;opacity:1;}
html body .ftb-preview-sheet{border-radius:10px 10px 0 0;}
html body .ftb-preview-top{background:var(--d11-red-dark);}
html body .ftb-preview-field,html body .tp2-field{background:linear-gradient(180deg,#2f9e49 0%,#1e7f36 100%);}
html body .ftb-info-pill{background:#eee;}

/* ---------- choose captain / VC ---------- */
html body .cvc-head{font-size:1rem;font-weight:700;}
html body .cvc-rule-icons .bubble.c{background:#111;}
html body .cvc-rule-icons .bubble.vc{background:var(--d11-red);}
html body .cvc-row .cvc-radio.active-c{background:#111;border-color:#111;}
html body .cvc-row .cvc-radio.active-vc{background:var(--d11-red);border-color:var(--d11-red);}
html body .cvc-table-head{font-size:.72rem;text-transform:uppercase;}

/* ---------- team preview ---------- */
html body .tp2-topbar{background:linear-gradient(180deg,var(--d11-red) 0%,var(--d11-red-dark) 100%);}
html body .tp2-page{background:var(--d11-bg);}

/* ---------- join contest ---------- */
html body .join-bottom-bar{background:#fff;border-top:1px solid var(--d11-line);box-shadow:0 -2px 8px rgba(0,0,0,.08);}
html body .join-bottom-btn,html body .join-bottom-btn.solid{background:var(--d11-green);border-radius:4px;font-weight:700;text-transform:uppercase;}
html body .join-team-ticket,html body .join-ticket-title{border-radius:6px;}
html body .join-team-list .selected,html body .join-select-row.selected{border-color:var(--d11-green);}

/* ---------- wallet (Dream11 "My Balance" style) ---------- */
html body .fw-balance-card,html body .fw-summary-card,html body .fw-usage-card,html body .fw-txn-card,html body .fw-action-card{border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .fw-txn-icon.debit{background:#fdecea;color:var(--d11-red);}
html body .fw-txn-amount.debit{color:var(--d11-red);}
html body .fw-filter-tabs .active{background:var(--d11-red);border-color:var(--d11-red);color:#fff;}

/* ---------- leaderboard ---------- */
html body .flb2-status-pill.upcoming{background:#fdecea;color:var(--d11-red);}
html body .flb2-tabs .active,html body .complete-tabs .active,html body .live-tabs .active{border-bottom-color:var(--d11-red);}

/* ---------- profile / more ---------- */
html body .fp-input-group input:focus{border-color:var(--d11-red);box-shadow:0 0 0 3px rgba(209,31,43,.12);}
html body .fp-submit-btn{background:var(--d11-red);border-radius:4px;}
html body .fp-link-btn{border-radius:6px;}

/* ---------- drawer ---------- */
html body .fantasy-mini-brand .fallback{background:linear-gradient(135deg,var(--d11-red),var(--d11-red-dark));}
html body .fantasy-drawer-links a:hover,html body .fantasy-drawer-links a:focus{color:var(--d11-red);background:#fdf3f2;}

/* ---------- generic confirm buttons ---------- */
html body .confirm-cta{background:var(--d11-green);border-radius:4px;font-size:1rem;font-weight:700;text-transform:uppercase;}
html body .fixed-dual-actions .solid{background:var(--d11-green);border-color:var(--d11-green);border-radius:4px;}
html body .fixed-dual-actions .ghost{border-color:#bbb;color:#222;border-radius:4px;}
html body .screen-empty{border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}

/* =====================================================================
   v2 : contest filter bar, login/register, offers, FAQ, how-to-play,
        points system / points breakdown
   ===================================================================== */

/* ---------- contest filter chips ---------- */
html body .d11-filterbar{display:flex;gap:8px;overflow-x:auto;padding:10px 10px 4px;scrollbar-width:none;background:var(--d11-bg);}
html body .d11-filterbar::-webkit-scrollbar{display:none;}
html body .d11-filterbar button{flex:0 0 auto;border:1px solid #cfcfcf;background:#fff;color:#444;border-radius:999px;padding:6px 13px;font-size:.76rem;font-weight:700;line-height:1.2;}
html body .d11-filterbar button b{font-weight:700;color:var(--d11-grey);margin-left:3px;font-size:.7rem;}
html body .d11-filterbar button.active{background:var(--d11-red);border-color:var(--d11-red);color:#fff;}
html body .d11-filterbar button.active b{color:rgba(255,255,255,.85);}

/* ---------- login / register ---------- */
html body .fantasy-auth-card{margin:0;padding:22px 18px 26px;border-radius:0;box-shadow:none;border:0;border-bottom:1px solid var(--d11-line);background:#fff;}
html body .fantasy-auth-group{margin-bottom:16px;}
html body .fantasy-auth-label{font-size:.72rem;font-weight:700;color:var(--d11-grey);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;}
html body .fantasy-auth-input{height:46px;border:0;border-bottom:2px solid #d5d5d5;border-radius:0;padding:0 2px;font-size:1rem;font-weight:500;background:transparent!important;}
html body .fantasy-auth-input:focus{border-bottom-color:var(--d11-red);box-shadow:none;}
html body .fantasy-auth-submit{height:48px;border-radius:4px;background:var(--d11-green);box-shadow:0 2px 0 var(--d11-green-dark);font-size:.95rem;font-weight:700;text-transform:uppercase;letter-spacing:.6px;margin-top:6px;}
html body .fantasy-auth-linkrow{font-size:.85rem;font-weight:500;}
html body .fantasy-auth-linkrow a{color:var(--d11-red);font-weight:700;}
html body .fantasy-flash .alert{border-radius:4px;font-weight:500;font-size:.88rem;}

/* ---------- offers (coupon cards) ---------- */
html body .offer-card{margin:10px;padding:14px 14px 14px 18px;border-radius:6px;border:1px solid var(--d11-line);box-shadow:0 1px 3px rgba(0,0,0,.08);position:relative;}
html body .offer-card small{color:var(--d11-red);font-weight:700;font-size:.66rem;letter-spacing:.8px;text-transform:uppercase;}
html body .offer-card strong{font-size:1.05rem;font-weight:700;color:var(--d11-ink);}
html body .offer-card p{font-size:.84rem;font-weight:400;color:var(--d11-grey);line-height:1.45;}
html body .d11-coupon{border:1.5px dashed #d9a09f;background:linear-gradient(90deg,#fff 0,#fff 92%,#fdf3f2 100%);}
html body .d11-coupon:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--d11-red);border-radius:6px 0 0 6px;}
html body .d11-coupon:after{content:"\1F381";position:absolute;right:14px;top:12px;font-size:1.3rem;opacity:.85;}

/* ---------- FAQ accordion ---------- */
html body .d11-faq{margin:10px;background:#fff;border:1px solid var(--d11-line);border-radius:6px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .d11-faq-item{border-bottom:1px solid #efefef;}
html body .d11-faq-item:last-child{border-bottom:0;}
html body .d11-faq-item summary{list-style:none;cursor:pointer;padding:14px 40px 14px 14px;font-size:.92rem;font-weight:700;color:var(--d11-ink);position:relative;}
html body .d11-faq-item summary::-webkit-details-marker{display:none;}
html body .d11-faq-item summary:after{content:"+";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:1.4rem;font-weight:400;color:var(--d11-red);}
html body .d11-faq-item[open] summary:after{content:"\2212";}
html body .d11-faq-item[open] summary{color:var(--d11-red);}
html body .d11-faq-item p{margin:0;padding:0 14px 14px;font-size:.85rem;color:var(--d11-grey);line-height:1.5;}

/* ---------- how to play (numbered steps) ---------- */
html body .d11-steps{margin:10px;}
html body .d11-step{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--d11-line);border-radius:6px;padding:12px;margin-bottom:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .d11-step-no{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:var(--d11-red);color:#fff;font-weight:700;font-size:.9rem;display:flex;align-items:center;justify-content:center;}
html body .d11-step strong{display:block;font-size:.95rem;font-weight:700;color:var(--d11-ink);}
html body .d11-step p{margin:3px 0 0;font-size:.82rem;color:var(--d11-grey);line-height:1.45;}

/* ---------- points system ---------- */
html body .ps-grid{gap:6px;}
html body .ps-grid div{background:#f7f7f7;border:0;border-left:3px solid var(--d11-red);border-radius:3px;padding:9px 10px;}
html body .ps-grid small{font-size:.68rem;font-weight:500;text-transform:uppercase;letter-spacing:.3px;}
html body .ps-grid strong{font-size:.95rem;font-weight:700;color:var(--d11-ink);}

/* ---------- points breakdown ---------- */
html body .pdb-card{margin:0 10px 10px;border-radius:6px;border:1px solid var(--d11-line);box-shadow:0 1px 3px rgba(0,0,0,.08);padding:12px;}
html body .pdb-player img{width:44px;height:44px;border-radius:50%;}
html body .pdb-player strong{font-size:.92rem;font-weight:700;}
html body .pdb-total{font-size:1.25rem;font-weight:900;color:var(--d11-red);}
html body .pdb-meta{font-weight:500;}
html body .pdb-grid{gap:6px;}
html body .pdb-grid div{background:#f7f7f7;border-radius:3px;padding:8px 10px;}
html body .pdb-grid small{font-weight:500;}
html body .pdb-grid strong{font-weight:700;}
html body .flb-header .wallet-summary-strip{background:rgba(0,0,0,.18)!important;border-radius:6px;}
html body .offer-card small{display:block;}
html body .fh-top .fh-title{margin:0;padding:0;flex:1;text-align:left;justify-content:flex-start;}

/* =====================================================================
   v3 : COMPACT CREATE-TEAM  (everything fits on a 360px phone, nothing cut)
   ===================================================================== */
html body .ftb-page{padding-bottom:64px;overflow-x:hidden;}
html body .ftb-header{padding:8px 10px 8px;}
html body .ftb-header .fh-top{gap:8px;}
html body .ftb-header .fh-back{width:34px;height:34px;flex-basis:34px;font-size:.95rem;}
html body .ftb-head-copy h1{font-size:1rem;font-weight:700;}
html body .ftb-header .fh-sub{font-size:.72rem;}
html body .ftb-rule{margin-top:6px;font-size:.66rem;line-height:1.25;white-space:normal;}
/* Players | A | B | Credits in one tight row */
html body .ftb-scoreline{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto;gap:6px;margin-top:8px;}
html body .ftb-stat-card{padding:5px 9px;border-radius:5px;}
html body .ftb-stat-card span{font-size:.6rem;font-weight:500;text-transform:uppercase;letter-spacing:.3px;}
html body .ftb-stat-card strong{font-size:.95rem;margin-top:0;}
html body .ftb-team-box{padding:4px 7px;gap:6px;border-radius:5px;min-width:0;}
html body .ftb-team-logo,html body .ftb-team-avatar{width:26px;height:26px;border-width:1px;font-size:.62rem;flex:0 0 26px;}
html body .ftb-team-abbr{font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .ftb-team-count{font-size:.72rem;margin-top:1px;}
html body .ftb-step-row{margin-top:8px;gap:6px;}
html body .ftb-step-dots{gap:3px;}
html body .ftb-step-dot{height:6px;min-height:6px;font-size:0;border-radius:3px;background:rgba(0,0,0,.28);}
html body .ftb-step-dot.filled{background:#fff;}
html body .ftb-trash{width:28px;height:28px;flex:0 0 28px;font-size:.8rem;}
html body .ftb-scroll-note{padding:4px 10px;font-size:.68rem;}
html body .ftb-lineup-legend{padding:6px 10px;gap:6px;background:#fff;border-bottom:1px solid var(--d11-line);}
html body .ftb-status-pill{min-height:18px;padding:0 8px;font-size:.62rem;font-weight:700;border-radius:3px;}
/* role tabs + strip */
html body .ftb-role-tabs button{height:38px;font-size:.74rem;}
html body .ftb-role-strip{padding:6px 12px;font-size:.74rem;}
html body .ftb-info-pill{width:18px;height:18px;font-size:.65rem;}
/* player list : one shared 5-column grid for header and rows */
html body .ftb-list-head,
html body .ftb-player-row{grid-template-columns:22px minmax(0,1fr) 34px 34px 30px;gap:6px;}
html body .ftb-list-head{padding:5px 10px;font-size:.58rem;line-height:1.1;}
html body .ftb-list-head div:nth-child(2){text-align:left;}
html body .ftb-list-head div:nth-child(3),html body .ftb-list-head div:nth-child(4){text-align:center;}
html body .ftb-status-head{padding:5px 10px;justify-content:flex-start;gap:8px;flex-wrap:nowrap;background:#f7f7f7;border-bottom:1px solid #eee;}
html body .ftb-status-head small{font-size:.6rem;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
html body .ftb-status-head .ftb-status-pill{flex:0 0 auto;}
html body .ftb-player-row{padding:6px 10px;align-items:center;}
html body .ftb-player-info-btn{width:20px;height:20px;font-size:.66rem;border-color:#c9c9c9;}
html body .ftb-player-main{gap:8px;min-width:0;}
html body .ftb-player-thumb{width:36px;height:36px;}
html body .ftb-player-team-badge{height:13px;min-width:20px;padding:0 3px;font-size:.5rem;left:-4px;bottom:-3px;border-radius:2px;}
html body .ftb-player-copy{min-width:0;}
html body .ftb-player-name{font-size:.8rem;line-height:1.15;-webkit-line-clamp:1;white-space:nowrap;text-overflow:ellipsis;}
html body .ftb-player-name a{color:inherit;text-decoration:none;}
html body .ftb-player-sub{font-size:.62rem;margin-top:1px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body .ftb-player-sub .fantasy-lineup-badge{width:8px;height:8px;min-width:8px;min-height:8px;border-width:0;margin:0 4px 0 0;vertical-align:0;display:inline-block;}
html body .ftb-player-sub .fantasy-lineup-announced{background:var(--d11-green);}
html body .ftb-player-sub .fantasy-lineup-impact{background:#2563eb;}
html body .ftb-player-sub .fantasy-lineup-unannounced{background:#dc2626;}
html body .ftb-player-sub.ftb-proj{display:none;}
html body .ftb-player-points,html body .ftb-player-credit{font-size:.78rem;font-weight:700;}
html body .ftb-player-toggle-btn{width:26px;height:26px;font-size:1rem;line-height:1;}
html body .ftb-fixed-actions{padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:8px;}
html body .ftb-fixed-actions .ghost,html body .ftb-fixed-actions .solid{height:38px;font-size:.8rem;}
/* popups: compact + scrollable, never cut */
html body .ftb-preview-modal{padding:0;align-items:flex-end;}
html body .ftb-preview-sheet{width:min(560px,100%);max-height:88vh;overflow-y:auto;padding:12px;border-radius:12px 12px 0 0;}
html body .ftb-preview-head{margin-bottom:8px;}
html body .ftb-preview-title{font-size:.9rem;font-weight:700;}
html body .ftb-preview-close{width:30px;height:30px;font-size:.9rem;}
html body .ftb-player-info-card{padding:8px 10px;border-radius:6px;margin-bottom:10px;gap:10px;}
html body .ftb-player-info-card img{width:44px;height:44px;border-radius:50%;}
html body .ftb-last10-item{padding:8px 10px;}
html body .ftb-preview-field{min-height:0;padding-bottom:10px;border-radius:8px;}
html body .ftb-preview-player img,html body .ftb-preview-avatar{width:42px;height:42px;}
html body .ftb-preview-name{font-size:.66rem;padding:2px 5px;}
html body .ftb-preview-credit{font-size:.62rem;}
html body .ftb-preview-actions{margin-top:10px;}
@media (max-width:360px){
  html body .ftb-list-head,html body .ftb-player-row{grid-template-columns:20px minmax(0,1fr) 30px 30px 28px;gap:4px;}
  html body .ftb-player-thumb{width:32px;height:32px;}
  html body .ftb-player-name{font-size:.76rem;}
}
@media (max-width:340px){
  html body .ftb-team-box .ftb-team-logo,html body .ftb-team-box .ftb-team-avatar{display:none;}
  html body .ftb-stat-card{padding:5px 6px;}
  html body .ftb-stat-card strong{font-size:.85rem;}
}

/* =====================================================================
   v4 : COMPACT TEAM PREVIEW (page + popups) and CHOOSE CAPTAIN / VC
   ===================================================================== */

/* ---------- Team Preview PAGE (fantasy-team-preview.php) ---------- */
html body .tp2-page{padding-bottom:0;background:#1b7a34;}
html body .tp2-topbar{padding:8px 10px;gap:8px;}
html body .tp2-icon{width:32px;height:32px;border-radius:50%;font-size:.85rem;border:0;}
html body .tp2-title{font-size:.85rem;font-weight:700;letter-spacing:.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .tp2-summary{display:grid;grid-template-columns:1fr auto 1fr;justify-items:stretch;text-align:left;gap:6px;padding:6px 12px;background:#157a35;}
html body .tp2-summary-item small{font-size:.6rem;font-weight:500;text-transform:uppercase;letter-spacing:.3px;}
html body .tp2-summary-item strong{font-size:.95rem;}
html body .tp2-summary-item.right{text-align:right;}
html body .tp2-sides{order:0;gap:6px;font-size:.85rem;}
html body .tp2-sides .pill{min-width:34px;height:24px;padding:0 8px;border-radius:4px;font-size:.72rem;}
html body .tp2-meta-row{padding:4px 10px;gap:4px;font-size:.7rem;background:#0f6b2c;}
html body .tp2-field{min-height:0;padding:8px 6px 14px;}
html body .tp2-field:before{top:50px;height:78%;}
html body .tp2-field:after{top:40px;}
html body .tp2-scorebadge{padding:3px 10px;font-size:.7rem;margin-bottom:6px;}
html body .tp2-roleblock{margin-bottom:10px;}
html body .tp2-rolelabel{min-height:20px;padding:0 10px;font-size:.66rem;border-radius:4px;margin-bottom:6px;text-transform:uppercase;letter-spacing:.4px;}
/* up to 5 players per line, always inside the screen */
html body .tp2-row,
html body .tp2-row.cols-1,html body .tp2-row.cols-2,html body .tp2-row.cols-3,html body .tp2-row.cols-4,html body .tp2-row.cols-5{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 4px;max-width:100%;margin:0 auto;}
html body .tp2-player{flex:0 0 calc((100% - 16px) / 5);width:auto;max-width:76px;min-width:0;}
html body .tp2-player img{width:38px;height:38px;box-shadow:0 2px 6px rgba(0,0,0,.25);}
html body .tp2-badge{top:-5px;min-width:18px;height:18px;padding:0 5px;font-size:.55rem;border-width:1.5px;}
html body .tp2-name{margin-top:4px;min-height:0;padding:2px 5px;font-size:.6rem;border-radius:3px;max-width:100%;}
html body .tp2-value{margin-top:2px;font-size:.58rem;font-weight:500;white-space:nowrap;}
html body .tp2-status{display:none;}

/* ---------- Team Preview POPUP inside Create Team (.ftb-preview-*) ---------- */
html body .ftb-preview-sheet{max-height:92vh;}
html body .ftb-preview-top{padding:6px 10px;}
html body .ftb-preview-top-item small{font-size:.58rem;}
html body .ftb-preview-top-item strong{font-size:.9rem;}
html body .ftb-preview-middle{gap:6px;font-size:.85rem;}
html body .ftb-preview-pill{min-width:30px;height:22px;padding:0 7px;font-size:.68rem;border-radius:4px;}
html body .ftb-preview-meta{padding:4px 8px 6px;gap:10px;font-size:.66rem;}
html body .ftb-preview-role{padding:4px 6px 0;}
html body .ftb-preview-role-title{min-height:20px;padding:0 10px;font-size:.64rem;border-radius:4px;margin-bottom:6px;text-transform:uppercase;letter-spacing:.4px;}
html body .ftb-preview-grid{grid-template-columns:repeat(auto-fit,minmax(54px,66px))!important;justify-content:center;max-width:100%!important;gap:8px 6px;}
html body .ftb-preview-player img,html body .ftb-preview-avatar{width:36px;height:36px;box-shadow:0 2px 6px rgba(0,0,0,.25);}
html body .ftb-preview-badge{top:-5px;min-width:18px;height:18px;padding:0 5px;font-size:.55rem;border-width:1.5px;}
html body .ftb-preview-name{margin-top:4px;min-height:0;padding:2px 5px;font-size:.58rem;border-radius:3px;max-width:100%;}
html body .ftb-preview-credit{margin-top:2px;font-size:.56rem;font-weight:500;}
html body .ftb-preview-player .fantasy-lineup-badge{display:none;}
html body .ftb-preview-field::before,html body .ftb-preview-field::after{display:none;}

/* ---------- CHOOSE CAPTAIN / VICE CAPTAIN (fantasy-choose-cvc.php) ---------- */
html body .fantasy-orange-header h1{font-size:1rem!important;font-weight:700!important;}
html body .fh-scoreline{margin-top:8px;gap:8px;grid-template-columns:1fr auto 1fr!important;}
html body .fh-team-pill{gap:6px;}
html body .fh-team-logo,html body .fh-team-avatar{width:26px;height:26px;border-width:1px;font-size:.62rem;}
html body .fh-team-name{font-size:.82rem;}
html body .fh-vs{font-size:.72rem;}
html body .cvc-head{padding:8px 12px 2px;font-size:.85rem;font-weight:700;}
html body .cvc-rule-icons{gap:22px;padding:2px 0 8px;font-size:.72rem;font-weight:500;}
html body .cvc-rule-icons .bubble{width:26px;height:26px;font-size:.62rem;margin-right:6px;}
html body .cvc-table-head,
html body .cvc-row{grid-template-columns:40px minmax(0,1fr) 34px 46px 46px;gap:6px;padding:6px 10px;}
html body .cvc-table-head{position:static;top:auto;font-size:.58rem;font-weight:700;color:var(--d11-grey);padding:5px 10px;background:#f7f7f7;border-bottom:1px solid var(--d11-line);}
html body .cvc-row{min-height:0;}
html body .cvc-row .player-thumb{width:34px;height:34px;border-radius:50%;}
html body .cvc-row .player-team-badge{left:-4px;bottom:-3px;padding:1px 3px;font-size:.48rem;border-radius:2px;background:var(--d11-red);}
html body .cvc-row .player-meta-wrap{gap:6px;}
html body .cvc-row .player-name{font-size:.8rem;font-weight:700;}
html body .cvc-row .player-sub{font-size:.6rem;font-weight:500;}
html body .cvc-row .player-sub.text-center{text-align:center;margin-top:1px!important;}
html body .cvc-row .player-points{font-size:.78rem;font-weight:700;}
html body .cvc-row .cvc-radio{width:28px;height:28px;border-width:1.5px;font-size:.68rem;}
html body .cvc-row .player-sub .fantasy-lineup-badge{width:7px;height:7px;min-width:7px;min-height:7px;border-width:0;margin-left:3px;vertical-align:0;}
html body .fixed-dual-actions{bottom:0;left:50%;width:min(560px,100%);padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:8px;background:#fff;border-top:1px solid var(--d11-line);box-shadow:0 -2px 8px rgba(0,0,0,.08);}
html body .fixed-dual-actions .ghost,html body .fixed-dual-actions .solid{padding:0;height:38px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;border-width:1.5px;text-transform:uppercase;}
html body .fantasy-app-shell~.fixed-dual-actions{bottom:0;}
/* cvc team popup (.preview-*) */
html body .preview-sheet{max-height:92vh;padding:10px 10px 12px;border-radius:12px 12px 0 0;}
html body .preview-title{font-size:.9rem;font-weight:700;margin-bottom:6px;}
html body .preview-field{min-height:0;padding:8px 6px 10px;border-radius:8px;}
html body .preview-field .circle-line{display:none;}
html body .preview-layer{margin-bottom:8px;}
html body .preview-layer-title{font-size:.62rem;padding:2px 10px;margin-bottom:6px;border-radius:4px;text-transform:uppercase;letter-spacing:.4px;}
html body .preview-players{gap:8px 4px;}
html body .preview-player{flex:0 0 calc((100% - 16px) / 5);max-width:66px;min-width:0;}
html body .preview-player img{width:36px;height:36px;border-radius:50%;}
html body .preview-player .tag{top:-4px;left:2px;width:18px;height:18px;font-size:.52rem;border-width:1.5px;}
html body .preview-name{margin-top:4px;padding:2px 4px;font-size:.58rem;border-radius:3px;}
html body .preview-credit{font-size:.56rem;font-weight:500;}
html body .preview-player .fantasy-lineup-badge{display:none;}
html body .modal-close-btn{width:30px;height:30px;font-size:1rem;border-width:2px;}
html body .confirm-sheet{padding:16px 14px;}
html body .confirm-title{font-size:1rem;}
html body .confirm-sheet .rowline{padding:9px 0;font-size:.85rem;}
html body .confirm-sheet .rowline strong{font-size:.9rem;}
html body .confirm-cta{padding:12px;font-size:.9rem;margin-top:12px;}
html body #fantasyCvcForm{padding-bottom:62px;}
html body .tp2-page{min-height:0;}
html body .cvc-table-head div:nth-child(2){text-align:left;}
html body .cvc-table-head div:nth-child(n+3){text-align:center;}
html body .cvc-row{padding:4px 10px;}
html body .cvc-row .player-img-wrap{display:block;line-height:0;}
html body .cvc-row .cvc-radio{width:26px;height:26px;font-size:.64rem;}
html body .cvc-row .player-sub.text-center{font-size:.55rem;line-height:1.1;}
html body .cvc-row .player-name{line-height:1.15;}

/* =====================================================================
   v5 : balanced + centered player lines in every preview
        (6 -> 3+3, 7 -> 4+3, 8 -> 4+4 ... max 5 per line)
   ===================================================================== */
html body .tp2-row{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;max-width:100%;margin:0 auto 8px;}
html body .tp2-row:last-child{margin-bottom:0;}
html body .tp2-player{flex:0 1 64px;width:64px;max-width:64px;min-width:0;}
html body .tp2-roleblock{margin-bottom:12px;}
html body .ftb-preview-grid{display:block!important;max-width:100%!important;}
html body .ftb-preview-line{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;margin:0 auto 8px;}
html body .ftb-preview-line:last-child{margin-bottom:0;}
html body .ftb-preview-player{flex:0 1 64px;width:64px;max-width:64px;min-width:0;}
html body .preview-players{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;margin:0 auto 8px;}
html body .preview-players:last-child{margin-bottom:0;}
html body .preview-player{flex:0 1 64px;width:64px;max-width:64px;min-width:0;}

/* =====================================================================
   v6 : SMALL / COMPACT UI FOR ALL OTHER PAGES
   (my matches, my contests, wallet, profile, more, my teams, leaderboard,
    join contest, player, add cash, withdraw, offers, support ...)
   ===================================================================== */

/* ----- generic ----- */
html body .mobile-card{margin:8px 10px;padding:10px 12px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);border:1px solid var(--d11-line);}
html body .screen-empty{margin:10px;padding:16px 14px;font-size:.85rem;}
html body .fantasy-flash{padding:0 10px;}
html body .fantasy-flash .alert{margin:8px 0 0;padding:8px 12px;font-size:.8rem;}
html body .fantasy-top-shortcuts a{font-size:.72rem;padding:6px 10px;}
html body .fantasy-drawer-links a{padding:10px 12px;font-size:.88rem;margin-bottom:4px;}
html body .fantasy-mini-brand img,html body .fantasy-mini-brand .fallback{width:42px;height:42px;}
html body .fantasy-home-wallet-band{padding:8px 12px;font-size:.8rem;}
html body .fantasy-home-wallet-band strong{font-size:1rem;}
html body .fhome-band-btn{padding:6px 14px;font-size:.78rem;border-radius:4px;}
html body .fantasy-home-hero{padding-bottom:10px;}
html body .fh-title{margin-top:4px;padding-top:4px;}
html body .fantasy-orange-header{padding-bottom:10px;}
html body .fantasy-orange-header .fh-wallet{font-size:.8rem;padding:5px 9px;}

/* ----- shared "glass stat cards" in red headers (summary grids) ----- */
html body .fd-summary-grid,html body .fw-balance-grid,html body .fp-summary-grid,html body .fmt2-summary-grid,
html body .flow-join-summary,html body .flb2-live-bar{gap:6px;margin-top:8px;}
html body .fd-summary-card,html body .fw-balance-card,html body .fp-summary-card,html body .fmt2-summary-card,
html body .flow-join-summary div,html body .flb2-live-bar div{background:rgba(0,0,0,.16);border:0;border-radius:5px;padding:6px 6px;backdrop-filter:none;}
html body .fd-summary-card small,html body .fw-balance-card small,html body .fp-summary-card small,html body .fmt2-summary-card small,
html body .flow-join-summary small,html body .flb2-live-bar small{font-size:.58rem;font-weight:500;text-transform:uppercase;letter-spacing:.3px;margin-bottom:1px;}
html body .fd-summary-card strong,html body .fw-balance-card strong,html body .fp-summary-card strong,html body .fmt2-summary-card strong,
html body .flow-join-summary strong,html body .flb2-live-bar strong{font-size:.85rem;margin-top:0;}
/* keep 2-3 columns on phones instead of collapsing to tall single column */
@media (max-width:640px){
  html body .fw-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  html body .fmt2-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  html body .fd-summary-grid,html body .fp-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
}
html body .fd-wallet-strip,html body .fw-strip,html body .fp-wallet-strip{margin-top:8px;}
html body .fd-strip-value,html body .fw-strip-value,html body .fp-strip-value{font-size:.9rem;}
html body .fd-strip-label,html body .fw-strip-label,html body .fp-strip-label{font-size:.66rem;}

/* ----- tabs / search ----- */
html body .fd-search-form{gap:6px;margin-bottom:8px;}
html body .fd-search-form input,html body .fd-search-form button{height:36px;border-radius:4px;font-size:.82rem;}
html body .fd-filter-tabs{gap:6px;}
html body .fd-filter-tabs a,html body .fw-filter-tabs a{padding:6px 11px;font-size:.74rem;box-shadow:none;border-radius:999px;}
html body .fd-filter-tabs a span{min-width:18px;height:18px;padding:0 5px;font-size:.62rem;}
html body .fd-filter-tabs a.active,html body .fw-filter-tabs a.active{background:var(--d11-red);border-color:var(--d11-red);}
html body .fw-filter-tabs{gap:6px;}

/* ----- my matches / my contests cards (fd-match-card) ----- */
html body .fd-match-card{margin:0 10px 8px;padding:0;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .fd-topline{margin:0;padding:7px 10px;border-bottom:1px solid #f1f1f1;}
html body .fd-series{font-size:.7rem;font-weight:700;color:var(--d11-grey);text-transform:uppercase;letter-spacing:.3px;}
html body .fd-badge{padding:2px 8px;font-size:.6rem;border-radius:3px;}
html body .fd-main{grid-template-columns:minmax(0,1fr) 84px;gap:6px;padding:8px 10px;}
@media (max-width:640px){html body .fd-main{grid-template-columns:minmax(0,1fr) 84px;}}
html body .fd-teams{background:transparent;padding:0;gap:4px;}
html body .fd-team{gap:6px;}
html body .fd-team img,html body .fd-team-fallback{width:34px;height:34px;border-width:1px;border-color:#ddd;font-size:.75rem;}
html body .fd-team-text strong{font-size:.9rem;}
html body .fd-team-text span{font-size:.62rem;}
html body .fd-vs{font-size:.7rem;padding:0 2px;}
html body .fd-countdown-box{background:#f7f7f7;border-radius:4px;padding:6px 4px;}
html body .fd-countdown{font-size:.8rem;}
html body .fd-time{margin-top:2px;font-size:.65rem;}
html body .fd-stats-grid{gap:4px;margin:0;padding:0 10px 8px;grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:640px){html body .fd-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
html body .fd-stat{border-radius:4px;padding:5px 3px;background:#f7f7f7;border:0;}
html body .fd-stat small{font-size:.55rem;margin-bottom:0;}
html body .fd-stat strong{font-size:.78rem;}
html body .fd-kpi-row{gap:4px;margin:0;padding:0 10px 8px;}
html body .fd-kpi-chip{flex:1 1 100px;padding:5px 8px;font-size:.66rem;border-radius:4px;}
html body .fd-actions{gap:6px;margin:0;padding:0 10px 10px;grid-template-columns:1fr 1fr;}
html body .fd-btn{height:34px;border-radius:4px;font-size:.78rem;font-weight:700;}
html body .fd-btn.primary{background:var(--d11-green);border-color:var(--d11-green);}

/* ----- wallet ----- */
html body .fw-header{padding-bottom:10px;}
html body .fw-balance-wrap{margin-top:8px;padding:10px 12px;border-radius:6px;background:rgba(0,0,0,.16);border:0;backdrop-filter:none;}
html body .fw-balance-label{font-size:.7rem;font-weight:500;}
html body .fw-balance-main{font-size:1.5rem;margin-top:0;}
html body .fw-balance-sub{font-size:.68rem;margin-top:3px;}
html body .fw-action-grid{gap:6px;grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:640px){html body .fw-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
html body .fw-action-card{padding:8px 2px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);gap:4px;font-size:.66rem;font-weight:700;}
html body .fw-action-card i{width:30px;height:30px;border-radius:50%;font-size:.8rem;background:#fdecea;color:var(--d11-red);}
html body .fw-summary-card{gap:6px;}
html body .fw-stat,html body .fw-usage-grid div{padding:7px 9px;border-radius:4px;background:#f7f7f7;border:0;}
html body .fw-stat small,html body .fw-usage-grid small{font-size:.62rem;margin-bottom:0;}
html body .fw-stat strong,html body .fw-usage-grid strong{font-size:.85rem;margin-top:1px;}
html body .fw-usage-card{margin-bottom:8px;}
html body .fw-usage-title{font-size:.85rem;font-weight:700;}
html body .fw-usage-sub{font-size:.7rem;margin-top:1px;}
html body .fw-usage-grid{gap:6px;margin-top:8px;}
@media (max-width:420px){
  html body .fw-summary-card{grid-template-columns:repeat(2,minmax(0,1fr));}
  html body .fw-balance-main{font-size:1.4rem;}
  html body .fw-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  html body .fw-txn-card{padding:8px 10px;}
}
html body .fw-txn-card{gap:8px;}
html body .fw-txn-left{gap:8px;align-items:center;}
html body .fw-txn-icon{width:32px;height:32px;border-radius:50%;font-size:.8rem;}
html body .fw-txn-title{font-size:.82rem;font-weight:700;}
html body .fw-txn-sub{font-size:.66rem;margin-top:1px;}
html body .fw-txn-note{font-size:.68rem;margin-top:2px;line-height:1.3;}
html body .fw-txn-balance{font-size:.64rem;margin-top:2px;}
html body .fw-txn-amount{font-size:.9rem;}
html body .fw-txn-status{font-size:.62rem;margin-top:2px;}

/* ----- profile / more ----- */
html body .fp-header{padding-bottom:10px;}
html body .fp-hero{margin-top:8px;gap:10px;}
html body .fp-avatar{width:48px;height:48px;border-radius:50%;font-size:1.3rem;}
html body .fp-meta h1{font-size:1rem;}
html body .fp-email{font-size:.74rem;margin-top:2px;}
html body .fp-joined{font-size:.66rem;margin-top:1px;}
html body .fp-kpi-card{gap:6px;}
html body .fp-kpi-item{padding:7px 9px;border-radius:4px;background:#f7f7f7;border:0;}
html body .fp-kpi-item small{font-size:.62rem;margin-bottom:0;}
html body .fp-kpi-item strong{font-size:.85rem;}
@media (max-width:420px){html body .fp-kpi-card{grid-template-columns:repeat(2,minmax(0,1fr));}}
html body .fp-quick-grid{gap:6px;padding:0 10px;}
html body .fp-quick-card{padding:9px 10px;border-radius:6px;gap:8px;font-size:.8rem;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .fp-quick-card i{width:30px;height:30px;border-radius:50%;font-size:.85rem;background:#fdecea;color:var(--d11-red);}
html body .fp-input-group{margin-bottom:10px;}
html body .fp-input-group label{font-size:.72rem;font-weight:700;margin-bottom:3px;}
html body .fp-input-group input{height:40px;border-radius:4px;font-size:.9rem;}
html body .fp-submit-btn{height:42px;border-radius:4px;font-size:.85rem;box-shadow:none;background:var(--d11-green);}
html body .fp-submit-btn.dark{background:#333;}
html body .fp-team-name{font-size:.88rem;}
html body .fp-team-sub{font-size:.7rem;margin-top:1px;}
html body .fp-link-btn{height:32px;padding:0 12px;font-size:.76rem;border-radius:4px;background:var(--d11-green);}
html body .more-profile-card{margin-top:8px;}
html body .more-avatar{width:44px;height:44px;font-size:1.2rem;background:var(--d11-red);}
html body .more-name{font-size:.95rem;}
html body .more-sub{font-size:.7rem;}
html body .more-balance-row{margin-top:10px;}
html body .more-balance-row strong{font-size:1rem;}
html body .more-add-btn{height:34px;padding:0 12px;font-size:.78rem;border-radius:4px;}
html body .more-link-list a{padding:11px 12px;font-size:.84rem;gap:10px;}

/* ----- my teams ----- */
html body .fmt2-header{padding-bottom:10px;}
html body .fmt2-card{margin:0 10px 8px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.1);}
html body .fmt2-card-top{padding:8px 12px 6px;}
html body .fmt2-card-title{font-size:.88rem;}
html body .fmt2-card-sub{font-size:.62rem;margin-top:1px;}
html body .fmt2-lock-pill{padding:3px 8px;font-size:.6rem;}
html body .fmt2-field{padding:8px 10px;gap:8px;grid-template-columns:1fr 1.3fr;}
@media (max-width:420px){html body .fmt2-field{grid-template-columns:1fr 1.3fr;gap:8px;}html body .fmt2-points-box{align-items:flex-start;text-align:left;padding-left:4px;}}
html body .fmt2-points-box small{font-size:.62rem;}
html body .fmt2-points-box strong{font-size:1.4rem;margin-top:2px;}
html body .fmt2-split{margin-top:4px;font-size:.66rem;}
html body .fmt2-player{min-width:64px;}
html body .fmt2-player img{width:40px;height:40px;border-width:2px;}
html body .fmt2-name{margin-top:4px;padding:3px 6px;font-size:.6rem;border-radius:3px;}
html body .fmt2-badge{width:18px;height:18px;font-size:.55rem;border-width:1.5px;top:-3px;left:6px;}
html body .fmt2-badge.vc{width:22px;font-size:.5rem;}
html body .fmt2-status{display:none;}
html body .fmt2-role-row{padding:5px 8px;font-size:.68rem;}
html body .fmt2-card-foot{padding:7px 10px;flex-direction:row;align-items:center;}
html body .fmt2-foot-left{font-size:.66rem;}
html body .fmt2-foot-left img{width:18px;height:18px;margin-right:-8px;}
html body .fmt2-actions a{height:26px;padding:0 9px;font-size:.68rem;border-radius:4px;}
@media (max-width:420px){html body .fmt2-card-foot{flex-direction:row;align-items:center;}}

/* ----- leaderboard ----- */
html body .flb2-header{padding-bottom:10px;}
html body .flb2-main-title{font-size:1.05rem;font-weight:700;margin-top:2px;}
html body .flb2-status-pill{padding:3px 10px;font-size:.62rem;border-radius:3px;}
html body .flb2-score-grid{margin-top:8px;gap:6px;}
html body .flb2-score-side strong{font-size:.85rem;margin-top:1px;}
html body .flb2-team-line{font-size:.8rem;gap:6px;}
html body .flb2-team-line img{width:24px;height:24px;border-width:1px;}
html body .flb2-result-line{margin-top:6px;font-size:.78rem;font-weight:700;}
html body .flb2-tabs button{padding:10px 6px;font-size:.78rem;font-weight:700;color:var(--d11-grey);}
html body .flb2-tabs button.active{color:var(--d11-ink);border-bottom-color:var(--d11-red);}
html body .live-tabs{margin:8px 10px 0;}
html body .live-tabs button{padding:7px 4px;font-size:.74rem;box-shadow:none;}
html body .live-tabs button.active{background:var(--d11-red);border-color:var(--d11-red);color:#fff;}
html body .flb2-muted-row{padding:10px 14px;font-size:.8rem;}
html body .flb2-board-head{margin:0 10px;border-radius:6px 6px 0 0;padding:7px 10px;font-size:.7rem;background:#f1f1f1;border:1px solid var(--d11-line);gap:6px;grid-template-columns:minmax(0,1fr) 56px 50px;}
html body .flb2-board-row{padding:7px 10px;gap:6px;background:#fff;border-color:var(--d11-line);grid-template-columns:minmax(0,1fr) 56px 50px;margin:0 10px;}
html body .flb2-board-row.mine{background:#fdf3f2;}
html body .flb2-board-row:last-child{border-radius:0 0 6px 6px;}
html body .flb2-row-left{gap:8px;}
html body .flb2-thumb{width:32px;height:32px;border-radius:50%;font-size:.75rem;}
html body .flb2-row-title{font-size:.8rem;font-weight:700;}
html body .flb2-win-text{font-size:.66rem;margin-top:1px;}
html body .flb2-points-cell,html body .flb2-rank-cell{font-size:.8rem;font-weight:700;}
html body .flb2-rank-cell{min-width:0;}
html body .flb2-prize-card{margin:8px 10px;padding:9px 12px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .flb2-prize-rank{font-size:.85rem;}
html body .flb2-prize-sub{font-size:.68rem;margin-top:1px;}
html body .flb2-prize-card strong{font-size:.9rem;}

/* ----- join contest ----- */
html body .flow-join-header{padding-bottom:10px;}
html body .join-select-row{padding:0 10px 6px;}
html body .join-select-note{font-size:.8rem;}
html body .join-select-all{height:30px;font-size:.74rem;border-radius:4px;padding:0 10px;background:var(--d11-red);}
html body .join-team-list{padding:0 10px 90px;}
html body .join-team-ticket{padding:9px 10px;margin-bottom:8px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .join-team-ticket.selected{border-color:var(--d11-green);box-shadow:0 0 0 1px var(--d11-green);}
html body .join-ticket-title{font-size:.9rem;}
html body .join-ticket-sub{font-size:.66rem;margin-top:1px;}
html body .join-ticket-select{padding:3px 9px;font-size:.62rem;background:var(--d11-red);}
html body .join-ticket-field{margin-top:8px;border-radius:6px;padding:8px;gap:8px;grid-template-columns:62px 1fr 24px;}
html body .join-ticket-sides{gap:5px;}
html body .join-side-pill{padding:4px;border-radius:4px;}
html body .join-side-pill small{font-size:.6rem;}
html body .join-side-pill strong{font-size:1.1rem;margin-top:1px;}
html body .join-ticket-cvc{gap:8px;}
html body .join-ticket-player img{width:44px;height:44px;border-radius:50%;}
html body .join-player-badge{min-width:20px;height:20px;padding:0 5px;font-size:.58rem;top:-4px;border-width:1.5px;}
html body .join-player-name{margin-top:4px;padding:3px 7px;font-size:.62rem;border-radius:3px;max-width:96px;}
html body .join-ticket-check{font-size:1.3rem;}
html body .join-ticket-meta{gap:4px;margin-top:8px;}
html body .join-ticket-meta span{padding:5px 4px;border-radius:4px;font-size:.66rem;}
html body .join-ticket-actions{margin-top:8px;}
html body .join-preview-link{height:28px;padding:0 12px;font-size:.72rem;border-radius:4px;}
html body .join-bottom-bar{bottom:0;width:min(560px,100%);padding:7px 10px calc(7px + env(safe-area-inset-bottom));gap:8px;}
html body .join-bottom-btn{height:38px;font-size:.8rem;}

/* ----- player page / add cash / withdraw / offers / support ----- */
html body .player-hero-card{margin-top:8px;}
html body .player-hero-top{gap:10px;}
html body .player-hero-top img{width:48px;height:48px;border-radius:50%;}
html body .player-hero-name{font-size:.95rem;}
html body .player-hero-role{font-size:.72rem;}
html body .player-hero-stats{gap:6px;margin-top:10px;}
html body .player-hero-stats div,html body .player-match-grid div{padding:7px 9px;border-radius:4px;background:#f7f7f7;border:0;}
html body .player-hero-stats small,html body .player-match-grid small{font-size:.6rem;}
html body .player-hero-stats strong,html body .player-match-grid strong{font-size:.85rem;margin-top:1px;}
html body .player-match-grid{gap:6px;margin-top:8px;}
html body .player-match-top{font-size:.85rem;}
html body .ac-banner{background:linear-gradient(180deg,var(--d11-red),var(--d11-red-dark));}
html body .ac-banner strong{font-size:.9rem;}
html body .ac-banner span{font-size:.72rem;margin-top:2px;}
html body .ac-preset-grid{gap:6px;margin-bottom:10px;}
html body .ac-preset{height:34px;border-radius:4px;font-size:.82rem;}
html body .ac-form textarea{border-radius:4px;padding:8px;font-size:.85rem;}
html body .ac-request-top strong{font-size:1rem;}
html body .ac-request-top span{padding:3px 8px;font-size:.62rem;}
html body .d11-coupon:after{font-size:1.1rem;top:10px;}
html body .offer-card{margin:8px 10px;padding:10px 12px 10px 16px;}
html body .offer-card strong{font-size:.95rem;}
html body .offer-card p{font-size:.78rem;margin-top:4px;}
html body .d11-faq-item summary{padding:11px 36px 11px 12px;font-size:.84rem;}
html body .d11-faq-item p{padding:0 12px 11px;font-size:.78rem;}
html body .d11-step{padding:9px 10px;gap:9px;margin-bottom:6px;}
html body .d11-step-no{width:24px;height:24px;flex-basis:24px;font-size:.78rem;}
html body .d11-step strong{font-size:.88rem;}
html body .d11-step p{font-size:.76rem;margin-top:1px;}
html body .ps-grid{gap:4px;}
html body .ps-grid div{padding:6px 8px;}
html body .ps-grid small{font-size:.6rem;}
html body .ps-grid strong{font-size:.82rem;}

/* ----- auth ----- */
html body .fantasy-auth-card{padding:14px 14px 18px;}
html body .fantasy-auth-group{margin-bottom:10px;}
html body .fantasy-auth-label{font-size:.66rem;}
html body .fantasy-auth-input{height:38px;font-size:.9rem;}
html body .fantasy-auth-submit{height:42px;font-size:.82rem;}
html body .fantasy-auth-linkrow{font-size:.78rem;margin-top:10px;}

/* ----- match page (contests screen) extra tightening ----- */
html body .mx-header{padding:8px 10px 8px;}
html body .mx-titlebox h1{font-size:1rem;}
html body .mx-status{font-size:.7rem;}
html body .mx-teambar{margin-top:6px;padding:6px 10px;}
html body .mx-logo{width:34px;height:34px;}
html body .mx-sidecode{font-size:.85rem;}
html body .mx-switcher{margin-top:6px;}
html body .mx-switcher a{height:30px;font-size:.78rem;}
html body .mx-pillrow{margin-top:6px;}
html body .mx-pillrow span{padding:3px 8px;font-size:.64rem;}
html body .mx-tabs a,html body .mx-tabs.mx-tabs-four a{padding:10px 2px;font-size:.72rem;}
html body .d11c-body{padding:9px 10px 8px;}
html body .d11c-prize{font-size:1.3rem;}
html body .d11c-entry{min-width:64px;padding:6px 10px;font-size:.9rem;}
html body .d11c-bar{margin:9px 0 5px;}
html body .d11c-foot{padding:5px 10px;gap:10px;font-size:.64rem;}
html body .d11-filterbar{padding:8px 10px 2px;}
html body .d11-filterbar button{padding:4px 11px;font-size:.7rem;}
html body .mx-teamcard{margin:0 10px 8px;}
html body .mx-teamtop{padding:8px 10px 6px;}
html body .mx-teamhead{margin-bottom:6px;}
html body .mx-teamhead strong{font-size:.85rem;}
html body .mx-iconbtn{width:26px;height:26px;border-radius:50%;font-size:.75rem;}
html body .mx-teamfield{padding:6px;gap:6px;}
html body .mx-teammetric small{font-size:.62rem;}
html body .mx-teammetric strong{font-size:1.4rem;}
html body .mx-cvc-player img{width:38px;height:38px;}
html body .mx-cvc-badge{height:18px;min-width:18px;padding:0 5px;font-size:.55rem;border-width:1.5px;}
html body .mx-cvc-name{margin-top:4px;padding:3px 7px;font-size:.6rem;max-width:90px;}
html body .mx-mini-grid{margin-top:6px;padding:5px;font-size:.68rem;gap:4px;}
html body .mx-teambottom{padding:6px 10px;}
html body .mx-split{font-size:.7rem;}
html body .sticky-create-btn{bottom:64px;padding:10px 16px;font-size:.85rem;width:min(220px,calc(100% - 32px));}
html body .bottom-nav-mobile{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom));}
html body .bottom-nav-mobile a i,html body .bottom-nav-mobile .center-btn i{font-size:1rem;}
html body .bottom-nav-mobile a,html body .bottom-nav-mobile .center-btn:after{font-size:.6rem;}
html body .fantasy-app-shell{padding-bottom:56px;}

/* ----- leaderboard: remove old orange board colours ----- */
html body .flb2-board-head{background:#f1f1f1;border-color:var(--d11-line);}

/* =====================================================================
   v7 : PREDICTION page + every remaining class that was still big
   ===================================================================== */

/* ---------- PREDICTION (fantasy-prediction.php) ---------- */
html body .px-page{min-height:0;background:var(--d11-bg);padding-bottom:64px;}
html body .px-header{padding:8px 10px 8px;background:linear-gradient(180deg,var(--d11-red) 0%,var(--d11-red-dark) 100%);box-shadow:0 2px 6px rgba(0,0,0,.28);}
html body .px-header:after{display:none;}
html body .px-back{width:34px;height:34px;flex:0 0 34px;border-radius:50%;border:0;background:rgba(255,255,255,.14);font-size:.9rem;}
html body .px-titlebox{text-align:left;}
html body .px-titlebox h1{font-size:1rem;font-weight:700;line-height:1.15;}
html body .px-sub{margin-top:1px;font-size:.7rem;font-weight:500;}
html body .px-wallet{padding:5px 9px;border-radius:4px;background:transparent;border:1px solid rgba(255,255,255,.55);font-size:.8rem;font-weight:700;}
html body .px-switcher{gap:0;margin-top:8px;background:rgba(0,0,0,.18);border-radius:4px;padding:3px;}
html body .px-switcher a{height:30px;border-radius:3px;border:0;background:transparent;font-size:.8rem;font-weight:700;}
html body .px-switcher a.active{background:#fff;color:var(--d11-red);}
html body .px-note{margin-top:6px;font-size:.66rem;font-weight:500;line-height:1.3;opacity:.95;}
html body .px-tabs{gap:0;padding:0;background:#fff;border-bottom:1px solid var(--d11-line);font-weight:700;}
html body .px-tabs a{flex:1;text-align:center;padding:10px 6px;font-size:.78rem;color:var(--d11-grey);border-bottom:3px solid transparent;}
html body .px-tabs a.active{color:var(--d11-ink);border-bottom-color:var(--d11-red);}
html body .px-card{margin:8px 10px;padding:10px 12px;border-radius:6px;border:1px solid var(--d11-line);box-shadow:0 1px 3px rgba(0,0,0,.08);}
html body .px-card-top{font-size:.7rem;font-weight:500;}
html body .badge-open{padding:2px 8px;border-radius:3px;font-size:.6rem;font-weight:700;background:#e6f5ea;color:var(--d11-green-dark);}
html body .px-question{margin-top:8px;font-size:.95rem;line-height:1.3;font-weight:700;}
html body .px-matchline{margin-top:3px;font-size:.74rem;font-weight:500;color:var(--d11-grey);}
html body .px-openline{margin-top:2px;font-size:.66rem;font-weight:700;color:var(--d11-red);}
html body .px-choice-row{gap:6px;margin-top:10px;}
html body .px-choice{min-height:50px;border-radius:6px;border-width:1.5px;font-size:1rem;font-weight:700;}
html body .px-choice small{font-size:.66rem;margin-top:2px;font-weight:500;}
html body .px-choice.yes{background:#e6f5ea;color:var(--d11-green-dark);}
html body .px-choice.no{background:#fdecea;color:var(--d11-red);}
html body .px-choice.active{border-color:var(--d11-ink);}
html body .px-choice[disabled]{opacity:.6;}
html body .px-vs{font-size:.7rem;}
html body .px-bottomrow{gap:8px;margin-top:10px;flex-direction:row;align-items:flex-end;}
html body .px-coins label{font-size:.62rem;font-weight:700;margin-bottom:3px;text-transform:uppercase;letter-spacing:.3px;}
html body .px-coins select{height:34px;border-radius:4px;font-size:.82rem;padding:0 8px;}
html body .px-openbtn{min-height:34px;padding:0 14px;border-radius:4px;font-size:.78rem;font-weight:700;background:var(--d11-green);box-shadow:0 2px 0 var(--d11-green-dark);text-transform:uppercase;letter-spacing:.3px;}
html body .px-openbtn.dim{background:#eee;color:#555;box-shadow:none;}
html body .px-footerline{margin-top:8px;font-size:.72rem;font-weight:500;color:#555;}
html body .px-card.joined .px-openbtn{margin-top:8px;width:100%;}
@media (max-width:520px){
  html body .px-titlebox h1{font-size:1rem;}
  html body .px-question{font-size:.92rem;}
  html body .px-choice{font-size:.95rem;min-height:48px;}
  html body .px-choice small{font-size:.64rem;}
  html body .px-bottomrow{flex-direction:row;align-items:flex-end;}
  html body .px-openbtn{width:auto;flex:1;}
}

/* ---------- leaderboard (live rows, progress, summary strip) ---------- */
html body .flb2-progress-card{margin:8px 10px;padding:8px 12px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);border:1px solid var(--d11-line);}
html body .flb2-progress-top{margin-bottom:6px;}
html body .flb2-progress-top small{font-size:.62rem;}
html body .flb2-progress-top strong{font-size:.85rem;}
html body .flb2-live-row{margin:0 10px 6px;padding:8px 10px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.08);border-color:var(--d11-line);gap:8px;}
html body .flb2-live-row.mine{border-color:var(--d11-green);background:#f3fbf5;}
html body .flb2-live-left{gap:8px;}
html body .flb2-live-rank{width:34px;height:34px;border-radius:50%;font-size:.72rem;background:var(--d11-red);}
html body .flb2-live-name{font-size:.82rem;font-weight:700;}
html body .flb2-live-sub{font-size:.64rem;margin-top:1px;}
html body .flb2-live-right strong{font-size:.95rem;}
html body .flb2-live-right small{font-size:.58rem;margin-top:1px;}
html body .flb2-summary-strip{gap:6px;margin:8px 10px;grid-template-columns:repeat(4,minmax(0,1fr));}
html body .flb2-summary-strip div{padding:6px 4px;border-radius:5px;box-shadow:0 1px 3px rgba(0,0,0,.08);border-color:var(--d11-line);}
html body .flb2-summary-strip small{font-size:.56rem;margin-bottom:0;}
html body .flb2-summary-strip strong{font-size:.8rem;}

/* ---------- match page leftovers ---------- */
html body .mx-topbar{gap:8px;}
html body .mx-card-top{gap:8px;}
html body .mx-meta-row,html body .mx-foot-row{font-size:.7rem;gap:8px;}
html body .mx-foot-row{margin-top:6px;}
html body .mx-card-actions{margin-top:8px;}
html body .mx-cvc-zone{gap:6px;}
html body .mx-actionchip,html body .mx-viewlink{min-height:28px;padding:0 10px;font-size:.7rem;border-radius:4px;}
html body .mx-viewlink{background:#e6f5ea;color:var(--d11-green-dark);}
html body .mx-sheet{padding:12px;border-radius:12px 12px 0 0;}
html body .mx-sheet-head{margin-bottom:6px;font-size:.9rem;font-weight:700;}
html body .mx-sheet-head button{width:30px;height:30px;}
html body .mx-sheet a{padding:10px 12px;border-radius:4px;font-size:.85rem;}
html body .mx-sheet a.active{background:var(--d11-red);}

/* ---------- home / matches leftovers ---------- */
html body .fhome-mini-stats{gap:5px;}
html body .fhome-mini-stats span{padding:3px 8px;font-size:.64rem;border-radius:3px;background:rgba(0,0,0,.18);}
html body .fhome-mini-stats b{font-size:.74rem;}
html body .fh-match-card .fh-card-topline{margin-bottom:0;gap:8px;}

/* ---------- points breakdown / refer / support / withdraw ---------- */
html body .pdb-head{gap:8px;}
html body .pdb-sub{font-size:.66rem;margin-top:1px;}
html body .pdb-empty{margin-top:8px;font-size:.76rem;}
html body .refer-card strong{font-size:1.4rem;margin-top:4px;letter-spacing:2px;color:var(--d11-red);}
html body .refer-card small{font-size:.7rem;}
html body .refer-card p{margin:8px 0 12px;font-size:.78rem;}
html body .ftb-head-copy h1{font-size:1rem;font-weight:700;}
html body .ftb-head-copy .fh-sub{font-size:.7rem;}
html body .wallet-summary-strip{padding:7px 10px;font-size:.78rem;border-radius:5px;}
html body .fantasy-section-wrap .fantasy-page-title{margin:4px 2px 6px;}
html body .fp-form-card,html body .fp-team-card,html body .ac-request-card{margin-top:0;}
html body .already-joined .join-ticket-select{background:var(--d11-green);}
html body .tp2-actions{gap:6px;}
html body .more-profile-top{gap:10px;}

/* ---------- prediction: settled result badges ---------- */
html body .badge-open.is-won{background:#e6f5ea;color:var(--d11-green-dark);}
html body .badge-open.is-lost{background:#fdecea;color:var(--d11-red);}
html body .badge-open.is-void{background:#eee;color:#555;}
html body .px-win{color:var(--d11-green-dark);font-weight:700;}
