*{box-sizing:border-box}html,body{margin:0}body{font-family:Arial,Helvetica,sans-serif;color:#fff;background:#060608}a{color:inherit;text-decoration:none}body{--accent:#ff791e;--hero:url('/assets/seasonal/normal-hero.webp');--trim:url('/assets/seasonal/normal-trim.webp')}body[data-theme=christmas]{--hero:url('/assets/seasonal/christmas-hero.webp');--trim:url('/assets/seasonal/christmas-trim.webp')}body[data-theme=easter]{--hero:url('/assets/seasonal/easter-hero.webp');--trim:url('/assets/seasonal/easter-trim.webp')}body[data-theme=halloween]{--hero:url('/assets/seasonal/halloween-hero.webp');--trim:url('/assets/seasonal/halloween-trim.webp')}body[data-theme=bonfire]{--hero:url('/assets/seasonal/bonfire-hero.webp');--trim:url('/assets/seasonal/bonfire-trim.webp')}.site-header{height:83px;background:#090a0c;border-bottom:2px solid #ff791e;display:flex;align-items:center;padding:8px 2.5%;gap:22px}.brand{display:flex;gap:11px;align-items:center;min-width:280px}.brand img{width:53px;height:64px;object-fit:contain}.brand strong{display:block;font-weight:950;font-size:31px;line-height:1}.brand small{display:block;font-size:9px;letter-spacing:.8px}.site-header nav{display:flex;gap:6px;align-items:center;justify-content:center;flex:1;flex-wrap:wrap}.site-header nav a{font-size:12px;font-weight:900;padding:12px 13px;border-radius:6px}.site-header nav a:hover,.site-header nav a.selected{background:#e97820}.account{display:flex;gap:9px}.account a{border:1px solid #e97820;padding:11px 14px;border-radius:5px;font-weight:900;font-size:12px}.account a:last-child{background:#e97820;color:#0b0b0b}.preview-note{background:#21180f;color:#e5af75;text-align:center;padding:5px;font-size:10px;letter-spacing:1.5px}.hero{position:relative;min-height:362px;overflow:hidden;background:#080b11;border-bottom:5px solid #e97820}.hero-illustration{position:absolute;inset:0 0 0 44%;background-image:linear-gradient(to right,#080b11 0%,transparent 20%),var(--hero);background-position:center right;background-size:cover;background-repeat:no-repeat}.hero-left{position:relative;z-index:2;display:flex;gap:22px;align-items:center;padding:38px 2.7% 80px;width:63%;min-height:315px}.crest{width:190px;max-height:260px;object-fit:contain;filter:drop-shadow(0 5px 8px #000)}.intro{border-left:2px solid var(--accent);padding-left:20px}.intro>span{font-weight:900;color:var(--accent);letter-spacing:3px;font-size:15px}.intro h1{font-size:clamp(27px,3.2vw,51px);font-weight:950;font-style:italic;line-height:.98;margin:9px 0 14px;text-shadow:0 3px 8px black}.intro p{font-size:12px;color:#e7e7e7}.intro i{color:var(--accent);padding:0 5px}.hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.hero-actions a{padding:12px 14px;border-radius:6px;font-weight:900;font-size:12px}.hero-actions .primary{background:#ff7f17;color:#111}.hero-actions .secondary{border:1px solid #ccc;background:#080808aa}.holiday{position:absolute;z-index:2;left:26%;right:10%;bottom:9px;text-align:center;pointer-events:none}.holiday strong{display:inline-block;padding:6px 18px;background:linear-gradient(90deg,#30180eec,#691d12ed,#30180eec);color:#fff4cd;border:1px solid #e99d37;border-radius:35px;font-size:clamp(17px,2vw,29px);font-weight:900;text-shadow:0 2px 3px black;box-shadow:0 5px 13px black}.holiday small{display:block;margin-top:3px;color:#eee;font-size:10px}.quicklinks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:15px 2%;background:#0c0d10}.quicklinks a{display:flex;align-items:center;gap:12px;background:linear-gradient(145deg,#202123,#090a0c);border:1px solid #e9782066;border-radius:9px;padding:14px 12px;min-height:75px}.quicklinks a:hover{border-color:#ff9e39;transform:translateY(-1px)}.quicklinks b{color:var(--accent);font-size:27px}.quicklinks span{flex:1;min-width:0}.quicklinks strong{display:block;font-size:12px;white-space:nowrap}.quicklinks small{display:block;font-size:10px;color:#ccc;margin-top:5px}.quicklinks em,.panel-row em{font-size:25px;color:#ff801b;font-style:normal}.dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;padding:3px 2% 15px}.dashboard-panel,.latest-results{background:#121316;border:1px solid #555;border-radius:10px;overflow:hidden;min-height:241px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid #555;padding:13px 13px}.panel-title h2{font-size:14px;margin:0}.panel-title a{font-size:11px;color:#ff9c36;white-space:nowrap}.panel-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #393939;padding:10px}.panel-row:hover,.result:hover{background:#333}.panel-row .entry{flex:1;min-width:0}.entry b{display:block;font-size:12px;overflow-wrap:anywhere}.entry small{display:block;margin-top:4px;color:#aaa;font-size:10px}.pill{font-size:9px;text-transform:uppercase;color:white;background:#806a25;border-radius:4px;padding:5px}.pill.active{background:#1b813c}.pill.completed{background:#584b66}.center-content{text-align:center;padding:24px 19px}.center-content>b{font-size:15px}.center-content p{color:#c4c4c4;font-size:12px;line-height:1.6}.outline{display:inline-block;border:1px solid #ed811e;border-radius:5px;padding:10px 12px;color:#ff9a31;font-weight:900;font-size:11px}.stat strong{display:block;font-size:34px;color:#ed851b}.stat span{font-size:11px}.latest-results{margin:0 2% 16px;min-height:0}.result-list{display:flex;gap:9px;padding:9px;flex-wrap:wrap}.result{background:#222;border-radius:5px;padding:9px;display:flex;gap:9px;align-items:center;flex:1;min-width:195px;justify-content:space-between;font-size:11px}.result b{color:#ff922e;white-space:nowrap}.empty{font-size:12px;color:#ccc;padding:18px}.latest-results:after{content:"";display:block;height:58px;background-image:var(--trim);background-size:cover;background-position:center bottom}footer{text-align:center;color:#999;padding:20px;font-size:11px}footer a{color:#e98d2f}footer small{display:block;margin-top:8px;color:#777}@media(max-width:1100px){.brand{min-width:170px}.site-header nav a{padding:7px;font-size:10px}.hero-left{width:70%}.crest{width:130px}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.quicklinks{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.site-header{height:auto;flex-wrap:wrap;padding:9px 12px}.brand img{width:40px;height:49px}.brand strong{font-size:23px}.brand{min-width:0}.site-header nav{order:3;width:100%}.account{margin-left:auto}.hero{min-height:380px}.hero-illustration{inset:0;background-image:linear-gradient(90deg,#080b11e8,#080b1180),var(--hero);opacity:.83}.hero-left{width:100%;padding:25px 14px 86px;gap:11px}.crest{width:100px;align-self:flex-start}.intro h1{font-size:29px}.intro{padding-left:10px}.intro>span{font-size:10px}.intro p{font-size:10px}.holiday{left:2%;right:2%}.quicklinks,.dashboard{grid-template-columns:1fr}.quicklinks{gap:6px}.quicklinks a{min-height:60px}.panel-title h2{font-size:13px}}
/* Stage 30A: competition hub and season-safe layouts */
.competition-hub{padding:22px 2% 18px}.hub-intro{margin:0 0 17px}.hub-intro .eyebrow{font-size:11px;font-weight:900;letter-spacing:2px;color:#ff9238}.hub-intro h2{font-size:clamp(23px,2.5vw,36px);margin:7px 0;color:#fff}.hub-intro p{font-size:13px;color:#c9c9ca;line-height:1.5;max-width:820px;margin:0}.competition-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.hub-panel{min-height:290px;border-color:#5a4533;background:linear-gradient(145deg,#1d1d20,#0d0e11)}.hub-panel .panel-title{border-bottom-color:#6e4929}.hub-panel .panel-title h2{font-size:14px;color:#ff973d}.hub-description{font-size:12px;color:#aaa;padding:11px 13px;border-bottom:1px solid #303033}.hub-panel .panel-row{min-height:69px}.hub-panel .pill{min-width:56px;text-align:center}.support-dashboard{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:5px}.hub-panel .entry b{font-size:13px}.hub-panel .entry small{font-size:11px;line-height:1.5}.hub-panel .panel-row:hover{background:#262025}@media(max-width:1050px){.competition-columns{grid-template-columns:1fr 1fr}.competition-columns .hub-panel:last-child{grid-column:1/-1}}@media(max-width:680px){.competition-columns,.support-dashboard{grid-template-columns:1fr}.competition-columns .hub-panel:last-child{grid-column:auto}.competition-hub{padding:18px 12px}.hub-panel{min-height:0}}

/* Stage 30B – original league access; appears on all themes */
.legacy-league-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 2.7%;background:linear-gradient(110deg,#34200c,#15120c 65%,#32210e);border-bottom:2px solid #e9a343;color:#fff}.legacy-league-strip div{display:flex;flex-direction:column;gap:5px}.legacy-league-strip strong{font-size:15px;color:#ffd385;letter-spacing:.7px}.legacy-league-strip span{font-size:12px;color:#eee}.legacy-league-strip a{display:inline-block;flex-shrink:0;padding:12px 18px;border-radius:7px;border:1px solid #ffbc55;background:#ed872b;color:#110d08;font-weight:900;font-size:12px;box-shadow:0 2px 12px #fd9b2733}.legacy-league-strip a:hover{background:#ffc060}.site-header nav a.legacy-nav{border:1px solid #e3a14d;color:#ffda9c}.site-header nav a.legacy-nav:hover{color:#111}@media(max-width:680px){.legacy-league-strip{flex-direction:column;align-items:stretch;padding:15px}.legacy-league-strip a{text-align:center}.site-header nav a.legacy-nav{font-size:10px}}


/* Stage 30C: small-screen / iOS Safari layout; all seasonal designs retained. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-x:clip}
body{min-width:0;overflow-x:clip}
img{max-width:100%}
.site-header,.site-header nav,.brand,.account,.hero-left,.intro,.competition-columns,.hub-panel,.dashboard,.support-dashboard,.latest-results,.quicklinks,.legacy-league-strip{min-width:0}
.site-header nav a,.account a,.hero-actions a,.quicklinks a,.legacy-league-strip a{-webkit-tap-highlight-color:transparent}
@media(max-width:900px){
 .site-header{height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px 15px}
 .site-header .brand{grid-column:1;grid-row:1;min-width:0}
 .site-header .brand img{width:46px;height:52px}
 .site-header .brand strong{font-size:25px}
 .site-header .brand small{font-size:8px;letter-spacing:.25px}
 .site-header .account{grid-column:2;grid-row:1;gap:5px;margin:0}
 .site-header .account a{font-size:11px;padding:9px 10px;white-space:nowrap}
 .site-header nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;width:100%;gap:5px;padding:3px 0 9px;scrollbar-width:thin;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .site-header nav a{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:10px 11px;min-height:40px}
 .quicklinks{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:9px}
 .quicklinks a{min-width:0}.quicklinks strong{white-space:normal;overflow-wrap:anywhere}
 .dashboard,.support-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;gap:10px}
 .competition-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .competition-hub{padding:18px 12px}
 .hero-left{width:100%;max-width:100%;padding:34px 18px 78px}
 .hero-illustration{inset:0;background-image:linear-gradient(90deg,#080b11ed,#080b118a),var(--hero)}
 .holiday{left:10px;right:10px}
}
@media(max-width:600px){
 .site-header{padding:10px 12px;gap:7px}
 .site-header .brand img{width:38px;height:46px}
 .site-header .brand strong{font-size:23px}
 .site-header .brand small{font-size:7px}
 .site-header .account a{font-size:10px;padding:8px 8px}
 .preview-note{font-size:9px;letter-spacing:.4px;line-height:1.5;padding:6px 9px}
 .hero{min-height:0}
 .hero-left{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:22px 15px 92px;min-height:0}
 .hero-left .crest{width:78px;max-height:91px;align-self:center}
 .intro{width:100%;padding-left:12px;border-left:3px solid var(--accent)}
 .intro>span{font-size:10px;letter-spacing:1.5px}
 .intro h1{font-size:clamp(25px,7vw,40px);line-height:1.06;overflow-wrap:anywhere;margin:9px 0}
 .intro p{font-size:11px;line-height:1.6}
 .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
 .hero-actions a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:45px;font-size:10px;padding:10px 7px;white-space:normal}
 .holiday{bottom:10px;left:10px;right:10px}
 .holiday strong{font-size:clamp(14px,4.3vw,23px);padding:7px 12px;max-width:100%;overflow-wrap:anywhere}
 .holiday small{font-size:9px}
 .quicklinks{grid-template-columns:1fr;gap:8px;padding:12px}
 .quicklinks a{min-height:61px;padding:11px 13px}
 .quicklinks strong{font-size:12px}
 .dashboard,.support-dashboard,.competition-columns{grid-template-columns:minmax(0,1fr)}
 .competition-columns .hub-panel:last-child{grid-column:auto}
 .dashboard,.support-dashboard{padding:8px 12px;gap:10px}
 .dashboard-panel,.hub-panel{min-height:0}
 .competition-hub{padding:18px 12px}
 .hub-intro h2{font-size:23px}
 .panel-title{flex-wrap:wrap;gap:8px}
 .panel-title a{white-space:normal}
 .latest-results{margin:8px 12px 16px}
 .result-list{display:grid;grid-template-columns:minmax(0,1fr)}
 .result{min-width:0;overflow-wrap:anywhere}
 .result span{min-width:0;flex:1}
 .legacy-league-strip{flex-direction:column;align-items:stretch;gap:10px;padding:14px 12px}
 .legacy-league-strip a{text-align:center;white-space:normal}
 footer{line-height:1.7;padding:18px 14px}
}
@media(max-width:360px){
 .site-header .brand small{max-width:130px;line-height:1.3}
 .site-header .brand img{width:32px}
 .site-header .brand strong{font-size:21px}
 .site-header .account a{font-size:9px;padding:8px 6px}
 .hero-actions{grid-template-columns:minmax(0,1fr)}
 .intro h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.quicklinks a{transition:none}}


/* STAGE 30D2: Full mobile / iOS responsive layout. Desktop rules unchanged. */
@supports (padding: env(safe-area-inset-left)) {
 @media (max-width:900px) {
  .site-header{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
 }
}
@media (max-width:900px) {
 html,body{width:100%;max-width:100%;overflow-x:hidden}
 body{position:relative}
 .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;height:auto;gap:12px 9px;padding:12px 15px}
 .site-header .brand{grid-column:1;grid-row:1;display:flex;min-width:0;gap:9px}
 .site-header .brand img{width:44px;height:52px;flex-shrink:0;object-fit:contain}
 .site-header .brand strong{font-size:25px}
 .site-header .brand small{font-size:8px;line-height:1.3;letter-spacing:.2px}
 .site-header .account{grid-column:2;grid-row:1;display:flex;gap:6px;margin:0;justify-content:flex-end}
 .site-header .account a{font-size:11px;padding:11px 9px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .site-header nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;gap:7px;padding:0;overflow:visible;flex:none}
 .site-header nav a{display:flex;min-width:0;min-height:44px;align-items:center;justify-content:center;text-align:center;border:1px solid #704322;background:#19191d;padding:9px 5px;font-size:11px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
 .site-header nav a.selected{background:#e97820;color:#101010;border-color:#ffad5d}
 .hero{height:auto;min-height:0}
 .hero-illustration{inset:0;background-image:linear-gradient(90deg,#080b11ed,#080b11be),var(--hero);background-position:center;background-size:cover}
 .hero-left{width:100%;max-width:100%;min-height:0;padding:28px 20px 90px;gap:16px}
 .hero-left .crest{width:110px;max-height:130px;flex:0 0 auto}
 .intro{min-width:0;max-width:100%}
 .intro h1{overflow-wrap:anywhere;line-height:1.08}
 .hero-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
 .holiday{left:12px;right:12px;bottom:12px}
 .competition-hub{padding:18px 12px}
 .competition-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
 .competition-columns .hub-panel:last-child{grid-column:1/-1}
 .quicklinks,.dashboard,.support-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-left:12px;padding-right:12px}
 .quicklinks strong{white-space:normal}
 .legacy-league-strip{gap:12px;padding:14px 15px}
}
@media (max-width:640px) {
 .site-header{grid-template-columns:minmax(0,1fr) auto;gap:9px 7px;padding:10px 12px}
 .site-header .brand img{width:36px;height:44px}
 .site-header .brand strong{font-size:22px}
 .site-header .brand small{font-size:7px;letter-spacing:0}
 .site-header .account{gap:4px}
 .site-header .account a{min-height:40px;padding:8px 7px;font-size:10px}
 .site-header nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .site-header nav a{min-height:43px;font-size:11px;padding:9px 5px}
 .hero-left{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:20px 15px 90px}
 .hero-left .crest{align-self:center;width:91px;max-height:112px}
 .intro{width:100%;padding-left:12px;border-left:3px solid var(--accent)}
 .intro>span{font-size:10px;letter-spacing:1.2px}
 .intro h1{font-size:clamp(25px,7.4vw,40px);margin:8px 0 12px;line-height:1.1}
 .intro p{font-size:11px;line-height:1.7;overflow-wrap:anywhere}
 .hero-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .hero-actions a{width:100%;white-space:normal;font-size:12px;padding:12px}
 .holiday strong{font-size:clamp(14px,4.2vw,21px);line-height:1.2;overflow-wrap:anywhere}
 .quicklinks,.dashboard,.support-dashboard,.competition-columns{grid-template-columns:minmax(0,1fr)}
 .competition-columns .hub-panel:last-child{grid-column:auto}
 .quicklinks,.dashboard,.support-dashboard{padding:10px 12px;gap:9px}
 .quicklinks a{min-height:68px;gap:12px}
 .competition-hub{padding:17px 12px}
 .hub-panel,.dashboard-panel{min-height:0}
 .panel-title{flex-wrap:wrap;gap:8px}
 .panel-title h2{font-size:13px;overflow-wrap:anywhere}
 .panel-title a{font-size:11px;white-space:normal}
 .panel-row{min-width:0}
 .entry{min-width:0}
 .entry b,.entry small{overflow-wrap:anywhere}
 .result-list{display:grid;grid-template-columns:minmax(0,1fr)}
 .result{min-width:0;max-width:100%;gap:7px;overflow-wrap:anywhere}
 .result span{min-width:0;flex:1}
 .legacy-league-strip{flex-direction:column;align-items:stretch}
 .legacy-league-strip a{min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
 .latest-results{margin-left:12px;margin-right:12px}
 footer{padding:20px 12px;line-height:1.65;overflow-wrap:anywhere}
}
@media (max-width:360px) {
 .site-header .brand strong{font-size:20px}
 .site-header .brand small{font-size:6.5px}
 .site-header .brand img{width:32px;height:39px}
 .site-header .account a{font-size:9px;padding:7px 6px}
 .site-header nav a{font-size:10px}
 .hero-left{padding-bottom:98px}
 .intro h1{font-size:25px}
}

/* Stage 30E: accessible CSS-only mobile hamburger menu. Desktop menu unchanged. */
.mobile-menu{display:none}
@media(max-width:900px){
 .site-header{position:relative;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 10px;align-items:center}
 .site-header .brand{grid-column:1;grid-row:1}
 .site-header .account{grid-column:2;grid-row:1}
 .site-header > nav{display:none!important}
 .site-header .mobile-menu{display:block;grid-column:3;grid-row:1;min-width:0;align-self:center;position:static}
 .site-header .mobile-menu summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:44px;padding:9px 12px;background:#e97820;border:1px solid #ffa457;border-radius:7px;font-weight:900;font-size:12px;color:#100e0b;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
 .site-header .mobile-menu summary::-webkit-details-marker{display:none}
 .site-header .mobile-menu summary::marker{content:''}
 .site-header .mobile-menu summary:focus-visible{outline:3px solid #ffe29d;outline-offset:3px}
 .site-header .mobile-menu[open] summary{background:#ffad49}
 .site-header .menu-lines{font-size:21px;line-height:1}
 .site-header .mobile-menu nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));position:absolute;z-index:50;top:calc(100% - 2px);left:0;right:0;width:100%;min-width:0;max-height:min(70vh,560px);overflow-y:auto;overflow-x:hidden;gap:8px;margin:0;padding:13px max(12px,env(safe-area-inset-right)) 15px max(12px,env(safe-area-inset-left));background:#111216;border:1px solid #ef8429;border-top:0;border-radius:0 0 10px 10px;box-shadow:0 16px 26px #000b;justify-content:stretch;align-items:stretch}
 .site-header .mobile-menu nav a{display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:11px 8px;font-size:12px;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;background:#202126;border:1px solid #66452b;border-radius:7px;color:#f9f9f9}
 .site-header .mobile-menu nav a.selected{background:#e97820;color:#111;border-color:#ffad5d}
 .site-header .mobile-menu nav a.legacy-nav{color:#ffdc9a;border-color:#bd7e32}
 .site-header .mobile-menu nav a:focus-visible{outline:2px solid #ffe5a6;outline-offset:2px}
}
@media(max-width:640px){
 .site-header{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .site-header .brand{grid-column:1;grid-row:1}
 .site-header .mobile-menu{grid-column:2;grid-row:1}
 .site-header .account{grid-column:1/-1;grid-row:2;justify-content:flex-end;gap:8px}
 .site-header .account a{min-height:38px;font-size:11px;padding:8px 13px}
 .site-header .mobile-menu nav{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px){.site-header .mobile-menu summary{font-size:11px;padding:8px 9px}.site-header .menu-lines{font-size:19px}}


/* STAGE 30F: bring seasonal hero artwork forward on mobile and tablet.
   Previous rules layered near-opaque black gradients over theme images.
   Preserve header/menu and layout, soften only the hero overlay. */
@media (max-width:900px) {
  .hero-illustration {
    opacity:1;
    background-image:linear-gradient(90deg,rgba(8,11,17,.70) 0%,rgba(8,11,17,.36) 44%,rgba(8,11,17,.08) 100%),var(--hero);
    background-position:center right;
    background-size:cover;
  }
  .hero .intro h1,.hero .intro>span,.hero .intro p {
    text-shadow:0 2px 7px rgba(0,0,0,.96),0 1px 2px #000;
  }
}
@media (max-width:640px) {
  .hero-illustration {
    opacity:1;
    background-image:linear-gradient(180deg,rgba(8,11,17,.12) 0%,rgba(8,11,17,.22) 44%,rgba(8,11,17,.47) 100%),var(--hero);
    background-position:center center;
  }
  .hero .intro {
    background:rgba(4,6,10,.48);
    padding:10px 12px;
    border-radius:0 8px 8px 0;
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
  }
}

/* STAGE 30M1 — homepage tidying; based on BSPL(6) and preserving 30E/30F mobile styles. */
html{scroll-behavior:smooth}
.site-header .brand{color:inherit;text-decoration:none;flex-shrink:0}
.site-header .brand:hover strong{color:#ffa44d}
.site-header .brand:focus-visible,.hero-actions a:focus-visible,.panel-row:focus-visible,.quicklinks a:focus-visible{outline:3px solid #ffd48b;outline-offset:3px}
.essential-links{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1160px;margin:0 auto;padding:16px 18px 8px;background:transparent}
.essential-links a{min-height:70px;border-color:#98602f}
.competition-hub{padding-top:22px}
.hub-panel{min-height:0}
.hub-panel .panel-row{align-items:center}
.latest-results{margin-top:14px}
.stage30m-preview{padding:10px 12px;background:#2f220e;border-bottom:1px solid #d69b38;color:#ffe3aa;font-weight:900}
@media(max-width:900px){.essential-links{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;padding:13px 12px 2px}}
@media(max-width:600px){.essential-links{grid-template-columns:1fr}.essential-links a{min-height:64px}.competition-hub{padding-top:17px}}


/* Stage 30M1B — top navigation and Latest Results tidy. */
/* Keep player sign-in only in the account area, and preserve the mobile menu. */
.site-header .account{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.site-header .account a{white-space:nowrap}
/* The previous decorative after-image was making the results panel look
   overlapped by an unrelated theme image. Let the panel size to content. */
.latest-results{display:block;position:relative;min-height:0!important;height:auto!important;overflow:hidden;isolation:isolate;clear:both;padding-bottom:0}
.latest-results::after{content:none!important;display:none!important;background:none!important;height:0!important}
.latest-results .result-list{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;padding:14px;min-height:56px;position:relative;z-index:1}
.latest-results .result-list .empty{margin:0;padding:7px 5px;line-height:1.6}
.latest-results .result{min-width:0;flex:1 1 220px}
@media(max-width:900px){.site-header .account{gap:7px}}
@media(max-width:640px){.site-header .account{justify-content:flex-end}.site-header .account a{font-size:11px}}
@media(max-width:600px){.latest-results .result-list{display:grid;grid-template-columns:minmax(0,1fr)}.latest-results .result{width:100%}}


/* Stage 30M8: integrated Christmas design approved in 30M7. */
   Intentionally scoped to christmas-preview; no changes to normal/other themes. */
body[data-theme="christmas"]{--accent:#f2c876;background:radial-gradient(ellipse 75% 45% at 0 45%,rgba(16,70,43,.19),transparent 70%),radial-gradient(ellipse 65% 45% at 100% 65%,rgba(116,28,35,.16),transparent 74%),#070b0b;color:#fffaf2}
body[data-theme="christmas"] .site-header{background:linear-gradient(180deg,#0b1b14,#080d0b 85%);border-bottom:3px solid #e2c172;box-shadow:0 4px 20px #d9ac5933;position:relative;z-index:5}
body[data-theme="christmas"] .site-header:after{content:'';position:absolute;bottom:-8px;left:0;right:0;height:9px;pointer-events:none;background:radial-gradient(circle at 12px 2px,#fff8d7 0 2px,#ffbf44 3px,transparent 6px) 0 0 / 57px 9px repeat-x;filter:drop-shadow(0 0 5px #ffd07b);opacity:.87}
body[data-theme="christmas"] .site-header nav a.selected,body[data-theme="christmas"] .site-header nav a:hover{background:#16603b;color:#fff1c0}
body[data-theme="christmas"] .account a{border-color:#d7ba70}
body[data-theme="christmas"] .account a:last-child{background:linear-gradient(120deg,#cba55c,#fff0b8,#cca253);color:#15271a;border-color:#f8dc9b}
body[data-theme="christmas"] .legacy-league-strip{background:linear-gradient(95deg,#2e0f17,#144128 55%,#361821);border-bottom:2px solid #d9b56a}
body[data-theme="christmas"] .legacy-league-strip strong{color:#ffe8a6}
body[data-theme="christmas"] .hero{border-bottom:4px solid #efc97d;box-shadow:0 8px 29px #eed29323}
body[data-theme="christmas"] .hero-illustration{filter:saturate(1.12) brightness(1.11)}
body[data-theme="christmas"] .hero .intro{border-left-color:#d8bd79}
body[data-theme="christmas"] .intro>span{color:#ffe2a0}
body[data-theme="christmas"] .hero-actions .primary{background:linear-gradient(115deg,#f8db99,#d9a85b,#ffe4a3);color:#17251b;box-shadow:0 0 16px #e4c17a44}
body[data-theme="christmas"] .holiday strong{background:linear-gradient(90deg,#49131e,#17613c 48%,#49131e);border-color:#fbe1a4;box-shadow:0 0 18px #ffd78366,0 5px 15px #000;color:#fff5d3}
body[data-theme="christmas"] .quicklinks{background:linear-gradient(100deg,#101b16,#1b1315,#0d1c13)}
body[data-theme="christmas"] .quicklinks a{border-color:#c4a36b;background:linear-gradient(130deg,#172c22,#16191a);box-shadow:inset 0 0 12px #fff2bd08}
body[data-theme="christmas"] .quicklinks b,body[data-theme="christmas"] .quicklinks em{color:#ffe0a2}
body[data-theme="christmas"] .competition-hub{position:relative;isolation:isolate;background:radial-gradient(ellipse at 6% 6%,#17482a52,transparent 46%),radial-gradient(ellipse at 95% 85%,#651c2e44,transparent 50%)}
body[data-theme="christmas"] .hub-intro .eyebrow{color:#f1cb7d}
body[data-theme="christmas"] .hub-intro h2{text-shadow:0 0 20px #e5c47b33}
body[data-theme="christmas"] .hub-panel{background:linear-gradient(153deg,#16231c,#141418 56%,#24171b);border:1px solid #b89a57;box-shadow:0 6px 20px #0007,0 0 18px #ddc48514;position:relative}
body[data-theme="christmas"] .hub-panel:before{content:'❄';position:absolute;top:9px;right:12px;color:#f4db9d7a;font-size:20px;pointer-events:none}
body[data-theme="christmas"] .hub-panel .panel-title{background:linear-gradient(90deg,#1b412b,#3f1a24);border-bottom-color:#bda56f}
body[data-theme="christmas"] .hub-panel .panel-title h2{color:#ffe09d}
body[data-theme="christmas"] .hub-panel .panel-title a{color:#ffdb9a}
body[data-theme="christmas"] .hub-panel .panel-row{border-bottom-color:#73685055}
body[data-theme="christmas"] .hub-panel .panel-row:hover{background:#24503c66}
body[data-theme="christmas"] .panel-row em{color:#f4d38b}
body[data-theme="christmas"] .latest-results{border:1px solid #ad945d;background:linear-gradient(130deg,#13221b,#1b1519);box-shadow:0 0 19px #d4b36d1c}
body[data-theme="christmas"] .latest-results .panel-title{background:linear-gradient(100deg,#15412a,#3d1b25);border-bottom-color:#ad945d}
body[data-theme="christmas"] .latest-results .panel-title a{color:#ffdb98}
body[data-theme="christmas"] footer{background:linear-gradient(180deg,#0b1912,#101012);border-top:2px solid #baa065;color:#eadbc0}
body[data-theme="christmas"] footer a{color:#ffe2a0}
/* Gentle falling snow is purely decorative and cannot intercept clicks. */
body[data-theme="christmas"] .competition-hub:before,body[data-theme="christmas"] .competition-hub:after{content:'✦   ❄       ·    ❅    ·      ❄       ✦      ·    ❆      ❄';position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;white-space:pre-wrap;color:#e5f5ff56;font-size:20px;letter-spacing:30px;line-height:110px;animation:bspl-snow-drift 24s linear infinite;opacity:.46}
body[data-theme="christmas"] .competition-hub:after{animation-duration:37s;animation-delay:-12s;opacity:.27;transform:translateY(-65px);font-size:15px;letter-spacing:46px}
@keyframes bspl-snow-drift{0%{background-position:0 -80px;transform:translateY(-36px)}100%{background-position:0 90px;transform:translateY(90px)}}
@media(max-width:900px){body[data-theme="christmas"] .site-header .mobile-menu nav{background:#102017;border-color:#bda268}body[data-theme="christmas"] .site-header .mobile-menu nav a{background:#193225;border-color:#7a6b46}body[data-theme="christmas"] .site-header .mobile-menu nav a.selected{background:#dabb79;color:#172b1e}body[data-theme="christmas"] .hero-illustration{filter:brightness(1.2) saturate(1.09)}body[data-theme="christmas"] .hero{background:#0a1110}}
@media(max-width:600px){body[data-theme="christmas"] .hub-panel:before{font-size:14px}body[data-theme="christmas"] .competition-hub:before,body[data-theme="christmas"] .competition-hub:after{animation:none;opacity:.13}body[data-theme="christmas"] .hero-illustration{filter:brightness(1.16)}}
@media(prefers-reduced-motion:reduce){body[data-theme="christmas"] .competition-hub:before,body[data-theme="christmas"] .competition-hub:after{animation:none}}

/* STAGE 30M8 — Rich seasonal treatments, all scoped to their theme. */
/* Cross-theme foundations: decoration stays behind links and text. */
body[data-theme="easter"],body[data-theme="halloween"],body[data-theme="bonfire"]{--season-glow:#ffbb66;--season-ink:#fff4e3;--season-secondary:#312118;background-color:#08090e}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .site-header{position:relative;z-index:5;box-shadow:0 5px 22px color-mix(in srgb,var(--season-glow) 22%,transparent);border-bottom:2px solid var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .site-header nav a.selected,
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .site-header nav a:hover{background:var(--season-secondary);color:var(--season-ink)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .account a{border-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .account a:last-child{background:var(--season-glow);color:#130e14}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .legacy-league-strip{border-bottom-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hero{border-bottom-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .intro{border-left-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .intro>span{color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hero-actions .primary{background:var(--season-glow);color:#151016}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .holiday strong{border-color:var(--season-glow);box-shadow:0 0 22px color-mix(in srgb,var(--season-glow) 38%,transparent);color:var(--season-ink)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .quicklinks a{border-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .quicklinks b{color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .competition-hub{position:relative;isolation:isolate}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hub-panel{border:1px solid var(--season-glow);box-shadow:0 0 20px color-mix(in srgb,var(--season-glow) 10%,transparent);position:relative}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hub-panel .panel-title{background:var(--season-secondary);border-bottom-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hub-panel .panel-title h2,body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hub-panel .panel-title a{color:var(--season-ink)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .latest-results{border:1px solid var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .latest-results .panel-title{background:var(--season-secondary);border-bottom-color:var(--season-glow)}
body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) footer{border-top:1px solid var(--season-glow)}
/* EASTER — pale spring blossoms, illuminated violet/lilac, fresh green. */
body[data-theme="easter"]{--season-glow:#e9c6ff;--season-ink:#ffeaff;--season-secondary:linear-gradient(95deg,#293f30,#403052);background:radial-gradient(ellipse at 8% 60%,#253b2940,transparent 45%),radial-gradient(ellipse at 95% 40%,#5a3d7940,transparent 50%),#0a0d0c}
body[data-theme="easter"] .site-header{background:linear-gradient(120deg,#162318,#281d35)}
body[data-theme="easter"] .legacy-league-strip{background:linear-gradient(90deg,#233b2b,#322544)}
body[data-theme="easter"] .quicklinks{background:linear-gradient(105deg,#14251e,#291f31)}
body[data-theme="easter"] .hub-panel{background:linear-gradient(150deg,#14251e,#22202c)}
body[data-theme="easter"] .hub-panel:after{content:'✿';position:absolute;right:13px;top:7px;font-size:22px;color:#e9c6ff99;pointer-events:none}
body[data-theme="easter"] .hero-illustration{filter:brightness(1.13) saturate(1.09)}
body[data-theme="easter"] .competition-hub:before{content:'✿       ❀       ✿      ❃        ❀        ✿';position:absolute;inset:0;z-index:-1;pointer-events:none;color:#eacffb40;letter-spacing:42px;line-height:115px;font-size:22px;animation:bspl-season-float 27s ease-in-out infinite}
/* HALLOWEEN — haunted violet-black with jack-o-lantern amber. */
body[data-theme="halloween"]{--season-glow:#82529a;--season-ink:#ffe1b6;--season-secondary:linear-gradient(95deg,#24122e,#331909);background:radial-gradient(ellipse at 2% 55%,#3613493d,transparent 50%),radial-gradient(ellipse at 95% 85%,#4c200d35,transparent 50%),#07060b}
body[data-theme="halloween"] .site-header{background:linear-gradient(95deg,#140e1e,#2d1426)}
body[data-theme="halloween"] .legacy-league-strip{background:linear-gradient(100deg,#2c1326,#351c0e)}
body[data-theme="halloween"] .quicklinks{background:linear-gradient(110deg,#221429,#1d1311)}
body[data-theme="halloween"] .hub-panel{background:linear-gradient(145deg,#1d1125,#141016)}
body[data-theme="halloween"] .hub-panel:after{content:'☾';position:absolute;top:4px;right:13px;font-size:27px;color:#9b68ac80;pointer-events:none}
body[data-theme="halloween"] .competition-hub:before{content:'☾       ✦          ✧        ✦       ☾';position:absolute;inset:0;z-index:-1;pointer-events:none;font-size:24px;line-height:130px;letter-spacing:48px;color:#74428c55;animation:bspl-season-float 29s ease-in-out infinite}
body[data-theme="halloween"] .hero-illustration{filter:brightness(1.12) saturate(1.15)}
/* GUY FAWKES — midnight blue, copper and celebratory gold. */
body[data-theme="bonfire"]{--season-glow:#ffc76d;--season-ink:#fff3d1;--season-secondary:linear-gradient(95deg,#1a2848,#573018);background:radial-gradient(ellipse at 10% 30%,#243f863d,transparent 48%),radial-gradient(ellipse at 90% 75%,#7c431c35,transparent 45%),#070911}
body[data-theme="bonfire"] .site-header{background:linear-gradient(95deg,#09132b,#1c1825)}
body[data-theme="bonfire"] .legacy-league-strip{background:linear-gradient(95deg,#192c51,#583016)}
body[data-theme="bonfire"] .quicklinks{background:linear-gradient(105deg,#111c32,#291d1b)}
body[data-theme="bonfire"] .hub-panel{background:linear-gradient(140deg,#162039,#27201c)}
body[data-theme="bonfire"] .hub-panel:after{content:'✺';position:absolute;top:4px;right:13px;color:#ffd68da6;font-size:23px;pointer-events:none}
body[data-theme="bonfire"] .competition-hub:before{content:'✧       ✺       ✦        ✺       ✧';position:absolute;inset:0;z-index:-1;pointer-events:none;font-size:23px;line-height:125px;letter-spacing:45px;color:#f7b76161;animation:bspl-season-spark 9s ease-in-out infinite alternate}
body[data-theme="bonfire"] .hero-illustration{filter:brightness(1.14) saturate(1.16)}
@keyframes bspl-season-float{0%,100%{transform:translateY(-16px);opacity:.25}50%{transform:translateY(18px);opacity:.45}}
@keyframes bspl-season-spark{0%,100%{opacity:.22;filter:brightness(1)}50%{opacity:.55;filter:brightness(1.6)}}
@media(max-width:900px){
 body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .site-header .mobile-menu nav{background:#14151e;border-color:var(--season-glow)}
 body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .site-header .mobile-menu nav a.selected{background:var(--season-glow);color:#151019}
 body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .hero-illustration{filter:brightness(1.19) saturate(1.12)}
}
@media(max-width:600px){
 body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .competition-hub:before{animation:none;opacity:.14}
 body[data-theme="christmas"] .competition-hub:before,body[data-theme="christmas"] .competition-hub:after{animation:none;opacity:.12}
}
@media(prefers-reduced-motion:reduce){
 body:is([data-theme="easter"],[data-theme="halloween"],[data-theme="bonfire"]) .competition-hub:before{animation:none}
}

/* Stage 30M8A: darker haunted-purple Halloween accents; other themes unaffected. */
body[data-theme="halloween"] .hub-panel{box-shadow:0 0 12px #50245e22,inset 0 0 12px #2e173322}
body[data-theme="halloween"] .site-header{box-shadow:0 4px 18px #47205933}
body[data-theme="halloween"] .hub-panel .panel-title h2,body[data-theme="halloween"] .hub-panel .panel-title a{color:#f4ddff}
