/* =====================================================================
   Stadium night (4.61): the whole site is a floodlit ground at night.
   Deep pitch-black green, two floodlight cones from the top corners,
   faint mowing stripes, glass panels, giant condensed numbers, lime and
   team colours as the only loud colours. Loaded after app.css.
   ===================================================================== */
:root[data-theme="dark"]{
  --bg:#040b08;--card:rgba(17,32,25,.74);--card-solid:#0f1d17;--soft:rgba(255,255,255,.045);--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.14);
  --text:#eef5ef;--muted:#8fa498;--green:#39d38a;--green2:#4fe39b;--lime:#d8ff3e;--red:#ff5b4f;--amber:#ffb341;
  --glass:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  --e1:inset 0 1px 0 rgba(255,255,255,.07),0 1px 0 rgba(0,0,0,.5),0 18px 36px -18px rgba(0,0,0,.9);
  --e2:inset 0 1px 0 rgba(255,255,255,.09),0 2px 0 rgba(0,0,0,.55),0 30px 60px -24px rgba(0,0,0,.95);
  --glow-lime:0 0 0 1px rgba(216,255,62,.35),0 10px 34px -8px rgba(216,255,62,.45);
  --r:20px;
}
:root[data-theme="dark"] body{
  background-color:var(--bg);
  background-image:
    radial-gradient(60vw 46vh at 8% -14vh,rgba(232,255,190,.16),rgba(232,255,190,0) 70%),
    radial-gradient(60vw 46vh at 92% -14vh,rgba(232,255,190,.14),rgba(232,255,190,0) 70%),
    radial-gradient(90vw 60vh at 50% 120vh,rgba(25,140,85,.20),rgba(25,140,85,0) 70%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.014) 0 90px,rgba(255,255,255,0) 90px 180px);
  background-attachment:fixed;background-repeat:no-repeat,no-repeat,no-repeat,repeat;
}
:root[data-theme="dark"] ::selection{background:var(--lime);color:#06120c}

/* type: condensed, big, confident */
:root[data-theme="dark"] h1{font-size:clamp(32px,4.6vw,52px);font-weight:700;letter-spacing:.3px;line-height:1.02}
:root[data-theme="dark"] h2{font-size:clamp(22px,2.4vw,28px);font-weight:600;letter-spacing:.3px}
:root[data-theme="dark"] .section-head h2,:root[data-theme="dark"] .he-head h2{display:flex;align-items:center;gap:10px}
:root[data-theme="dark"] .section-head a,:root[data-theme="dark"] .hm-more{color:var(--lime);font-weight:700}

/* top bar and tab bar: smoked glass */
:root[data-theme="dark"] .top{background:rgba(4,11,8,.72);box-shadow:0 1px 0 rgba(216,255,62,.16),0 14px 30px -18px rgba(0,0,0,.9)}
:root[data-theme="dark"] .desk-nav a{color:#c9d6cd;border-radius:10px}
:root[data-theme="dark"] .desk-nav a:hover{color:#fff;background:rgba(255,255,255,.05);text-decoration:none}
:root[data-theme="dark"] .desk-nav a.on{background:var(--lime);color:#06120c;box-shadow:var(--glow-lime)}
:root[data-theme="dark"] .tabbar{background:rgba(6,15,11,.82);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);border-top:1px solid rgba(216,255,62,.14)}
:root[data-theme="dark"] .tabbar a.on{color:var(--lime)}
:root[data-theme="dark"] .tabbar a.on svg{filter:drop-shadow(0 0 8px rgba(216,255,62,.6))}

/* panels: glass on the night sky */
:root[data-theme="dark"] .card,:root[data-theme="dark"] .mcard,:root[data-theme="dark"] .tc,:root[data-theme="dark"] .he .mc,:root[data-theme="dark"] .qa-t,
:root[data-theme="dark"] .hi-strip,:root[data-theme="dark"] .mo,:root[data-theme="dark"] .pr{
  background:var(--glass),var(--card);border:1px solid var(--line);box-shadow:var(--e1);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
}
:root[data-theme="dark"] .mcard:hover,:root[data-theme="dark"] .tc:hover,:root[data-theme="dark"] .he .mc:hover,:root[data-theme="dark"] .qa-t:hover{border-color:rgba(216,255,62,.35);box-shadow:var(--e2);transform:translateY(-3px);text-decoration:none}
:root[data-theme="dark"] .tc,:root[data-theme="dark"] .he .mc,:root[data-theme="dark"] .qa-t{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}

/* buttons */
:root[data-theme="dark"] .btn-lime{box-shadow:var(--glow-lime)}
:root[data-theme="dark"] .btn-lime:hover{filter:brightness(1.06)}
:root[data-theme="dark"] .btn-soft{--face1:rgba(255,255,255,.09);--face2:rgba(255,255,255,.04);--edge:rgba(0,0,0,.5);--txt:#eef5ef;border:1px solid var(--line)}

/* the four start tiles: a row of floodlit boards */
:root[data-theme="dark"] .qa-t{min-height:92px}
:root[data-theme="dark"] .qa-t .qa-ic{background:rgba(216,255,62,.1);color:var(--lime);box-shadow:inset 0 0 0 1px rgba(216,255,62,.25)}
:root[data-theme="dark"] .qa-t b{font:600 19px/1.15 'Oswald',system-ui,sans-serif;letter-spacing:.3px}
:root[data-theme="dark"] .qa-t.qa-main{background:radial-gradient(120% 140% at 0% 0%,#efff9a,#d8ff3e 45%,#b6e61b);border-color:transparent;color:#06120c;box-shadow:var(--glow-lime)}
:root[data-theme="dark"] .qa-t.qa-main .qa-ic{background:#06120c;color:var(--lime);box-shadow:none}
:root[data-theme="dark"] .qa-t.qa-main small{color:#2a3d1a}

/* match cards: each team lights its own side */
:root[data-theme="dark"] .mcard::after{background:
  radial-gradient(70% 60% at 18% 42%,color-mix(in srgb,var(--ca,#2f80ed) 34%,transparent),transparent 70%),
  radial-gradient(70% 60% at 82% 42%,color-mix(in srgb,var(--cb,#e0457b) 34%,transparent),transparent 70%)}
:root[data-theme="dark"] .mcard::before{height:4px;box-shadow:0 0 18px color-mix(in srgb,var(--ca,#2f80ed) 60%,transparent)}
:root[data-theme="dark"] .mcard .mface .mteam .sc{font-size:26px;color:#fff;text-shadow:0 0 18px rgba(255,255,255,.18)}
:root[data-theme="dark"] .mcard .mface .mteam.win .sc{color:var(--lime);text-shadow:0 0 18px rgba(216,255,62,.45)}
:root[data-theme="dark"] .mcard .mface .mteam .name{color:#fff}
:root[data-theme="dark"] .mcard .mface .mteam.win .name{color:var(--lime)}
:root[data-theme="dark"] .badge-logo.crest{filter:drop-shadow(0 6px 14px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(255,255,255,.06))}
:root[data-theme="dark"] .mface-vs,:root[data-theme="dark"] .mc-vs{background:#06120c;color:var(--lime);box-shadow:inset 0 0 0 1px rgba(216,255,62,.4),0 0 20px rgba(216,255,62,.25)}
:root[data-theme="dark"] .mcard-top{color:#a9bbb0}
:root[data-theme="dark"] .mcard.mc-win .mcard-foot{background:linear-gradient(90deg,rgba(216,255,62,.16),rgba(216,255,62,.03));color:var(--lime)}
:root[data-theme="dark"] .mcard.mc-tie .mcard-foot{background:linear-gradient(90deg,rgba(255,179,65,.2),rgba(255,179,65,.04));color:#ffc56b}
:root[data-theme="dark"] .mcard.mc-live .mcard-foot{background:linear-gradient(90deg,rgba(255,91,79,.24),rgba(255,91,79,.05));color:#ff9d94}
:root[data-theme="dark"] .mcard.mc-next .mcard-foot{background:linear-gradient(90deg,rgba(90,160,255,.2),rgba(90,160,255,.04));color:#a9c8ff}
:root[data-theme="dark"] .mcard.mc-live{border-color:rgba(255,91,79,.35)}

/* upcoming fixtures */
:root[data-theme="dark"] .he .mc{overflow:hidden}
:root[data-theme="dark"] .he .mc::after{content:"";position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(60% 55% at 20% 55%,color-mix(in srgb,var(--ca,#2f80ed) 28%,transparent),transparent 70%),
  radial-gradient(60% 55% at 80% 55%,color-mix(in srgb,var(--cb,#e0457b) 28%,transparent),transparent 70%)}
:root[data-theme="dark"] .he .mc>*{position:relative;z-index:1}
:root[data-theme="dark"] .he .mc::before{width:0}
:root[data-theme="dark"] .mc-when b{color:var(--lime)}
:root[data-theme="dark"] .mc-t b{color:#fff}
:root[data-theme="dark"] .mc-meta{border-top-color:var(--line)}

/* tournament cards: the badge is the star */
:root[data-theme="dark"] .tc{padding:16px;overflow:hidden}
:root[data-theme="dark"] .tc.is-open{border-color:rgba(216,255,62,.3)}
:root[data-theme="dark"] .tc-hero{height:190px}
:root[data-theme="dark"] .tc-hero .tc-logo{width:150px;height:150px}
:root[data-theme="dark"] .tc-hero::after{background:radial-gradient(circle at 50% 45%,transparent 25%,rgba(4,11,8,.55)),linear-gradient(180deg,transparent 60%,rgba(4,11,8,.6))}
:root[data-theme="dark"] .tc-name b{font-size:22px;color:#fff}
:root[data-theme="dark"] .tc-facts{background:rgba(255,255,255,.04);border:1px solid var(--line)}
:root[data-theme="dark"] .tc-fee b{color:var(--lime)}
:root[data-theme="dark"] .tc-bar i{background:var(--lime);box-shadow:0 0 10px rgba(216,255,62,.6)}
@media (max-width:600px){:root[data-theme="dark"] .tc-hero{height:160px}:root[data-theme="dark"] .tc-hero .tc-logo{width:124px;height:124px}}

/* pills, segments, inputs */
:root[data-theme="dark"] .pill{background:rgba(255,255,255,.07);color:#cfe0d5}
:root[data-theme="dark"] .pill-live{background:rgba(255,91,79,.18);color:#ff8f86}
:root[data-theme="dark"] .pill-completed{background:rgba(216,255,62,.12);color:var(--lime)}
:root[data-theme="dark"] .seg{background:rgba(255,255,255,.05);border:1px solid var(--line)}
:root[data-theme="dark"] .seg [aria-selected=true],:root[data-theme="dark"] .tabs a.on,:root[data-theme="dark"] .tabs button[aria-selected=true]{background:var(--lime);color:#06120c}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:rgba(0,0,0,.35);border-color:var(--line2);color:var(--text)}
:root[data-theme="dark"] input:focus,:root[data-theme="dark"] select:focus,:root[data-theme="dark"] textarea:focus{border-color:var(--lime);box-shadow:0 0 0 3px rgba(216,255,62,.18);outline:none}

/* hello strip and about band */
:root[data-theme="dark"] .hi-strip b{font:600 20px/1.1 'Oswald',system-ui,sans-serif}
:root[data-theme="dark"] .ab-band{background:radial-gradient(80% 120% at 0% 0%,rgba(216,255,62,.12),transparent 60%),linear-gradient(160deg,#0c1d15,#050d09);border:1px solid var(--line)}

/* footer */
:root[data-theme="dark"] .foot{border-top:1px solid var(--line);background:linear-gradient(180deg,transparent,rgba(0,0,0,.35))}

/* one entrance moment: the page fades up once, nothing else moves on its own */
@media (prefers-reduced-motion:no-preference){
  :root[data-theme="dark"] main>*:not(.sheet):not(.sheet-bg):not([role=dialog]):not(dialog){animation:stIn .5s cubic-bezier(.2,.7,.2,1) backwards}
  :root[data-theme="dark"] main>*:nth-child(2){animation-delay:.05s}:root[data-theme="dark"] main>*:nth-child(3){animation-delay:.1s}:root[data-theme="dark"] main>*:nth-child(n+4){animation-delay:.14s}
}
@keyframes stIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* match page scoreboard: big crests and giant scores */
.lh-team .badge-logo.big{width:64px;height:64px;border-radius:16px}
.lh-team{gap:14px}
.lh-team .nm{font:600 22px/1.1 'Oswald',system-ui,sans-serif;letter-spacing:.3px}
.lh-team .sc{font-size:36px;line-height:1}
@media (max-width:600px){.lh-team .badge-logo.big{width:52px;height:52px}.lh-team .nm{font-size:19px}.lh-team .sc{font-size:30px}}

/* Day / Stadium night switch: show the sun at night (tap for day), the moon by day */
.theme-btn .i-sun{display:none}
:root[data-theme="dark"] .theme-btn .i-sun{display:block;color:var(--lime)}
:root[data-theme="dark"] .theme-btn .i-moon{display:none}

/* tournament page: the logo leads the header */
.profile-head .tour-logo{flex:none;display:grid;place-items:center;width:128px;height:128px;border-radius:26px;overflow:hidden}
.profile-head .tour-logo img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:26px;box-shadow:0 12px 30px -8px rgba(0,0,0,.45)}
.profile-head .tour-logo svg{width:100%;height:100%;filter:drop-shadow(0 8px 16px rgba(0,0,0,.45))}
@media (max-width:600px){.profile-head .tour-logo{width:96px;height:96px}}

/* 4.61.1 tournament card: tall top band, logo biggest on the left, name and venue beside it, date underneath */
:root .tc .tc-top{flex-direction:column;align-items:stretch;gap:0}
:root .tc .tc-hero{display:flex;align-items:center;gap:18px;height:auto;min-height:236px;padding:22px 20px;margin:-16px -16px 2px;place-items:initial;border-radius:19px 19px 0 0;background-color:#0b1a13}
:root .tc .tc-hero::after{background:linear-gradient(90deg,rgba(4,11,8,.15) 0%,rgba(4,11,8,.55) 45%,rgba(4,11,8,.82) 100%),linear-gradient(180deg,transparent 55%,rgba(4,11,8,.55))}
:root .tc .tc-hero .tc-logo{width:168px;height:168px;border-radius:26px;flex:none}
:root .tc .tc-hero .tc-logo.gen{border-radius:0}
:root .tc .tc-hero .tc-name{position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;min-width:0;color:#fff}
:root .tc .tc-hero .tc-name b{font:700 26px/1.08 'Oswald',system-ui,sans-serif;letter-spacing:.3px;color:#fff;white-space:normal;overflow:visible;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 2px 10px rgba(0,0,0,.5)}
:root .tc .tc-hero .tc-venue,:root .tc .tc-hero .tc-date{display:flex;align-items:flex-start;gap:6px;font-size:13.5px;line-height:1.3;font-weight:600;color:#dbe7df}
:root .tc .tc-hero .tc-date{color:var(--lime,#d8ff3e);font-weight:700}
:root .tc .tc-hero .tc-venue .ic,:root .tc .tc-hero .tc-date .ic{width:15px;height:15px;flex:none;margin-top:1px}
:root .tc .tc-hero .tc-fmt{align-self:flex-start;font-size:11.5px;font-weight:700;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);padding:3px 9px;border-radius:999px}
:root .tc .tc-hero .tc-date{order:3}:root .tc .tc-hero .tc-fmt{order:4}
@media (max-width:600px){
  :root .tc .tc-hero{min-height:200px;gap:14px;padding:18px 16px}
  :root .tc .tc-hero .tc-logo{width:124px;height:124px;border-radius:20px}
  :root .tc .tc-hero .tc-name b{font-size:21px}
}
:root .tc .tc-hero>.tc-logo,:root .tc .tc-hero>.tc-name{align-self:center}
:root .tc .tc-hero .tc-logo{width:150px;height:150px}
:root .tc .tc-hero .tc-name b{font-size:24px;-webkit-line-clamp:4}
@media (max-width:600px){:root .tc .tc-hero .tc-logo{width:120px;height:120px}:root .tc .tc-hero .tc-name b{font-size:21px}}

/* result cards: top scorer, best bowler, player of the match */
.mcard-stars{display:grid;grid-template-columns:1fr 1fr;gap:8px;justify-content:initial}
.mcard-stars .ms{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;border-radius:12px;background:var(--soft);border:1px solid var(--line)}
.mcard-stars .ms>span{display:flex;flex-direction:column;min-width:0;flex:1}
.mcard-stars .ms small{font-size:10.5px;color:var(--muted);font-weight:700;line-height:1.1}
.mcard-stars .ms b{font-size:13.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-stars .ms em{font:700 17px/1 'Oswald',system-ui,sans-serif;font-style:normal;white-space:nowrap}
:root[data-theme="dark"] .mcard-stars .ms em{color:var(--lime)}
.mcard-stars .ms-ic{font-style:normal;font-size:17px;flex:none}
.mcard-stars .ms-pom{grid-column:1/-1;background:linear-gradient(90deg,rgba(246,196,69,.18),rgba(246,196,69,.04));border-color:rgba(246,196,69,.3)}

/* highlighter green: the star figures and the result are marked in lime */
.mcard-stars .ms em,:root[data-theme="dark"] .mcard-stars .ms em{background:var(--lime,#d8ff3e);color:#06120c;padding:4px 8px;border-radius:7px;box-shadow:0 0 14px rgba(216,255,62,.35)}
.mcard-stars .ms{border-color:rgba(216,255,62,.28)}
.mcard-stars .ms-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(216,255,62,.16)}
.mcard .mface .mteam.win .name{background:linear-gradient(transparent 58%,rgba(216,255,62,.75) 58%);padding:0 3px;color:inherit}
:root[data-theme="dark"] .mcard .mface .mteam.win .name{background:none;color:var(--lime)}
.mcard.mc-win .mcard-foot{background:var(--lime,#d8ff3e)!important;color:#06120c!important}
.mcard-stars{grid-template-columns:1fr;gap:7px}
.mcard-stars .ms b{font-size:14.5px}
.mcard-stars .ms small{font-size:11px}
.mcard-stars .ms:not(.ms-pom){padding:6px 10px}
.mcard-stars .ms:not(.ms-pom) b{font-size:15px}

/* 4.61.1 result card: row of top 2 batters, row of top 2 bowlers, player of the match */
.mcard-stars{display:flex;flex-direction:column;gap:7px}
.mcard-stars .ms-row{display:grid;grid-template-columns:1fr 1fr;border-radius:12px;background:var(--soft);border:1px solid rgba(216,255,62,.28);overflow:hidden}
.mcard-stars .ms-row:not(.ms-pom) .ms-p:only-child{grid-column:1/-1}
.mcard-stars .ms-p{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:8px 10px;min-width:0}
.mcard-stars .ms-p+.ms-p{border-left:1px solid var(--line)}
.mcard-stars .ms-p b{font-size:14px;line-height:1.2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard-stars .ms-p em{font:700 16px/1 'Oswald',system-ui,sans-serif;font-style:normal;background:var(--lime,#d8ff3e);color:#06120c;padding:4px 8px;border-radius:7px;box-shadow:0 0 14px rgba(216,255,62,.3)}
.mcard-stars .ms-pom{display:flex;align-items:center;gap:10px;padding:8px 10px;background:linear-gradient(90deg,rgba(216,255,62,.2),rgba(216,255,62,.04));border-color:rgba(216,255,62,.45)}
.mcard-stars .ms-pom .ms-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--lime,#d8ff3e);color:#06120c;flex:none;box-shadow:0 0 16px rgba(216,255,62,.4)}
.mcard-stars .ms-pom .ms-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mcard-stars .ms-pt{display:flex;flex-direction:column;min-width:0}
.mcard-stars .ms-pt small{font-size:11px;font-weight:700;color:var(--muted)}
.mcard-stars .ms-pt b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcard .mcard-x.mcard-stars{align-items:stretch;justify-content:flex-start;flex-wrap:nowrap}
.mcard-stars .ms-row{width:100%}

/* 4.61.1 no dead space above the footer */
main.wrap{padding-bottom:24px!important}
main.wrap>.section:last-child,main.wrap>section:last-child{margin-bottom:0}

/* swipe rows: slim themed scrollbar instead of the white system bar */
.one-row,.hm-strip,.he-row{scrollbar-width:thin;scrollbar-color:rgba(216,255,62,.55) rgba(255,255,255,.06)}
:root:not([data-theme="dark"]) .one-row,:root:not([data-theme="dark"]) .hm-strip,:root:not([data-theme="dark"]) .he-row{scrollbar-color:rgba(10,106,68,.45) rgba(10,106,68,.08)}
.one-row::-webkit-scrollbar,.hm-strip::-webkit-scrollbar,.he-row::-webkit-scrollbar{height:6px}
.one-row::-webkit-scrollbar-track,.hm-strip::-webkit-scrollbar-track,.he-row::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:6px}
.one-row::-webkit-scrollbar-thumb,.hm-strip::-webkit-scrollbar-thumb,.he-row::-webkit-scrollbar-thumb{background:rgba(216,255,62,.55);border-radius:6px}
.one-row::-webkit-scrollbar-button,.hm-strip::-webkit-scrollbar-button,.he-row::-webkit-scrollbar-button{display:none;width:0;height:0}

/* animated BoundryLive mark in the top-right corner of live boards and tournament cards */
.bl-mark{position:absolute;top:12px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:5px 10px 5px 5px;border-radius:999px;background:rgba(4,11,8,.62);border:1px solid rgba(216,255,62,.3);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(0,0,0,.35);pointer-events:none}
.bl-mark-ball{position:relative;display:grid;place-items:center;width:20px;height:20px}
.bl-mark-ball::after{content:"";position:absolute;inset:-3px;border-radius:50%;box-shadow:0 0 0 0 rgba(216,255,62,.55)}
.bl-mark-svg{width:20px;height:20px;display:block}
.bl-mark-w{font:700 11.5px/1 'Oswald',system-ui,sans-serif;letter-spacing:.6px;color:#fff;white-space:nowrap}
.bl-mark-w b{color:#d8ff3e;font-weight:700}
@media (prefers-reduced-motion:no-preference){
  .bl-mark-svg{animation:blSpin 2.8s linear infinite}
  .bl-mark-ball::after{animation:blPing 1.8s ease-out infinite}
}
@keyframes blSpin{to{transform:rotate(360deg)}}
@keyframes blPing{0%{box-shadow:0 0 0 0 rgba(216,255,62,.55)}80%,100%{box-shadow:0 0 0 9px rgba(216,255,62,0)}}
.live-hero{position:relative}
.live-hero .meta{padding-right:150px}
.tc-hero .bl-mark-tc{top:10px;right:10px}
@media (max-width:600px){.bl-mark{padding:4px 8px 4px 4px}.bl-mark-w{font-size:10.5px}.bl-mark-ball,.bl-mark-svg{width:17px;height:17px}.live-hero .meta{padding-right:128px}}
/* the losing side gets a red cross to match the winner's tick */
.mteam.lose .name::after{content:" ✕";color:#ff5b4f;font-weight:800}
.mcard .mface .mteam.lose .sc{opacity:.75}

/* team selection: picked / allowed counter and the multi-pick chips */
.xi-count{display:inline-flex;align-items:baseline;gap:1px;padding:4px 11px;border-radius:999px;background:var(--soft);border:1px solid var(--line2);font:600 14px/1 'Oswald',system-ui,sans-serif;color:var(--muted)}
.xi-count b{font-size:18px;color:var(--text)}
.xi-count.full{background:var(--lime,#d8ff3e);border-color:transparent;color:#2a3d1a}.xi-count.full b{color:#06120c}
.xi-count.over{background:rgba(255,91,79,.16);border-color:rgba(255,91,79,.5);color:#ff8f86}.xi-count.over b{color:#ff5b4f}
.xi-count.sm{padding:2px 8px;font-size:12px;margin-left:6px;vertical-align:1px}.xi-count.sm b{font-size:14px}
.ps-picked{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ps-picked:empty{display:none}
.ps-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 11px;border-radius:999px;background:var(--lime,#d8ff3e);color:#06120c;font-weight:700;font-size:13px}
.ps-chip button{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:0;background:rgba(6,18,12,.15);color:#06120c;font-size:15px;line-height:1;cursor:pointer}
.req{color:#ff5b4f;margin-left:2px;font-weight:800}
.tour-head-card{position:relative}
.tour-head-card .bl-mark-th{top:14px;right:14px}
.tour-head-card .profile-head{padding-top:6px}
@media (max-width:600px){.tour-head-card .profile-head{padding-top:34px}}

/* footer credit */
.foot a.ce-link{color:inherit;text-decoration:underline;text-decoration-color:rgba(216,255,62,.6);text-underline-offset:3px;font-weight:700}
.foot a.ce-link:hover{color:var(--lime,#d8ff3e)}

/* friendly sign-in invite for visitors: slides up once, easy to dismiss */
.si-nudge{position:fixed;z-index:60;left:50%;bottom:calc(var(--tab,64px) + env(safe-area-inset-bottom) + 12px);width:min(440px,calc(100vw - 24px));display:grid;grid-template-columns:auto 1fr;gap:6px 12px;padding:16px 16px 14px;border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),#0d1d16;color:#eef5ef;border:1px solid rgba(216,255,62,.32);box-shadow:0 24px 60px -16px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.3);
  transform:translate(-50%,24px);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .3s}
.si-nudge.on{transform:translate(-50%,0);opacity:1}
@media (min-width:900px){.si-nudge{left:auto;right:22px;bottom:22px;transform:translateY(24px)}.si-nudge.on{transform:none}}
.si-ball{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(216,255,62,.12)}
.si-ball-svg{width:26px;height:26px}
@media (prefers-reduced-motion:no-preference){.si-nudge.on .si-ball-svg{animation:blSpin 3s linear infinite}}
.si-tx b{display:block;font:700 18px/1.15 'Oswald',system-ui,sans-serif;letter-spacing:.3px;padding-right:22px}
.si-tx span{display:block;font-size:13px;color:#b9c9bf;margin-top:3px}
.si-act{grid-column:2;display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.si-act .btn{min-height:38px}
.si-x{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#cfe0d5;font-size:18px;line-height:1;cursor:pointer}
.si-x:hover{background:rgba(255,255,255,.16)}
@media (prefers-reduced-motion:reduce){.si-nudge{transition:none}}

/* "Use Dubai" suggestion under city boxes */
.city-chip{display:inline-flex;align-items:center;gap:7px;margin:-4px 0 10px;padding:6px 12px 6px 9px;border-radius:999px;border:1px dashed rgba(216,255,62,.55);background:rgba(216,255,62,.08);color:var(--text);font:600 13px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.city-chip svg{width:15px;height:15px;fill:none;stroke:var(--lime,#d8ff3e);stroke-width:2}
:root:not([data-theme="dark"]) .city-chip{border-color:rgba(10,106,68,.5);background:rgba(10,106,68,.06)}
:root:not([data-theme="dark"]) .city-chip svg{stroke:var(--green,#0a6a44)}
.city-chip small{color:var(--muted);font-weight:500}
.city-chip:hover{background:rgba(216,255,62,.16)}
.lh-from{display:flex;align-items:center;gap:7px;margin:10px 0 2px;font-size:13px;color:#cfe0d5}
.lh-from svg{width:16px;height:16px;flex:none;fill:none;stroke:#d8ff3e;stroke-width:2}
.lh-from b{color:#fff}

/* tournament card: the BoundryLive badge sits on its own line above the logo, clear of the text */
:root .tc .tc-hero{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:18px;row-gap:0}
:root .tc .tc-hero .bl-mark-tc{position:relative;top:auto;right:auto;grid-column:1/-1;justify-self:start;margin:0 0 16px}
@media (max-width:600px){:root .tc .tc-hero{column-gap:14px}:root .tc .tc-hero .bl-mark-tc{margin-bottom:14px}}

/* 4.62.1 standard tournament card: every block has a fixed size, so cards line up row for row
   whatever the name length. Badge row, then a 150px logo beside up to 3 lines of name, 1 line of
   venue, the date and the format; status, fees and the button sit at the same height on every card. */
:root .tc{display:flex;flex-direction:column;height:100%}
:root .tc .tc-hero{height:262px;min-height:0;grid-template-rows:auto 1fr;align-items:start;align-content:start;padding:18px 18px 20px}
:root .tc .tc-hero .bl-mark-tc{margin:0 0 16px}
:root .tc .tc-hero>.tc-logo,:root .tc .tc-hero>.tc-name{align-self:start}
:root .tc .tc-hero .tc-logo{width:150px;height:150px}
:root .tc .tc-hero .tc-name{gap:6px;height:178px;overflow:hidden}
:root .tc .tc-hero .tc-name b{font-size:22px;line-height:1.1;-webkit-line-clamp:3;min-height:0}
:root .tc .tc-hero .tc-venue span,:root .tc .tc-hero .tc-venue{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
:root .tc .tc-hero .tc-venue{display:flex;max-width:100%}
:root .tc .tc-hero .tc-venue>.ic{flex:none}
:root .tc .tc-hero .tc-date{white-space:nowrap}
:root .tc .tc-status{min-height:34px;display:flex;align-items:center;margin-top:14px}
:root .tc .tc-facts{min-height:92px}
:root .tc .tc-act{margin-top:auto;padding-top:14px}
:root .tc .tc-note{min-height:2.6em;margin-bottom:0}
@media (max-width:600px){
  :root .tc .tc-hero{height:226px;padding:16px 14px 18px}
  :root .tc .tc-hero .tc-logo{width:120px;height:120px}
  :root .tc .tc-hero .tc-name{height:150px}
  :root .tc .tc-hero .tc-name b{font-size:19px}
}
:root .tc .tc-act{display:flex;flex-wrap:wrap;gap:10px}
:root .tc .tc-act .tc-note{flex:0 0 100%;display:block;min-height:1.4em;font-size:12.5px;color:var(--muted);margin-top:-2px}
:root .tc .tc-hero .tc-vt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .tc .tc-hero .tc-venue{align-items:flex-start}
:root .tc .tc-hero .tc-vt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}
:root .tc .tc-hero .tc-date{white-space:normal}
:root .tc .tc-hero .tc-name{gap:5px}
:root .tc .tc-hero .tc-venue span.tc-vt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}

/* "Test BoundryLive" demo: entry card, bar on demo pages, demo form */
.demo-try{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin:0 0 18px;padding:16px 18px;border-radius:18px;text-decoration:none;color:inherit;
  background:radial-gradient(120% 160% at 0% 0%,rgba(216,255,62,.22),rgba(216,255,62,.05) 55%,transparent),var(--card,#fff);border:1.5px solid rgba(216,255,62,.6);box-shadow:0 0 0 4px rgba(216,255,62,.08),0 14px 30px -18px rgba(0,0,0,.6)}
.demo-try:hover{text-decoration:none;border-color:#d8ff3e;transform:translateY(-1px)}
.demo-try-ic{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#06120c}
.demo-try-svg{width:32px;height:32px}
@media (prefers-reduced-motion:no-preference){.demo-try-svg,.demo-hero-svg{animation:blSpin 3s linear infinite}}
.demo-try-tx b{display:block;font:700 20px/1.15 'Oswald',system-ui,sans-serif;letter-spacing:.3px}
.demo-try-tx small{display:block;margin-top:3px;font-size:13px;color:var(--muted);line-height:1.4}
.demo-try-go{white-space:nowrap;padding:10px 16px;border-radius:12px;background:#d8ff3e;color:#06120c;font-weight:800;font-size:14px;box-shadow:0 8px 20px -8px rgba(216,255,62,.7)}
@media (max-width:600px){.demo-try{grid-template-columns:auto 1fr}.demo-try-go{grid-column:1/-1;text-align:center}}
:root:not([data-theme="dark"]) .demo-try{border-color:#9fc21a;background:radial-gradient(120% 160% at 0% 0%,rgba(216,255,62,.45),rgba(216,255,62,.12) 55%,#fff)}
.demo-bar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 16px;background:repeating-linear-gradient(135deg,#d8ff3e 0 18px,#cdf531 18px 36px);color:#06120c;font-size:13.5px;font-weight:600}
.demo-bar-tag{font:700 13px/1 'Oswald',system-ui,sans-serif;letter-spacing:1px;background:#06120c;color:#d8ff3e;padding:5px 9px;border-radius:7px}
.demo-bar span:nth-child(2){flex:1;min-width:200px}
.demo-bar .btn{background:#06120c;color:#d8ff3e;border:0;box-shadow:none}
.demo-hero{display:flex;gap:18px;align-items:center;margin:8px 0 18px}
.demo-hero-ball{flex:none;display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:#06120c;box-shadow:0 0 0 1px rgba(216,255,62,.35),0 0 30px rgba(216,255,62,.25)}
.demo-hero-svg{width:46px;height:46px}
.demo-hero h1{margin:0 0 6px}
.demo-hero p{margin:0;color:var(--muted);max-width:62ch}
.demo-teams{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:700px){.demo-teams{grid-template-columns:1fr}.demo-hero{align-items:flex-start}.demo-hero-ball{width:60px;height:60px}}
.demo-team{border:1px solid var(--line);border-radius:16px;padding:12px 14px 4px;margin:0}
.demo-team legend{font:700 17px 'Oswald',system-ui,sans-serif;padding:0 6px}
.demo-team textarea{min-height:140px}
.demo-opts{display:grid;grid-template-columns:220px 1fr;gap:14px;align-items:center;margin:12px 0 14px}
@media (max-width:600px){.demo-opts{grid-template-columns:1fr}}
.demo-foot{margin-top:14px}
/* demo pages: no sharing, no links out of the sandbox */
.demo-on .toolbar,.demo-on .share-panel,.demo-on [data-share-toggle],.demo-on .lv-follow{display:none!important}

/* 4.63 profile headers on phones (tournament, team, player): no squeezed or cut buttons.
   Buttons sit in a tidy two-column grid, all the same height, and wrap their words instead of being cut. */
@media (max-width:600px){
  .profile-head > .btn-row{grid-template-columns:1fr 1fr!important;gap:10px}
  .profile-head > .btn-row > .btn,.profile-head > .btn-row > a,.profile-head > .btn-row > button,.profile-head > .btn-row > form > .btn{min-height:46px;height:auto;white-space:normal;line-height:1.15;text-align:center;justify-content:center;padding:8px 10px;font-size:14px;width:100%}
  .profile-head > .btn-row > form{display:contents}
  .profile-head > .btn-row .btn svg{flex:none}

  /* tournament header: badge on its own line, logo beside the name, facts in a single flowing line under both */
  .tour-head-card{padding-top:16px}
  .tour-head-card .bl-mark-th{position:relative;top:auto;right:auto;display:inline-flex;margin:0 0 16px}
  .tour-head-card .profile-head{padding-top:0!important;display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:6px;align-items:center}
  .tour-head-card .profile-head > .grow{display:contents}
  .tour-head-card .profile-head .tour-logo{grid-row:1/3;grid-column:1;width:96px;height:96px;border-radius:20px}
  .tour-head-card .profile-head .tour-logo img{border-radius:20px}
  .tour-head-card .profile-head .eyebrow{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:11px}
  .tour-head-card .profile-head h1{grid-column:2;grid-row:2;align-self:start;margin:0;font-size:clamp(26px,8vw,34px)}
  .tour-head-card .profile-head .facts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .tour-head-card .profile-head .facts > *{margin:0}
  .tour-head-card .profile-head > .btn-row{margin-top:6px}
}

/* ===== 4.63 site-wide polish pass ===== */

/* native controls (checkboxes, radios, dates, file pickers, dropdown lists) follow the theme */
:root[data-theme="dark"]{color-scheme:dark;accent-color:#c9ef2f}
:root:not([data-theme="dark"]){accent-color:#0a6a44}
:root[data-theme="dark"] input[type=checkbox],:root[data-theme="dark"] input[type=radio]{background-color:#0b1712}
:root[data-theme="dark"] input[type=file]::file-selector-button{background:#d8ff3e;color:#06120c;border:0;border-radius:9px;padding:7px 12px;font-weight:700;margin-right:10px}

/* tab rows that scroll sideways: fade the edge that has more, so nothing looks cut off */
.tabs,.hlp-tabs{scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar,.hlp-tabs::-webkit-scrollbar{display:none}
.tabs>*,.hlp-tabs>*{scroll-snap-align:start;flex:none}
.tabs.more-r,.hlp-tabs.more-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent)}
.tabs.more-l,.hlp-tabs.more-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px);mask-image:linear-gradient(90deg,transparent,#000 44px)}
.tabs.more-l.more-r,.hlp-tabs.more-l.more-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,transparent,#000 44px,#000 calc(100% - 44px),transparent)}

/* match lists on phones: the score goes under the team name instead of squeezing it to one letter */
@media (max-width:600px){
  .fx-team{display:grid!important;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:1px;align-items:center}
  .fx-team>.badge-logo,.fx-team>img,.fx-team>.kt-badge{grid-row:1/3}
  .fx-team b{white-space:normal;overflow:visible;overflow-wrap:anywhere}
  .fx-team i{grid-column:2;white-space:normal;font-size:13px}
  .fx-team:not(:has(i)) b{grid-row:1/3}
}

/* setup: Team selection / Match fee buttons on their own row, the note under them */
.setup-fee{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.setup-fee .muted{flex:0 0 100%;margin-top:2px}

/* buttons never spill their text: long labels wrap inside the button */
.btn{max-width:100%}
@media (max-width:600px){.btn-row>.btn,.btn-row>a.btn{white-space:normal;text-align:center;line-height:1.15}}
/* scorer pop-up: fully hidden while closed, so it can never peek over the scoring screen */
.sheet:not(.open){visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
.sheet.open{visibility:visible;transition:transform .25s ease,visibility 0s}
.sheet-bg:not(.open){visibility:hidden;pointer-events:none}

/* player search results: name, the team they last played for, and town */
.ps-results{display:flex;flex-direction:column;gap:4px;margin-top:6px;max-height:320px;overflow-y:auto}
.ps-results:empty{display:none}
.ps-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border-radius:12px;border:1px solid var(--line);background:var(--soft);color:var(--text);cursor:pointer;font:inherit}
.ps-row:hover,.ps-row:focus-visible{border-color:rgba(216,255,62,.6);background:rgba(216,255,62,.08);outline:none}
.ps-av{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;overflow:hidden;background:rgba(216,255,62,.15);color:var(--text);font-weight:800;font-size:13px}
.ps-av img{width:100%;height:100%;object-fit:cover}
.ps-nm{display:flex;flex-direction:column;min-width:0;flex:1}
.ps-nm b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-nm small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-ok{flex:none;color:#3ddc84;font-weight:800}
.sq-find{padding:12px;border-radius:14px;border:1px dashed rgba(216,255,62,.45);background:rgba(216,255,62,.04)}
.sq-find input[type=search]{font-size:16px}

/* tag picker for team selection */
.tp{margin:6px 0 10px}
.tp-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.tp-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 6px 6px 12px;border-radius:999px;background:var(--lime,#d8ff3e);color:#06120c;font-size:13.5px}
.tp-tag b{font-weight:700}
.tp-tag button{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:0;background:rgba(6,18,12,.16);color:#06120c;font-size:16px;line-height:1;cursor:pointer;padding:0}
.tp-tag button:hover{background:rgba(6,18,12,.3)}
.tp-empty{font-size:13px;color:var(--muted)}
.tp-find{position:relative}
.tp-find input{font-size:16px}
.tp-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:340px;overflow-y:auto;padding:6px;border-radius:14px;background:var(--card-solid,#fff);border:1px solid var(--line2,#ddd);box-shadow:0 18px 40px -12px rgba(0,0,0,.55)}
:root[data-theme="dark"] .tp-list{background:#0f1d17}
.tp-h{margin:6px 6px 4px;font-size:11.5px;font-weight:700;color:var(--muted)}
.tp-opt{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:none;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.tp-opt:hover,.tp-opt:focus-visible{background:rgba(216,255,62,.12);outline:none}
.tp-opt small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}
.tp-far b::before{content:"+ ";color:var(--lime,#d8ff3e)}
form.tp-on .sq-pick{display:none}
.rf-tier-say{margin:8px 0 0;font-size:13px;font-weight:600;color:var(--green2,#3ddc84)}
.rf-tier-say:empty{display:none}
.rf-tier-say.bad{color:#ff6b5f}
:root:not([data-theme="dark"]) .rf-tier-say{color:#0a6a44}
:root:not([data-theme="dark"]) .rf-tier-say.bad{color:#c0362c}

/* 4.66: pop-up sheets sit on a solid base (the glass card colour is translucent in Stadium night) */
.sheet{background:linear-gradient(var(--card),var(--card)),var(--bg)!important}
