/* ============ Landing page — gold tournament theme ============ */
:root {
  --lp-bg: #0a0e16; --lp-card: #10151f; --lp-card2: #161d2a; --lp-border: #232c3d;
  --lp-gold: #f5b60d; --lp-gold2: #ffc933; --lp-text: #f2f5fa; --lp-muted: #93a1b8;
  --lp-red: #c0392b; --lp-green: #2ecc71; --lp-orange: #ff7a1a; --lp-purple: #b45de0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.landing { background: var(--lp-bg); color: var(--lp-text); font-family: 'Segoe UI', system-ui, sans-serif; }
.landing a { color: inherit; text-decoration: none; }
.landing img { max-width: 100%; }

/* ---- Navbar ---- */
.lp-nav { display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: #070a10;
  border-bottom: 2px solid var(--lp-gold); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.lp-brand .mark { font-size: 1.6rem; }
.lp-brand .t1 { font-size: 1.15rem; letter-spacing: .12em; }
.lp-brand .t2 { display: block; font-size: .6rem; letter-spacing: .3em; color: var(--lp-gold); }
.lp-links { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 auto; }
.lp-links a { padding: 8px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--lp-text);
  border-bottom: 2px solid transparent; }
.lp-links a:hover, .lp-links a.active { color: var(--lp-gold); border-bottom-color: var(--lp-gold); }
.lp-btn { display: inline-block; background: var(--lp-gold); color: #14100a; font-weight: 800; font-size: .78rem;
  letter-spacing: .05em; padding: 10px 16px; border-radius: 8px; border: none; cursor: pointer; text-align: center; }
.lp-btn:hover { background: var(--lp-gold2); }
.lp-btn.outline { background: transparent; color: var(--lp-gold); border: 2px solid var(--lp-gold); padding: 8px 14px; }
.lp-btn.block { display: block; width: 100%; }

/* ---- Layout: main + sidebar ---- */
.lp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 16px;
  max-width: 1560px; margin: 0 auto; }
@media (max-width: 1100px) { .lp-wrap { grid-template-columns: 1fr; } }

/* ---- Hero ---- */
.lp-hero { position: relative; border-radius: 14px; overflow: hidden; min-height: 360px;
  background: radial-gradient(1000px 380px at 78% -60px, rgba(245,182,13,.30), transparent 60%),
              radial-gradient(700px 320px at 12% 110%, rgba(46,124,246,.25), transparent 60%),
              linear-gradient(140deg, #0d1523 0%, #10233f 55%, #0a1220 100%);
  background-size: cover; background-position: center; border: 1px solid var(--lp-border); }
.lp-hero::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,8,14,.88) 25%, rgba(5,8,14,.45) 60%, rgba(5,8,14,.75)); }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr auto; gap: 18px;
  padding: 30px 26px; align-items: center; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; } }
.lp-hero h1 { font-size: 2.4rem; line-height: 1.12; text-transform: uppercase; }
.lp-hero h1 .season { display: block; color: var(--lp-gold); }
.lp-tagline { margin: 12px 0 20px; letter-spacing: .35em; font-size: .8rem; color: var(--lp-muted);
  text-transform: uppercase; border-top: 2px solid var(--lp-gold); padding-top: 10px; display: inline-block; }
.lp-trophy { font-size: 5.5rem; filter: drop-shadow(0 8px 24px rgba(245,182,13,.45)); text-align: center; }

