@font-face {
  font-family: "C6W Sen";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/assets/fonts/sen-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #121b25;
  --panel-raised: #172330;
  --line: #293746;
  --muted: #8fa0b2;
  --text: #edf3f8;
  --gold: #d7ad61;
  --gold-soft: #f1d9a3;
  --blue: #65a7d8;
  --green: #61c69d;
  --red: #df806f;
  --radius: 14px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(101, 167, 216, .12), transparent 34rem),
    linear-gradient(180deg, #0e1620 0, var(--bg) 26rem);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  column-gap: 14px;
  padding: 0 max(20px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(143, 160, 178, .16);
  background: rgba(11, 17, 24, .88);
  backdrop-filter: blur(14px);
}

.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-right: 4px; }
.brand-mark {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}
.brand-title {
  display: block;
  color: #fff;
  font-family: "C6W Sen", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 2px; margin-right: auto; }
.site-nav a { padding: 8px; border-radius: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-soft); background: rgba(143, 160, 178, .08); outline: none; }
.site-nav a[aria-current="page"] { color: var(--gold-soft); background: rgba(183, 138, 66, .12); }

.support-page { max-width: 1000px; margin: 0 auto; padding-bottom: 24px; }
.support-intro { margin-bottom: 28px; }
.support-intro h1 { margin: 8px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.support-intro p { max-width: 780px; color: var(--muted); line-height: 1.8; }
.support-intro .support-lead { color: var(--text); font-size: 18px; }
.support-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.support-method { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.support-method-heading { display: flex; align-items: center; gap: 12px; }
.support-method h2 { margin: 0; font-size: 23px; }
.support-method p { margin: 18px 0 24px; color: var(--muted); line-height: 1.7; }
.support-method-mark { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.support-link { display: block; margin-top: auto; padding: 12px 18px; border: 1px solid #b78a42; border-radius: 9px; color: var(--gold-soft); background: rgba(183, 138, 66, .1); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.support-link:hover { background: rgba(183, 138, 66, .22); }
.support-link:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.support-purpose { padding: 28px 0 20px; }
.support-purpose h2, .support-note h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.5; }
.support-purpose ul { margin: 0; padding-left: 22px; color: var(--muted); }
.support-purpose li { padding: 4px 0; line-height: 1.8; }
.support-note { padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; }
.support-note p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

@media (max-width: 600px) {
  .support-methods { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .support-method, .support-note { padding: 20px; }
}

.civilization-statistics-section { overflow: hidden; }
.civilization-statistics-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.civilization-statistics-summary .datum { padding: 13px 15px; border: 1px solid rgba(143, 160, 178, .14); border-radius: 9px; background: rgba(9, 16, 25, .36); }
.civilization-statistics-content { overflow-x: auto; border: 1px solid rgba(143, 160, 178, .14); border-radius: 10px; }
.civilization-statistics-table { min-width: 1050px; font-size: 11px; font-variant-numeric: tabular-nums; }
.civilization-statistics-row { display: grid; grid-template-columns: minmax(250px, 1.6fr) 74px minmax(120px, .8fr) minmax(150px, 1fr) repeat(3, minmax(112px, .75fr)); align-items: center; min-height: 70px; border-bottom: 1px solid rgba(143, 160, 178, .1); }
.civilization-statistics-row:last-child { border-bottom: 0; }
.civilization-statistics-row > span { min-width: 0; padding: 9px 12px; }
.civilization-statistics-header { min-height: 38px; color: var(--muted); background: rgba(9, 16, 25, .46); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.civilization-statistics-identity { display: flex; align-items: center; gap: 11px; }
.civilization-statistics-identity-text { display: grid; min-width: 0; gap: 6px; }
.civilization-statistics-identity strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.civilization-statistics-icon { flex: 0 0 38px; width: 38px; height: 38px; object-fit: contain; }
.civilization-statistics-leaders { display: flex; min-width: 0; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.civilization-statistics-leader { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; color: var(--muted); }
.civilization-statistics-leader-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: contain; }
.civilization-statistics-leader small { font-size: 8px; }
.civilization-picks { color: var(--gold-soft); font-size: 13px; font-weight: 700; }
.civilization-pick-rate { display: grid; gap: 6px; }
.civilization-pick-rate strong { color: var(--text); }
.civilization-pick-rate-track { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(143, 160, 178, .16); }
.civilization-pick-rate-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ba8744, var(--gold-soft)); }
.civilization-score-cell { display: grid; gap: 3px; }
.civilization-score-cell strong { color: var(--text); font-size: 12px; }
.civilization-score-cell small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.civilization-result-cell { display: grid; gap: 3px; }
.civilization-result-cell strong { color: var(--text); font-size: 12px; }
.civilization-result-cell small { color: var(--muted); font-size: 8px; white-space: nowrap; }
.civilization-statistics-note { margin: 15px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }
.header-actions { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; gap: 12px; }
.player-search { position: relative; flex: 1 1 250px; width: clamp(210px, 20vw, 290px); min-width: 210px; }
.player-search[hidden] { display: none; }
.player-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.player-search-form input, .player-search-form button {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #111b25;
}
.player-search-form input { border-radius: 8px 0 0 8px; border-right: 0; }
.player-search-form button { border-radius: 0 8px 8px 0; cursor: pointer; color: var(--gold-soft); }
.player-search-form input:focus, .player-search-form button:focus-visible { z-index: 1; border-color: var(--blue); outline: 2px solid rgba(101, 167, 216, .16); }
.player-search-form button:disabled { cursor: wait; opacity: .6; }
.player-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: min(430px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 100px));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101923;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}
.player-search-results[hidden] { display: none; }
.player-search-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; }
.player-search-result:hover, .player-search-result:focus-visible { background: var(--panel-raised); outline: none; }
.player-search-result-copy { min-width: 0; }
.player-search-result-copy strong, .player-search-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-search-result-copy strong { font-size: 13px; }
.player-search-result-copy small, .player-search-message { color: var(--muted); font-size: 10px; }
.player-search-message { margin: 0; padding: 13px; line-height: 1.55; }
.player-search-error { color: var(--red); }
.steam-avatar-search { width: 34px; height: 34px; }
.language-control { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.language-control select { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #111b25; }
.account-control { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; font-size: 12px; white-space: nowrap; }
.steam-login, .steam-logout { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.steam-login { border-color: #54789d; background: #18314a; }
.account-profile { display: flex; align-items: center; min-width: 0; gap: 8px; }
.account-profile[hidden] { display: none; }
.account-avatar-link { display: flex; flex: 0 0 auto; border-radius: 50%; }
.account-avatar-link:focus-visible, .account-name-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.account-name-link { display: block; max-width: 132px; overflow: hidden; color: var(--gold-soft); text-overflow: ellipsis; white-space: nowrap; }
.account-name-link:hover { color: #fff2cd; }
.steam-avatar-nav { width: 28px; height: 28px; font-size: 10px; }
.steam-logout { color: var(--muted); background: transparent; cursor: pointer; }
.steam-login:hover, .steam-logout:hover { border-color: var(--blue); }
.player-id-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 10px; margin: 18px 0; }
.player-id-history { margin: 16px 0 0; color: var(--muted); }
.player-id-history summary { cursor: pointer; color: var(--text); }
.player-id-history-list { display: grid; gap: 7px; margin-top: 10px; font-size: 12px; }

.page { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 180px); margin: 0 auto; padding: 52px 0 72px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 14px; font: 600 clamp(34px, 5vw, 58px)/1.08 Georgia, "Noto Serif SC", serif; letter-spacing: -.025em; }
h2 { margin-bottom: 20px; font-size: 20px; }
.lede { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.hero { position: relative; margin-bottom: 42px; }
.hero::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 27px; background: linear-gradient(90deg, var(--gold), transparent); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 50px; }
.home-hero::after { grid-column: 1 / -1; margin-top: -15px; }
.home-hero-copy { min-width: 0; }
.home-quick-links { display: grid; gap: 8px; }
.home-quick-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(143, 160, 178, .18); border-radius: 10px; background: rgba(18, 27, 37, .72); transition: border-color .15s ease, transform .15s ease; }
.home-quick-link:hover, .home-quick-link:focus-visible { border-color: var(--gold); outline: none; transform: translateX(2px); }
.home-quick-link strong { font-size: 13px; }
.home-quick-link small { color: var(--muted); font-size: 10px; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 32px 0 46px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.summary-item { padding: 22px; background: rgba(18, 27, 37, .94); }
.summary-item strong { display: block; margin-bottom: 6px; font: 600 28px/1 Georgia, serif; color: var(--gold-soft); }
.summary-item span { color: var(--muted); font-size: 12px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.match-rule-filter { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.match-rule-filter-select {
  min-width: 138px;
  padding: 9px 30px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0f1821;
}
.match-rule-filter-select:focus { border-color: var(--gold); outline: 2px solid rgba(215, 173, 97, .18); }
.match-filter-pair { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.match-format-filter .match-rule-filter-select { min-width: 110px; }
.match-rule-filter-status { min-height: 16px; margin: -7px 0 12px; color: var(--muted); font-size: 10px; text-align: right; }
.match-date-range { display: flex; flex: 1 0 100%; align-items: end; justify-content: flex-end; gap: 8px; }
.match-date-filter { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.match-date-filter-input, .match-date-clear, .match-page-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0f1821;
  font: inherit;
}
.match-date-filter-input { padding: 6px 9px; color-scheme: dark; }
.match-date-clear, .match-page-button { padding: 7px 11px; cursor: pointer; }
.match-date-filter-input:focus, .match-date-clear:focus-visible, .match-page-button:focus-visible { border-color: var(--gold); outline: 2px solid rgba(215, 173, 97, .18); }
.match-date-clear:hover, .match-page-button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-soft); }
.match-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.match-pagination[hidden] { display: none; }
.match-page-button:disabled { cursor: default; opacity: .42; }
.match-page-summary { min-width: 170px; color: var(--muted); font-size: 10px; text-align: center; }
.home-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 22px; margin-bottom: 48px; }
.home-match-column { min-width: 0; scroll-margin-top: 90px; }
.home-player-section { scroll-margin-top: 90px; }
.home-live-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(23, 35, 48, .96), rgba(12, 19, 27, .96)); scroll-margin-top: 90px; }
.home-live-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.home-live-heading h2 { margin: 0; font-size: 16px; }
.live-signal { padding: 3px 6px; border-radius: 4px; color: #fff; background: #cf4d45; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.home-live-caption { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.live-stream-list { display: grid; gap: 8px; }
.live-stream-list[data-columns="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.live-stream-list[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.live-stream-list[data-columns="3"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.live-stream-list[data-columns="3"] > .live-stream-card { grid-column: span 2; }
.live-stream-list[data-stream-count="5"] > .live-stream-card:nth-child(4) { grid-column: 2 / span 2; }
.live-stream-list[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-stream-card { display: grid; gap: 7px; min-width: 0; padding: 12px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0e1720; transition: border-color .15s ease, transform .15s ease; }
.live-stream-card:hover, .live-stream-card:focus-visible { border-color: var(--blue); outline: none; transform: translateY(-1px); }
.live-stream-card strong, .live-stream-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-stream-card strong { font-size: 12px; }
.live-stream-card small { color: var(--muted); font-size: 10px; }
.live-stream-media { position: relative; aspect-ratio: 16 / 9; margin: -12px -12px 2px; overflow: hidden; border-radius: 9px 9px 3px 3px; background: #080d12; }
.live-stream-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.live-stream-card:hover .live-stream-media img { transform: scale(1.025); }
.live-stream-live-badge { position: absolute; top: 7px; left: 7px; padding: 3px 5px; border-radius: 4px; color: #fff; background: rgba(207, 77, 69, .94); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.live-streamer-name { display: flex; align-items: center; gap: 6px; }
.live-stream-avatar-shell { position: relative; display: inline-grid; width: 19px; height: 19px; flex: 0 0 19px; overflow: hidden; place-items: center; border: 1px solid rgba(239, 140, 169, .45); border-radius: 50%; background: rgba(239, 140, 169, .14); }
.live-stream-avatar-fallback { color: #efb3c5; font-size: 9px; font-weight: 800; line-height: 1; }
.live-stream-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0e1720; }
.live-stream-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-platform-label { color: var(--gold-soft); font-size: 9px; font-weight: 700; }
.live-heat { color: var(--muted); font-size: 9px; }
.live-stream-empty { padding: 18px 10px; border: 1px dashed rgba(143, 160, 178, .18); border-radius: 9px; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.live-platform-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.live-platform-link { overflow: hidden; padding: 8px; border-radius: 7px; color: var(--muted); background: rgba(143, 160, 178, .07); font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.live-platform-link:hover, .live-platform-link:focus-visible { color: var(--text); background: rgba(101, 167, 216, .12); outline: none; }
.live-platform-bilibili .live-platform-label, .live-platform-link.live-platform-bilibili { color: #ef8ca9; }
.live-platform-huya .live-platform-label, .live-platform-link.live-platform-huya { color: #f0a45c; }
.live-platform-douyu .live-platform-label, .live-platform-link.live-platform-douyu { color: #e78664; }
.live-platform-douyin .live-platform-label, .live-platform-link.live-platform-douyin { color: #8ee4df; }
.home-portal-section { margin-bottom: 46px; scroll-margin-top: 92px; }
.home-competition-panel { margin-top: -8px; }
.home-section-heading { align-items: center; }
.home-section-heading p { margin-top: 6px; }
.competition-registration-link { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(215, 173, 97, .38); border-radius: 8px; color: var(--gold-soft); font-size: 10px; white-space: nowrap; }
.competition-registration-link:hover, .competition-registration-link:focus-visible { border-color: var(--gold); background: rgba(215, 173, 97, .08); outline: none; }
.competition-link-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.competition-link-card { display: grid; flex: 0 0 min(360px, 84vw); gap: 8px; padding: 16px; border: 1px solid rgba(215, 173, 97, .35); border-radius: 12px; background: linear-gradient(120deg, rgba(49, 38, 22, .76), rgba(18, 27, 37, .96)); scroll-snap-align: start; }
.competition-link-card:hover, .competition-link-card:focus-visible { border-color: var(--gold); outline: none; transform: translateY(-1px); }
.competition-link-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competition-link-card small, .competition-link-card span { color: var(--muted); font-size: 10px; }
.competition-link-card .competition-expiry { opacity: .8; }
.competition-description { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.competition-link-card .competition-description { display: -webkit-box; max-height: 4.65em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-summary-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); align-items: start; gap: 22px; margin-bottom: 46px; }
.home-summary-columns > .home-portal-section { min-width: 0; margin-bottom: 0; }
.home-match-list { display: grid; gap: 8px; }
.home-match-card { position: relative; display: grid; gap: 6px; min-width: 0; padding: 11px 52px 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(120deg, rgba(23, 35, 48, .98), rgba(18, 27, 37, .95)); transition: border-color .15s ease, transform .15s ease; }
.home-match-card:hover, .home-match-card:focus-visible { z-index: 20; border-color: #536475; outline: none; transform: translateY(-2px); }
.home-match-card-live { border-color: rgba(97, 198, 157, .42); box-shadow: inset 3px 0 0 rgba(97, 198, 157, .72); }
.home-match-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-match-card-title strong, .home-match-card > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-match-card-title strong { font-size: 12px; }
.home-match-card > small { color: var(--muted); font-size: 9px; }
.home-match-card-stats { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--gold-soft); font-size: 10px; }
.home-match-roster-disclosure { position: absolute; top: 50%; right: 13px; display: inline-flex; width: 28px; height: 28px; color: var(--muted); transform: translateY(-50%); }
.home-match-roster-trigger { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(143, 160, 178, .2); border-radius: 50%; background: rgba(143, 160, 178, .07); transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.home-match-roster-trigger-icon { width: 20px; height: 20px; image-rendering: auto; }
.home-match-roster-disclosure:hover .home-match-roster-trigger,
.home-match-card:focus-visible .home-match-roster-trigger,
.match-card:focus-visible .home-match-roster-trigger { border-color: rgba(101, 167, 216, .65); background: rgba(101, 167, 216, .14); transform: scale(1.06); }
.home-match-roster-visual {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: min(640px, calc(100vw - 56px));
  gap: 6px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(143, 160, 178, .3);
  border-radius: 9px;
  visibility: hidden;
  opacity: 0;
  background: rgba(8, 14, 21, .98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .48);
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  scrollbar-width: thin;
}
.home-match-roster-disclosure:hover .home-match-roster-visual,
.home-match-card:focus-visible .home-match-roster-visual,
.match-card:focus-visible .home-match-roster-visual { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.home-match-roster-team, .home-match-roster-freeform { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.home-match-roster-team { padding: 3px; border: 2px solid var(--roster-tone); border-radius: 8px; background: color-mix(in srgb, var(--roster-tone) 10%, transparent); }
.home-match-roster-team.team-tone-0 { --roster-tone: #5da9e9; }
.home-match-roster-team.team-tone-1 { --roster-tone: #e26f67; }
.home-match-roster-team.team-tone-2 { --roster-tone: #68bd91; }
.home-match-roster-team.team-tone-3 { --roster-tone: #d7ad61; }
.home-match-roster-team.team-tone-4 { --roster-tone: #b98ade; }
.home-match-roster-separator { flex: 0 0 auto; color: rgba(215, 173, 97, .8); font: 700 8px/1 Georgia, serif; }
.home-match-roster-player { position: relative; display: inline-block; width: 34px; height: 34px; flex: 0 0 34px; border: 2px solid transparent; border-radius: 50%; background: rgba(23, 35, 48, .82); }
.home-match-roster-host { border-color: #5da9e9; box-shadow: 0 0 0 1px rgba(93, 169, 233, .2); }
.home-match-leader-icon { width: 30px; height: 30px; border-radius: 50%; }
.home-match-civilization-icon { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; padding: 1px; border: 1px solid rgba(215, 173, 97, .55); border-radius: 50%; background: #172330; }
.home-leaderboard { overflow: hidden; }
.leaderboard-table { max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #101923; scrollbar-gutter: stable; }
.leaderboard-full .leaderboard-table { max-height: none; }
.leaderboard-filter-rows { display: grid; gap: 4px; margin: 13px 0 9px; }
.leaderboard-rule-tabs, .leaderboard-format-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: thin; }
.leaderboard-rule-tab, .leaderboard-format-tab { flex: 0 0 auto; padding: 7px 12px; border: 1px solid rgba(143, 160, 178, .22); border-radius: 999px; color: var(--muted); background: rgba(143, 160, 178, .05); font: inherit; font-size: 10px; cursor: pointer; }
.leaderboard-format-tab { padding-block: 5px; font-size: 9px; }
.leaderboard-rule-tab:hover, .leaderboard-rule-tab:focus-visible,
.leaderboard-format-tab:hover, .leaderboard-format-tab:focus-visible { border-color: rgba(215, 173, 97, .65); color: var(--text); outline: none; }
.leaderboard-rule-tab[aria-pressed="true"], .leaderboard-format-tab[aria-pressed="true"] { border-color: var(--gold); color: #fff2cd; background: rgba(215, 173, 97, .16); box-shadow: inset 0 0 0 1px rgba(215, 173, 97, .08); }
.leaderboard-rule-tab:disabled, .leaderboard-format-tab:disabled { cursor: wait; opacity: .62; }
.directory-hero { margin-bottom: 28px; }
.directory-hero h1 { font-size: clamp(34px, 4vw, 50px); }
.section-footer-link { display: inline-flex; margin-top: 12px; color: var(--gold-soft); font-size: 11px; }
.section-footer-link:hover, .section-footer-link:focus-visible { color: #fff2cd; text-decoration: underline; outline: none; }
.leaderboard-row { display: grid; grid-template-columns: 42px minmax(145px, 1.35fr) 78px 58px 48px 92px minmax(120px, 1fr); align-items: center; gap: 8px; min-width: 735px; padding: 11px 13px; border-bottom: 1px solid rgba(143, 160, 178, .12); }
.leaderboard-row:last-child { border-bottom: 0; }
a.leaderboard-row:hover, a.leaderboard-row:focus-visible { background: rgba(101, 167, 216, .07); outline: none; }
.leaderboard-header { color: var(--muted); background: rgba(143, 160, 178, .05); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.leaderboard-player { display: flex; align-items: center; min-width: 0; gap: 10px; }
.leaderboard-player strong, .leaderboard-player-id, .leaderboard-last-game { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-rating-cell { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.leaderboard-rating { color: var(--gold-soft); }
.leaderboard-trend-up { color: var(--green); }
.leaderboard-trend-down { color: var(--red); }
.leaderboard-trend-flat { color: var(--muted); }
.leaderboard-win-rate { color: #b7c8d8; }
.leaderboard-last-game, .leaderboard-player-id { color: var(--muted); font-size: 10px; }
.leaderboard-rank { color: var(--muted); font-family: Georgia, serif; }
.home-content-divider { height: 1px; margin: 12px 0 46px; background: linear-gradient(90deg, transparent, rgba(143, 160, 178, .36), transparent); }
.section-more-link { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-soft); font-size: 10px; }
.section-more-link:hover, .section-more-link:focus-visible { border-color: var(--gold); outline: none; }
.popular-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.popular-video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #111b25; transition: border-color .15s ease, transform .15s ease; }
.popular-video-card:hover, .popular-video-card:focus-visible { border-color: #536475; outline: none; transform: translateY(-2px); }
.popular-video-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(101, 167, 216, .32), transparent 42%), linear-gradient(135deg, #233345, #111923); }
.popular-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-video-copy { display: grid; gap: 6px; padding: 12px; }
.popular-video-copy strong { display: -webkit-box; min-height: 38px; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.popular-video-copy small, .popular-video-copy span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 46px; }
.profile-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 5px 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(23, 35, 48, .96), rgba(18, 27, 37, .94));
  transition: transform .15s ease, border-color .15s ease;
}
.profile-card:hover, .profile-card:focus-visible { transform: translateY(-2px); border-color: #536475; outline: none; }
.steam-avatar { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; overflow: hidden; border: 1px solid rgba(143, 160, 178, .28); border-radius: 50%; color: var(--gold-soft); background: #293747; font: 600 20px/1 Georgia, serif; }
.steam-avatar-image { width: 100%; height: 100%; object-fit: cover; }
.steam-avatar-small { width: 32px; height: 32px; font-size: 13px; }
.steam-avatar-large { width: 78px; height: 78px; font-size: 30px; }
.profile-card > .steam-avatar { grid-row: span 3; }
.profile-card > strong { align-self: end; }
.profile-card > .steam-id { align-self: start; color: var(--muted); font-size: 10px; }
.profile-card > .state-pill { grid-column: 2 / -1; transform: scale(.9); transform-origin: left center; }
.profile-card > .datum { grid-column: span 1; margin-top: 9px; }
.profile-card > .datum:nth-last-child(2) { grid-column: 2; }
.match-list { display: grid; gap: 12px; }
.match-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(90px, .6fr));
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(23, 35, 48, .96), rgba(18, 27, 37, .94));
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.match-card > .match-card-roster { position: static; grid-column: 1 / -1; top: auto; right: auto; justify-self: stretch; width: 100%; height: auto; min-width: 0; transform: none; }
.match-card > .match-card-roster .home-match-roster-visual {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 7px 9px;
  visibility: visible;
  opacity: 1;
  background: rgba(8, 14, 21, .42);
  box-shadow: none;
  pointer-events: auto;
  transform: none;
}
.match-card:hover, .match-card:focus-visible { transform: translateY(-2px); border-color: #536475; background: var(--panel-raised); outline: none; }
.match-primary strong { display: block; margin: 8px 0 5px; font-size: 16px; }
.rule-family-chip { display: inline-flex; margin-left: 7px; padding: 4px 8px; border: 1px solid rgba(143, 160, 178, .2); border-radius: 999px; color: var(--gold-soft); background: rgba(215, 173, 97, .07); font-size: 10px; font-weight: 700; }
.rule-family-witch { color: #d9a9ef; background: rgba(178, 111, 216, .1); }
.rule-family-bbg { color: #8ec7ef; background: rgba(101, 167, 216, .1); }
.rule-family-ccb { color: #e9bd82; background: rgba(215, 173, 97, .1); }
.rule-family-other { color: var(--muted); background: rgba(143, 160, 178, .08); }
.match-primary small, .datum small { color: var(--muted); }
.datum strong { display: block; margin-bottom: 7px; font-size: 14px; }
.datum small { display: block; font-size: 11px; }
.chevron { color: var(--gold); font-size: 24px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-active { color: var(--green); background: rgba(97, 198, 157, .1); }
.badge-completed { color: var(--blue); background: rgba(101, 167, 216, .1); }
.badge-incomplete { color: var(--red); background: rgba(223, 128, 111, .1); }
.badge-ended { color: var(--gold-soft); background: rgba(215, 173, 97, .12); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumb-separator { color: #506174; }
.breadcrumb-current { color: var(--gold-soft); }
.detail-title { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.detail-title h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 48px); }
.match-id { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.detail-title-states { display: grid; justify-items: end; gap: 8px; }
.steam-id-disclosure { margin-top: 8px; color: var(--muted); font-size: 11px; }
.steam-id-disclosure summary { cursor: pointer; }
.steam-id-disclosure code { display: block; margin-top: 8px; color: var(--gold-soft); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 27, 37, .92); }
.panel-wide { grid-column: span 8; }
.panel-side { grid-column: span 4; }
.panel-full { grid-column: 1 / -1; }
.panel h2 { font-size: 16px; }
.panel-caption { margin: -10px 0 18px; color: var(--muted); font-size: 11px; }

.trust-panel { overflow: hidden; border-color: rgba(101, 167, 216, .32); }
.trust-panel.completeness-partial { border-color: rgba(223, 128, 111, .42); }
.trust-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.trust-heading h2 { margin-bottom: 14px; }
.trust-heading .panel-caption { max-width: 680px; margin: 0 0 18px; font-size: 12px; line-height: 1.65; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.trust-grid .datum { padding: 14px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.trust-grid .datum strong { color: var(--gold-soft); }
.state-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.state-complete, .state-available { color: var(--green); background: rgba(97, 198, 157, .08); }
.state-partial, .state-embargoed { color: var(--red); background: rgba(223, 128, 111, .08); }
.state-unknown { color: var(--muted); background: rgba(143, 160, 178, .08); }
.privacy-notice { display: flex; gap: 14px; margin-top: 14px; padding: 16px; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.privacy-notice strong { flex: 0 0 auto; }
.privacy-notice span { color: var(--muted); }
.privacy-live { border: 1px solid rgba(223, 128, 111, .38); background: rgba(223, 128, 111, .1); }
.privacy-live strong { color: #f2a696; }
.privacy-released { border: 1px solid rgba(97, 198, 157, .25); background: rgba(97, 198, 157, .06); }
.privacy-released strong { color: var(--green); }
.privacy-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric { min-height: 92px; padding: 15px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.metric span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.metric strong { font: 600 22px/1.1 Georgia, serif; color: var(--gold-soft); }
.metric strong.textual { font: 600 13px/1.35 Inter, sans-serif; color: var(--text); }

.player-list, .mod-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.team-player-board {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}
.team-player-column {
  flex: 0 0 min(540px, 90vw);
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(215, 173, 97, .2);
  border-radius: 12px;
  background: rgba(15, 24, 33, .52);
  scroll-snap-align: start;
}
.team-player-unassigned { border-style: dashed; }
.team-player-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 1px 2px 9px; }
.team-player-heading h3 { margin: 0; color: var(--gold-soft); font-size: 14px; }
.team-player-heading span { color: var(--muted); font-size: 10px; }
.team-player-stack { gap: 9px; }
.player { overflow: hidden; padding: 0; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.player-card-content { display: grid; grid-template-columns: minmax(0, 1fr) 156px; align-items: stretch; }
.player-card-identity-block { min-width: 0; padding: 10px; }
.player-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.player-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-identity-copy { min-width: 0; }
.player-steam-caption, .player-match-name-caption { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.player-name { font-weight: 700; }
.team { color: var(--gold); font-size: 11px; }
.player-meta { display: grid; color: var(--muted); font-size: 10px; line-height: 1.45; }
.player-meta .state-pill { width: fit-content; margin-top: 7px; }
.player-card-main { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; }
.player-civ-visuals { position: relative; width: 70px; height: 70px; }
.civ6-entity-icon { display: block; object-fit: contain; }
.leader-portrait { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 173, 97, .13), transparent 68%); }
.civilization-emblem {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(215, 173, 97, .55);
  border-radius: 50%;
  background: #172330;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
}
.player-card-details { min-width: 0; }
.player-id-label { color: var(--text); font-size: 12px; }
.player-match-name { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.player-civilization-line, .player-technical-line { display: block; overflow-wrap: anywhere; }
.player-links { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 6px; font-size: 11px; }
.player-links a, .profile-link { color: var(--gold-soft); }
.player-links a:hover, .player-name:hover, .profile-link:hover { color: var(--gold); text-decoration: underline; }
.player-activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; min-width: 0; border-left: 1px solid rgba(143, 160, 178, .12); background: rgba(143, 160, 178, .12); }
.player-activity .datum { min-width: 0; padding: 9px 8px; background: #0f1821; }
.player-activity .datum strong { margin-bottom: 3px; color: var(--gold-soft); font-size: 13px; }
.player-activity .datum small { overflow-wrap: anywhere; font-size: 9px; }
.match-player-report-compact { margin: 0; }
.player-report-action { color: var(--red); cursor: pointer; }
.match-player-report-compact .profile-report-form { min-width: 220px; justify-content: start; }
.steam-id { font-family: ui-monospace, Consolas, monospace; }
.mod-list li { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid rgba(143, 160, 178, .12); color: var(--muted); font-size: 12px; }
.mod-list li:last-child { border-bottom: 0; }

.table-wrap { overflow-x: auto; }
.player-detail-grid .table-wrap {
  max-height: min(460px, 60vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.player-detail-grid .table-wrap thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding-top: 12px;
  background: #111a24;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 0 12px 12px; color: var(--muted); font-weight: 600; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
td { padding: 13px 12px; border-top: 1px solid rgba(143, 160, 178, .12); text-align: right; white-space: nowrap; }
.activity-kind { color: var(--gold-soft); }
.activity-detail { width: 100%; color: var(--muted); text-align: left; }
.activity-content { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 42rem; vertical-align: middle; }
.activity-content-text { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.activity-content-icons { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.activity-content-icon { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.event-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.event-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.event-filter-bar label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.event-filter-select {
  min-width: 210px;
  padding: 9px 34px 9px 12px;
  border: 1px solid rgba(215, 173, 97, .35);
  border-radius: 8px;
  background: #0f1821;
  color: var(--text);
  font: inherit;
}
.event-filter-select:focus { border-color: var(--gold); outline: 2px solid rgba(215, 173, 97, .18); }
.event-filter-count { color: var(--muted); font-size: 10px; }
.event-filter-empty[hidden] { display: none; }
.match-event-timeline-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(143, 160, 178, .15); }
.match-event-timeline-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.match-event-timeline-heading h3 { margin: 0; color: var(--gold-soft); font-size: 14px; }
.match-event-timeline-heading span { color: var(--muted); font-size: 10px; }
.match-event-timeline-viewport {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(143, 160, 178, .14);
  border-radius: 10px;
  background:
    linear-gradient(rgba(15, 24, 33, .88), rgba(15, 24, 33, .88)),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(143, 160, 178, .06) 42px);
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.match-event-timeline-viewport:focus { outline: 2px solid rgba(215, 173, 97, .35); outline-offset: 2px; }
.match-event-spy-status {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: #f7f2e8; background: #596779; font-size: 13px; font-weight: 800;
}
.match-event-spy-status.spy-status-success { background: #3e8d62; }
.match-event-spy-status.spy-status-failed { background: #a77735; }
.match-event-spy-status.spy-status-captured { background: #7d5ca3; }
.match-event-spy-status.spy-status-killed { background: #9d4f4f; }
.match-event-timeline-track { position: relative; min-height: 220px; }
.match-event-axis { position: absolute; right: 36px; left: 36px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.match-event-axis-tick {
  position: absolute;
  z-index: 1;
  padding-top: 10px;
  transform: translateX(-50%);
  color: var(--muted);
  font: 9px/1 ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.match-event-axis-tick::before { position: absolute; top: 0; left: 50%; width: 1px; height: 7px; background: var(--gold); content: ''; }
.match-event-item { position: absolute; z-index: 2; width: 244px; transform: translateX(-50%); }
.match-event-item::after { position: absolute; left: 50%; width: 1px; height: var(--event-stem-height); background: rgba(215, 173, 97, .48); content: ''; }
.match-event-item::before { position: absolute; left: calc(50% - 4px); z-index: 3; width: 7px; height: 7px; border: 1px solid #0f1821; border-radius: 50%; background: var(--gold); content: ''; }
.match-event-top::after { top: 100%; }
.match-event-top::before { top: calc(100% + var(--event-stem-height) - 4px); }
.match-event-bottom::after { bottom: 100%; }
.match-event-bottom::before { bottom: calc(100% + var(--event-stem-height) - 4px); }
.match-event-card {
  min-height: 84px;
  padding: 8px 10px;
  overflow: hidden;
  border: 2px solid var(--event-team-color, #7f8c99);
  border-radius: 9px;
  background: rgba(12, 19, 27, .98);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .3);
}
.match-event-card.event-type-luxury_resource { border-radius: 18px; }
.match-event-card.event-type-strategic_resource { border-radius: 2px 15px 2px 15px; }
.match-event-card.event-type-great_work { border-style: double; border-width: 4px; border-radius: 16px 3px; }
.match-event-card.event-type-gold { border-radius: 24px 5px; }
.match-event-card.event-type-diplomatic_favor { border-style: dashed; border-radius: 999px; padding-right: 15px; padding-left: 15px; }
.match-event-item-trade { width: max-content; }
.match-event-card.match-event-trade-card {
  width: max-content;
  min-height: 0;
  padding: 2px 3px;
  border-width: 1px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .26);
}
.match-event-card.match-event-trade-card.event-type-great_work { padding: 1px 2px; border-width: 3px; }
.match-event-card.match-event-trade-card.event-type-diplomatic_favor { padding: 2px 5px; }
.match-event-cluster-card {
  display: flex;
  width: max-content;
  min-height: 0;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-width: 1px;
  color: var(--text);
  cursor: pointer;
}
.match-event-cluster-card:hover, .match-event-cluster-card:focus-visible, .match-event-cluster-card[aria-expanded="true"] {
  border-color: var(--gold);
  outline: none;
  background: #172330;
}
.match-event-cluster-preview { display: flex; align-items: center; gap: 2px; }
.match-event-cluster-preview .match-event-icon { width: 17px; height: 17px; flex-basis: 17px; }
.match-event-cluster-kind { display: inline-flex; align-items: center; gap: 1px; }
.match-event-cluster-kind small { color: var(--muted); font: 8px/1 ui-monospace, Consolas, monospace; }
.match-event-cluster-count { color: var(--gold-soft); font: 9px/1 ui-monospace, Consolas, monospace; }
.match-event-turn-drawer {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(215, 173, 97, .24);
  border-radius: 10px;
  background: rgba(12, 19, 27, .96);
}
.match-event-turn-drawer[hidden] { display: none; }
.match-event-turn-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--gold-soft); font-size: 11px; }
.match-event-turn-drawer-close { padding: 4px 8px; border: 1px solid rgba(143, 160, 178, .25); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; }
.match-event-turn-drawer-close:hover, .match-event-turn-drawer-close:focus-visible { color: var(--text); border-color: var(--gold); outline: none; }
.match-event-turn-drawer-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.match-event-turn-filter {
  padding: 3px 7px;
  border: 1px solid rgba(143, 160, 178, .22);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}
.match-event-turn-filter:hover, .match-event-turn-filter:focus-visible, .match-event-turn-filter.is-active {
  border-color: var(--gold);
  outline: none;
  color: var(--text);
  background: rgba(215, 173, 97, .1);
}
.match-event-turn-drawer-list {
  display: grid;
  max-height: 380px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.match-event-turn-drawer-list .match-event-card { width: auto; }
.match-event-trade-card .match-event-visual { gap: 2px; min-height: 0; }
.match-event-trade-card .match-event-icon { width: 18px; height: 18px; flex-basis: 18px; }
.match-event-trade-card .match-event-leader { width: 22px; height: 22px; flex-basis: 22px; }
.match-event-trade-card .match-event-arrow { font-size: 11px; }
.match-event-trade-card .match-event-amount { min-width: 0; font-size: 8px; }
.match-event-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.match-event-meta strong { color: var(--gold-soft); font: 10px/1 ui-monospace, Consolas, monospace; }
.match-event-meta span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.match-event-visual { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 31px; }
.match-event-icon { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.match-event-leader { width: 31px; height: 31px; flex-basis: 31px; border: 1px solid rgba(215, 173, 97, .45); border-radius: 50%; background: #172330; }
.match-event-action-icon { width: 22px; height: 22px; flex-basis: 22px; }
.match-event-amount { min-width: 18px; color: var(--gold-soft); font-weight: 700; font-size: 11px; text-align: right; }
.match-event-arrow { color: var(--gold); font-size: 17px; line-height: 1; }
.match-event-alliance-symbol {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.match-event-cluster-preview .match-event-alliance-symbol { min-width: 17px; min-height: 17px; font-size: 9px; }
.match-event-detail { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 8px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.empty.compact { padding: 28px 20px; }
.profile-link { display: inline-flex; margin-top: 14px; font-size: 12px; }
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, .82fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid rgba(215, 173, 97, .24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 6% 15%, rgba(215, 173, 97, .09), transparent 28%),
    linear-gradient(120deg, rgba(23, 35, 48, .98), rgba(15, 24, 33, .94));
}
.profile-hero-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.profile-hero-avatar { width: 94px; height: 94px; border-color: rgba(215, 173, 97, .48); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.profile-hero-copy { min-width: 0; }
.profile-hero-copy .eyebrow { margin-bottom: 5px; }
.profile-hero-copy h1 { margin: 0 0 9px; font-size: clamp(34px, 4.2vw, 50px); }
.profile-hero-meta, .profile-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.profile-hero-meta > span:not(.state-pill) { color: var(--muted); font-size: 11px; }
.profile-hero-links { margin-top: 10px; color: var(--gold-soft); font-size: 11px; }
.profile-hero-links a:hover { color: var(--gold); text-decoration: underline; }
.profile-hero-links .steam-id-disclosure { margin-top: 0; }
.profile-core-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(143, 160, 178, .16);
  border-radius: 11px;
  background: rgba(143, 160, 178, .12);
}
.profile-core-stats .datum { min-width: 0; padding: 15px 12px; background: rgba(15, 24, 33, .92); }
.profile-core-stats .datum strong { margin-bottom: 6px; color: var(--gold-soft); font: 600 22px/1 Georgia, serif; }
.profile-core-stats .datum small { font-size: 9px; line-height: 1.4; }
.profile-rating-panel { margin-bottom: 16px; scroll-margin-top: 132px; }
.profile-rating-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 10px; }
.profile-rating-card { display: grid; gap: 10px; padding: 14px 15px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.profile-rating-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-rating-card-title strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-rating-card-title .state-pill { flex: 0 0 auto; }
.profile-rating-score { display: flex; align-items: baseline; gap: 9px; }
.profile-rating-score > strong { color: var(--gold-soft); font: 600 30px/1 Georgia, serif; }
.profile-rating-change-up { color: var(--green); }
.profile-rating-change-down { color: var(--red); }
.profile-rating-change-flat, .profile-rating-record { color: var(--muted); }
.profile-rating-record { font-size: 10px; }
.profile-rating-note { margin: 12px 0 0; }
.profile-rating-empty { min-height: 78px; }
.profile-rating-diagnostics { display: grid; gap: 7px; margin-top: 12px; padding: 11px 13px; border: 1px solid rgba(143, 160, 178, .14); border-radius: 9px; background: rgba(8, 14, 20, .45); }
.profile-rating-diagnostics > strong { font-size: 12px; }
.profile-rating-diagnostics > small { color: var(--muted); }
.profile-rating-exclusion-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-rating-exclusion-list li { padding: 4px 7px; border-radius: 999px; background: rgba(205, 166, 91, .09); color: var(--text-soft); font-size: 10px; }
.profile-section-nav {
  position: sticky;
  z-index: 8;
  top: 68px;
  display: flex;
  gap: 5px;
  margin: 0 0 16px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 19, 27, .94);
  backdrop-filter: blur(12px);
}
.profile-section-nav a { padding: 8px 12px; border-radius: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.profile-section-nav a:hover, .profile-section-nav a:focus-visible { color: var(--gold-soft); background: var(--panel-raised); outline: none; }
.profile-dashboard { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; margin-bottom: 16px; scroll-margin-top: 132px; }
.profile-overview, .profile-identity-panel { min-width: 0; }
.profile-identity-panel .player-id-summary { grid-template-columns: 1fr; margin: 14px 0; }
.profile-identity-panel .player-id-summary .datum { padding: 10px 0; border-bottom: 1px solid rgba(143, 160, 178, .12); }
.profile-identity-panel .player-id-summary .datum:last-child { border-bottom: 0; }
.profile-identity-panel .profile-dates { line-height: 1.65; }
.steam-profile-panel { margin-top: 42px; scroll-margin-top: 132px; }
.profile-history-private { margin-bottom: 16px; border-color: rgba(143, 160, 178, .28); }
.profile-history-private h2 { margin-bottom: 8px; }
.profile-history-help { max-width: 920px; margin-top: 12px; }
.steam-profile-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.steam-profile-heading h2 { margin-bottom: 10px; }
.steam-profile-states, .profile-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-actions { margin-top: 16px; }
.profile-sync-result { align-self: center; color: var(--muted); font-size: .82rem; }
.profile-action-button, .profile-report-select { padding: 9px 12px; border: 1px solid rgba(215, 173, 97, .35); border-radius: 8px; color: var(--text); background: #0f1821; }
.profile-action-button { cursor: pointer; }
.profile-action-button:hover { border-color: var(--gold); }
.profile-action-button:disabled { cursor: wait; opacity: .55; }
.report-action-disabled { cursor: not-allowed; opacity: .55; }
.profile-report { margin-top: 16px; color: var(--muted); font-size: 12px; }
.profile-report summary { width: fit-content; cursor: pointer; color: var(--gold-soft); }
.profile-report-form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 12px; }
.profile-report-result { color: var(--muted); }
.match-player-report { margin-top: 3px; }
.match-profile-report { margin-top: 0; text-align: left; }
.match-profile-report summary.profile-action-button { list-style-position: inside; }
.match-profile-report .profile-report-form { min-width: 240px; justify-content: end; }
.match-player-review { margin-top: 3px; }
.match-profile-review { margin-top: 0; text-align: left; }
.match-profile-review summary.profile-action-button { list-style-position: inside; }
.peer-review-form { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 9px; min-width: 300px; margin-top: 12px; }
.peer-review-field { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; }
.peer-review-field > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.peer-review-field .profile-report-select { min-width: 62px; padding: 7px 9px; }
.peer-review-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 9px; }
.match-reviews-panel, .match-review-row { scroll-margin-top: 132px; }
.match-reviews-panel > .panel-caption { margin: 10px 0 16px; line-height: 1.6; }
.match-reviews-form { min-width: 0; }
.match-reviews-scroll { max-height: 620px; overflow: auto; }
.match-reviews-table { width: 100%; min-width: 720px; table-layout: fixed; }
.match-reviews-table th, .match-reviews-table td { padding: 10px 8px; vertical-align: middle; overflow-wrap: anywhere; }
.match-reviews-table th:first-child { width: 27%; }
.match-reviews-table th:last-child { width: 23%; }
.match-reviews-table thead th { position: sticky; top: 0; z-index: 1; background: #0f1821; }
.match-review-identity small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.match-review-score { width: 100%; min-width: 54px; }
.match-review-row-status, .match-review-unavailable { color: var(--muted); font-size: 12px; line-height: 1.45; }
.match-reviews-form > .peer-review-actions { margin-top: 14px; }
.match-review-row:target { background: rgba(215, 173, 97, .12); }
.peer-review-panel { margin-bottom: 16px; scroll-margin-top: 132px; }
.peer-review-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.peer-review-period { min-width: 0; overflow: hidden; padding: 14px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.peer-review-period h3 { margin: 0 0 4px; color: var(--gold-soft); }
.peer-review-period > small { color: var(--muted); }
.peer-review-meta { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.peer-review-meta span { min-width: 0; overflow-wrap: anywhere; }
.peer-review-period > .panel-caption { margin: 12px 0 0; line-height: 1.5; }
.peer-review-panel > .panel-caption { margin: 14px 0 0; line-height: 1.65; }
.peer-review-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.peer-review-score-grid .datum { min-width: 0; padding: 9px; overflow: hidden; border-radius: 8px; background: rgba(20, 32, 43, .8); }
.peer-review-score-grid .datum strong, .peer-review-score-grid .datum small { overflow-wrap: anywhere; }
.lobby-peer-review { margin-top: 12px; padding: 11px 12px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 9px; background: rgba(15, 24, 33, .74); }
.lobby-peer-review > strong { display: block; margin-bottom: 7px; color: var(--gold-soft); font-size: 12px; }
.lobby-peer-review > small { display: block; margin-top: 7px; color: var(--muted); }
.lobby-peer-review-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; color: var(--text); font-size: 11px; }
.lobby-peer-review-scores span { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.admin-review-hero { margin-bottom: 16px; }
.admin-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-section-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.admin-section-nav a:hover, .admin-section-nav a:focus-visible, .admin-section-nav a.active { border-color: var(--gold); color: var(--gold-soft); background: rgba(215, 173, 97, .08); outline: none; }
.admin-review-filters { display: grid; grid-template-columns: 150px repeat(3, minmax(180px, 1fr)) auto; gap: 10px; margin-bottom: 16px; }
.admin-review-filters .profile-report-select { min-width: 0; width: 100%; }
.admin-report-filters { grid-template-columns: minmax(190px, 1fr) minmax(150px, 1fr) auto; }
.admin-profile-filters { grid-template-columns: minmax(190px, 1fr) minmax(220px, 1fr) auto; }
.admin-review-list { min-width: 0; margin-bottom: 16px; }
.admin-review-table-wrap { max-width: 100%; overflow: auto; }
.admin-review-table { min-width: 1040px; }
.admin-review-table th, .admin-review-table td { max-width: 260px; overflow-wrap: anywhere; vertical-align: middle; }
.admin-review-open { padding: 6px 9px; white-space: nowrap; }
.admin-review-detail-root:empty { display: none; }
.admin-review-detail { min-width: 0; margin-bottom: 16px; }
.admin-review-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 9px; margin: 12px 0 18px; }
.admin-review-summary .datum { min-width: 0; padding: 11px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 9px; background: #0f1821; }
.admin-review-summary .datum strong, .admin-review-summary .datum small { overflow-wrap: anywhere; }
.admin-status-panel { min-width: 0; }
.admin-status-summary { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.admin-status-section { min-width: 0; margin-top: 22px; }
.admin-status-section h3 { margin: 0 0 10px; color: var(--gold-soft); font-size: 15px; }
.admin-status-details { margin-top: 22px; border-top: 1px solid rgba(143, 160, 178, .14); }
.admin-status-details summary { padding: 16px 0 8px; color: var(--gold-soft); cursor: pointer; }
.admin-status-details-content { display: grid; gap: 10px; }
.admin-status-problem-list { overflow-wrap: anywhere; line-height: 1.7; }
.admin-review-subheading { margin: 20px 0 10px; color: var(--gold-soft); }
.admin-moderation-form { display: grid; gap: 10px; margin: 18px 0; padding: 14px; border: 1px solid rgba(215, 173, 97, .28); border-radius: 10px; background: rgba(215, 173, 97, .05); }
.admin-moderation-reason { box-sizing: border-box; width: 100%; min-height: 72px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #09121b; font: inherit; line-height: 1.45; }
.admin-moderation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.admin-resolution-note { margin: 12px 0 0; }
.admin-profile-heading { display: flex; min-width: 0; align-items: center; gap: 14px; }
.admin-profile-heading h2 { margin: 0 0 5px; overflow-wrap: anywhere; }
.admin-profile-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-profile-avatar-box { flex: 0 0 68px; width: 68px; height: 68px; overflow: hidden; border: 1px solid rgba(215, 173, 97, .36); border-radius: 50%; background: #09121b; }
.admin-profile-avatar, .admin-profile-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; object-fit: cover; color: var(--gold-soft); font: 700 24px/1 Georgia, serif; }
.admin-profile-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.admin-profile-decision-grid .peer-review-field { padding: 10px 12px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 8px; background: rgba(9, 18, 27, .7); }
.competition-registration-hero {
  display: grid;
  max-width: 940px;
  justify-content: start;
  gap: 0;
  margin-bottom: 24px;
}
.competition-registration-hero .eyebrow { margin-bottom: 9px; }
.competition-registration-hero h1 {
  width: 100%;
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 48px);
  overflow-wrap: normal;
  word-break: keep-all;
}
.competition-registration-hero .panel-caption {
  max-width: 900px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.competition-registration-panel, .competition-own-panel, .competition-login-panel { margin-bottom: 16px; }
.competition-login-panel .panel-caption { margin-bottom: 16px; }
.competition-registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.competition-form-field { display: grid; min-width: 0; gap: 7px; color: var(--text); font-size: 11px; }
.competition-form-field > span { color: var(--gold-soft); font-weight: 700; }
.competition-form-field > small { min-height: 1.35em; color: var(--muted); line-height: 1.45; }
.competition-form-field .profile-report-select { box-sizing: border-box; width: 100%; min-width: 0; color-scheme: dark; }
.competition-form-field-wide { grid-column: 1 / -1; }
.competition-description-input { min-height: 108px; resize: vertical; line-height: 1.5; }
.competition-form-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 2px; }
.competition-submission-list, .competition-admin-list { display: grid; gap: 10px; margin-top: 12px; }
.competition-submission-card, .competition-admin-card { position: relative; min-width: 0; padding: 14px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.competition-submission-title { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.competition-submission-title > a { min-width: 0; overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.competition-submission-title > a:hover, .competition-submission-title > a:focus-visible { color: var(--gold-soft); text-decoration: underline; outline: none; }
.competition-submission-meta, .competition-window-summary, .competition-admin-identifiers, .competition-review-note { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.competition-window-summary { color: var(--gold-soft); }
.competition-admin-identifiers { font-family: ui-monospace, Consolas, monospace; }
.competition-review-note { padding: 8px 10px; border-left: 2px solid rgba(215, 173, 97, .45); background: rgba(215, 173, 97, .05); }
.competition-submission-description { margin-top: 10px; padding: 9px 10px; border-radius: 7px; background: rgba(143, 160, 178, .06); }
.competition-private-contact { margin: 9px 0 0; padding: 8px 10px; border-left: 2px solid rgba(101, 167, 216, .5); color: #9fc6e4; background: rgba(101, 167, 216, .06); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.competition-withdraw-button { margin-top: 12px; }
.admin-competition-filters { grid-template-columns: minmax(180px, 320px) auto; }
.competition-admin-actions { margin-bottom: 0; }
@media (max-width: 560px) {
  .player-card-content { grid-template-columns: 1fr; }
  .player-activity { border-top: 1px solid rgba(143, 160, 178, .12); border-left: 0; }
  .peer-review-form, .peer-review-periods, .peer-review-score-grid { grid-template-columns: 1fr; min-width: 0; }
  .admin-review-filters, .admin-report-filters, .admin-profile-filters, .admin-profile-decision-grid, .admin-competition-filters, .competition-registration-form { grid-template-columns: 1fr; }
  .competition-form-actions { grid-column: 1; }
  .competition-registration-hero h1 { font-size: clamp(30px, 10vw, 38px); }
  .home-competition-panel .home-section-heading { align-items: flex-start; }
}
@media (min-width: 561px) and (max-width: 1050px) {
  .admin-review-filters, .admin-report-filters, .admin-profile-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 9px; }
.profile-stats .datum { padding: 13px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 9px; background: #0f1821; }
.profile-stats .datum strong { color: var(--gold-soft); font: 600 18px/1 Georgia, serif; }
.profile-career-groups { display: grid; gap: 18px; }
.profile-career-group { display: grid; min-width: 0; gap: 9px; padding-top: 2px; }
.profile-career-group + .profile-career-group { padding-top: 17px; border-top: 1px solid rgba(143, 160, 178, .14); }
.profile-career-heading { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.profile-career-heading h3 { margin: 0; color: var(--gold-soft); font-size: 13px; }
.profile-career-heading small { max-width: 620px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.profile-civilization-panel { margin-bottom: 16px; scroll-margin-top: 132px; }
.civilization-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 98px)); gap: 8px; }
.profile-civilization-card { display: flex; min-width: 0; min-height: 92px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px 7px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; color: var(--text); font: inherit; text-align: center; background: #0f1821; cursor: pointer; }
.profile-civilization-card:first-child { border-color: rgba(215, 173, 97, .36); background: linear-gradient(120deg, rgba(39, 39, 34, .72), #0f1821); }
.profile-civilization-card:hover, .profile-civilization-card:focus-visible { border-color: rgba(215, 173, 97, .62); outline: none; transform: translateY(-1px); }
.profile-civilization-card[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(120deg, rgba(88, 65, 31, .58), #13202b); box-shadow: 0 0 0 2px rgba(215, 173, 97, .12); }
.profile-civilization-visuals { position: relative; flex: 0 0 auto; width: 52px; height: 52px; }
.profile-civilization-leader { width: 48px; height: 48px; border-radius: 50%; }
.profile-civilization-emblem { position: absolute; right: 0; bottom: 0; width: 23px; height: 23px; padding: 2px; border: 1px solid rgba(215, 173, 97, .5); border-radius: 50%; background: #172330; }
.profile-civilization-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.profile-match-list { display: grid; gap: 10px; }
.profile-match-card {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(82px, .55fr)) 18px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(23, 35, 48, .96), rgba(18, 27, 37, .94));
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.profile-match-card:hover, .profile-match-card:focus-visible { transform: translateY(-2px); border-color: #536475; background: var(--panel-raised); outline: none; }
.profile-match-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.profile-match-visuals { position: relative; flex: 0 0 auto; width: 58px; height: 58px; }
.profile-match-leader { width: 52px; height: 52px; border-radius: 50%; }
.profile-match-emblem { position: absolute; right: 0; bottom: 0; width: 23px; height: 23px; padding: 2px; border: 1px solid rgba(215, 173, 97, .5); border-radius: 50%; background: #172330; }
.profile-match-copy { min-width: 0; }
.profile-match-copy strong, .profile-match-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-match-copy strong { margin: 6px 0 4px; font-size: 13px; }
.profile-match-copy small { color: var(--muted); font-size: 10px; }
.profile-dates { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.profile-explainer { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.profile-match-heading { margin-top: 32px; scroll-margin-top: 132px; }
.profile-match-note { margin: -7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.profile-match-filter-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; margin: -6px 0 12px; color: var(--gold-soft); font-size: 11px; }
.profile-match-filter-status:empty { display: none; }
.profile-filter-clear { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #0f1821; cursor: pointer; }
.profile-filter-clear:hover, .profile-filter-clear:focus-visible { border-color: var(--gold); color: var(--gold-soft); outline: none; }
.profile-behavior-panel { margin-bottom: 16px; scroll-margin-top: 132px; }
.profile-behavior-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.profile-behavior-stats .datum { padding: 13px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 9px; background: #0f1821; }
.profile-behavior-stats .datum strong { color: var(--gold-soft); font: 600 18px/1 Georgia, serif; }
.profile-behavior-warning { margin: 13px 0; padding: 10px 12px; border-left: 3px solid rgba(215, 173, 97, .58); color: var(--muted); font-size: 11px; line-height: 1.65; background: rgba(215, 173, 97, .05); }
.profile-behavior-events { display: grid; gap: 8px; }
.profile-behavior-event { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid rgba(143, 160, 178, .14); border-radius: 9px; background: #0f1821; }
.profile-behavior-event-copy strong, .profile-behavior-event-copy small { display: block; }
.profile-behavior-event-copy strong { margin-bottom: 4px; font-size: 12px; }
.profile-behavior-event-copy small { color: var(--muted); font-size: 10px; }
.choice-player-list { display: grid; gap: 16px; }
.choice-player-card { overflow: hidden; border: 1px solid rgba(143, 160, 178, .16); border-radius: 12px; background: #0f1821; }
.choice-player-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.choice-player-heading h3 { margin: 0; color: var(--gold-soft); font-size: 15px; }
.choice-player-heading span { color: var(--muted); font-size: 10px; }
.choice-player-card .table-wrap {
  max-height: min(420px, 58vh);
  overflow: auto;
  border-top: 1px solid rgba(143, 160, 178, .12);
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}
.era-score-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.era-score-summary .datum { min-width: 0; }
.era-score-caption { margin: 0 0 16px; line-height: 1.55; }
.era-score-event-wrap { max-height: 420px; overflow: auto; }
.era-score-event-wrap thead { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.era-score-moment-type { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.era-score-gain { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }
.lobby-hero { margin-bottom: 26px; }
.lobby-summary { margin-top: 0; }
.lobby-player-list { display: grid; gap: 14px; }
.lobby-player-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(23, 35, 48, .96), rgba(18, 27, 37, .94));
}
.lobby-player-heading { display: flex; align-items: center; gap: 14px; }
.lobby-player-heading > div:nth-child(2) { min-width: 0; flex: 1; }
.lobby-player-trust { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.lobby-player-not_found, .lobby-player-unavailable { border-style: dashed; background: rgba(18, 27, 37, .7); }
.lobby-player-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.lobby-player-heading h2 { margin: 5px 0 5px; }
.lobby-slot { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lobby-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.lobby-stat-grid .datum { min-width: 0; padding: 13px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: #0f1821; }
.lobby-stat-grid .datum strong { overflow: hidden; color: var(--gold-soft); text-overflow: ellipsis; white-space: nowrap; }
.lobby-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; color: var(--muted); font-size: 11px; }
.lobby-player-footer .profile-link { margin-top: 0; white-space: nowrap; }
.lobby-player-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lobby-balance-panel { margin: 8px 0 24px; }
.lobby-balanced-teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lobby-balanced-team { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #0d1721; }
.lobby-balanced-team h3 { margin: 0 0 12px; }
.lobby-team-blue { border-color: rgba(79, 150, 255, .6); }
.lobby-team-red { border-color: rgba(242, 99, 99, .62); }
.lobby-balanced-player-list { display: grid; gap: 7px; margin: 0; padding-left: 24px; }
.lobby-balanced-player-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.lobby-balanced-player-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-balanced-player-list li small { color: var(--muted); }
.lobby-team-import-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px; margin-top: 16px; }
.lobby-copy-teams { justify-self: start; }
.lobby-team-copy-status { color: var(--muted); font-size: 11px; line-height: 1.55; }
.lobby-team-import-text { grid-column: 1 / -1; width: 100%; min-height: 72px; resize: vertical; padding: 10px; border: 1px solid var(--blue); border-radius: 8px; color: var(--text); background: #09121b; font: 11px/1.45 Consolas, monospace; }
.lobby-team-import-text[hidden] { display: none; }
.match-incomplete-reason {
  display: block;
  margin-top: 3px;
  color: #d7b778;
  line-height: 1.45;
}
.sensitive-panel { border-color: rgba(215, 173, 97, .35); }
.envoy-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.city-state-chart-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}
.city-state-chart-strip > .envoy-chart-card {
  flex: 0 0 min(620px, 86vw);
  scroll-snap-align: start;
}
.envoy-chart-card { position: relative; min-width: 0; margin: 0; padding: 16px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 12px; background: #0f1821; }
.envoy-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.envoy-chart-heading strong { color: var(--gold-soft); font-size: 14px; }
.city-state-heading, .great-person-class-heading { display: inline-flex; align-items: center; gap: 7px; }
.great-person-class-icon { width: 24px; height: 24px; object-fit: contain; }
.city-state-icon {
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--city-state-color, var(--muted));
  -webkit-mask: var(--city-state-icon) center / contain no-repeat;
  mask: var(--city-state-icon) center / contain no-repeat;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .95));
}
.city-state-icon.match-event-city-state { flex: 0 0 31px; width: 31px; height: 31px; border: 0; border-radius: 0; }
.city-state-icon.city-result-city-state-icon { flex: 0 0 42px; width: 42px; height: 42px; }
.city-state-type-label { padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--city-state-color) 64%, transparent); border-radius: 999px; color: var(--city-state-color); font-size: 8px; font-weight: 700; }
.chart-legend-entity-icon { width: 17px; height: 17px; object-fit: contain; }
.chart-title-with-icon { display: inline-flex; align-items: center; min-width: 0; gap: 6px; }
.chart-title-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.strategic-resource-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.resource-chart-label { display: inline-flex; align-items: center; min-width: 0; gap: 5px; }
.envoy-chart-heading span { color: var(--muted); font-size: 10px; text-align: right; }
.envoy-chart-scroll { overflow-x: auto; }
.envoy-chart { display: block; min-width: 520px; width: 100%; height: auto; }
.turn-series-card { margin-top: 14px; }
.turn-series-scroll { overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.turn-series-chart { max-width: none; }
.turn-rhythm-card-strip { display: flex; gap: 14px; margin-top: 14px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.turn-rhythm-card { flex: 0 0 min(620px, 88vw); min-width: 0; padding: 14px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 11px; background: #0f1821; scroll-snap-align: start; }
.turn-rhythm-card h3 { margin: 0 0 11px; overflow: hidden; color: var(--gold-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.turn-rhythm-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 13px; }
.turn-rhythm-summary .datum { min-width: 0; padding: 8px; border-radius: 7px; background: rgba(143, 160, 178, .07); }
.turn-rhythm-summary .datum strong, .turn-rhythm-summary .datum small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn-rhythm-summary .datum strong { color: var(--text); font-size: 12px; }
.turn-rhythm-summary .datum small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.turn-rhythm-heat-row { display: grid; grid-template-columns: 50px minmax(360px, 1fr); align-items: center; gap: 8px; margin-top: 7px; }
.turn-rhythm-heat-row > strong { color: var(--muted); font-size: 9px; }
.turn-rhythm-heat { display: grid; grid-template-columns: repeat(20, minmax(12px, 1fr)); gap: 2px; }
.turn-rhythm-heat i { display: block; height: 18px; border: 1px solid rgba(143, 160, 178, .12); border-radius: 2px; background: rgba(143, 160, 178, .05); }
.turn-rhythm-military .turn-rhythm-heat i { background: #df806f; }
.turn-rhythm-other .turn-rhythm-heat i { background: #65a7d8; }
.turn-rhythm-axis { display: flex; justify-content: space-between; margin: 5px 0 0 58px; color: var(--muted); font-size: 8px; }
.great-person-class-strip { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 12px; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.great-person-class-card { flex: 0 0 min(640px, 86vw); min-width: 0; padding: 14px; border: 1px solid rgba(143, 160, 178, .18); border-radius: 13px; background: rgba(15, 24, 33, .64); scroll-snap-align: start; }
.great-person-class-card > h3 { margin: 0 0 4px; color: var(--gold-soft); font-size: 16px; }
.great-person-class-card .turn-series-card { margin-top: 10px; padding: 12px; }
.activity-trend-strip { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 12px; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.activity-trend-strip > .turn-series-card { flex: 0 0 min(760px, 90vw); margin-top: 0; scroll-snap-align: start; }
.kd-comparison { display: grid; gap: 9px; margin: 14px 0; }
.kd-comparison-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.kd-sort-toggle { padding: 6px 10px; border: 1px solid rgba(143, 160, 178, .24); border-radius: 7px; color: var(--gold-soft); background: rgba(143, 160, 178, .07); cursor: pointer; font-size: 9px; }
.kd-sort-toggle:hover, .kd-sort-toggle:focus-visible { border-color: rgba(215, 173, 97, .52); background: rgba(215, 173, 97, .1); outline: none; }
.kd-team-board { display: grid; gap: 10px; }
.kd-team-group { overflow: hidden; border: 1px solid rgba(143, 160, 178, .16); border-left: 3px solid var(--kd-team-color, var(--gold)); border-radius: 10px; background: rgba(15, 24, 33, .72); }
.kd-team-tone-0 { --kd-team-color: #6da9ff; }
.kd-team-tone-1 { --kd-team-color: #ef786c; }
.kd-team-tone-2 { --kd-team-color: #61c69d; }
.kd-team-tone-3 { --kd-team-color: #b68cff; }
.kd-team-tone-4 { --kd-team-color: #efc46b; }
.kd-team-tone-5 { --kd-team-color: #5cc8d7; }
.kd-team-unassigned { --kd-team-color: #8fa0b2; }
.kd-team-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; border-bottom: 1px solid rgba(143, 160, 178, .12); background: color-mix(in srgb, var(--kd-team-color) 7%, transparent); }
.kd-team-heading strong { color: var(--kd-team-color); font-size: 11px; }
.kd-team-heading span { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.kd-player-list { display: grid; }
.kd-comparison-row { display: grid; grid-template-columns: minmax(175px, 1.15fr) minmax(210px, 2fr) 58px; align-items: center; gap: 12px; min-width: 0; padding: 7px 12px; border-bottom: 1px solid rgba(143, 160, 178, .09); }
.kd-comparison-row:last-child { border-bottom: 0; }
.kd-player-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kd-leader-icon { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(215, 173, 97, .34); border-radius: 50%; object-fit: cover; background: #172330; }
.kd-player-copy { display: grid; min-width: 0; }
.kd-player-copy strong, .kd-player-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-player-copy strong { color: var(--text); font-size: 10px; }
.kd-player-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.kd-dual-bars { display: grid; gap: 3px; }
.kd-bar-line { display: grid; grid-template-columns: 12px minmax(0, 1fr) 24px; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.kd-bar-line b { font-size: 8px; }
.kd-bar-track { display: block; overflow: hidden; height: 5px; border-radius: 99px; background: rgba(143, 160, 178, .1); }
.kd-bar-fill { display: block; min-width: 0; height: 100%; border-radius: inherit; }
.kd-bar-kills b, .kd-bar-kills > span:last-child { color: #79d4ae; }
.kd-bar-deaths b, .kd-bar-deaths > span:last-child { color: #ef8b80; }
.kd-bar-kills .kd-bar-fill { background: #61c69d; }
.kd-bar-deaths .kd-bar-fill { background: #df806f; }
.kd-final-value { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.kd-final-value strong { color: var(--gold-soft); font-size: 14px; }
.kd-final-value small { color: var(--muted); font-size: 7px; letter-spacing: .08em; }
.removal-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 14px 0; }
.removal-summary-card { display: grid; gap: 6px; padding: 13px 15px; border: 1px solid rgba(143, 160, 178, .16); border-radius: 10px; background: rgba(15, 24, 33, .72); }
.removal-summary-card strong { color: var(--gold-soft); font-size: 14px; }
.removal-summary-card small { color: var(--muted); line-height: 1.55; }
.transfer-stat-table { min-width: 940px; }
.transfer-stat-wrap { margin-bottom: 8px; scrollbar-gutter: stable; }
.transfer-flow-caption { margin: 0 0 18px; line-height: 1.55; }
.transfer-team-tone-0 { --transfer-team-color: #6da9ff; }
.transfer-team-tone-1 { --transfer-team-color: #ef786c; }
.transfer-team-tone-2 { --transfer-team-color: #61c69d; }
.transfer-team-tone-3 { --transfer-team-color: #b68cff; }
.transfer-team-tone-4 { --transfer-team-color: #efc46b; }
.transfer-team-tone-5 { --transfer-team-color: #5cc8d7; }
.transfer-team-unassigned { --transfer-team-color: #8fa0b2; }
.transfer-team-row th { padding: 7px 10px; border-left: 3px solid var(--transfer-team-color); background: color-mix(in srgb, var(--transfer-team-color) 7%, transparent); text-align: left; }
.transfer-team-row strong { color: var(--transfer-team-color); font-size: 10px; }
.transfer-team-row span { margin-left: 10px; color: var(--muted); font-size: 8px; font-weight: 400; }
.transfer-player-row .transfer-player { border-left: 3px solid var(--transfer-team-color); }
.transfer-player { min-width: 210px; font-weight: 600; }
.transfer-player-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.transfer-player-icons { position: relative; display: block; flex: 0 0 38px; width: 38px; height: 34px; }
.transfer-player-leader { width: 32px; height: 32px; border: 1px solid rgba(215, 173, 97, .34); border-radius: 50%; object-fit: cover; background: #172330; }
.transfer-player-civilization { position: absolute; right: 0; bottom: 0; width: 17px; height: 17px; padding: 1px; border: 1px solid rgba(215, 173, 97, .5); border-radius: 50%; object-fit: contain; background: #172330; }
.transfer-player-copy { display: grid; min-width: 0; }
.transfer-player-copy strong, .transfer-player-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-player-copy strong { color: var(--text); font-size: 10px; }
.transfer-player-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.transfer-stat-cell { min-width: 140px; }
.transfer-stat-cell strong { display: block; white-space: nowrap; }
.transfer-breakdown { display: block; max-width: 250px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.trade-flow-chart-strip { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.city-ownership-card-list { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.city-ownership-card { display: grid; flex: 0 0 min(620px, 88vw); grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid rgba(143, 160, 178, .18); border-radius: 12px; background: #0f1821; scroll-snap-align: start; }
.city-ownership-identity { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.city-ownership-identity strong { width: 100%; overflow: hidden; color: var(--gold-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.city-result-icon { width: 42px; height: 42px; object-fit: contain; }
.city-owner-chain { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-x: auto; padding: 5px 2px 9px; }
.city-owner-step { display: grid; flex: 0 0 86px; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.city-owner-step > small { width: 100%; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.city-owner-portraits { position: relative; display: block; width: 48px; height: 48px; }
.city-owner-leader { width: 44px; height: 44px; border-radius: 50%; }
.city-owner-civilization { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; padding: 2px; border: 1px solid rgba(215, 173, 97, .48); border-radius: 50%; background: #172330; }
.city-owner-free-icon { width: 44px; height: 44px; object-fit: contain; }
.city-owner-portraits > .city-state-icon { width: 44px; height: 44px; }
.city-conflict-owner { display: inline-flex; align-items: center; gap: 8px; max-width: 20rem; vertical-align: middle; }
.city-conflict-owner-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.city-conflict-owner-icons { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.city-conflict-owner-icons > img, .city-conflict-owner-icons > .city-state-icon { position: static; width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 0; object-fit: contain; }
.city-owner-arrow { display: grid; flex: 0 0 28px; justify-items: center; color: var(--gold); }
.city-owner-arrow b { font-size: 18px; font-weight: 400; }
.city-owner-arrow small { color: var(--muted); font-size: 8px; }
.city-destroyed-state { flex: 0 0 auto; padding: 8px 10px; border: 1px dashed rgba(223, 128, 111, .55); border-radius: 8px; color: var(--red); font-size: 10px; }
.trade-flow-chart-strip > .turn-series-card { flex: 0 0 min(820px, 92vw); scroll-snap-align: start; }
.chart-grid-line { stroke: rgba(143, 160, 178, .18); stroke-width: 1; }
.chart-grid-vertical { stroke: rgba(143, 160, 178, .08); }
.chart-axis-label, .chart-axis-title { fill: var(--muted); font: 10px Inter, sans-serif; }
.chart-axis-title { font-size: 9px; letter-spacing: .08em; }
.envoy-series-line { stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.envoy-series-point { stroke: #0f1821; stroke-width: 1.5; }
.chart-hit-area { cursor: crosshair; pointer-events: all; }
.chart-hover-line { stroke: rgba(244, 239, 224, .72); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.line-chart-tooltip { position: fixed; z-index: 1000; min-width: 190px; max-width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden; padding: 11px 12px; border: 1px solid rgba(215, 173, 97, .45); border-radius: 9px; background: rgba(8, 14, 20, .96); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); color: var(--text); pointer-events: none; }
.line-chart-tooltip-title { display: block; margin-bottom: 7px; color: var(--gold-soft); font-size: 11px; }
.line-chart-tooltip-grid { display: grid; grid-template-columns: repeat(var(--line-chart-tooltip-columns, 1), minmax(0, 1fr)); gap: 1px 16px; max-height: calc(100vh - 62px); overflow: hidden; }
.line-chart-tooltip-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 3px 0; font-size: 10px; }
.line-chart-tooltip-label { display: inline-flex; align-items: center; min-width: 0; gap: 6px; color: var(--muted); }
.line-chart-tooltip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-chart-tooltip-label + b { flex: 0 0 auto; font-weight: 600; }
.line-chart-tooltip-label + b.chart-value-with-icon { display: inline-flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.line-chart-tooltip-swatch { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; }
.line-chart-tooltip.has-details .line-chart-tooltip-grid { overflow-y: auto; align-items: start; scrollbar-gutter: stable; }
.line-chart-tooltip-row.has-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 6px 0; }
.harvest-tooltip-details { grid-column: 1 / -1; min-width: 0; }
.harvest-tooltip-heading, .harvest-tooltip-empty { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.harvest-tooltip-resources { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.harvest-tooltip-resource { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.harvest-tooltip-resource > span { min-width: 0; overflow-wrap: anywhere; }
.harvest-tooltip-resource > b { white-space: nowrap; }
.harvest-tooltip-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.pillage-tooltip-details { grid-column: 1 / -1; min-width: 0; }
.pillage-tooltip-heading, .pillage-tooltip-empty { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.pillage-tooltip-list { display: grid; gap: 5px; min-width: 0; }
.pillage-tooltip-item { display: grid; gap: 3px; min-width: 0; padding: 4px 0; border-top: 1px solid rgba(143, 160, 178, .16); }
.pillage-tooltip-asset { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.pillage-tooltip-asset > span { min-width: 0; overflow-wrap: anywhere; }
.pillage-tooltip-asset > b { white-space: nowrap; }
.pillage-tooltip-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.pillage-tooltip-victim { min-width: 0; }
.pillage-tooltip-victim .city-conflict-owner { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; min-width: 0; color: var(--muted); }
.pillage-tooltip-victim .city-conflict-owner-icons > img, .pillage-tooltip-victim .city-state-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.envoy-chart-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 12px; }
.envoy-chart-legend.chart-legend-grouped { align-items: stretch; gap: 9px; }
.chart-legend-team {
  flex: 1 1 250px;
  min-width: min(250px, 100%);
  overflow: hidden;
  border: 1px solid rgba(143, 160, 178, .16);
  border-radius: 8px;
  background: rgba(15, 24, 33, .52);
}
.chart-team-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid rgba(143, 160, 178, .12);
  color: var(--gold-soft);
  background: rgba(143, 160, 178, .06);
  cursor: pointer;
  text-align: left;
}
.chart-team-toggle strong { font-size: 10px; }
.chart-team-toggle span { color: var(--muted); font-size: 9px; font-weight: 500; }
.chart-team-toggle:hover, .chart-team-toggle:focus-visible { background: rgba(215, 173, 97, .1); outline: none; }
.chart-team-toggle.is-muted { opacity: .58; }
.chart-team-series { display: flex; flex-wrap: wrap; gap: 3px 9px; padding: 5px 7px 7px; }
.chart-legend-player { display: flex; flex: 1 1 220px; min-width: min(220px, 100%); align-items: stretch; overflow: hidden; border: 1px solid rgba(143, 160, 178, .12); border-radius: 6px; }
.chart-player-toggle { display: flex; flex: 1 1 auto; min-width: 105px; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 6px; border: 0; border-right: 1px solid rgba(143, 160, 178, .12); color: var(--text); background: rgba(143, 160, 178, .045); cursor: pointer; text-align: left; }
.chart-player-toggle strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chart-player-toggle span { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.chart-player-toggle:hover, .chart-player-toggle:focus-visible { background: rgba(215, 173, 97, .1); outline: none; }
.chart-player-toggle.is-muted { opacity: .52; }
.chart-player-series { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; padding: 2px 3px; }
.envoy-legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.chart-series-toggle { padding: 3px 5px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; text-align: left; }
.chart-series-toggle:hover, .chart-series-toggle:focus-visible { color: var(--text); background: rgba(143, 160, 178, .09); outline: 1px solid rgba(143, 160, 178, .24); }
.chart-series-toggle.is-muted { opacity: .42; text-decoration: line-through; }
.chart-series-toggle.is-muted .envoy-legend-line { filter: grayscale(1); }
.envoy-legend-line { display: inline-block; width: 18px; border-top-width: 2px; }
.knowledge-completion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.knowledge-completion-card { min-width: 0; overflow: hidden; border: 1px solid rgba(143, 160, 178, .16); border-radius: 11px; background: #0f1821; }
.knowledge-completion-card h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid rgba(143, 160, 178, .12); font-size: 14px; }
.knowledge-completion-technology h3, .knowledge-completion-technology .knowledge-completion-item { color: #82c5f3; }
.knowledge-completion-civic h3, .knowledge-completion-civic .knowledge-completion-item { color: #d0a4f0; }
.knowledge-completion-other { grid-column: 1 / -1; }
.knowledge-completion-identity { display: inline-flex; align-items: center; gap: 8px; max-width: 18rem; vertical-align: middle; }
.knowledge-completion-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.knowledge-completion-icon { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.deal-item-identity { display: inline-flex; align-items: center; gap: 8px; max-width: 18rem; vertical-align: middle; }
.deal-item-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.deal-resource-icon { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.trade-route-city { display: inline-flex; align-items: center; gap: 8px; max-width: 24rem; vertical-align: middle; }
.trade-route-city-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.trade-route-owner-icons { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.trade-route-owner-icons .trade-route-owner-icon, .trade-route-owner-icons .city-state-icon { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.city-district-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
}
.city-chart-card { flex: 0 0 min(760px, 88vw); scroll-snap-align: start; }
.city-chart-card .turn-series-card { height: 100%; margin-top: 0; }
.city-yield-missing { margin: 9px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.city-chart-strip { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; scrollbar-gutter: stable; }
.trade-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trade-summary > div { min-width: 0; }
.trade-summary h3 { color: var(--gold-soft); font-size: 13px; }
.city-district-card {
  flex: 0 0 min(360px, 82vw);
  overflow: hidden;
  border: 1px solid rgba(143, 160, 178, .16);
  border-radius: 12px;
  background: #0f1821;
  scroll-snap-align: start;
}
.city-district-heading { padding: 16px 18px; border-bottom: 1px solid rgba(143, 160, 178, .12); }
.city-district-heading h3 { margin: 0 0 6px; color: var(--gold-soft); font-size: 15px; }
.city-district-heading span { color: var(--muted); font-size: 10px; }
.city-district-events { max-height: 330px; overflow-y: auto; overscroll-behavior-block: contain; }
.city-district-event {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 32px;
  gap: 5px 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(143, 160, 178, .1);
}
.city-district-event:last-child { border-bottom: 0; }
.city-district-event time { grid-row: 1 / span 2; color: var(--gold); font: 600 11px/1.5 ui-monospace, Consolas, monospace; }
.city-district-event strong { grid-column: 2; min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 12px; }
.city-district-event span { grid-column: 2; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.city-construction-icon { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 32px; height: 32px; object-fit: contain; }
.unit-lifecycle-identity { display: inline-flex; align-items: center; gap: 8px; max-width: 18rem; vertical-align: middle; }
.unit-lifecycle-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.unit-lifecycle-icon { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.unit-lifecycle-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.unit-lifecycle-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.unit-lifecycle-count { color: var(--muted); font-size: 12px; }
.embargo {
  padding: 18px 20px;
  border: 1px solid rgba(215, 173, 97, .22);
  border-radius: 10px;
  color: var(--gold-soft);
  background: rgba(215, 173, 97, .07);
  font-size: 13px;
  line-height: 1.7;
}

.empty, .error { padding: 54px 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.error strong { display: block; margin-bottom: 8px; color: var(--red); }
.skeleton div { height: 22px; margin: 12px 0; border-radius: 6px; background: linear-gradient(90deg, #17222d, #22303e, #17222d); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton div:nth-child(1) { width: 20%; }
.skeleton div:nth-child(2) { width: 70%; height: 52px; }
.skeleton div:nth-child(3) { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid rgba(143, 160, 178, .12); color: #637487; font-size: 11px; }
.footer-legal { max-width: 980px; margin: 18px 0 0; color: #718397; font-size: 10px; line-height: 1.75; }
.footer-legal a { color: #9db6cc; text-decoration: underline; text-decoration-color: rgba(157, 182, 204, .38); text-underline-offset: 2px; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--gold-soft); outline: none; }

.production-accounting-strip { align-items: stretch; }
.production-injection-list { display: grid; gap: 7px; max-height: 280px; margin-top: 16px; overflow-y: auto; }
.production-injection-item { display: grid; grid-template-columns: 52px minmax(120px, .7fr) minmax(180px, 1.3fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid rgba(143, 160, 178, .14); border-radius: 9px; background: rgba(9, 16, 25, .38); }
.production-injection-item time { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.production-injection-item span { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.production-injection-item b { color: #8ed8b8; font-size: 12px; white-space: nowrap; }

.rating-performance-table-wrap { overflow-x: auto; border: 1px solid rgba(143, 160, 178, .14); border-radius: 10px; }
.rating-performance-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.rating-performance-table th, .rating-performance-table td { padding: 10px 12px; border-bottom: 1px solid rgba(143, 160, 178, .1); text-align: right; white-space: nowrap; }
.rating-performance-table th { color: var(--muted); background: rgba(9, 16, 25, .46); font-size: 10px; font-weight: 600; }
.rating-performance-table th:first-child, .rating-performance-table td:first-child { position: sticky; z-index: 1; left: 0; text-align: left; background: #111a24; }
.rating-performance-table tbody tr:last-child td { border-bottom: 0; }
.rating-performance-player strong { display: inline-block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.rating-performance-mvp { display: inline-block; margin-left: 7px; padding: 2px 5px; border: 1px solid rgba(215, 173, 97, .42); border-radius: 999px; color: var(--gold-soft); font-size: 8px; font-weight: 800; vertical-align: middle; }
.rating-performance-role strong, .rating-performance-role small { display: block; }
.rating-performance-role small { margin-top: 3px; color: var(--muted); font-size: 9px; }

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
  .site-nav { margin-right: 0; }
  .header-actions { flex: 1 0 100%; justify-content: flex-end; }
  .player-search { width: 230px; margin-right: auto; }
  .home-hero { grid-template-columns: 1fr; gap: 24px; }
  .home-dashboard { grid-template-columns: 1fr; }
  .home-summary-columns { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); }
  .home-summary-columns .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-summary-columns .match-rule-filter { width: 100%; justify-content: space-between; }
  .home-summary-columns .match-rule-filter-select { flex: 1; min-width: 0; }
  .home-leaderboard .leaderboard-table { overflow: auto; }
  .home-leaderboard .leaderboard-row { min-width: 700px; padding-right: 10px; padding-left: 10px; }
  .home-live-panel { position: static; }
  .popular-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-card { grid-template-columns: 1fr 1fr 1fr; }
  .match-primary { grid-column: 1 / -1; }
  .match-card .chevron { display: none; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-behavior-event { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-behavior-event .profile-link { grid-column: 1 / -1; }
  .profile-match-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile-match-identity { grid-column: 1 / -1; }
  .profile-match-card .chevron { display: none; }
  .panel-wide, .panel-side { grid-column: 1 / -1; }
  .lobby-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .envoy-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; padding: 9px 18px; }
  .site-nav { order: 2; margin-right: 0; }
  .language-control > span { display: none; }
  .header-actions { flex: 1 0 100%; flex-wrap: wrap; justify-content: end; gap: 10px; }
  .account-name-link { max-width: 88px; }
  .steam-logout { padding: 6px 8px; }
  .player-search { order: 3; flex-basis: 100%; width: 100%; margin-right: 0; }
  .player-search-results { right: 0; left: auto; }
  .trade-summary { grid-template-columns: 1fr; }
  .knowledge-completion-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 28px, 1180px); padding-top: 36px; }
  .summary-strip { grid-template-columns: 1fr; }
  .home-quick-links { grid-template-columns: 1fr; }
  .home-summary-columns { grid-template-columns: 1fr; }
  .home-summary-columns > .home-portal-section { min-width: 0; }
  .civilization-statistics-summary { grid-template-columns: 1fr; }
  .live-stream-list[data-columns] { display: flex; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
  .live-stream-list[data-stream-count="1"] { justify-content: center; overflow: visible; }
  .live-stream-card { flex: 0 0 min(270px, 82vw); scroll-snap-align: start; }
  .popular-video-grid { display: flex; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .popular-video-card { flex: 0 0 min(270px, 78vw); scroll-snap-align: start; }
  .section-heading { flex-wrap: wrap; align-items: start; }
  .match-rule-filter { width: 100%; justify-content: space-between; }
  .match-rule-filter-select { flex: 1; }
  .match-filter-pair, .match-date-range { width: 100%; justify-content: stretch; }
  .match-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-date-clear { grid-column: 1 / -1; }
  .match-date-filter-input { width: 100%; min-width: 0; }
  .match-page-summary { min-width: 0; }
  .match-card { grid-template-columns: 1fr 1fr; gap: 15px; }
  .datum:nth-of-type(4) { display: none; }
  .profile-core-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-behavior-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-core-stats .datum { display: block; }
  .profile-hero { gap: 20px; padding: 19px; }
  .profile-hero-identity { align-items: flex-start; gap: 14px; }
  .profile-hero-avatar { width: 72px; height: 72px; }
  .profile-hero-copy h1 { font-size: 34px; }
  .profile-section-nav { top: 61px; }
  .profile-match-card { grid-template-columns: 1fr 1fr; gap: 12px; }
  .profile-match-card .datum { display: block; }
  .civilization-list { grid-template-columns: repeat(auto-fill, minmax(78px, 94px)); }
  .detail-title { display: block; }
  .detail-title .badge { margin-top: 16px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-heading, .privacy-notice { display: grid; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-list { grid-template-columns: 1fr; }
  .lobby-player-heading, .lobby-player-footer { display: grid; }
  .lobby-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-balanced-teams { grid-template-columns: 1fr; }
  .choice-player-heading { display: grid; }
  .era-score-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-comparison-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
  .kd-dual-bars { grid-column: 1 / -1; grid-row: 2; }
  .production-injection-item { grid-template-columns: 44px 1fr auto; }
  .production-injection-item span { grid-column: 2 / -1; grid-row: 2; }
  footer { width: calc(100% - 28px); line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.participant-coverage {
  display: grid;
  gap: 10px;
}

.participant-coverage:empty {
  display: none;
}

.participant-coverage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.participant-coverage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  font-size: 0.84rem;
}

.participant-coverage-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-coverage-turn,
.participant-coverage-status {
  color: var(--muted);
  white-space: nowrap;
}

.coverage-ended_early .participant-coverage-status,
.coverage-incomplete .participant-coverage-status,
.coverage-missing .participant-coverage-status {
  color: var(--red);
}

.opening-comparison-heading {
  align-items: end;
  gap: 1rem;
}

.opening-comparison-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.opening-group-select {
  max-width: min(36rem, 58vw);
}

.opening-comparison-layout {
  display: grid;
  gap: 1rem;
}

.opening-match-picker {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .2rem .1rem .55rem;
  scrollbar-gutter: stable;
}

.opening-match-choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .4rem;
  padding: .42rem .72rem;
}

.opening-match-choice:has(input:checked) {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.opening-comparison-table-scroll,
.opening-timeline-columns {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.opening-comparison-table {
  border-collapse: collapse;
  min-width: 44rem;
  width: 100%;
}

.opening-comparison-table th,
.opening-comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: .55rem .7rem;
  text-align: right;
  white-space: nowrap;
}

.opening-comparison-table th:first-child {
  background: var(--panel);
  left: 0;
  position: sticky;
  text-align: left;
  z-index: 1;
}

.opening-timeline-columns {
  display: grid;
  gap: .8rem;
  grid-auto-columns: minmax(17rem, 1fr);
  grid-auto-flow: column;
  padding-bottom: .5rem;
}

.opening-timeline-column {
  border: 1px solid var(--line);
  border-radius: .85rem;
  min-width: 0;
  padding: .8rem;
}

.opening-timeline-column h3 {
  font-size: .92rem;
  margin: 0 0 .65rem;
}

.opening-timeline-events {
  display: grid;
  gap: .38rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: .25rem;
  scrollbar-gutter: stable;
}

.opening-timeline-event {
  align-items: baseline;
  display: grid;
  gap: .45rem;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  padding: .35rem .15rem;
}

.opening-timeline-event time {
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.opening-timeline-event small {
  color: var(--muted);
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .opening-comparison-heading {
    align-items: stretch;
  }

  .opening-comparison-controls {
    justify-content: stretch;
  }

  .opening-comparison-controls select,
  .opening-group-select {
    max-width: none;
    width: 100%;
  }
}
