.league-shell{max-width:1030px;padding-inline:0;margin:auto;container:league-layout / inline-size}
.league-top{min-width:0;flex-wrap:wrap}.league-top .league-brand{margin-inline-start:auto}
.league-shell .league-brand{font-weight:800;color:#f5c98f;letter-spacing:.1em;text-decoration:none}
.league-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px}
.league-grid .ranked-panel{padding:clamp(15px,3vw,26px);min-width:0}
.league-grid h1{margin:0}.league-grid h2{font-size:1.05rem;margin:.9rem 0 .55rem}
.league-grid p,.league-grid li,.league-grid td,.league-grid th,.league-grid label,.league-grid summary{font-size:.95rem;line-height:1.35}
.league-facts{display:grid;grid-template-columns:1.5fr 1fr;margin:.8rem 0;gap:.5rem;border-block:1px solid #774e4855;padding:.7rem 0}
.league-facts dt{font-size:.9rem;color:#edd1a2}.league-facts dd{margin:.25em 0 0;overflow-wrap:anywhere}.league-facts #league-checkout{font-size:.85rem;color:#edd1a2}
.league-actions{display:flex;gap:.45rem;flex-wrap:wrap}.league-actions [hidden]{display:none}.league-actions a{text-decoration:none}
.league-status{min-height:1.35em;color:#ffddab}
.league-summary-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.2rem .75rem}
.league-summary-heading select{color:#fff3da;background:#351928;font-size:.95rem;border:1px solid #a37352;border-radius:.4rem;padding:.35rem .55rem}
.league-live{list-style:none;margin:0;padding:0}.league-live li{margin:.25rem 0}.league-live a{display:inline-block;color:#ffdda2}
.league-table{width:100%;border-collapse:collapse;text-align:start;font-variant-numeric:tabular-nums;margin:.4rem 0}
.league-table td,.league-table th{padding:.32rem .25rem;border-bottom:1px solid #774e4855;text-align:start;overflow-wrap:anywhere}
.league-table tbody td:nth-child(2){max-width:12ch}.league-table th{color:#f6d7a9}.league-table td:not(:nth-child(2)){white-space:nowrap}
.league-summary details{padding:.4rem 0;border-bottom:1px solid #774e4855}.league-summary summary{cursor:pointer;color:#f6d7a9}
.league-summary details ol{list-style:none;padding:0 .3rem;margin:.35rem 0}.league-summary details li{padding:.16rem 0}
.league-summary #league-refresh{margin-top:.8rem}
/* Use the width of the landscape surface, not the physical device's
   portrait media-query width. The one-column layout is the narrow fallback. */
@container league-layout (min-width:560px){
 .league-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
}
.league-summary-heading select{max-inline-size:100%}
.league-grid :is(.ranked-intro,.league-facts>div,.league-summary-heading>div){min-inline-size:0}
.league-grid h1{white-space:normal;overflow-wrap:anywhere}
.league-grid .ranked-intro{grid-template-columns:auto minmax(0,1fr)}
.league-grid .rank-stamp{flex:none}
@media(orientation:portrait) and (any-pointer:coarse){
 .league-page .league-shell{
  /* Keep the shared scroller's logical height, safe areas and top-left anchor. */
  max-width:none;margin:0;
  padding:max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom))
   max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-top));
 }
 .league-top{margin-block-end:8px}
 .league-grid .ranked-panel{padding:12px}
}

.league-activity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem .75rem;margin:.7rem 0;font-size:.86rem}
.league-activity[hidden]{display:none}.league-activity>div{padding:.4rem .55rem;border-inline-start:2px solid #a37352;overflow-wrap:anywhere}
.league-activity dt{color:#edd1a2}.league-activity dd{font-variant-numeric:tabular-nums;margin:.15rem 0 0;font-weight:700}

/* Keep the actions and season overview in the first landscape viewport.
   Longer lists and expanded explanations use the existing page scroller. */
.league-shell{max-width:1030px}
.league-top{margin-block-end:0}
.league-grid{gap:8px}
.league-grid .ranked-panel{padding:clamp(10px,1.3vw,16px)}
.league-grid .ranked-intro{gap:8px;margin:0;padding-block-end:8px}
.league-grid .rank-stamp{width:34px;height:40px;font-size:1.3rem}
.league-grid .rank-kicker{font-size:.63rem;line-height:1.22}
.league-grid h2{font-size:.98rem;color:#ffe2b3;margin:0;line-height:1.2}
.league-facts{margin:0;gap:8px;padding:8px 0;border-block-start:0}
.league-facts dt,.league-facts #league-checkout{font-size:.79rem}
.league-facts dd{font-size:.92rem;line-height:1.25;margin:.15em 0 0}
.league-actions{align-items:center}
.league-actions:has(> :not([hidden])){margin-block-start:7px}
.league-status:empty{display:none}
.league-page .league-main>.league-status{margin:6px 0;min-height:0;line-height:1.25;font-size:.86rem}
.league-live-section{margin-block-start:9px}
.league-live{margin-block-start:4px}
.league-live li,#league-standing>p,#league-results>p{font-size:.84rem;color:#f3d7bd;margin:4px 0;line-height:1.3}
.league-live a{padding:.2rem 0}
.league-summary-heading,.league-result-heading{align-items:center}
.league-result-heading{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;margin-block-start:6px}
.league-summary-heading>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.league-summary-heading select{min-height:34px;padding:.1rem .4rem}
.league-summary #league-refresh{margin:0}
.league-activity{gap:5px;margin:7px 0}
.league-activity>div{padding:4px 6px;background:#180b1760;border-radius:3px;font-size:.78rem;line-height:1.18}
.league-activity dd{font-size:.9rem}
.league-grid details.league-info{margin-block-start:6px;padding:0;border-block:1px solid #774e4870}
.league-grid .league-info summary{min-height:34px;padding-block:7px;align-content:center;cursor:pointer;color:#f6d7a9;font-size:.85rem}
.league-grid .league-info p{margin:0 0 .5rem;font-size:.83rem;color:#eed4bb}
.league-table th{overflow-wrap:anywhere}
@media(pointer:coarse){
 .league-top .rank-subtle,.league-summary #league-refresh,.league-grid .league-info summary,.league-summary-heading select{min-height:44px}
 .league-live a{min-height:44px;display:inline-grid;align-content:center}
}

/* The featured event enriches the existing weekly session. It does not create a separate queue. */
.league-event[hidden]{display:none}
.league-event{margin-block-start:.65rem;padding:clamp(.55rem,1.35cqi,.86rem);border:1px solid #b98a55;border-radius:.65rem;min-width:0;background:radial-gradient(130% 110% at 100% 0,#67351f83 0,transparent 60%),linear-gradient(145deg,#351b2d,#1c121e);box-shadow:inset 0 0 0 1px #fff2bd12;color:#f8e7ca}
.league-event-head{display:flex;gap:.5rem;align-items:center}
.league-event-stamp{display:grid;place-items:center;min-inline-size:1.8rem;block-size:1.8rem;border-radius:.35rem;background:linear-gradient(135deg,#fff1bb,#c08949);color:#421b20;font-weight:800}
.league-grid .league-event-kicker{font-size:.62rem;letter-spacing:.10em;font-weight:750;color:#efd19b;margin:0}
.league-grid .league-event h2{font-size:1.1rem;margin:0;color:#fff2cd}
.league-event-format{display:flex;flex-wrap:wrap;gap:.3rem;margin:.5rem 0}
.league-event-format span{border:1px solid #e5b77248;border-radius:.3rem;padding:.18rem .32rem;color:#ffdfa0;font-size:.72rem;line-height:1.2}
.league-event-timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin:.35rem 0}
.league-event-timeline>div{background:#170c18a8;border-inline-start:2px solid #d7a665;border-radius:.25rem;padding:.24rem .35rem;min-width:0;overflow-wrap:anywhere}
.league-event-timeline dt{font-size:.72rem;color:#e8c9a3}.league-event-timeline dd{margin:.12rem 0 0;font-size:.77rem;color:#fff4d4;font-weight:650}
.league-grid .league-event-pause{font-size:.73rem;color:#eacdad;margin:.32rem 0 .5rem}
.league-event h3{font-size:.79rem;margin:.25rem 0;color:#ffe2a7}
.league-event-prizes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:.28rem}
.league-grid .league-event-prizes li{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.26rem;min-width:0;border:1px solid #ddb87c4d;border-radius:.3rem;padding:.22rem .31rem;background:#66362236;font-size:.76rem;line-height:1.22}
.league-event-prizes li:first-child{border-color:#eec67f85;background:#7d4a3655}
.league-event-prizes span,.league-event-prizes small{color:#e8c9aa}.league-event-prizes strong{color:#fff0bb;white-space:nowrap}
.league-event-prizes small{font-size:.64rem}