.lp-hero-cards { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.lp-card { background: rgba(10,14,22,.88); border: 1px solid var(--lp-border); border-radius: 12px; padding: 16px; }
.lp-card h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  margin-bottom: 12px; color: var(--lp-text); }
.lp-vs { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.lp-vs .side { text-align: center; font-size: .74rem; font-weight: 700; max-width: 90px; }
.lp-vs .logo { width: 54px; height: 54px; border-radius: 10px; object-fit: contain; background: var(--lp-card2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 6px;
  border: 1px solid var(--lp-border); font-size: 1rem; }
.lp-vs .v { color: var(--lp-gold); font-weight: 800; }
.lp-when { display: flex; justify-content: center; gap: 14px; color: var(--lp-muted); font-size: .8rem; margin-bottom: 12px; }

/* ---- Icon tiles ---- */
.lp-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 1000px) { .lp-tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .lp-tiles { grid-template-columns: repeat(2, 1fr); } }
.lp-tile { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 10px;
  padding: 16px 8px; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.lp-tile:hover { border-color: var(--lp-gold); }
.lp-tile .ico { display: block; font-size: 1.5rem; margin-bottom: 8px; }

/* ---- Sections ---- */
.lp-section { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 12px;
  padding: 18px; margin-top: 16px; }
.lp-section > h2 { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.lp-cols { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .lp-cols { grid-template-columns: 1fr; } }

/* Tournament stats */
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-stat { background: var(--lp-card2); border: 1px solid var(--lp-border); border-radius: 10px;
  padding: 14px 8px; text-align: center; }
.lp-stat .v { font-size: 1.5rem; font-weight: 800; color: var(--lp-gold); }
.lp-stat .l { font-size: .64rem; letter-spacing: .1em; color: var(--lp-muted); margin-top: 2px; }

/* Top player cards */
.lp-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lp-player { background: var(--lp-card2); border: 1px solid var(--lp-border); border-radius: 10px;
  padding: 14px 10px; text-align: center; }
.lp-player .tag { font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.lp-player .tag.orange { color: var(--lp-orange); } .lp-player .tag.purple { color: var(--lp-purple); }
.lp-player .tag.green { color: var(--lp-green); } .lp-player .tag.gold { color: var(--lp-gold); }
.lp-player .ph { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 10px auto 8px;
  background: var(--lp-card); border: 2px solid var(--lp-border); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; font-weight: 800; color: var(--lp-muted); }
.lp-player .nm { font-size: .8rem; font-weight: 800; }
.lp-player .tm { font-size: .66rem; color: var(--lp-muted); margin-bottom: 6px; }
.lp-player .st { font-size: .82rem; font-weight: 800; }

/* News */
.lp-news-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px;
  border-bottom: 1px solid var(--lp-border); font-size: .84rem; }
.lp-news-item:last-of-type { border-bottom: none; }
.lp-news-item .d { color: var(--lp-muted); font-size: .72rem; white-space: nowrap; }

/* Sponsors */
.lp-sponsors { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 6px 0; }
.lp-sponsor { font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; color: var(--lp-muted);
  display: flex; gap: 8px; align-items: center; }
.lp-sponsor:hover { color: var(--lp-gold); }

/* ---- Sidebar ---- */
.lp-side { display: flex; flex-direction: column; gap: 16px; }
.lp-panel { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 12px; padding: 16px; }
.lp-panel > h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; }
.lp-live-dot { color: var(--lp-red); font-size: .68rem; font-weight: 800; }
.lp-score-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lp-score-row .logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--lp-card2);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
  border: 1px solid var(--lp-border); flex: none; }
.lp-score-row .nm { font-weight: 700; font-size: .86rem; flex: 1; }
.lp-score-row .sc { text-align: right; }
.lp-score-row .sc b { color: var(--lp-gold); font-size: 1.05rem; }
.lp-score-row .sc span { display: block; font-size: .68rem; color: var(--lp-muted); }
.lp-need { text-align: center; font-size: .8rem; color: var(--lp-muted); border-top: 1px solid var(--lp-border);
  padding-top: 10px; margin-top: 6px; }
.lp-need b { color: var(--lp-text); }

