/* Give play, places and standings priority over notices. */
.home-summary{display:grid;grid-template-columns:1fr 1fr 1.35fr 1fr;gap:10px;margin:0 0 12px}
.home-summary:empty{display:none}
.home-stat{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border:1px solid #82704b;border-radius:4px;background:linear-gradient(120deg,#13323d,#0a202b);box-shadow:inset 0 2px #dfc68c33}
.home-stat>svg{width:32px;height:32px;flex:0 0 32px;color:#dfc68c}
.home-stat>dl{display:flex;flex-direction:column;min-width:0;margin:0}
.home-stat dt{order:1;color:#e4c987;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;line-height:1.4}
.home-stat dd{order:0;margin:0 0 3px;color:#f2dfb2;font:600 30px/1.1 Georgia,serif;overflow-wrap:anywhere}
.home-stat-leader dd{font-size:22px;line-height:1.2}
.home-stat .home-stat-note{order:2;display:block;color:#acc3cb;font:400 11px/1.4 system-ui;margin:2px 0 0}
@media(max-width:1000px){.home-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-stat{padding:10px 12px;gap:10px}.home-stat-leader{grid-column:1;grid-row:2}}
@media(max-width:450px){.home-stat{padding:10px;gap:8px}.home-stat>svg{width:25px;height:25px;flex-basis:25px}.home-stat dd{font-size:27px}.home-stat-leader dd{font-size:19px}.home-stat-leader>svg{display:none}.home-stat dt{font-size:9px;letter-spacing:.04em}.home-stat .home-stat-note{font-size:10px}}
.compact-home main{display:block;max-width:1600px;padding:10px 18px 0}
.compact-home [hidden]{display:none!important}
.home-toolbar{display:flex;align-items:center;gap:10px 16px;margin-bottom:8px;min-height:44px}
.home-season-picker{display:flex;align-items:center;gap:14px;min-width:0}
.compact-home .home-toolbar .season-control{display:grid;gap:3px;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#adc6ce}
.compact-home .home-toolbar .season-control select{min-width:250px;padding:7px 10px;font-size:13px;min-height:36px}
.compact-home .home-toolbar .season-status{padding:0;margin:15px 0 0;border:0;background:none;font-size:12px;white-space:nowrap}
.home-toolbar>.nav-button{font-size:12px;padding:10px 0;white-space:nowrap;margin-top:14px}
#home-adventure{margin-left:auto}
.home-reward-link{display:flex;align-items:center;gap:9px;text-decoration:none;color:#e5c992;font-size:12px}
.home-reward-link>.enamel-pin{display:block;width:40px;height:40px;flex:0 0 40px}
.home-reward-link .pin-art{width:40px;height:40px;min-height:0}
.home-reward-link>span:nth-child(2){display:grid;grid-template-columns:auto auto;column-gap:8px}
.home-reward-link small{grid-column:1/-1;text-transform:uppercase;font-size:9px;letter-spacing:.1em;color:#a8c3cc}
.home-reward-link strong{font-weight:600}.home-reward-link>span:nth-child(2)>span{color:#b9cdd2}
.home-reward-link:hover strong{text-decoration:underline}
.home-calendar{border-top:1px solid #37535d;border-bottom:1px solid #37535d;margin:0 0 10px}
.home-calendar>summary{display:flex;align-items:center;gap:14px;min-height:32px;cursor:pointer;list-style:none;font-size:12px;color:#c1d2d7}
.home-calendar>summary::-webkit-details-marker{display:none}
.home-calendar>summary>span:first-child{font:600 12px system-ui;text-transform:uppercase;letter-spacing:.07em;color:#e7c886}
.home-calendar-action{margin-left:auto;color:#c5d4d6;font-size:11px}
.home-calendar-action::after{content:' +';color:#e7c886}.home-calendar[open] .home-calendar-action::after{content:' −'}
.compact-home .home-season-countdown{display:flex;align-items:center;gap:16px;margin:0;padding:0 0 10px}
.home-calendar .home-up-next{flex:1;min-width:0;background:none;border:0;border-radius:0}
.home-calendar .home-next-item{padding:4px 14px 6px;min-height:0;gap:5px;border-color:#37535d}
.home-calendar .home-next-item:first-child{padding-left:0}
.home-calendar .home-next-item:last-child{padding-right:0}
.home-calendar .home-next-item:hover{background:none}
.home-calendar .home-next-item strong{font-size:13px;line-height:1.4}
.home-calendar .home-next-date,.home-calendar .event-ticket-note{font-size:11px}
.home-calendar .home-next-item .event-tickets{margin-top:2px}
.home-calendar .event-ticket-button{padding:3px 8px}
.home-calendar-all{display:block;font-size:11px;text-align:right;color:#c5d4d6;padding:0 0 9px}
.compact-home .home-dlc-tickets{margin:0 0 14px;padding:10px 14px}
.compact-home .preview-bar{margin:0 0 14px;border-left:3px solid #d6bb7e}
.home-view-switch{display:none}
.compact-home .map-section{grid-template-columns:minmax(0,1.55fr) minmax(410px,1fr);gap:12px}
.compact-home{--board-height:clamp(400px,48dvh,520px)}
.compact-home #battles{max-height:calc(var(--board-height) + 112px)}
.compact-home .lower-grid{gap:12px;margin-top:10px;align-items:stretch}
.compact-home .panel{outline:none;box-shadow:none;border:1px solid #655c42;border-radius:5px}
.compact-home .section-heading{background:#102d37;border-bottom:1px solid #3f5152;padding:9px 12px}
.compact-home .section-heading h2{font-size:1.03rem;letter-spacing:.07em}
.compact-home .map-viewport{outline:1px solid #8d7851;outline-offset:3px;border:1px solid #c1a66b;border-radius:3px}
.compact-home .map-help{margin-top:2px}.compact-home .map-style-bar{border:0;background:none;padding:0}
.home-data-meta{margin-top:14px;color:#92afb8;font-size:11px}
.compact-home footer{margin-top:10px}
.home-calendar summary:focus-visible,.home-reward-link:focus-visible,.home-view-switch button:focus-visible{outline:2px solid #eed598;outline-offset:3px}
@media(max-width:1150px){.home-calendar-hint{display:none}.home-reward-link>span:nth-child(2){grid-template-columns:1fr}.home-season-picker{gap:10px}.home-toolbar{gap:12px}.compact-home .home-toolbar .season-control select{min-width:220px}}
@media(max-width:1000px){
 .compact-home main{padding:12px 16px 0}.home-toolbar{flex-wrap:wrap;gap:4px 12px;margin-bottom:10px}
 .home-season-picker{flex:1;align-items:flex-start;flex-direction:column;gap:3px}
 .compact-home .home-toolbar .season-control{width:100%}.compact-home .home-toolbar .season-control select{min-width:0;width:100%}
 .compact-home .home-toolbar .season-status{margin:0;font-size:11px}
 .home-toolbar>.nav-button{margin-top:12px}
 #home-adventure{flex-basis:100%;margin:2px 0 0}.home-reward-link{gap:7px;width:fit-content}
 .home-reward-link>.enamel-pin,.home-reward-link .pin-art{width:30px;height:30px;flex-basis:30px}
 .home-reward-link>span:nth-child(2){display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.home-reward-link small{display:none}
 .home-calendar{margin-bottom:12px}.home-calendar>summary{min-height:38px}
 .compact-home .home-season-countdown{display:block}.home-calendar .home-up-next{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-calendar .home-next-item{padding:10px 12px;border-bottom:1px solid #37535d}.home-calendar .home-next-item:first-child{padding-left:12px}.home-calendar .home-next-item:nth-child(2){border-right:0}.home-calendar .home-next-item:nth-last-child(-n+2){border-bottom:0}
 .compact-home .home-calendar .season-countdown{text-align:left;margin-top:12px;padding:8px 12px;border:0;max-width:none}
 .home-view-switch{display:flex;gap:4px;margin:0 0 14px;background:#102b35;padding:4px;border:1px solid #425b61;border-radius:7px}
 .home-view-switch button{flex:1;border:0;border-radius:4px;background:none;color:#b4cbd2;min-height:40px;font:600 13px system-ui;cursor:pointer;padding:8px}
 .home-view-switch button[aria-pressed=true]{color:#0a2530;background:#dfc68c}
 .compact-home .map-section{grid-template-columns:1fr;gap:0}
 .compact-home .lower-grid{grid-template-columns:1fr;margin-top:0;gap:16px}
 .compact-home #battles{max-height:none;overflow:visible}
 .compact-home #battles>.section-heading{position:static}
 .compact-home .map-viewport{height:clamp(350px,56dvh,520px)}
 .compact-home[data-home-view=events] #home-map-panel,.compact-home[data-home-view=events] #home-standings,
 .compact-home[data-home-view=map] #battles,.compact-home[data-home-view=map] #home-standings,
 .compact-home[data-home-view=standings] #map{display:none}
 .compact-home #teams .practice-table-wrap{max-height:none}
 .compact-home .store-spotlight{margin-top:20px}
}
@media(prefers-reduced-motion:no-preference){.home-view-switch button{transition:background .15s,color .15s}}
.home-next-info>summary{font-size:11px;color:#b8cdd3;cursor:pointer;min-height:26px;padding:4px 0}.home-next-info[open]>summary{color:#e7c886}.home-next-info>summary:focus-visible{outline:2px solid #e7c886;outline-offset:2px}.home-next-info>.home-next-date{display:block;margin-bottom:6px}.home-next-info .event-ticket-button{min-height:30px;display:inline-flex;align-items:center}

/* Compact board: keep the map, next games and standings together. */
.compact-home .location-map{min-height:0}
.compact-home .battle-table th:first-child{width:31%}
.compact-home .battle-table th:nth-child(2){width:25%}
.compact-home .battle-table th:nth-child(3){width:16%}
.compact-home .battle-table th:nth-child(4){width:17%}
.compact-home .battle-table th:last-child{width:11%}
.compact-home .outlying-territories{padding:6px 8px;margin-top:6px}
.compact-home .outlying-territories h3{margin-bottom:4px}
.compact-home .outlying-list{gap:6px}
.compact-home .outlying-store{padding:5px 7px;gap:6px}
.compact-home .outlying-seal{flex-basis:24px;height:28px;font-size:14px}
.compact-home .site-header{min-height:60px;padding-top:7px;padding-bottom:7px}
.compact-home .map-toolbar{margin-bottom:7px;gap:8px}
.compact-home .map-toolbar .segmented button{padding:6px 10px;min-height:34px}
.compact-home .map-toolbar .search input{padding:8px 0}
.compact-home .territory-legend{padding:5px 0;gap:12px;line-height:1.4}
.compact-home .map-style-bar{display:inline-flex;vertical-align:middle;margin:0 12px 0 0;width:auto}
.compact-home .map-style-bar .segmented button{min-height:30px;padding:4px 9px}
.compact-home .map-help{display:inline-block;vertical-align:middle;font-size:12px;margin:0}
.compact-home .map-help[open]{display:block;margin-top:6px}
.compact-home .map-help>summary{padding:5px 0}
.compact-home .map-tile-status:empty{display:none}
.compact-home .battle-table{font-size:12px}
.compact-home .battle-table thead th{padding:7px 6px;font-size:10px;line-height:1.3}
.compact-home .battle-row>th,.compact-home .battle-row>td{padding:5px 6px;line-height:1.35}
.compact-home .battle-store,.compact-home .compact-event-link,.compact-home .battle-table .territory-badge,.compact-home .battle-table .team-identity{font-size:12px}
.compact-home .battle-store-heading{min-height:26px}
.compact-home #teams .practice-table-wrap{padding:0 8px}
.compact-home #teams .practice-table th,.compact-home #teams .practice-table td,.compact-home .elo-table th,.compact-home .elo-table td{padding:5px 6px}
.compact-home #teams>p{padding:7px 12px;margin:0;font-size:12px}
.compact-home #home-elo-table{padding:0 8px}
.compact-home .home-elo-note,.compact-home .home-rating-status{padding:7px 12px;font-size:12px}
.compact-home .store-spotlight{margin-top:10px}
.compact-home .store-spotlight>summary{padding:7px 0}
.compact-home .champion-section,.compact-home .directory-section{margin-top:10px}
.home-directory-disclosure>summary{cursor:pointer;list-style:none;min-height:42px;border-bottom:0}
.home-directory-disclosure>summary::-webkit-details-marker{display:none}
.home-directory-disclosure>summary::after{content:'+';color:var(--gold);font-size:20px;line-height:1;flex:0 0 auto}
.home-directory-disclosure[open]>summary{border-bottom:1px solid #3f5152}
.home-directory-disclosure[open]>summary::after{content:'\2212'}
.home-directory-disclosure>summary>h2{margin-right:auto}
.home-directory-disclosure>summary:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
.home-directory-disclosure>.section-subtitle{padding:8px 12px 0;font-size:12px}
.compact-home footer{padding:16px 0 22px;gap:10px 18px}
@media(min-width:1001px){
 .compact-home .battle-notes{padding:5px 12px}
 .compact-home .battle-finder{padding:2px 12px}
 .compact-home .battle-finder summary{min-height:30px}
 .compact-home .directory{grid-template-columns:repeat(4,minmax(0,1fr))}
 .compact-home .directory button{padding:9px 12px;font-size:13px}
}
@media(max-width:1000px){
 .compact-home main{padding:10px 14px 0}
 .compact-home .home-calendar{margin-bottom:8px}
 .compact-home .home-view-switch{margin-bottom:10px}
 .compact-home .lower-grid{gap:10px;margin-top:0}
 .compact-home #battles{max-height:none;overflow:visible}
 .compact-home #battles>.section-heading{position:static}
 .compact-home .map-style-bar .segmented button{min-height:40px;padding:7px 10px}
 .compact-home .map-toolbar .segmented button{min-height:40px}
 .compact-home .map-help>summary{min-height:40px;display:flex;align-items:center}
}
@media(max-width:700px){
 .compact-home .section-heading h2{font-size:1rem}
 .compact-home .battle-table .battle-row{padding:10px 12px;gap:6px 12px}
 .compact-home .battle-table .battle-row>th,.compact-home .battle-table .battle-row>td{width:auto;padding:0}
 .compact-home .battle-table .battle-row>.battle-when{grid-column:1;grid-row:2}
 .compact-home .battle-table .battle-row>td:nth-child(3){grid-column:2;grid-row:2}
 .compact-home .battle-table .battle-row>td:nth-child(4){grid-column:2;grid-row:3}
 .compact-home .battle-table .battle-row>.points-col{grid-column:1;grid-row:3;align-self:end}
 .compact-home .battle-row td::before{margin-bottom:2px}
 .compact-home .battle-store{font-size:14px}
 .compact-home .compact-event-link{font-size:13px;padding:5px 0}
 .compact-home .battle-table .territory-badge,.compact-home .battle-table .team-identity{font-size:13px}
 .compact-home .home-calendar-hint{display:none}
 .home-directory-disclosure>summary{flex-wrap:nowrap;gap:8px}
 .home-directory-disclosure>summary>span{font-size:11px}
 .compact-home .site-header{padding-top:9px;padding-bottom:9px}
}

.compact-home .territory-legend{margin-top:4px}
.compact-home #territory-freshness{margin-left:auto}
.compact-home #territory-freshness .territory-freshness{font-size:11px;line-height:1.5}
.compact-home .map-help .outlying-territories{margin-bottom:8px}
@media(max-width:700px){
 .compact-home #territory-freshness{margin-left:0}
 .compact-home .territory-legend{gap:4px 12px}
 .compact-home .territory-legend .legend-note{width:auto;margin-left:auto!important}
 .compact-home #territory-freshness{flex-basis:100%;font-size:12px}
 .compact-home .map-help[open] .outlying-list{grid-template-columns:1fr}
}

@media(min-width:1001px) and (max-width:1150px){.compact-home .battle-table thead th{padding-inline:4px;overflow-wrap:anywhere}}

/* Keep the next confirmed season visible outside the optional calendar. */
.compact-home .home-toolbar{flex-wrap:wrap}
.compact-home .home-toolbar>.season-countdown{margin-left:auto;min-width:180px;padding:3px 0 3px 16px}
@media(max-width:1000px){
 .compact-home .home-toolbar>.season-countdown{flex-basis:100%;margin:5px 0 0;padding:10px 0 2px;border-left:0;border-top:1px solid #37535d;text-align:left}
 .home-toolbar .countdown-clock{justify-content:flex-start}
 .home-toolbar .countdown-next,.home-toolbar .countdown-pending{max-width:none}
}
