/* Homepage density only; profile pages keep their own layout. */
.compact-home { --board-height: clamp(280px, calc(100dvh - 415px), 650px); }
.compact-home .topbar { min-height:76px; height:auto; padding:12px 24px; gap:20px; }
.compact-home .brand { gap:10px; }
.compact-home .brand-mark { font-size:2.5rem; }
.compact-home .brand strong { font-size:1.25rem; }
.compact-home .topbar nav { gap:12px 18px; }
.compact-home .topbar nav a { font-size:.8125rem; }
.compact-home .season-countdown { min-width:160px; padding-left:16px; }
.compact-home .countdown-clock { gap:8px; margin:3px 0; }
.compact-home .countdown-unit strong { font-size:1.15rem; }
.compact-home main { max-width:1920px; padding:12px 24px 0; }
.compact-home .preview-bar { padding:6px 10px; font-size:.75rem; }
.compact-home .page-heading { padding:10px 0; }
.compact-home .page-heading > div:first-child { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.compact-home .season-tools { display:flex; width:100%; gap:14px; align-items:center; }
.compact-home .season-control { display:flex; flex-direction:row; align-items:center; gap:12px; font-size:.625rem; width:auto; }
.compact-home .season-control select { margin:0; min-width:260px; padding:8px 12px; font-size:.8125rem; }
.compact-home .season-tools .nav-button { padding:8px 0; }
.compact-home .season-status { margin:0 0 10px; padding:8px 12px; gap:3px; font-size:.75rem; }
.compact-home .stats { margin:0 0 12px; }
.compact-home .stat { padding:10px 16px; gap:12px; }
.compact-home .stat strong { font-size:1.6rem; line-height:1.1; }
.compact-home .stat-icon { font-size:1.5rem; }
.compact-home .stat span:last-child { font-size:.75rem; }
.compact-home .stat > div > span { display:block; line-height:1.4; margin-top:3px; }
.compact-home .map-section { grid-template-columns:minmax(0,1.3fr) minmax(460px,1fr); gap:16px; align-items:start; }
.compact-home .map-column { min-width:0; }
.compact-home .map-toolbar { margin-bottom:8px; gap:8px; }
.compact-home .map-toolbar .segmented button { padding:9px 12px; }
.compact-home .map-viewport { height:var(--board-height); }
.compact-home #geographic-map[data-basemap="realm"] { background:#102b32; }
.compact-home .territory-legend { padding:8px 0; font-size:.7rem; }
.compact-home .map-style-bar { padding:5px 10px; border-radius:6px; }
.compact-home .map-style-bar .segmented button { padding:6px 10px; min-height:32px; }
.compact-home .map-help { margin-top:6px; font-size:.75rem; color:var(--muted); }
.compact-home .map-help > summary { cursor:pointer; padding:6px 0; width:fit-content; }
.compact-home .map-help > summary:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.compact-home #battles { max-height:calc(var(--board-height) + 90px); overflow:auto; scrollbar-color:#48636a #102630; scrollbar-width:thin; }
.compact-home #battles > .section-heading { position:sticky; top:0; z-index:2; background:#102832; }
.compact-home .section-heading { padding:13px 16px; gap:10px; }
.compact-home .section-heading h2 { font-size:1.4rem; }
.compact-home .battle-heading .eyebrow { display:none; }
.compact-home .battle-finder { padding:6px 14px; }
.compact-home .finder-context { padding:7px 14px; }
.compact-home .battle-table th:first-child { width:32%; padding-left:12px; }
.compact-home .battle-table th:nth-child(2) { width:25%; }
.compact-home .battle-table th:nth-child(3) { width:18%; }
.compact-home .battle-table th:nth-child(4) { width:17%; }
.compact-home .battle-table th:last-child { width:8%; }
.compact-home .battle-table thead th { padding:9px 6px; letter-spacing:.03em; }
.compact-home .battle-row > th,.compact-home .battle-row > td { padding:10px 6px; }
.compact-home .battle-table .points-col { padding-right:10px; }
.compact-home .battle-table .territory-badge { white-space:normal; overflow-wrap:normal; align-items:flex-start; }
.compact-home .battle-table .territory-badge > span { flex:none; }
.compact-home .battle-store-heading { gap:0; }
.compact-home .battle-store { font-size:.8125rem; }
.compact-home .battle-when a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.compact-home .battle-when a:hover,.compact-home .battle-when a:focus-visible { -webkit-line-clamp:unset; }
.compact-home .event-pager { padding:10px 14px; }
.compact-home .schedule-note,.compact-home .legend-team-note { padding:8px 14px; font-size:.7rem; }
.compact-home .lower-grid { grid-template-columns:1fr 1fr; margin-top:16px; gap:16px; align-items:start; }
.compact-home .store-preview { margin-top:0; padding:16px; display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; }
.compact-home .store-preview h2 { font-size:1.65rem; }
.compact-home .store-preview .button { grid-column:1/-1; }
.compact-home .store-preview .champion-box { padding:12px; }
.compact-home .champion-section,.compact-home .directory-section { margin-top:16px; }
@media(min-width:1101px) {
  .compact-home main { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:20px; }
  .compact-home main > * { grid-column:1/-1; min-width:0; }
  .compact-home .page-heading { grid-column:1; grid-row:2; }
  .compact-home .season-status { grid-column:2; grid-row:2; margin:8px 0; align-self:center; }
}
@media(max-width:1250px) {
  .compact-home .topbar { padding:10px 20px; gap:6px 16px; }
  .compact-home .topbar nav { gap:8px 18px; }
  .compact-home .topbar nav a { padding-top:7px; padding-bottom:7px; }
}
@media(max-width:1000px) {
  .compact-home .map-section { grid-template-columns:1fr; }
  .compact-home #battles { max-height:none; overflow:visible; }
  .compact-home #battles > .section-heading { position:static; }
  .compact-home .map-viewport { height:clamp(340px,55dvh,520px); }
}
@media(max-width:700px) {
  .compact-home main { padding:10px 14px 0; }
  .compact-home .topbar { padding:10px 14px; }
  .compact-home .topbar nav { gap:5px 14px; justify-content:flex-start; }
  .compact-home .topbar nav a { min-height:36px; display:inline-flex; align-items:center; }
  .compact-home .season-tools { flex-wrap:wrap; gap:3px 12px; }
  .compact-home .season-control { flex:1; min-width:0; flex-wrap:wrap; gap:5px; }
  .compact-home .season-control select { min-width:0; width:100%; min-height:40px; }
  .compact-home .season-tools .nav-button { font-size:.7rem; }
  .compact-home .season-status { font-size:.72rem; }
  .compact-home .stat { padding:9px; gap:4px; }
  .compact-home .stat strong { font-size:1.35rem; }
  .compact-home .stat span:last-child { font-size:.68rem; }
  .compact-home .lower-grid { grid-template-columns:1fr; }
  .compact-home .battle-table .battle-row > th,.compact-home .battle-table .battle-row > td { width:auto; padding:0; }
  .compact-home .battle-table .battle-row { padding:14px; }
  .compact-home .map-style-bar { flex-direction:row; flex-wrap:wrap; }
}
@media(max-width:480px) {
  .compact-home .season-countdown { min-width:0; padding-left:0; }
  .compact-home .store-preview { grid-template-columns:1fr; }
  .compact-home .map-toolbar { flex-wrap:wrap; }
  .compact-home .map-toolbar .search { width:100%; }
}

/* Framed dashboard: restrained gold edges, dense rows, details on demand. */
.compact-home .panel,.compact-home .map-viewport,.compact-home .stats {
  border:1px solid #b69a60; border-radius:2px;
  outline:1px solid #665637; outline-offset:3px;
  box-shadow:inset 0 0 0 3px #0a2029;
  background-color:#0c2630;
}
.compact-home .map-section,.compact-home .lower-grid { gap:14px; }
.compact-home .section-heading { padding:11px 14px; background:#102f3a; border-bottom:1px solid #76643c; }
.compact-home .section-heading h2 { font-size:1.15rem; color:var(--gold); text-transform:uppercase; letter-spacing:.09em; }
.compact-home .section-heading h2::before { content:'✦'; display:inline-block; margin-right:9px; font-size:1rem; }
.compact-home .section-heading .text-link { font-size:.73rem; white-space:nowrap; }
.compact-home .battle-finder { padding:3px 12px; }
.compact-home .battle-finder summary { min-height:28px; }
.compact-home .battle-finder summary small { font-size:.65rem; }
.compact-home .battle-notes { padding:8px 12px; color:var(--muted); font-size:.72rem; }
.compact-home .battle-notes summary,.compact-home .store-spotlight > summary { cursor:pointer; }
.compact-home .battle-notes .schedule-note,.compact-home .battle-notes .legend-team-note { padding:8px 0; }
.compact-home .battle-row > th,.compact-home .battle-row > td { padding:6px; line-height:1.35; }
.compact-home .battle-table th:first-child { width:33%; }
.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:18%; }
.compact-home .battle-table th:last-child { width:8%; }
.compact-home .battle-store { font-size:.75rem; line-height:1.35; }
.compact-home .compact-event-link { display:block; margin:0; font-size:.7rem; color:#c6d9d9; }
.compact-home .compact-event-link time { display:block; }
.compact-home .compact-event-link time strong { white-space:nowrap; color:inherit; font-size:inherit; }
.compact-home .battle-table .territory-badge { padding:1px 4px; gap:4px; border-radius:4px; font-size:.7rem; align-items:center; }
.compact-home .battle-table .territory-badge > span { display:inline-block; width:8px; font-size:.7rem; }
.compact-home .battle-store-heading { position:relative; padding-right:21px; min-height:26px; align-items:center; }
.compact-home .battle-store-heading .favorite-button { position:absolute; right:0; top:0; min-width:24px; min-height:26px; padding:2px; }
.compact-home .battle-store-heading .favorite-symbol { font-size:.95rem; }
.compact-home .battle-table .team-identity { font-size:.7rem; }
.compact-home .battle-table .points-col strong { font-size:.75rem; }
.compact-home .event-pager { padding:6px 12px; }
.compact-home .event-pager .button { min-height:32px; padding:4px 10px; }
.compact-home .lower-grid { margin-top:18px; align-items:stretch; }
.compact-home #teams > p { padding:10px 14px; font-size:.78rem; line-height:1.5; }
.compact-home #teams .practice-table-wrap { padding:0 12px; max-height:380px; }
.compact-home #teams .practice-table { font-size:.8rem; }
.compact-home #teams .practice-table caption { font-size:.7rem; padding:5px 0; }
.compact-home #teams .practice-table th,.compact-home #teams .practice-table td { padding:6px; }
.compact-home #teams .practice-table th { color:var(--gold); font-size:.65rem; text-transform:uppercase; letter-spacing:.04em; }
.compact-home #teams .button { min-height:32px; padding:4px 10px; font-size:.75rem; }
.compact-home #home-elo-table { padding:0 12px; }
.compact-home .elo-table { width:100%; border-collapse:collapse; font-size:.8rem; font-variant-numeric:tabular-nums; }
.compact-home .elo-table th,.compact-home .elo-table td { padding:6px; border-bottom:1px solid #29434c; text-align:left; }
.compact-home .elo-table th { color:var(--gold); font-size:.65rem; text-transform:uppercase; letter-spacing:.04em; }
.compact-home .elo-table .elo-number { text-align:right; }
.compact-home .elo-table .elo-rank { color:var(--gold); width:38px; }
.compact-home .elo-table .elo-name { overflow-wrap:anywhere; }
.compact-home .elo-table .elo-name a { font-weight:600; text-underline-offset:3px; }
.compact-home .elo-table .elo-value { color:var(--gold); font-weight:600; }
.compact-home .elo-table tbody tr:hover,.compact-home #teams tbody tr:hover { background:#c9b87512; }
.compact-home .elo-table small { display:block; color:var(--muted); font-size:.65rem; }
.compact-home .home-elo-note,.compact-home .home-rating-status { font-size:.72rem; line-height:1.5; color:var(--muted); padding:10px 14px; }
.compact-home .home-rating-status:empty { display:none; }
.compact-home #home-elo-retry { margin:0 14px 12px; }
.compact-home #home-elo-retry[hidden] { display:none; }
.compact-home .store-spotlight { margin-top:18px; }
.compact-home .store-spotlight > summary { font-size:.8rem; color:var(--gold); padding:10px 0; }
.compact-home .store-spotlight .store-preview { margin-top:6px; }
@media(min-width:701px) and (hover:hover) {
  .compact-home .battle-store-heading .favorite-button[aria-pressed=false] { opacity:0; }
  .compact-home .battle-row:hover .favorite-button,.compact-home .battle-row:focus-within .favorite-button { opacity:1; }
}
@media(max-width:700px) {
  .compact-home #battles { max-height:min(620px,80dvh); overflow:auto; }
  .compact-home #battles > .section-heading { position:sticky; }
  .compact-home .battle-table .battle-row { padding:12px; gap:8px 14px; }
  .compact-home .battle-table .compact-battle-row > th { width:auto; }
  .compact-home .battle-store-heading { padding-right:32px; min-height:36px; }
  .compact-home .battle-store-heading .favorite-button { min-height:36px; min-width:36px; }
  .compact-home .battle-store { font-size:.875rem; }
  .compact-home .compact-event-link { padding:6px 0; font-size:.8125rem; }
  .compact-home .section-heading { flex-wrap:wrap; }
  .compact-home .elo-table .elo-name a { display:inline-block; min-height:30px; padding:4px 0; }
}