/* Login tabs */
.lp-tabs { display: flex; margin-bottom: 12px; border: 1px solid var(--lp-border); border-radius: 8px; overflow: hidden; }
.lp-tab { flex: 1; padding: 9px; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  background: var(--lp-card2); color: var(--lp-muted); cursor: pointer; border: none; }
.lp-tab.active { background: var(--lp-gold); color: #14100a; }
.lp-field { margin-bottom: 10px; }
.lp-field label { display: block; font-size: .68rem; color: var(--lp-muted); margin-bottom: 4px; letter-spacing: .05em; }
.lp-field input { width: 100%; background: var(--lp-card2); border: 1px solid var(--lp-border); color: var(--lp-text);
  border-radius: 8px; padding: 9px 12px; font-size: .85rem; }
.lp-field input:focus { outline: none; border-color: var(--lp-gold); }
.lp-forgot { display: block; text-align: right; font-size: .7rem; color: var(--lp-gold); margin: -4px 0 10px; }

/* Countdown */
.lp-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lp-count .cell { background: var(--lp-card2); border: 1px solid var(--lp-border); border-radius: 8px;
  text-align: center; padding: 10px 4px; }
.lp-count .n { font-size: 1.3rem; font-weight: 800; color: var(--lp-gold); font-variant-numeric: tabular-nums; }
.lp-count .u { font-size: .6rem; letter-spacing: .1em; color: var(--lp-muted); }

/* Digital player ID */
.lp-id { border: 1px solid var(--lp-gold); border-radius: 10px; overflow: hidden; }
.lp-id-head { background: linear-gradient(90deg, #1a1408, #2a2008); color: var(--lp-gold); padding: 8px 12px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; }
.lp-id-body { display: flex; gap: 12px; padding: 12px; }
.lp-id-photo { width: 84px; height: 100px; border-radius: 8px; object-fit: cover; background: var(--lp-card2);
  border: 1px solid var(--lp-border); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--lp-muted); flex: none; }
.lp-id-body .f { font-size: .62rem; color: var(--lp-muted); letter-spacing: .08em; margin-top: 6px; }
.lp-id-body .v { font-size: .8rem; font-weight: 800; }
.lp-id-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px;
  border-top: 1px solid var(--lp-border); font-size: .64rem; color: var(--lp-muted); }

/* ---- Footer ---- */
.lp-footer { border-top: 2px solid var(--lp-gold); background: #070a10; margin-top: 20px;
  padding: 26px 22px 40px; }
.lp-footer-grid { max-width: 1560px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
.lp-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.lp-footer p, .lp-footer a { font-size: .8rem; color: var(--lp-muted); line-height: 1.9; display: block; }
.lp-footer a:hover { color: var(--lp-gold); }
.lp-social { display: flex; gap: 10px; }
.lp-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--lp-card2);
  border: 1px solid var(--lp-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.lp-social a:hover { border-color: var(--lp-gold); }

/* Recent results */
.lp-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.lp-result { text-decoration:none; display:block; }
.lp-result-text { color:#f5b60d; font-weight:700; text-align:center; margin:10px 0; }
/* menu icons variant: slightly tighter so all items fit one row */
.lp-links a { padding: 8px 9px; font-size: .74rem; white-space: nowrap; }

/* ===== brand identical to inner pages (gold name + spaced sub-line) ===== */
.lp-brand span > span { display: block; line-height: 1.15; }
.lp-brand .t1 { color: var(--lp-gold); font-size: 1rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.lp-brand .t2 { color: #c8d2e2; font-size: .58rem; letter-spacing: .28em; }

/* ===== mobile nav: hamburger dropdown like every other page ===== */
.lp-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--lp-border);
  color: #fff; border-radius: 8px; font-size: 1.25rem; padding: 4px 12px; cursor: pointer; }
@media (max-width: 940px) {
  .lp-nav { flex-wrap: wrap; gap: 10px; }
  .lp-burger { display: block; }
  .lp-links { display: none; width: 100%; flex-direction: column; margin: 0;
    border-top: 1px solid var(--lp-border); padding-top: 6px; }
  .lp-links.open { display: flex; }
  .lp-links a { padding: 12px 8px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .lp-nav .lp-btn { margin-left: 0; font-size: .78rem; padding: 9px 14px; }
}

/* ===== extra mobile compatibility for landing sections ===== */
@media (max-width: 600px) {
  .lp-hero h1 { font-size: 1.65rem; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-count .n { font-size: 1.05rem; }
  .lp-sponsors { gap: 16px; }
  .lp-wrap { padding: 14px 10px; }
  .lp-vs .side { font-size: .82rem; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-results { grid-template-columns: 1fr; }
  /* let the hero cards shrink so the page never overflows on 320px phones */
  .lp-hero-grid { padding: 22px 14px; }
  .lp-hero-cards { min-width: 0; }
}

/* login/register: buttons on desktop only, dropdown items on mobile only */
.lp-links .mob-only { display: none; }
@media (max-width: 940px) {
  .lp-nav .lp-btn.desk-only { display: none; }
  .lp-links.open .mob-only { display: block; }
}

/* ===== v17: shared site footer on the landing page ===== */
.site-footer { background:#070a10; border-top:2px solid var(--lp-gold,#f5b60d); margin-top:40px; }
.sf-cols { max-width:1100px; margin:auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:26px; padding:30px 20px 16px; }
.sf-cols h4 { color:var(--lp-gold,#f5b60d); margin:0 0 10px; text-transform:uppercase; letter-spacing:.06em; font-size:.9rem; }
.sf-cols a { display:block; color:#c9d4e5; text-decoration:none; padding:3px 0; font-size:.88rem; }
.sf-cols a:hover { color:var(--lp-gold,#f5b60d); }
.sf-cols p { color:#8a94a6; font-size:.85rem; margin:0; }
.sf-bottom { text-align:center; color:#5c6575; font-size:.78rem; padding:12px; border-top:1px solid #131a26; }
.sf-logo { width:52px; height:52px; object-fit:contain; margin-bottom:8px; display:block; }
.powered { font-size:.74rem; color:#8a94a6; margin-left:12px; }
.powered a { color:#f5b60d; font-weight:700; text-decoration:none; }
@media (max-width:600px){
  .sf-cols { gap:14px; padding:18px 14px 8px; grid-template-columns:1fr 1fr; }
  .sf-cols h4 { font-size:.76rem; margin-bottom:5px; }
  .sf-cols a { font-size:.76rem; padding:2px 0; }
  .sf-cols p { font-size:.74rem; }
  .sf-bottom { font-size:.66rem; padding:8px; }
  .powered { display:block; margin:4px 0 0; }
}

/* (invert hack removed — real light palette below) */
.lp-theme { background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 50%;
  width: 36px; height: 36px; font-size: 1rem; cursor: pointer; flex: 0 0 auto; }

/* ===== v19: full-width auto-scrolling sponsor strip + theme btn placement ===== */
.lp-sponsorbar { max-width: 1280px; margin: 26px auto 0; padding: 18px 20px 22px;
  background: var(--lp-card, #0d1220); border: 1px solid rgba(245, 182, 13, .25); border-radius: 16px; }
.lp-sponsorbar h2 { text-align: center; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lp-gold, #f5b60d); margin: 0 0 16px; }
.lp-sponsors-clip { overflow: hidden; }
.lp-sponsors-track { display: flex; gap: 54px; align-items: center; width: max-content;
  animation: lp-spon-scroll 28s linear infinite; }
.lp-sponsors-clip:hover .lp-sponsors-track { animation-play-state: paused; }
@keyframes lp-spon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lp-sponsors-track .lp-sponsor { white-space: nowrap; font-weight: 800; font-size: 1.05rem; }
.lp-theme { margin-left: auto; order: 98; }
.lp-burger { order: 99; }
@media (min-width: 861px) { .lp-theme { margin-left: 12px; } }
/* theme button lives at the end of the menu, like inner pages */
.lp-links .lp-theme { margin-left: 0; order: 0; }
/* pin ◐ to the far right of the navbar on desktop; inside the dropdown on mobile */
.lp-nav { position: relative; }
@media (min-width: 861px) {
  .lp-links .lp-theme { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .lp-nav > .lp-btn.desk-only:last-of-type { margin-right: 54px; }
}
@media (max-width: 860px) {
  .lp-links .lp-theme { margin: 8px 0 0; }
}

/* ===== v20: REAL landing light theme — same palette as the inner pages ===== */
html[data-theme="light"] body.landing {
  --lp-bg: #f3f5fb; --lp-card: #ffffff; --lp-card2: #eef1f8; --lp-border: #d9dfec;
  --lp-gold: #b07f00; --lp-gold2: #8a6508; --lp-text: #1b2437; --lp-muted: #5c6880;
  background: var(--lp-bg); color: var(--lp-text);
}
html[data-theme="light"] body.landing .lp-nav { background: #ffffff; border-bottom-color: var(--lp-gold); }
html[data-theme="light"] body.landing .lp-links a { color: var(--lp-text); }
html[data-theme="light"] body.landing .lp-links a:hover,
html[data-theme="light"] body.landing .lp-links a.active { color: var(--lp-gold); }
html[data-theme="light"] body.landing .lp-panel,
html[data-theme="light"] body.landing .lp-card,
html[data-theme="light"] body.landing .lp-tile,
html[data-theme="light"] body.landing .lp-sponsorbar,
html[data-theme="light"] body.landing .lp-section { background-color: var(--lp-card); border-color: var(--lp-border); }
html[data-theme="light"] body.landing .lp-panel h3,
html[data-theme="light"] body.landing .lp-section > h2 { color: var(--lp-gold); }
html[data-theme="light"] body.landing input {
  background: #f3f5fb; color: var(--lp-text); border-color: var(--lp-border); }
html[data-theme="light"] body.landing .lp-btn { background: var(--lp-gold); color: #fff; }
html[data-theme="light"] body.landing .site-footer { background: #eef1f8; }
html[data-theme="light"] body.landing .sf-cols a, html[data-theme="light"] body.landing .sf-cols p { color: #3d475c; }
html[data-theme="light"] body.landing .sf-bottom { color: #5c6880; border-top-color: #d9dfec; }
html[data-theme="light"] body.landing .sf-cols h4 { color: #5a3d00; }
html[data-theme="light"] body.landing .sf-cols a,
html[data-theme="light"] body.landing .sf-cols p,
html[data-theme="light"] body.landing .sf-cols span { color: #3d475c; }
html[data-theme="light"] body.landing .site-footer,
html[data-theme="light"] body.landing .site-footer * { color: inherit; }

/* ===== v20.1: homepage dark background & panels — same look as inner pages ===== */
html:not([data-theme="light"]) body.landing {
  background:
    radial-gradient(ellipse 900px 500px at 90% -10%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(ellipse 800px 460px at -10% 25%, rgba(59,130,246,.08), transparent 60%),
    radial-gradient(ellipse 900px 520px at 50% 118%, rgba(245,182,13,.07), transparent 60%),
    #05070f;
}
html:not([data-theme="light"]) body.landing .lp-panel,
html:not([data-theme="light"]) body.landing .lp-card,
html:not([data-theme="light"]) body.landing .lp-tile,
html:not([data-theme="light"]) body.landing .lp-sponsorbar {
  background: linear-gradient(160deg, #0b101f, #101731); border-color: #1d2643;
}

/* v21: tournament picker for Stats + Top Players */
.lp-lgpick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 -8px; }
.lp-lgpick label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem; }
.lp-lgpick select { background: var(--lp-card); color: var(--lp-text); border: 1px solid var(--lp-border);
  border-radius: 10px; padding: 8px 12px; font-weight: 700; min-width: 220px; }
.lp-lgpick .lp-muted { color: var(--lp-muted); font-size: .74rem; }

/* ===== v22: homepage header identical to inner pages + light-mode visibility ===== */
.lp-brand .t2 { color: #e8a11c; }
html[data-theme="light"] body.landing .lp-brand .t2 { color: #8a6508; }
.lp-burger { color: var(--lp-text); border-radius: 10px; width: 40px; height: 38px; font-size: 1.2rem; }
html[data-theme="light"] body.landing .lp-burger { color: #1b2437; border-color: #d9dfec; }
html[data-theme="light"] body.landing .lp-theme { color: #1b2437; border-color: #d9dfec; }
@media (max-width: 860px) {
  .lp-burger { position: absolute; right: 14px; top: 14px; margin-left: 0; display: block; }
  .lp-nav { position: relative; padding-right: 66px; }
  .lp-links .lp-theme { margin: 8px auto 0; }
}

/* ===== v24: home navbar matches the inner-page navbar — brand + menu on ONE line,
   fluid font that shrinks to fit (no wrapping, no visible scrollbar), 34px logo ===== */
@media (min-width: 861px) {
  .lp-nav { flex-wrap: nowrap; padding: 8px 20px; gap: 12px; align-items: center; }
  .lp-brand { flex: 0 0 auto; gap: 8px; }
  .lp-brand img { width: 34px; height: 34px; }
  .lp-brand .mark { font-size: 1.4rem; }
  .lp-brand .t1 { font-size: 1rem; letter-spacing: .06em; }
  .lp-brand .t2 { font-size: .55rem; letter-spacing: .22em; }
  .lp-links {
    flex: 1 1 auto; min-width: 0; margin: 0;
    flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 1px;
    /* invisible overflow safety — spills right (reachable), never wraps, no scrollbar */
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .lp-links::-webkit-scrollbar { display: none; height: 0; width: 0; }
  .lp-links > a, .lp-links > button { flex: 0 0 auto; }
  .lp-links a { padding: 6px clamp(5px, 0.45vw, 9px); font-size: clamp(.58rem, 0.58vw, .68rem);
    white-space: nowrap; letter-spacing: .03em; border-bottom: 2px solid transparent; }
  .lp-theme { flex: 0 0 auto; width: 30px; height: 30px; }
  .lp-nav .lp-btn.desk-only { flex: 0 0 auto; font-size: .68rem; padding: 7px 11px; }
}

/* ---- Incomplete-profile notice (links to account.php) ---- */
.lp-alert { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1180px;
  margin: 14px auto 0; padding: 12px 16px; border: 1px solid #7a5a12; border-radius: 12px;
  background: linear-gradient(180deg, #2a2011, #1d1810); color: #ffd98a; font-size: .9rem;
  font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.lp-alert .lp-alert-cta { margin-left: auto; padding: 9px 14px; min-height: 40px; border-radius: 10px;
  background: var(--lp-gold); color: #17130a; font-weight: 800; white-space: nowrap; }
.lp-alert .lp-alert-x { border: 0; background: transparent; color: #ffd98a; font-size: 1.15rem;
  cursor: pointer; line-height: 1; padding: 6px; }
html[data-theme="light"] .lp-alert { background: #fff8e6; border-color: #e6c34d; color: #6b4c07; }
html[data-theme="light"] .lp-alert .lp-alert-x { color: #6b4c07; }
@media (max-width: 640px) { .lp-alert { margin: 12px 12px 0; font-size: .82rem; }
  .lp-alert .lp-alert-cta { margin-left: 0; width: 100%; text-align: center; } }

.fx2-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:14px 0; }
@media (max-width:1199px) { .fx2-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:599px){ .fx2-grid { grid-template-columns:1fr; } }
.fx2-card { display:block; background:var(--card2); border:1px solid var(--border); border-radius:12px; padding:14px; text-decoration:none; color:inherit; transition:border-color .2s,transform .2s; }
.fx2-card:hover { border-color:var(--primary); transform:translateY(-2px); }
.fx2-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:.68rem; }
.fx2-team { display:flex; align-items:center; gap:8px; padding:5px 0; border-bottom:1px solid var(--border); }
.fx2-team:last-of-type { border-bottom:none; }
.fx2-team img,.fx2-team .fx2-logo { width:28px;height:28px;border-radius:6px;object-fit:contain;background:var(--card2);border:1px solid var(--border);flex:none;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:800; }
.fx2-team-name { flex:1;min-width:0; }
.fx2-team-short { font-weight:800;font-size:.82rem; }
.fx2-team-full { font-size:.62rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.fx2-score { font-weight:800;font-size:.92rem;text-align:right;white-space:nowrap; }
.fx2-score .runs { color:var(--text); }
.fx2-score .overs { font-size:.62rem;color:var(--muted);display:block; }
.fx2-time { text-align:right; }
.fx2-time .t-date { font-size:.62rem;color:var(--muted); }
.fx2-time .t-time { font-weight:800;font-size:1.05rem;color:var(--text); }
.fx2-foot { margin-top:10px;padding-top:8px;border-top:1px solid var(--border);font-size:.68rem;color:var(--muted);display:flex;justify-content:space-between;align-items:center; }
.fx2-foot a { color:var(--primary);font-weight:700; }
.fx2-starts { color:var(--muted);font-size:.7rem; }
.fx2-result { font-size:.72rem;font-weight:700;color:#4ade80;margin-top:4px; }

/* Platform hero (replaces old hero on index.php) */
.plat-hero { position:relative;border-radius:14px;overflow:hidden;min-height:420px;
  background:radial-gradient(900px 400px at 80% -40px,rgba(245,182,13,.22),transparent 60%),radial-gradient(600px 300px at 10% 110%,rgba(200,30,50,.18),transparent 60%),
             linear-gradient(135deg,#080c16 0%,#0f1e38 55%,#090d18 100%);
  border:1px solid var(--lp-border);padding:48px 36px; }
.plat-hero::before { content:'';position:absolute;inset:0;background:linear-gradient(110deg,rgba(4,7,14,.92) 25%,rgba(4,7,14,.55) 65%,rgba(4,7,14,.8)); }
.plat-hero-inner { position:relative;max-width:620px; }
.plat-kicker { font-size:.68rem;letter-spacing:.28em;text-transform:uppercase;color:var(--lp-gold);margin-bottom:14px;display:flex;align-items:center;gap:8px; }
.plat-kicker::before { content:'';width:28px;height:2px;background:var(--lp-gold); }
.plat-h1 { font-size:2.8rem;font-weight:900;line-height:1.1;text-transform:uppercase;margin-bottom:16px; }
.plat-h1 span { color:var(--lp-gold); }
.plat-sub { color:var(--lp-muted);font-size:.95rem;line-height:1.7;max-width:520px;margin-bottom:28px; }
.plat-btns { display:flex;gap:12px;flex-wrap:wrap; }
.plat-trust { display:flex;gap:20px;flex-wrap:wrap;margin-top:24px; }
.plat-trust-item { display:flex;align-items:center;gap:7px;font-size:.76rem;color:var(--lp-muted); }
.plat-trust-item i { color:var(--lp-gold);font-size:1rem; }

/* Plan-gated feature grid */
.feat-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:16px; }
.feat-card { background:var(--lp-card2);border:1px solid var(--lp-border);border-radius:12px;padding:16px 14px;position:relative;transition:border-color .2s; }
.feat-card:hover { border-color:rgba(245,182,13,.4); }
.feat-card.free { border-left:3px solid #4ade80; }
.feat-card.starter { border-left:3px solid #60a5fa; }
.feat-card.pro { border-left:3px solid var(--lp-gold); }
.feat-card.elite { border-left:3px solid var(--lp-red,#ff5252); }
.feat-card.locked { opacity:.72; }
.feat-card .fc-lock { position:absolute;top:10px;right:10px;font-size:.85rem; }
.feat-card .fc-ico { font-size:1.6rem;margin-bottom:10px; }
.feat-card .fc-name { font-weight:800;font-size:.9rem;margin-bottom:4px; }
.feat-card .fc-desc { font-size:.72rem;color:var(--lp-muted);line-height:1.5; }
.feat-card .fc-plan { font-size:.6rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-top:8px; }
.feat-card.free .fc-plan { color:#4ade80; }
.feat-card.starter .fc-plan { color:#60a5fa; }
.feat-card.pro .fc-plan { color:var(--lp-gold); }
.feat-card.elite .fc-plan { color:var(--lp-red,#ff5252); }

/* Plan pricing cards */
.plan-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px; }
@media (max-width:900px) { .plan-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px)  { .plan-grid { grid-template-columns:1fr; } }
.plan-card { background:var(--lp-card2);border:1px solid var(--lp-border);border-radius:14px;padding:22px 18px;position:relative; }
.plan-card.popular { border-color:var(--lp-gold);box-shadow:0 0 0 1px var(--lp-gold); }
.plan-card .pc-pop { position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:var(--lp-gold);color:#14100a;font-size:.6rem;font-weight:900;letter-spacing:.1em;padding:3px 12px;border-radius:20px;white-space:nowrap; }
.plan-card .pc-name { font-size:.68rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:6px; }
.plan-card.free-plan .pc-name { color:#4ade80; }
.plan-card.starter-plan .pc-name { color:#60a5fa; }
.plan-card.pro-plan .pc-name { color:var(--lp-gold); }
.plan-card.elite-plan .pc-name { color:var(--lp-red,#ff5252); }
.plan-card .pc-price { font-size:2rem;font-weight:900;line-height:1;margin-bottom:4px; }
.plan-card .pc-price sup { font-size:1rem;vertical-align:top;margin-top:4px; }
.plan-card .pc-period { font-size:.68rem;color:var(--lp-muted);margin-bottom:16px; }
.plan-card .pc-feat { font-size:.76rem;color:var(--lp-muted);line-height:2;border-top:1px solid var(--lp-border);padding-top:14px; }
.plan-card .pc-feat li { list-style:none;padding:0; }
.plan-card .pc-feat li::before { content:'✓ ';color:var(--lp-gold); }
.plan-card .pc-cta { display:block;text-align:center;margin-top:16px;padding:10px;border-radius:8px;font-size:.78rem;font-weight:800;letter-spacing:.05em; }
.plan-card.free-plan .pc-cta { background:rgba(74,222,128,.12);color:#4ade80;border:1px solid rgba(74,222,128,.3); }
.plan-card.popular .pc-cta { background:var(--lp-gold);color:#14100a; }
.plan-card.starter-plan .pc-cta { background:rgba(96,165,250,.12);color:#60a5fa;border:1px solid rgba(96,165,250,.3); }
.plan-card.elite-plan .pc-cta { background:rgba(255,82,82,.1);color:#ff5252;border:1px solid rgba(255,82,82,.25); }

/* App download banner */
.app-banner { background:linear-gradient(110deg,#0d1730,#161f35);border:1px solid var(--lp-border);border-radius:14px;padding:28px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:20px; }
.app-banner-text h3 { font-size:1.1rem;font-weight:900;margin-bottom:6px; }
.app-banner-text p { color:var(--lp-muted);font-size:.82rem; }
.app-store-btn { display:inline-flex;align-items:center;gap:10px;background:#000;border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:10px 18px;color:#fff;text-decoration:none;transition:border-color .2s; }
.app-store-btn:hover { border-color:var(--lp-gold);color:#fff; }
.app-store-btn .asb-icon { font-size:1.6rem; }
.app-store-btn .asb-text { text-align:left; }
.app-store-btn .asb-sub { font-size:.58rem;letter-spacing:.06em;opacity:.7; }
.app-store-btn .asb-name { font-size:.88rem;font-weight:800; }

@media (max-width:600px) {
  .plat-h1 { font-size:1.8rem; }
  .plat-trust { gap:12px; }
}
@media (max-width:900px) {
  .plat-hero { padding:28px 20px; }
}

/* ===== Mobile fixes for platform sections ===== */
/* feat-grid: 2 cols on phones so cards don't stack 16 deep */
@media (max-width:599px) {
  .feat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .feat-card { padding:12px 10px; }
  .feat-card .fc-ico { font-size:1.3rem; margin-bottom:6px; }
  .feat-card .fc-name { font-size:.8rem; }
  .feat-card .fc-desc { display:none; } /* hide desc on tiny screens, name+plan enough */
  .plan-grid { grid-template-columns:1fr; }
  .app-banner { flex-direction:column; align-items:flex-start; padding:20px 16px; }
  .plat-trust { gap:10px; }
  .plat-trust-item { font-size:.72rem; }
  .plat-btns { flex-direction:column; }
  .plat-btns .lp-btn { text-align:center; }
}
/* fx2 card: tighten on small phones */
@media (max-width:399px) {
  .fx2-grid { gap:10px; }
  .fx2-card { padding:10px; }
  .fx2-upcoming .t-time { font-size:.9rem; }
}

/* ===== v25: light-theme readability fixes ===== */

/* 1. Hero light mode — light bg, hide dark overlay, dark readable text */
html[data-theme="light"] body.landing .plat-hero {
  background: linear-gradient(135deg,#f0f4ff 0%,#e6eaf8 60%,#edf0fb 100%);
  border-color: #d9dfec;
}
html[data-theme="light"] body.landing .plat-hero::before { display: none; }
html[data-theme="light"] body.landing .plat-hero .plat-h1 { color: #111827; }
html[data-theme="light"] body.landing .plat-hero .plat-h1 span { color: #b07f00; }
html[data-theme="light"] body.landing .plat-hero .plat-sub { color: #374151; }
html[data-theme="light"] body.landing .plat-hero .plat-kicker { color: #92400e; }
html[data-theme="light"] body.landing .plat-hero .plat-trust-item { color: #374151; }

/* 2. App download banner — hardcoded dark bg; force white text + right-align content */
html[data-theme="light"] body.landing .app-banner { background: linear-gradient(110deg,#0d1730,#161f35); }
html[data-theme="light"] body.landing .app-banner .app-banner-text h3 { color: #f2f5fa !important; }
html[data-theme="light"] body.landing .app-banner .app-banner-text p { color: #b0bdd4 !important; }
html[data-theme="light"] body.landing .app-store-btn { background: #000 !important; border-color: rgba(255,255,255,.25) !important; }
html[data-theme="light"] body.landing .app-store-btn .asb-sub,
html[data-theme="light"] body.landing .app-store-btn .asb-name { color: #ffffff !important; }
/* Push banner content to the right */
.app-banner { justify-content: flex-end; }
.app-banner .app-banner-text { margin-right: auto; }

/* 3. Plan card plan-names — swap neon colours for darker accessible versions in light mode */
html[data-theme="light"] body.landing .plan-card.free-plan .pc-name  { color: #1a8a45; }
html[data-theme="light"] body.landing .plan-card.starter-plan .pc-name { color: #1a5eb0; }
html[data-theme="light"] body.landing .plan-card.pro-plan .pc-name   { color: var(--lp-gold); }
html[data-theme="light"] body.landing .plan-card.elite-plan .pc-name { color: #c0392b; }

/* 3b. Plan CTA buttons — same colours need more contrast on white bg */
html[data-theme="light"] body.landing .plan-card.free-plan .pc-cta {
  background: rgba(26,138,69,.12); color: #1a8a45; border-color: rgba(26,138,69,.35);
}
html[data-theme="light"] body.landing .plan-card.starter-plan .pc-cta {
  background: rgba(26,94,176,.1); color: #1a5eb0; border-color: rgba(26,94,176,.3);
}
html[data-theme="light"] body.landing .plan-card.elite-plan .pc-cta {
  background: rgba(192,57,43,.1); color: #c0392b; border-color: rgba(192,57,43,.25);
}

/* 4. Feature card plan tier labels */
html[data-theme="light"] body.landing .feat-card.free .fc-plan    { color: #1a8a45; }
html[data-theme="light"] body.landing .feat-card.starter .fc-plan { color: #1a5eb0; }
html[data-theme="light"] body.landing .feat-card.pro .fc-plan     { color: var(--lp-gold); }
html[data-theme="light"] body.landing .feat-card.elite .fc-plan   { color: #c0392b; }

/* 5. lp-h2 headings — should use the themed gold, not inherit a potentially invisible value */
html[data-theme="light"] body.landing .lp-h2 { color: var(--lp-gold); }

/* 6. Tiles: text colour in light mode */
html[data-theme="light"] body.landing .lp-tile { color: var(--lp-text); }
html[data-theme="light"] body.landing .lp-tile:hover { color: var(--lp-gold); }
