.live-section{position:relative;margin:0 0 24px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:0}
.live-section>.section-heading{padding:0 90px 0 0;margin-bottom:14px;min-height:40px}.live-section h2{font-size:23px}.live-status{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;font-size:12px;color:var(--muted)}.live-refresh{margin-left:auto}
.live-state-message{min-width:0}.live-refresh{flex:none;display:inline-flex;align-items:center;gap:7px}.live-status--idle{margin:0;min-height:30px}.live-state-message.is-loading{display:inline-flex;align-items:center;gap:8px}
.live-state-message.is-loading:before,.live-refresh.is-loading:before{content:'';width:12px;height:12px;flex:none;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:live-spin .8s linear infinite}
.live-status--idle .live-refresh.is-loading:before{display:none}
@keyframes live-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.live-state-message.is-loading:before,.live-refresh.is-loading:before{animation:none}}
/* A healthy feed only needs a refresh action beside the section title. */
.live-section .live-status:has(>.live-refresh:only-child){position:absolute;top:18px;right:18px;min-height:40px;margin:0}
.live-match-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:16px;align-items:start;container-type:inline-size}.live-match-grid--profile{grid-template-columns:minmax(0,1fr)}
.live-match-card{border:1px solid #315b4c;border-radius:10px;background:var(--input);padding:16px;min-width:0}.live-match-card>header{display:flex;align-items:center;gap:10px;font-size:13px;flex-wrap:wrap}.live-match-card>header>strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.live-match-card>header>small{margin-left:auto;color:var(--brand)}.live-format{color:var(--muted);font-size:12px;font-weight:500}
.live-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.5px;color:#a3e4bf;background:#244b39;padding:3px 8px;border-radius:12px}.live-badge:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.live-badge.stale{background:var(--surface);color:var(--muted)}
.live-match-map{display:flex;align-items:center;gap:12px;margin:16px 0}.live-match-map .map-thumbnail{width:56px;height:56px;object-fit:contain;flex:none}.live-match-map>div{min-width:0}.live-match-map strong{font-size:20px;line-height:1.2;display:block;overflow-wrap:anywhere}.live-match-map small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.live-clock{margin-left:auto;text-align:right;flex:none}.live-clock>b{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums}.live-clock>small{max-width:90px;font-size:10px}
.live-match-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.live-team{min-width:0}.live-team-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:8px;font-size:12px}.live-team-heading>small{font-size:10px;color:var(--muted)}
.live-player{display:flex;align-items:center;gap:8px;border-left:3px solid var(--live-player-color);padding:6px 7px;margin:5px 0;min-width:0;font-size:13px;border-radius:0 4px 4px 0}.live-player.oba-member{background:color-mix(in srgb,var(--brand) 5%,transparent)}.live-player .civ-emblem{width:29px;height:29px;object-fit:contain;flex:none}.live-player>span{min-width:0;flex:1;overflow-wrap:anywhere}.live-player small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.live-player>b{font-size:13px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.live-player>b>small{font-size:9px;font-weight:400}.live-player.oba-member a{color:var(--brand)}.live-member-label{display:inline-block;font-size:9px;color:var(--brand);margin-left:3px}
.live-details{margin-top:12px;border-top:1px solid var(--line);font-size:12px}.live-details>summary{cursor:pointer;min-height:40px;align-content:center;color:var(--muted);width:fit-content}.live-details>summary:hover{color:var(--brand)}.live-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0 0 14px}.live-settings>div{min-width:0}.live-settings dt{color:var(--muted);font-size:11px}.live-settings dd{margin:2px 0 0;overflow-wrap:anywhere;font-size:12px}.live-lobby{margin:0 0 12px;overflow-wrap:anywhere}.live-lobby>span{color:var(--muted)}
.live-match-card>footer{padding:12px 0 0;margin:0;border:0;border-top:1px solid var(--line)}.live-match-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.live-match-card .live-spectate{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 15px;border:1px solid #69b18d;border-radius:6px;background:#234d3a;color:#c2f2d6;font:700 13px var(--sans);text-decoration:none;cursor:pointer}.live-match-card .live-spectate:hover{background:#30684e;color:#fff}.live-spectate>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}.live-match-card button.live-spectate:disabled{background:var(--surface);border-color:var(--line);color:var(--muted);cursor:default}.live-match-link{font-size:11px}.live-match-id{margin-left:auto;font-size:10px;color:var(--muted)}.live-spectate-hint{font-size:10px;line-height:1.5;color:var(--muted);margin:9px 0 0}
@media(max-width:1100px){.live-match-grid{grid-template-columns:minmax(0,1fr)}}
/* A lone game uses the wide canvas without stretching its vertical layout. */
@container(min-width:1000px){
  .live-match-card:only-child{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);column-gap:32px;align-items:center}
  .live-match-card:only-child>header,.live-match-card:only-child>.live-details,.live-match-card:only-child>footer{grid-column:1/-1}
  .live-match-card:only-child>.live-match-teams{margin:16px 0}
}
@media(max-width:600px){.live-match-teams{grid-template-columns:minmax(0,1fr);gap:12px}.live-player .civ-emblem{width:30px;height:30px}.live-player{font-size:14px}.live-match-map .map-thumbnail{width:48px;height:48px}.live-match-card{padding:13px}.live-match-map{gap:9px}.live-match-map strong{font-size:18px}.live-clock>b{font-size:20px}.live-clock>small{max-width:70px}.live-section{padding:12px}.live-section .live-status:has(>.live-refresh:only-child){top:12px;right:12px}.oba-coach-theme .live-section>.section-heading h2{font-size:20px}.live-status{font-size:11px}.live-match-actions{gap:10px}.live-match-id{font-size:9px}}

.live-match-card>footer{display:block}.live-match-card .live-spectate-hint{font-size:12px;line-height:1.5}.live-member-label{font-size:10px}
.live-spectators{font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* Keep loading and no-match feedback visible without reserving a card-sized area. */
.live-section:has(.live-status--idle){display:flex;align-items:center;gap:14px;padding:10px 18px;margin-bottom:12px}
.live-section:has(.live-status--idle)>.section-heading{flex:none;min-height:0;padding:0;margin:0}
.live-section:has(.live-status--idle)>.section-heading h2{font-size:16px}
.live-section:has(.live-status--idle)>:last-child{flex:1;min-width:0}
@media(max-width:600px){.live-section:has(.live-status--idle){flex-wrap:wrap;gap:3px;padding:10px 12px}.live-section:has(.live-status--idle)>.section-heading{flex-basis:100%}}
