.user-page .player-insights-section {
  position: relative;
  margin-top: 72px;
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0, rgb(76 130 190 / 10%), transparent 28%),
    linear-gradient(145deg, rgb(255 250 240 / 97%), rgb(244 234 213 / 94%));
  border: 1px solid var(--theme-line, #cfbd99);
  border-top: 5px solid var(--theme-bronze, #b78a3e);
  box-shadow: var(--theme-shadow, 0 10px 26px rgb(48 45 34 / 11%));
}

.user-page .player-insights-section::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  top: -120px;
  right: -90px;
  border: 1px solid rgb(183 138 62 / 22%);
  border-radius: 50%;
  pointer-events: none;
}

.user-page .player-insights-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.user-page .player-insights-heading .title { margin: 0; }

.stats-period-status {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(16px, 2.6vw, 34px);
  row-gap: 4px;
  margin-top: 18px;
  padding: 14px 17px;
  color: #f7f1df;
  background:
    linear-gradient(100deg, rgb(39 61 48 / 97%), rgb(31 48 41 / 97%)),
    var(--theme-stone, #29322d);
  border: 1px solid rgb(167 180 102 / 50%);
  border-left: 5px solid var(--theme-grass, #829928);
  box-shadow: 0 8px 18px rgb(44 48 34 / 13%);
}

.stats-period-status + .player-insights-section {
  margin-top: 26px;
}

.stats-period-status__title {
  display: grid;
  grid-row: 1 / 3;
  gap: 3px;
  padding-right: clamp(13px, 2vw, 26px);
  border-right: 1px solid rgb(237 231 204 / 18%);
}

.stats-period-status__title small {
  color: #c9d46d;
  font: 900 7px Arial, sans-serif;
  letter-spacing: .16em;
}

.stats-period-status__title strong {
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.stats-period-status__range {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 9px;
}

.stats-period-status__range span {
  color: rgb(241 237 218 / 72%);
  white-space: nowrap;
}

.stats-period-status__range b {
  margin-left: 4px;
  color: #fff;
  font-size: 10px;
}

.stats-period-status__help {
  grid-column: 2;
  color: rgb(241 237 218 / 55%);
  font-size: 7px;
  line-height: 1.4;
}

.section-period-picker {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.section-period-picker > span {
  color: var(--theme-muted, #716d61);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.section-period-picker > small {
  min-width: 42px;
  color: var(--theme-grass, #66791f);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.section-period-picker .period-select {
  width: 104px;
  padding: 0 9px;
}

.stats-period-status .section-period-picker {
  grid-row: 1 / 3;
  grid-column: 3;
}

.stats-period-status .section-period-picker > span {
  color: rgb(241 237 218 / 70%);
}

.stats-period-status .section-period-picker .period-select {
  color: #263129;
  background: #fffdf5;
  border-color: #c9d46d;
}

.player-insight-scope {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 12px;
  padding: 9px 11px;
  background: rgb(255 255 255 / 52%);
  border: 1px solid rgb(143 119 72 / 31%);
}

.player-insight-scope > div {
  display: flex;
  align-items: stretch;
  gap: 5px;
}

.player-insight-scope > div > small {
  display: grid;
  align-items: center;
  padding: 0 5px 0 1px;
  color: var(--theme-muted, #716d61);
  font: 900 7px Arial, sans-serif;
  letter-spacing: .11em;
}

.player-insight-scope a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #5e5a4e;
  background: #f7f0e2;
  border: 1px solid #cbbd9e;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.player-insight-scope a b {
  padding: 2px 5px;
  color: #746b59;
  background: rgb(255 255 255 / 72%);
  font: 900 8px Arial, sans-serif;
}

.player-insight-scope a.is-active {
  color: #fffaf0;
  background: linear-gradient(120deg, #31513e, #234b34);
  border-color: #31513e;
  box-shadow: inset 0 -3px 0 var(--theme-bronze, #b78a3e);
}

.player-insight-scope a.is-active b {
  color: #f3d27d;
  background: rgb(255 255 255 / 9%);
}

.player-insight-scope > p {
  max-width: 570px;
  margin: 0;
  color: var(--theme-muted, #716d61);
  font-size: 8px;
  line-height: 1.55;
  text-align: right;
}

.player-compare-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  padding: 0;
  background: rgb(255 255 255 / 58%);
  border: 1px solid rgb(143 119 72 / 31%);
}

.player-compare-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 15px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 100% 0, rgb(216 174 82 / 18%), transparent 43%),
    linear-gradient(120deg, #234b34, #31513e);
  border-bottom: 3px solid var(--theme-bronze, #b78a3e);
}

.player-compare-panel > header small,
.player-comparison-results > header small,
.comparison-subheading small {
  display: block;
  color: #dfbd70;
  font: 900 7px Arial, sans-serif;
  letter-spacing: .15em;
}

.user-page .player-insights-section .player-compare-panel h3 {
  margin: 4px 0 0;
  color: #fffaf0;
  font-size: 17px;
}

.player-compare-panel > header p {
  max-width: 520px;
  margin: 0;
  color: #d3d8d0;
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.player-compare-form {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(310px, 1.35fr) max-content;
  gap: 8px 10px;
  align-items: end;
  padding: 12px 14px 10px;
}

.player-compare-form label {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.player-compare-form label > span {
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-weight: 900;
}

.player-compare-form input,
.player-compare-form select,
.player-compare-form button {
  width: 100%;
  height: 38px;
  border-radius: 0;
  font: 800 10px Arial, sans-serif;
}

.player-compare-form input,
.player-compare-form select {
  padding: 0 10px;
  color: var(--theme-text, #292d27);
  background: #fffdf7;
  border: 1px solid #c9b990;
}

.player-compare-form input:focus,
.player-compare-form select:focus {
  border-color: var(--theme-water, #255b9b);
  outline: 2px solid rgb(76 130 190 / 22%);
  outline-offset: 0;
}

.player-compare-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-compare-actions button {
  min-width: 150px;
  padding: 0 14px;
  color: #fffaf0;
  background: var(--theme-water, #255b9b);
  border: 0;
  cursor: pointer;
}

.player-compare-actions button:hover { filter: brightness(1.1); }
.player-compare-actions a {
  color: var(--theme-muted, #716d61);
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.player-compare-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}

.player-compare-count[data-empty="1"] { color: var(--theme-clay, #b9472e); }

.player-comparison-results {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding: 13px;
  background: rgb(244 237 220 / 80%);
  border: 1px solid #c9b990;
  border-top: 4px solid var(--theme-water, #255b9b);
}

.player-comparison-results > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 12px;
}

.player-comparison-results > header small { color: #8f681f; }
.user-page .player-insights-section .player-comparison-results > header h3 {
  margin: 3px 0 0;
  color: var(--theme-text, #292d27);
  font-size: clamp(20px, 2.2vw, 28px);
}
.player-comparison-results > header h3 span {
  margin: 0 5px;
  color: var(--theme-water, #255b9b);
}
.player-comparison-results > header p {
  margin: 5px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 8px;
}
.player-comparison-results > header p strong {
  color: var(--theme-text, #292d27);
}
.player-comparison-results > header > a {
  padding: 7px 10px;
  color: var(--theme-water, #255b9b);
  background: rgb(255 255 255 / 61%);
  border: 1px solid rgb(37 91 155 / 22%);
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.player-comparison-empty {
  margin: 0;
  padding: 30px 16px;
  color: var(--theme-muted, #716d61);
  background: rgb(255 255 255 / 58%);
  border: 1px dashed #c9b990;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.comparison-relation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.comparison-relation-grid > article {
  min-width: 0;
  min-height: 164px;
  padding: 12px;
  background: rgb(255 255 255 / 71%);
  border: 1px solid #d7c8a7;
  border-top: 4px solid #999487;
}

.comparison-relation-grid > article.is-together {
  border-top-color: var(--theme-grass-bright, #91aa37);
}
.comparison-relation-grid > article.is-versus {
  border-top-color: var(--theme-clay, #b9472e);
}
.comparison-relation-grid > article.is-score {
  border-top-color: var(--theme-bronze, #b78a3e);
}
.comparison-relation-grid > article.is-rank {
  border-top-color: var(--theme-water-bright, #4c82be);
}

.comparison-relation-grid > article > small {
  display: block;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-weight: 900;
}
.user-page .player-insights-section .comparison-relation-grid h4 {
  min-height: 34px;
  margin: 4px 0 8px;
  color: var(--theme-text, #292d27);
  font-size: 13px;
  line-height: 1.35;
}
.comparison-relation-grid > article > strong {
  display: block;
  color: var(--theme-text, #292d27);
  font: 900 25px Arial, sans-serif;
}
.comparison-relation-grid > article > strong span {
  margin-right: 5px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  vertical-align: 4px;
}
.comparison-relation-grid > article > p {
  margin: 10px 0 0;
  padding-top: 8px;
  color: var(--theme-muted, #716d61);
  border-top: 1px solid #dfd3ba;
  font-size: 8px;
  line-height: 1.55;
}
.comparison-unavailable { padding-top: 12px; }

.comparison-pair-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: end;
  gap: 5px;
}
.comparison-pair-values > span { min-width: 0; }
.comparison-pair-values > span small,
.comparison-pair-values > span strong { display: block; }
.comparison-pair-values > span small {
  overflow: hidden;
  color: var(--theme-muted, #716d61);
  font-size: 6px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-pair-values > span strong {
  margin-top: 2px;
  color: var(--theme-text, #292d27);
  font: 900 16px Arial, sans-serif;
}
.comparison-pair-values > span:last-child { text-align: right; }
.comparison-pair-values > b {
  color: #9b7b3e;
  font: 900 8px Arial, sans-serif;
  text-align: center;
}

.comparison-terrain-block,
.comparison-recent-block {
  margin-top: 10px;
  padding: 11px;
  background: rgb(255 255 255 / 48%);
  border: 1px solid #d7c8a7;
}

.comparison-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}
.comparison-subheading small { color: #8f681f; }
.user-page .player-insights-section .comparison-subheading h4 {
  margin: 3px 0 0;
  color: var(--theme-text, #292d27);
  font-size: 15px;
}
.comparison-subheading > p {
  margin: 0;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}

.comparison-terrain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.comparison-terrain-grid > article {
  display: grid;
  grid-template-columns: 80px repeat(2, minmax(0, 1fr));
  min-width: 0;
  background: #fffdf7;
  border: 1px solid #d8c9aa;
}
.comparison-terrain-grid h5 {
  display: grid;
  place-content: center;
  gap: 4px;
  margin: 0;
  padding: 10px;
  color: var(--theme-text, #292d27);
  background: #eee2ca;
  font-size: 9px;
  text-align: center;
}
.comparison-terrain-grid h5 span {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  place-items: center;
  color: #fff;
  background: var(--theme-bronze, #b78a3e);
  border-radius: 50%;
  font-size: 10px;
}
.comparison-terrain-grid .is-river h5 span {
  background: var(--theme-water, #255b9b);
}
.comparison-terrain-grid article > div {
  min-width: 0;
  padding: 10px;
  border-left: 1px solid #e2d6bd;
}
.comparison-terrain-grid article > div > small {
  display: block;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-weight: 900;
}
.comparison-terrain-grid article > div > strong {
  display: block;
  margin-top: 4px;
  color: var(--theme-text, #292d27);
  font: 900 18px Arial, sans-serif;
}
.comparison-terrain-grid article > div > strong span {
  margin-right: 4px;
  color: var(--theme-muted, #716d61);
  font-size: 6px;
  vertical-align: 3px;
}
.comparison-terrain-grid article > div > p {
  margin: 4px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}
.comparison-terrain-note {
  margin: 8px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  text-align: right;
}

.comparison-recent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.comparison-recent-list > a {
  display: grid;
  grid-template-columns: 62px 62px 42px 24px minmax(90px, 1fr) max-content;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 8px 9px;
  color: var(--theme-text, #292d27);
  background: #fffdf7;
  border: 1px solid #dfd3ba;
  border-left: 3px solid #9b9588;
  font-size: 7px;
  text-decoration: none;
}
.comparison-recent-list > a.is-win {
  border-left-color: var(--theme-grass-bright, #91aa37);
}
.comparison-recent-list > a.is-loss {
  border-left-color: var(--theme-clay, #b9472e);
}
.comparison-recent-list time,
.comparison-recent-list b,
.comparison-recent-list strong,
.comparison-recent-list span,
.comparison-recent-list em { white-space: nowrap; }
.comparison-recent-list time,
.comparison-recent-list span,
.comparison-recent-list em { color: var(--theme-muted, #716d61); }
.comparison-recent-list strong { color: var(--theme-grass, #617c24); }
.comparison-recent-list .is-loss strong { color: var(--theme-clay, #b9472e); }
.comparison-recent-list > a > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-recent-list em {
  font-style: normal;
  text-align: right;
}

.insight-coverage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 7px;
  margin: 9px 0 0;
}

.insight-coverage > span {
  min-width: 0;
  padding: 9px 11px;
  background: rgb(255 255 255 / 69%);
  border: 1px solid rgb(143 119 72 / 24%);
}

.insight-coverage small,
.insight-coverage b { display: block; }
.insight-coverage small {
  overflow: hidden;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.insight-coverage b {
  margin: 4px 0 6px;
  color: var(--theme-text, #292d27);
  font: 900 12px Arial, sans-serif;
}
.insight-coverage i,
.insight-coverage em {
  display: block;
  height: 3px;
}
.insight-coverage i { background: #dfd3b9; }
.insight-coverage em {
  background: linear-gradient(90deg, var(--theme-water, #255b9b), var(--theme-grass, #617c24));
}

.insight-headline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.insight-headline {
  position: relative;
  min-height: 112px;
  padding: 13px 14px 12px;
  overflow: hidden;
  background: var(--theme-paper, #fffaf0);
  border: 1px solid var(--theme-line, #cfbd99);
  border-left: 4px solid var(--theme-water, #255b9b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.insight-headline.is-overall {
  color: #fffaf0;
  background:
    radial-gradient(circle at 100% 0, rgb(224 188 99 / 22%), transparent 42%),
    linear-gradient(145deg, #254c32, #183323);
  border-color: #426349;
  border-left-color: #d8ae52;
}

.insight-headline.is-overall > small,
.insight-headline.is-overall h3,
.insight-headline.is-overall p {
  color: #f5ecd5 !important;
}

.insight-headline.is-overall strong { color: #f1c85f; }
.insight-headline.is-positive { border-left-color: var(--theme-grass, #617c24); }
.insight-headline.is-score { border-left-color: var(--theme-bronze, #b78a3e); }
.insight-headline.is-pending { border-left-color: #9a958a; }
.insight-headline > small {
  color: var(--theme-muted, #716d61);
  font: 900 7px Arial, sans-serif;
  letter-spacing: .14em;
}
.insight-headline > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: end;
  margin-top: 7px;
}
.user-page .player-insights-section .insight-headline h3 {
  margin: 0;
  color: var(--theme-text, #292d27);
  font-size: 14px;
  line-height: 1.35;
}
.insight-headline strong {
  color: var(--theme-water, #255b9b);
  font: 900 20px Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
}
.insight-headline strong > small {
  display: block;
  margin-bottom: 1px;
  color: var(--theme-muted, #716d61);
  font: 900 6px Arial, sans-serif;
  letter-spacing: .08em;
}
.insight-headline.is-overall strong > small { color: #d9d2c0; }
.insight-headline.is-positive strong { color: var(--theme-grass, #617c24); }
.insight-headline.is-score strong { color: #9a681f; }
.insight-headline.is-pending strong { color: #89867e; }
.insight-headline p {
  margin: 7px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
  line-height: 1.55;
}

.insight-data-status {
  margin-top: 10px;
  padding: 0 12px 10px;
  background: rgb(255 255 255 / 47%);
  border: 1px solid rgb(143 119 72 / 27%);
}

.insight-data-status summary {
  padding: 9px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.insight-condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 12px;
}

.insight-condition-panel.is-rank { grid-column: 1 / -1; }

.team-rank-summary-panel { grid-column: 1 / -1; }

.insight-condition-panel,
.team-rank-summary-panel,
.score-profile-panel,
.insight-combination-panel {
  min-width: 0;
  background: rgb(255 250 240 / 91%);
  border: 1px solid var(--theme-line, #cfbd99);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.insight-condition-panel > header,
.team-rank-summary-panel > header,
.score-profile-panel > header,
.insight-combination-panel > header {
  display: flex;
  min-height: 67px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: linear-gradient(115deg, rgb(48 52 46 / 96%), rgb(69 75 64 / 94%));
  color: #fffaf0;
  border-bottom: 3px solid var(--theme-bronze, #b78a3e);
}

.insight-condition-panel.is-terrain > header { border-bottom-color: var(--theme-water-bright, #4c82be); }
.insight-condition-panel.is-rank > header { border-bottom-color: var(--theme-grass-bright, #91aa37); }
.team-rank-summary-panel > header { border-bottom-color: #d3b04e; }
.insight-condition-panel > header small,
.team-rank-summary-panel > header small,
.score-profile-panel > header small,
.insight-combination-panel > header small {
  display: block;
  color: #dfbd70;
  font: 900 7px Arial, sans-serif;
  letter-spacing: .15em;
}
.user-page .player-insights-section .insight-condition-panel h3,
.user-page .player-insights-section .team-rank-summary-panel h3,
.user-page .player-insights-section .score-profile-panel h3,
.user-page .player-insights-section .insight-combination-panel h3 {
  margin: 4px 0 0;
  color: #fffaf0;
  font-size: 17px;
}
.insight-condition-panel > header p,
.team-rank-summary-panel > header p,
.score-profile-panel > header p,
.insight-combination-panel > header p {
  max-width: 250px;
  margin: 0;
  color: #c7c8c0;
  font-size: 8px;
  line-height: 1.45;
  text-align: right;
}

.team-rank-summary-main {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 30px minmax(130px, 1fr) minmax(145px, .85fr);
  gap: 8px;
  align-items: stretch;
  padding: 11px 11px 8px;
}
.team-rank-summary-main > span {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 11px 13px;
  background: #fffdf8;
  border: 1px solid #ddd0b5;
}
.team-rank-summary-main > span.is-ally { border-top: 4px solid var(--theme-grass-bright, #91aa37); }
.team-rank-summary-main > span.is-opponent { border-top: 4px solid var(--theme-clay, #b9472e); }
.team-rank-summary-main > b {
  align-self: center;
  color: #777166;
  font: 900 12px Arial, sans-serif;
  text-align: center;
}
.team-rank-summary-main small,
.team-rank-summary-main em {
  display: block;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-style: normal;
  line-height: 1.45;
}
.team-rank-summary-main strong {
  margin: 3px 0 2px;
  color: var(--theme-text, #292d27);
  font: 900 25px Arial, sans-serif;
}
.team-rank-summary-main strong > small {
  display: inline;
  margin-left: 3px;
  color: var(--theme-muted, #716d61);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.team-rank-summary-gap { background: #f5efe1 !important; }
.team-rank-summary-gap.is-positive strong { color: var(--theme-grass, #617c24); }
.team-rank-summary-gap.is-negative strong { color: var(--theme-clay, #b9472e); }
.team-rank-summary-gap.is-even strong { color: #716d61; }

.team-rank-distribution {
  margin: 0 11px 9px;
  padding: 9px 11px 7px;
  background: #fffdf8;
  border: 1px solid #ddd0b5;
}
.team-rank-distribution-head {
  display: flex;
  align-items: flex-end;
  margin-bottom: 7px;
}
.team-rank-distribution-head > div small,
.team-rank-distribution-head > div b { display: block; }
.team-rank-distribution-head > div small {
  color: #9a7624;
  font: 900 6px Arial, sans-serif;
  letter-spacing: .13em;
}
.team-rank-distribution-head > div b {
  margin-top: 2px;
  color: var(--theme-text, #292d27);
  font-size: 12px;
}
.team-rank-distribution-bars i.is-total {
  background: linear-gradient(180deg, #d3b04e, #8d6b21);
}
.team-rank-distribution-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27px, 1fr));
  gap: 3px;
  min-height: 112px;
  padding: 14px 5px 0;
  background:
    linear-gradient(to top, rgb(111 104 88 / 16%) 1px, transparent 1px) 0 0 / 100% 25%,
    #f6f1e7;
  border-bottom: 1px solid #bdb29d;
}
.team-rank-distribution-bin {
  display: grid;
  grid-template-rows: 88px 16px;
  align-items: end;
  min-width: 0;
}
.team-rank-distribution-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 88px;
}
.team-rank-distribution-bars i {
  position: relative;
  width: min(72%, 30px);
  min-width: 9px;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 38%);
}
.team-rank-distribution-bars i b {
  position: absolute;
  top: -12px;
  left: 50%;
  color: #5e5a50;
  font: 900 8px Arial, sans-serif;
  transform: translateX(-50%);
}
.team-rank-distribution-bin > small {
  overflow: hidden;
  padding-top: 3px;
  color: var(--theme-muted, #716d61);
  font: 900 8px Arial, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-rank-distribution > p {
  margin: 5px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 6px;
  line-height: 1.4;
  text-align: right;
}

.team-rank-summary-panel > footer {
  padding: 0 12px 10px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  line-height: 1.5;
}
.team-rank-summary-empty {
  margin: 10px;
  padding: 17px;
  color: var(--theme-muted, #716d61);
  background: #f4eee1;
  border: 1px dashed #cdbf9f;
  font-size: 9px;
  text-align: center;
}

.rank-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 11px;
}
.rank-role-card {
  min-width: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #d9cfbb;
  border-top: 4px solid #b6a477;
  box-shadow: 0 2px 6px rgb(45 39 27 / 7%);
}
.rank-role-card.is-top { border-top-color: #b88923; }
.rank-role-card.is-middle { border-top-color: #5e819c; }
.rank-role-card.is-bottom { border-top-color: #7b8d48; }
.rank-role-title {
  min-height: 54px;
  padding: 9px 11px 7px;
  background: #f3ecdf;
  border-bottom: 1px solid #ddd0b8;
}
.rank-role-title b,
.rank-role-title small { display: block; }
.rank-role-title b {
  color: var(--theme-text, #292d27);
  font-size: 16px;
}
.rank-role-title small {
  margin-top: 2px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  line-height: 1.4;
}
.rank-role-overall {
  display: grid;
  grid-template-columns: minmax(58px, auto) 1fr;
  align-items: end;
  gap: 1px 8px;
  padding: 10px 11px 9px;
}
.rank-role-overall small,
.rank-role-overall span { color: var(--theme-muted, #716d61); }
.rank-role-overall small {
  align-self: center;
  font-size: 8px;
  font-weight: 900;
}
.rank-role-overall strong {
  color: var(--theme-text, #292d27);
  font: 900 23px Arial, sans-serif;
  text-align: right;
}
.rank-role-card.is-positive .rank-role-overall strong { color: var(--theme-grass, #617c24); }
.rank-role-card.is-negative .rank-role-overall strong { color: var(--theme-clay, #b9472e); }
.rank-role-overall span {
  grid-column: 1 / -1;
  font-size: 7px;
  text-align: right;
}
.rank-role-terrain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #ddd2bd;
  border-top: 1px solid #ddd2bd;
}
.rank-role-terrain > span {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 5px;
  min-width: 0;
  padding: 8px 9px;
  background: var(--theme-paper, #fffaf0);
}
.rank-role-terrain small,
.rank-role-terrain em { color: var(--theme-muted, #716d61); }
.rank-role-terrain small { font-size: 7px; font-weight: 900; }
.rank-role-terrain b {
  color: var(--theme-text, #292d27);
  font: 900 15px Arial, sans-serif;
}
.rank-role-terrain em {
  grid-column: 1 / -1;
  font-size: 7px;
  font-style: normal;
  text-align: right;
}

.insight-condition-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
  padding: 10px;
}

.insight-condition-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  gap: 6px 8px;
  align-content: start;
  min-height: 158px;
  padding: 11px;
  background: rgb(255 255 255 / 66%);
  border: 1px solid #dfd3ba;
  border-top: 4px solid #9b9588;
}
.insight-condition-row.is-river { border-top-color: var(--theme-water-bright, #4c82be); }
.insight-condition-row.is-land { border-top-color: var(--theme-bronze, #b78a3e); }
.insight-condition-row.is-unknown { opacity: .7; }
.insight-condition-row.is-top,
.insight-condition-row.is-favored_050,
.insight-condition-row.is-favored_025 { border-top-color: var(--theme-grass-bright, #91aa37); }
.insight-condition-row.is-underdog_025,
.insight-condition-row.is-underdog_050 { border-top-color: var(--theme-clay, #b9472e); }
.insight-condition-row.has-is-positive {
  background: linear-gradient(145deg, rgb(245 250 226 / 92%), rgb(255 255 255 / 72%));
}
.insight-condition-row.has-is-negative {
  background: linear-gradient(145deg, rgb(255 242 234 / 92%), rgb(255 255 255 / 72%));
}
.insight-condition-name { min-width: 0; }
.insight-condition-name b {
  color: var(--theme-text, #292d27);
  font-size: 12px;
  line-height: 1.35;
}
.insight-condition-name > small {
  display: block;
  margin-top: 3px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  line-height: 1.45;
}
.sample-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 4px;
  color: #6e6657;
  background: #e8dfce;
  border-radius: 2px;
  font-size: 6px;
  font-weight: 900;
  vertical-align: 1px;
}
.sample-badge.is-strong { color: #405b1a; background: #dce7b9; }
.sample-badge.is-medium { color: #70521f; background: #efe0ad; }
.insight-rate {
  grid-column: 1 / -1;
  min-width: 0;
  text-align: left;
}
.insight-rate strong {
  color: var(--theme-text, #292d27);
  font: 900 25px Arial, sans-serif;
}
.insight-rate strong > small {
  display: inline-block;
  margin-right: 5px;
  color: var(--theme-muted, #716d61);
  font: 900 7px Arial, sans-serif;
  vertical-align: 4px;
}
.insight-rate em {
  display: inline-block;
  margin-left: 6px;
  color: #7a776f;
  font: 900 7px Arial, sans-serif;
  font-style: normal;
}
.insight-rate em.is-positive { color: #4f761f; }
.insight-rate em.is-negative { color: var(--theme-clay, #b9472e); }
.insight-rate i,
.insight-rate i span {
  display: block;
  height: 5px;
}
.insight-rate i {
  margin-top: 7px;
  overflow: hidden;
  background: #ddd1b8;
  border-radius: 5px;
}
.insight-rate i span {
  background: linear-gradient(90deg, var(--theme-water-bright, #4c82be), var(--theme-grass-bright, #91aa37));
  border-radius: inherit;
}
.insight-condition-meta {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-top: 7px;
  border-top: 1px solid #dfd3ba;
}
.insight-condition-meta b,
.insight-condition-meta span,
.insight-condition-meta small { display: inline; }
.insight-condition-meta b {
  color: var(--theme-text, #292d27);
  font-size: 9px;
}
.insight-condition-meta span,
.insight-condition-meta small {
  margin-top: 0;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}

.insight-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 11px;
  margin-top: 12px;
}

.score-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 12px;
  background: #ded1b7;
  gap: 1px;
}
.score-overview > span {
  min-width: 0;
  padding: 11px;
  background: var(--theme-paper, #fffaf0);
}
.score-overview small,
.score-overview strong { display: block; }
.score-overview small {
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  font-weight: 800;
}
.score-overview strong {
  margin-top: 5px;
  color: var(--theme-text, #292d27);
  font: 900 18px Arial, sans-serif;
}
.score-distribution {
  margin: 0 12px 12px;
  padding: 9px 10px 7px;
  background: #fffdf8;
  border: 1px solid #ddd0b5;
}
.score-distribution-head {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
}
.score-distribution-head > div:first-child small,
.score-distribution-head > div:first-child b { display: block; }
.score-distribution-head > div:first-child small {
  color: var(--theme-clay, #b9472e);
  font: 900 6px Arial, sans-serif;
  letter-spacing: .13em;
}
.score-distribution-head > div:first-child b {
  margin-top: 2px;
  color: var(--theme-text, #292d27);
  font-size: 12px;
}
.score-range-summary {
  display: grid;
  grid-template-columns: auto 12px auto 12px auto;
  align-items: center;
  gap: 3px;
}
.score-range-summary > span {
  min-width: 47px;
  padding: 4px 6px;
  text-align: center;
}
.score-range-summary > span small,
.score-range-summary > span b { display: block; }
.score-range-summary > span small {
  color: var(--theme-muted, #716d61);
  font-size: 6px;
  font-weight: 800;
}
.score-range-summary > span b {
  margin-top: 2px;
  color: var(--theme-text, #292d27);
  font: 900 10px Arial, sans-serif;
  white-space: nowrap;
}
.score-range-summary > span.is-average {
  background: #f2e7c9;
  border: 1px solid #d8bd72;
}
.score-range-summary > span.is-average small { color: #80621e; }
.score-range-summary > span.is-average b { color: #6a5018; font-size: 12px; }
.score-range-summary > i {
  color: #aaa08c;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}
.score-distribution-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27px, 1fr));
  gap: 3px;
  min-height: 118px;
  padding: 14px 4px 0;
  background:
    linear-gradient(to top, rgb(111 104 88 / 16%) 1px, transparent 1px) 0 0 / 100% 25%,
    #f6f1e7;
  border-bottom: 1px solid #bdb29d;
}
.score-distribution-bin {
  display: grid;
  grid-template-rows: 94px 16px;
  align-items: end;
  min-width: 0;
}
.score-distribution-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 94px;
}
.score-distribution-bar i {
  position: relative;
  width: min(72%, 30px);
  min-width: 9px;
  background: linear-gradient(180deg, #c95a38, #8d3d28);
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
}
.score-distribution-bar i b {
  position: absolute;
  top: -13px;
  left: 50%;
  color: #5e5a50;
  font: 900 8px Arial, sans-serif;
  transform: translateX(-50%);
}
.score-distribution-bin > small {
  overflow: hidden;
  padding-top: 3px;
  color: var(--theme-muted, #716d61);
  font: 900 8px Arial, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-distribution > p {
  margin: 5px 0 0;
  color: var(--theme-muted, #716d61);
  font-size: 6px;
  line-height: 1.4;
  text-align: right;
}
.score-distribution > p.score-distribution-empty {
  margin: 0;
  padding: 18px 10px;
  background: #f5efe3;
  border: 1px dashed #cdbf9f;
  font-size: 8px;
  text-align: center;
}
.score-component-list { padding: 0 13px 12px; }
.score-component-list > div {
  display: grid;
  grid-template-columns: 86px minmax(70px, 1fr) 108px;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #e1d5bd;
}
.score-component-list > div.is-total-score {
  margin: 0 -6px;
  padding: 9px 6px;
  background: #f5ecd7;
  border-top: 2px solid #b78a3e;
  border-bottom: 1px solid #d8c49a;
}
.score-component-list > div.is-total-score > span b,
.score-component-list > div.is-total-score > strong { color: #6d511f; }
.score-component-list > div.is-total-score > i em {
  background: linear-gradient(90deg, #d2ad4d, #9b6d25);
}
.score-component-list > div > span b,
.score-component-list > div > span small { display: block; }
.score-component-list > div > span b {
  color: var(--theme-text, #292d27);
  font-size: 9px;
}
.score-component-list > div > span small {
  margin-top: 2px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}
.score-component-list > div > i,
.score-component-list > div > i em {
  display: block;
  height: 7px;
}
.score-component-list > div > i {
  overflow: hidden;
  background: #ddd1b8;
  border-radius: 7px;
}
.score-component-list > div > i.score-component-range {
  position: relative;
  overflow: visible;
}
.score-component-list > div > i em {
  min-width: 2px;
  background: linear-gradient(90deg, var(--theme-bronze, #b78a3e), var(--theme-clay, #b9472e));
  border-radius: inherit;
}
.score-component-range > span {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 75%);
  transform: translateX(-50%);
  z-index: 2;
}
.score-component-range > span.is-minimum { background: #3f7596; }
.score-component-range > span.is-maximum { background: #9e3f2b; }
.score-component-list > div > strong {
  color: var(--theme-text, #292d27);
  font: 900 10px Arial, sans-serif;
  text-align: right;
}
.score-component-list > div > strong small {
  display: block;
  margin-top: 2px;
  color: var(--theme-muted, #716d61);
  font-size: 7px;
}
.score-component-list > div > strong small.score-component-extremes {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.score-component-extremes > span:first-child { color: #3f7596; }
.score-component-extremes > span:last-child { color: #9e3f2b; }

.insight-combination-list { padding: 4px 12px 9px; }
.insight-combination-list > a,
.insight-combination-list > div {
  display: grid;
  grid-template-columns: 27px minmax(70px, 1fr) minmax(85px, auto) 58px;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 7px 2px;
  color: var(--theme-text, #292d27);
  text-decoration: none;
  border-bottom: 1px solid #e0d4bd;
}
.insight-combination-list > :last-child { border-bottom: 0; }
.insight-combination-list > a:hover {
  background: rgb(228 235 200 / 47%);
}
.terrain-token {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  background: var(--theme-bronze, #b78a3e);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
}
.terrain-token.is-river { background: var(--theme-water, #255b9b); }
.insight-combination-list b {
  overflow: hidden;
  color: var(--theme-text, #292d27);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.insight-combination-list small {
  color: var(--theme-muted, #716d61);
  font-size: 7px;
  white-space: nowrap;
}
.insight-combination-list strong {
  color: var(--theme-text, #292d27);
  font: 900 11px Arial, sans-serif;
  text-align: right;
}
.insight-combination-list strong > small {
  display: block;
  margin-bottom: 1px;
  font-size: 6px;
}
.insight-combination-list em {
  color: #4f761f;
  font: 900 7px Arial, sans-serif;
  font-style: normal;
  text-align: right;
}
.insight-combination-list em.is-negative { color: var(--theme-clay, #b9472e); }

.frequent-player-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-color: #9f8c65 #eee5d3;
  scrollbar-width: thin;
}
.frequent-player-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--theme-text, #292d27);
  font-size: 12px;
}
.frequent-player-table th,
.frequent-player-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #dfd3bc;
  text-align: center;
  vertical-align: middle;
}
.frequent-player-table thead th {
  padding: 0;
  color: #f7f2e7;
  background: #3d463d;
  border-bottom: 2px solid #b78a3e;
}
.frequent-player-table thead th:first-child,
.frequent-player-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}
.frequent-player-table thead th:first-child { z-index: 2; }
.frequent-player-table thead button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 9px;
  color: inherit;
  background: transparent;
  border: 0;
  font: 900 11px "Yu Gothic UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.frequent-player-table thead button::after {
  content: "↕";
  color: #aeb6aa;
  font: 900 10px Arial, sans-serif;
}
.frequent-player-table thead th[aria-sort="ascending"] button,
.frequent-player-table thead th[aria-sort="descending"] button {
  color: #f3d36f;
  background: rgb(0 0 0 / 15%);
}
.frequent-player-table thead th[aria-sort="ascending"] button::after { content: "▲"; color: #f3d36f; }
.frequent-player-table thead th[aria-sort="descending"] button::after { content: "▼"; color: #f3d36f; }
.frequent-player-table tbody tr:nth-child(even) td,
.frequent-player-table tbody tr:nth-child(even) th { background: #f5efe2; }
.frequent-player-table tbody tr:nth-child(odd) td,
.frequent-player-table tbody tr:nth-child(odd) th { background: #fffaf0; }
.frequent-player-table tbody tr:hover td,
.frequent-player-table tbody tr:hover th { background: #eaf0d1; }
.frequent-player-table tbody tr:last-child td,
.frequent-player-table tbody tr:last-child th { border-bottom: 0; }
.frequent-player-person {
  min-width: 150px;
  max-width: 220px;
  text-align: left !important;
  box-shadow: 2px 0 0 rgb(170 151 114 / 22%);
}
.frequent-player-person a {
  display: block;
  overflow: hidden;
  color: #274f7b;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frequent-player-person a:hover { color: #8b441f; text-decoration: underline; }
.frequent-player-person small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--theme-muted, #716d61);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frequent-player-table td strong,
.frequent-player-table td small { display: block; }
.frequent-player-table td strong { font: 900 13px Arial, sans-serif; }
.frequent-player-table td small {
  margin-top: 2px;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
  white-space: nowrap;
}
.frequent-player-rank b {
  display: inline-grid;
  min-width: 38px;
  min-height: 27px;
  place-items: center;
  padding: 3px 7px;
  color: #202916;
  background: #dceaa3;
  border: 1px solid #aabc69;
  border-radius: 4px;
  font: 900 13px Arial, sans-serif;
}
.frequent-player-games { min-width: 125px; }
.frequent-player-games strong { color: #4f6e1f; font-size: 16px !important; }
.frequent-player-games small { line-height: 1.35; }
.frequent-player-rate { min-width: 92px; }
.frequent-relation-rate { min-width: 100px; }
.frequent-player-rate > strong,
.frequent-relation-rate > strong { font-size: 15px !important; }
.frequent-player-rate.is-positive > strong,
.frequent-relation-rate.is-positive > strong { color: #4b7420; }
.frequent-player-rate.is-negative > strong,
.frequent-relation-rate.is-negative > strong { color: #b24835; }
.frequent-player-rate.is-even > strong,
.frequent-relation-rate.is-even > strong { color: #8b762d; }
.frequent-player-rate.is-unknown > strong,
.frequent-relation-rate.is-unknown > strong { color: #837d72; }
.frequent-relation-rate > small {
  display: grid !important;
  gap: 2px;
  margin-top: 4px !important;
  color: #6f695e !important;
  font-size: 9px !important;
  line-height: 1.25;
}
.frequent-relation-rate > small > span { display: block; }
.frequent-player-last time { color: #625d54; font: 800 10px Arial, sans-serif; white-space: nowrap; }

.civilization-usage-list { padding: 6px 10px 10px; }
.civilization-usage-head,
.civilization-usage-row {
  display: grid;
  grid-template-columns: minmax(76px, 1.2fr) repeat(3, minmax(60px, 1fr));
  gap: 1px;
  align-items: stretch;
}
.civilization-usage-head {
  margin-bottom: 2px;
  color: #706958;
  background: #e5dbc5;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.civilization-usage-head span {
  padding: 6px 4px;
  border-right: 1px solid #d1c3a6;
}
.civilization-usage-head span:first-child { text-align: left; }
.civilization-usage-head span:last-child { border-right: 0; }
.civilization-usage-row {
  min-height: 58px;
  border-bottom: 1px solid #e0d4bd;
}
.civilization-usage-row:last-child { border-bottom: 0; }
.civilization-usage-name,
.civilization-usage-rate {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 7px 6px;
}
.civilization-usage-name {
  background: #fffdf8;
  border-left: 3px solid #b78a3e;
}
.civilization-usage-name b,
.civilization-usage-name small,
.civilization-usage-rate strong,
.civilization-usage-rate small { display: block; }
.civilization-usage-name b {
  overflow: hidden;
  color: var(--theme-text, #292d27);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.civilization-usage-name small {
  margin-top: 4px;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
}
.civilization-usage-rate {
  background: #f8f3e8;
  border-left: 1px solid #e2d6bd;
  text-align: center;
}
.civilization-usage-rate.is-river { background: rgb(225 240 246 / 72%); }
.civilization-usage-rate.is-land { background: rgb(244 235 210 / 78%); }
.civilization-usage-rate strong {
  color: #756b59;
  font: 900 16px Arial, sans-serif;
  white-space: nowrap;
}
.civilization-usage-rate.is-positive strong { color: #486c20; }
.civilization-usage-rate.is-negative strong { color: #a44736; }
.civilization-usage-rate small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-empty {
  margin: 0;
  padding: 24px 14px;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}
.insight-method-note {
  margin: 12px 0 0;
  padding: 10px 13px;
  color: var(--theme-muted, #716d61);
  background: rgb(255 255 255 / 49%);
  border: 1px dashed rgb(143 119 72 / 40%);
  font-size: 8px;
  line-height: 1.7;
}
.insight-method-note summary {
  color: var(--theme-text, #292d27);
  font-weight: 900;
  cursor: pointer;
}
.insight-method-note p { margin: 8px 0 0; }

@media (max-width: 1180px) {
  .comparison-relation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-recent-list { grid-template-columns: 1fr; }
  .insight-headline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-detail-grid { grid-template-columns: 1fr 1fr; }
  .score-profile-panel { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .stats-period-status {
    grid-template-columns: 1fr max-content;
    grid-template-rows: auto auto auto;
  }
  .stats-period-status__title {
    grid-row: 1;
    grid-column: 1;
    padding-right: 0;
    border-right: 0;
  }
  .stats-period-status__range {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .stats-period-status__help {
    grid-row: 3;
    grid-column: 1 / -1;
  }
  .stats-period-status .section-period-picker {
    grid-row: 1;
    grid-column: 2;
  }
  .user-page .player-insights-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }
  .player-insight-scope {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .player-insight-scope > p {
    max-width: none;
    text-align: left;
  }
  .player-compare-panel > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .player-compare-panel > header p {
    max-width: none;
    text-align: left;
  }
  .player-compare-form {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
  .player-compare-actions { grid-column: 1 / -1; }
  .comparison-terrain-grid { grid-template-columns: 1fr; }
  .insight-coverage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-condition-grid { grid-template-columns: 1fr; }
  .insight-headline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .user-page .player-insights-section {
    width: calc(100% + 20px);
    margin: 52px -10px 0;
    padding: 20px 10px;
  }
  .player-compare-form { grid-template-columns: 1fr; }
  .player-insight-scope > div {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-insight-scope > div > small { grid-column: 1 / -1; }
  .player-insight-scope a { justify-content: space-between; }
  .player-compare-actions { grid-column: auto; flex-wrap: wrap; }
  .player-compare-actions button { width: auto; flex: 1 1 170px; }
  .player-compare-count { grid-column: auto; }
  .player-comparison-results { padding: 9px; }
  .player-comparison-results > header,
  .comparison-subheading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .player-comparison-results > header > a { white-space: normal; }
  .comparison-relation-grid { grid-template-columns: 1fr; }
  .comparison-relation-grid > article { min-height: 0; }
  .comparison-terrain-grid > article {
    grid-template-columns: 68px repeat(2, minmax(0, 1fr));
  }
  .comparison-terrain-grid h5,
  .comparison-terrain-grid article > div { padding: 8px 6px; }
  .comparison-recent-list > a {
    grid-template-columns: 55px 55px 38px 24px minmax(75px, 1fr);
  }
  .comparison-recent-list em {
    grid-column: 2 / -1;
    grid-row: 2;
    text-align: left;
  }
  .insight-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-headline-grid,
  .insight-detail-grid { grid-template-columns: 1fr; }
  .score-profile-panel { grid-column: auto; }
  .insight-headline { min-height: 0; }
  .insight-condition-panel > header,
  .team-rank-summary-panel > header,
  .score-profile-panel > header,
  .insight-combination-panel > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .insight-condition-panel > header p,
  .team-rank-summary-panel > header p,
  .score-profile-panel > header p,
  .insight-combination-panel > header p {
    max-width: none;
    text-align: left;
  }
  .insight-condition-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-condition-row { min-height: 152px; padding: 9px; }
  .team-rank-summary-main {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
  .team-rank-summary-gap { grid-column: 1 / -1; }
  .team-rank-distribution { margin-inline: 8px; padding-inline: 7px; }
  .team-rank-distribution-chart { gap: 2px; padding-inline: 2px; }
  .rank-role-grid { grid-template-columns: 1fr; }
  .rank-role-title { min-height: 0; }
  .insight-rate strong { font-size: 21px; }
  .insight-combination-list > a,
  .insight-combination-list > div {
    grid-template-columns: 27px minmax(70px, 1fr) 48px 45px;
  }
  .insight-combination-list small {
    grid-column: 2 / -1;
    grid-row: 2;
  }
  .score-component-list > div {
    grid-template-columns: 75px minmax(60px, 1fr) 70px;
  }
  .score-distribution { margin-inline: 8px; padding-inline: 7px; }
  .score-distribution-chart { gap: 2px; padding-inline: 2px; }
}

@media (max-width: 430px) {
  .insight-condition-rows { grid-template-columns: 1fr; }
  .team-rank-summary-main strong { font-size: 21px; }
  .team-rank-summary-main strong > small { font-size: 9px; }
  .score-distribution-head { grid-template-columns: 1fr; }
  .score-range-summary { justify-content: stretch; }
}

/* User report navigation and shared statistics period */
.profile-page-layout {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}
.profile-content {
  min-width: 0;
}
.profile-content > section {
  scroll-margin-top: 94px;
}
.profile-index {
  position: sticky;
  top: 82px;
  z-index: 18;
  max-height: calc(100vh - 98px);
  overflow: auto;
  padding: 14px 12px 12px;
  color: var(--theme-text, #292d27);
  background:
    linear-gradient(145deg, rgb(255 253 244 / 96%), rgb(239 231 207 / 96%));
  border: 1px solid rgb(135 112 68 / 38%);
  border-top: 3px solid var(--theme-grass, #798e2c);
  box-shadow: 0 10px 24px rgb(43 36 23 / 12%);
  backdrop-filter: blur(7px);
}
.profile-index > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--theme-grass, #6d8124);
  font: 900 9px/1 Arial, sans-serif;
  letter-spacing: .18em;
}
.profile-index-user {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin: 0 0 9px;
  padding: 8px 9px;
  color: #f8f4e8;
  background: linear-gradient(110deg, #29473a, #20362e);
  border-left: 3px solid var(--theme-grass, #829928);
  text-decoration: none;
}
.profile-index-user small {
  overflow: hidden;
  color: rgb(244 239 216 / 65%);
  font: 900 7px/1.2 Arial, sans-serif;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-index-user b {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-index-user:hover,
.profile-index-user:focus-visible {
  color: #fff;
  background: linear-gradient(110deg, #355c4a, #29473a);
}
.profile-index nav {
  display: grid;
}
.profile-index nav a {
  position: relative;
  padding: 8px 5px 8px 12px;
  color: #4d5048;
  border-top: 1px solid rgb(116 103 73 / 16%);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}
.profile-index nav a::before {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b09349;
  content: "";
  transform: translateY(-50%);
}
.profile-index nav a:hover,
.profile-index nav a:focus-visible {
  color: #172b20;
  background: rgb(127 151 50 / 12%);
}
.profile-index-period {
  display: grid;
  gap: 5px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgb(116 103 73 / 24%);
}
.profile-index-period label {
  color: #777162;
  font-size: 9px;
  font-weight: 900;
}
.profile-index-period select,
.user-page .period-select {
  height: 32px;
  border: 1px solid rgb(112 97 64 / 36%);
  background: #fffdf5;
  color: #30342d;
  font-size: 10px;
  font-weight: 800;
}
.profile-index-period select {
  width: 100%;
  padding: 0 8px;
}
.section-period-note {
  margin: -14px 0 15px;
  color: var(--theme-muted, #716d61);
  font-size: 10px;
}
.section-period-note strong {
  color: var(--theme-grass, #66791f);
}

@media (max-width: 620px) {
  .stats-period-status {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px;
  }
  .stats-period-status__title,
  .stats-period-status__range,
  .stats-period-status__help,
  .stats-period-status .section-period-picker {
    grid-row: auto;
    grid-column: 1;
  }
  .stats-period-status__range {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .stats-period-status .section-period-picker {
    grid-template-columns: max-content minmax(0, 1fr);
  }
  .stats-period-status .section-period-picker .period-select {
    width: 100%;
  }
  .user-page .player-insights-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-period-picker {
    grid-template-columns: max-content max-content max-content;
  }
  .overall-summary .stat-title {
    grid-template-columns: max-content 1fr;
  }
  .overall-summary .section-period-picker {
    grid-column: 1 / -1;
  }
  .section-period-note {
    margin-top: -7px;
    line-height: 1.55;
  }
}

/* Ally/enemy compatibility: overall, river and land at one glance */
.compatibility-guide {
  margin: -14px 0 10px;
  color: var(--theme-muted, #716d61);
  font-size: 9px;
}
.compatibility-stats > div {
  min-width: 0;
}
.compatibility-table-wrap {
  overflow-x: auto;
  border: 1px solid rgb(126 108 70 / 22%);
  background: rgb(255 253 245 / 54%);
}
.compatibility-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}
.compatibility-table th:first-child {
  width: 31%;
}
.compatibility-table tbody th {
  padding: 9px 8px;
  text-align: left;
  white-space: nowrap;
}
.compatibility-table tbody th a {
  font-weight: 900;
}
.compatibility-cell {
  min-width: 92px;
  text-align: right;
}
.compatibility-cell strong,
.compatibility-cell small {
  display: block;
}
.compatibility-cell strong {
  color: #4d5048;
  font-size: 14px;
  line-height: 1.1;
}
.compatibility-cell small {
  margin-top: 3px;
  color: #817b6c;
  font-size: 8px;
  white-space: nowrap;
}
.compatibility-cell.is-positive {
  background: rgb(111 145 47 / 10%);
}
.compatibility-cell.is-positive strong {
  color: #45691b;
}
.compatibility-cell.is-negative {
  background: rgb(174 82 61 / 8%);
}
.compatibility-cell.is-negative strong {
  color: #a14334;
}
.compatibility-cell.is-even strong {
  color: #73642e;
}
.compatibility-cell.is-empty {
  color: #999487;
  background: rgb(97 93 82 / 4%);
}

@media (max-width: 1180px) {
  .profile-page-layout {
    display: block;
  }
  .profile-index {
    top: 62px;
    display: flex;
    align-items: center;
    max-height: none;
    margin: 8px 0 18px;
    padding: 7px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top-width: 2px;
  }
  .profile-index > strong {
    flex: 0 0 auto;
    margin: 0 9px 0 0;
  }
  .profile-index-user {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    width: min(142px, 25vw);
    margin: 0 8px 0 0;
    padding: 6px 9px;
    box-shadow: 8px 0 12px rgb(54 48 34 / 12%);
  }
  .profile-index nav {
    display: flex;
    flex: 1 0 auto;
  }
  .profile-index nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    border-top: 0;
    border-left: 1px solid rgb(116 103 73 / 16%);
  }
  .profile-index nav a::before {
    display: none;
  }
  .profile-index-period {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 0 0 0 10px;
    padding: 0 0 0 10px;
    border-top: 0;
    border-left: 1px solid rgb(116 103 73 / 24%);
  }
  .profile-index-period select {
    width: 82px;
  }
  .compatibility-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-index {
    top: 52px;
    width: calc(100% + 20px);
    margin-right: -10px;
    margin-left: -10px;
    border-right: 0;
    border-left: 0;
  }
  .profile-index > strong {
    display: none;
  }
  .profile-index-user {
    width: min(112px, 31vw);
    padding: 6px 8px;
  }
  .profile-index-user small {
    font-size: 6px;
  }
  .profile-index-user b {
    font-size: 10px;
  }
  .profile-index-period label {
    display: none;
  }
  .profile-index-period {
    margin-left: 5px;
    padding-left: 5px;
  }
  .compatibility-table {
    min-width: 440px;
  }
  .compatibility-cell {
    min-width: 82px;
  }
}

/* User page readability pass: labels stay secondary, but never microscopic. */
.insight-detail-grid > .score-profile-panel {
  order: 1;
  grid-column: span 2;
}
.insight-detail-grid > .civilization-usage-panel { order: 2; }
.insight-detail-grid > .frequent-players-panel {
  order: 3;
  grid-column: 1 / -1;
}
.stats-period-status__title small,
.stats-period-status__help,
.section-period-picker > span,
.section-period-picker > small,
.player-insight-scope > div > small,
.player-compare-panel > header small,
.player-comparison-results > header small,
.comparison-subheading small,
.player-compare-form label > span,
.player-compare-actions a,
.player-compare-count,
.comparison-relation-grid > article > small,
.comparison-pair-values > span small,
.comparison-subheading > p,
.comparison-terrain-grid article > div > small,
.comparison-terrain-grid article > div > p,
.comparison-terrain-note,
.insight-coverage small,
.insight-headline > small,
.insight-headline strong > small,
.insight-condition-panel > header small,
.team-rank-summary-panel > header small,
.score-profile-panel > header small,
.insight-combination-panel > header small,
.team-rank-summary-main small,
.team-rank-summary-main em,
.rank-role-title small,
.rank-role-overall small,
.rank-role-overall span,
.rank-role-terrain small,
.rank-role-terrain em,
.insight-condition-name > small,
.sample-badge,
.insight-rate strong > small,
.insight-rate em,
.insight-condition-meta span,
.insight-condition-meta small,
.score-overview small,
.score-distribution-head > div:first-child small,
.score-range-summary > span small,
.score-distribution-bar i b,
.score-distribution-bin > small,
.score-component-list > div > span small,
.score-component-list > div > strong small,
.profile-index-user small,
.compatibility-cell small {
  font-size: 9px;
}

.player-insight-scope > p,
.player-comparison-results > header p,
.comparison-relation-grid > article > p,
.insight-condition-panel > header p,
.team-rank-summary-panel > header p,
.score-profile-panel > header p,
.insight-combination-panel > header p,
.team-rank-distribution > p,
.team-rank-summary-panel > footer,
.score-distribution > p,
.insight-method-note,
.insight-method-note p,
.compatibility-guide {
  font-size: 9px;
  line-height: 1.55;
}

.insight-data-status summary,
.insight-method-note summary { font-size: 10px; }
.comparison-recent-list > a { font-size: 9px; }
.team-rank-distribution-head > div small,
.score-distribution-head > div:first-child small { font-size: 9px; }
.team-rank-distribution-bars i b,
.team-rank-distribution-bin > small,
.score-distribution-bar i b,
.score-distribution-bin > small { font-size: 9px; }
.score-component-list > div > span b { font-size: 10px; }
.score-component-list > div > strong { font-size: 11px; }
.insight-condition-meta b { font-size: 10px; }
.rank-role-terrain b { font-size: 17px; }
.compatibility-cell strong { font-size: 16px; }

/* Win rate is the primary number; game count and W-L stay supporting text. */
.user-page .current-rank-record > span:nth-child(4) strong { font-size: 25px; }
.user-page .period-grid > div > strong { font-size: 18px; }
.user-page .period-grid > div > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: inherit;
}
.user-page .period-grid > div > span small {
  color: var(--theme-muted, #716d61);
  font-size: 10px;
  font-weight: 800;
}
.user-page .period-grid > div > span em {
  color: var(--theme-grass, #617c24);
  font: 900 22px Arial, sans-serif;
  font-style: normal;
}
.user-page .overall-summary .metric-grid > div.is-win-rate strong { font-size: 27px; }
.user-page .rate-cell > b { font-size: 16px; }

/* Remaining profile sections and expanded game records. */
.user-page .profile-table th { font-size: 10px; }
.user-page .profile-table td { font-size: 12px; }
.user-page .recent-game { font-size: 12px; }
.user-page .recent-game > b,
.user-page .recent-team > small,
.user-page .recent-unknown-videos > small,
.user-page .recent-team-member-civ,
.user-page .member-rank,
.user-page .recent-video-user,
.user-page .recent-game-videos small,
.user-page .older-related-videos small { font-size: 9px; }
.user-page .game-media-user .game-media-heading b,
.user-page .game-media-user .game-media-data-preview,
.user-page .game-media-user .game-media-data-preview small,
.user-page .game-media-user .game-media-caption small,
.user-page .game-media-user .game-media-terrain > small,
.user-page .game-media-user .game-media-data-meta > b,
.user-page .game-media-user .game-media-roster summary { font-size: 9px; }
.user-page .profile-head .my-user-button > small,
.user-page .my-user-state,
.player-insight-scope a b,
.score-range-summary > i,
.score-distribution > p.score-distribution-empty { font-size: 9px; }

@media (max-width: 620px) {
  .profile-index-user small { font-size: 9px; }
  .user-page .current-rank-record > span:nth-child(4) strong { font-size: 21px; }
  .user-page .period-grid > div > span em { font-size: 20px; }
  .user-page .overall-summary .metric-grid > div.is-win-rate strong { font-size: 23px; }
}

@media (max-width: 1180px) {
  .insight-detail-grid > .score-profile-panel,
  .insight-detail-grid > .civilization-usage-panel,
  .insight-detail-grid > .frequent-players-panel { grid-column: 1 / -1; }
}

/* Win/loss timeline above the period summary cards. */
.outcome-timeline-panel {
  margin: 11px 0 10px;
  overflow: hidden;
  background: rgb(255 250 240 / 94%);
  border: 1px solid var(--theme-line, #cfbd99);
  border-top: 3px solid var(--theme-bronze, #b78a3e);
  box-shadow: 0 8px 20px rgb(54 45 28 / 10%);
}
.outcome-timeline-panel > header {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(150px, 1fr) auto auto minmax(130px, auto);
  gap: 10px;
  align-items: center;
  padding: 8px 11px;
  background: linear-gradient(115deg, #37433a, #4d5043);
  color: #fffaf0;
  border-bottom: 1px solid #846d3f;
}
.outcome-timeline-heading small,
.outcome-timeline-heading h3,
.outcome-timeline-heading span { display: block; }
.outcome-timeline-heading small {
  display: none;
  color: #edce72;
  font: 900 8px Arial, sans-serif;
  letter-spacing: .14em;
}
.user-page .outcome-timeline-heading h3 {
  margin: 0;
  color: #fffaf0;
  font-size: 17px;
}
.outcome-timeline-heading span {
  margin-top: 1px;
  color: #d6d7cc;
  font-size: 9px;
  font-weight: 800;
}
.outcome-timeline-legend {
  display: flex;
  gap: 5px;
  align-items: center;
}
.outcome-timeline-legend span {
  display: grid;
  min-width: 25px;
  height: 23px;
  place-items: center;
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
}
.outcome-timeline-legend .is-win { background: #68892e; }
.outcome-timeline-legend .is-loss { background: #bc4d38; }
.outcome-timeline-legend .is-net { background: #2d6c9c; }
.outcome-timeline-total {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid rgb(255 255 255 / 19%);
}
.outcome-timeline-total small,
.outcome-timeline-total strong,
.outcome-timeline-total span { display: block; }
.outcome-timeline-total small {
  display: none;
  color: #c8c8bb;
  font-size: 8px;
  font-weight: 800;
}
.outcome-timeline-total strong {
  margin-top: 0;
  color: #f2d776;
  font: 900 16px Arial, sans-serif;
}
.outcome-timeline-total span {
  margin-top: 0;
  color: #f3eee1;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.outcome-timeline-period {
  display: grid;
  gap: 3px;
}
.outcome-timeline-period > span {
  display: none;
  color: #d3d4c9;
  font-size: 8px;
  font-weight: 800;
}
.outcome-timeline-period .period-select {
  min-width: 126px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.outcome-timeline-scroll {
  max-width: 100%;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(246 239 224 / 88%));
  scrollbar-color: #9f8c65 #eee5d3;
  scrollbar-width: thin;
}
.outcome-chart-variant[hidden] { display: none; }
.outcome-chart-variant { min-width: 100%; }
.outcome-timeline-chart-wrap {
  position: relative;
  min-height: 214px;
  margin-inline: auto;
}
.outcome-timeline-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 214px;
}
.outcome-grid-line {
  stroke: #d7cbb3;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
.outcome-grid-line.is-half { opacity: .62; }
.outcome-zero-line {
  stroke: #756b56;
  stroke-width: 1.5;
}
.outcome-axis-label {
  fill: #746d60;
  font: 800 9px Arial, sans-serif;
  text-anchor: end;
}
.outcome-date-label {
  fill: #696358;
  font: 800 9px Arial, sans-serif;
}
.outcome-win-bar {
  fill: #739337;
  stroke: #587323;
  stroke-width: .7;
}
.outcome-loss-bar {
  fill: #c85b45;
  stroke: #a44030;
  stroke-width: .7;
}
.outcome-bar-count {
  font: 900 9px Arial, sans-serif;
  text-anchor: middle;
}
.outcome-bar-count.is-win { fill: #4e6f1c; }
.outcome-bar-count.is-loss { fill: #a33c2d; }
.outcome-net-line {
  fill: none;
  stroke: #24689d;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 85%));
  pointer-events: none;
}
.outcome-net-point {
  fill: #eaf3f8;
  stroke: #24689d;
  stroke-width: 2;
  pointer-events: none;
}
.outcome-history-bucket {
  cursor: help;
  outline: none;
}
.outcome-hit-area { fill: transparent; }
.outcome-history-bucket:hover .outcome-win-bar,
.outcome-history-bucket:focus .outcome-win-bar { fill: #91ad48; }
.outcome-history-bucket:hover .outcome-loss-bar,
.outcome-history-bucket:focus .outcome-loss-bar { fill: #df735c; }
.outcome-timeline-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  max-width: 240px;
  padding: 7px 9px;
  color: #fff;
  background: rgb(31 39 34 / 96%);
  border: 1px solid #a88b4d;
  box-shadow: 0 5px 16px rgb(30 25 16 / 24%);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}
.outcome-timeline-empty {
  margin: 0;
  padding: 35px 16px;
  color: var(--theme-muted, #716d61);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 760px) {
  .outcome-timeline-panel > header {
    grid-template-columns: minmax(125px, 1fr) auto;
    gap: 5px 9px;
  }
  .outcome-timeline-heading small { display: none; }
  .user-page .outcome-timeline-heading h3 { margin-top: 0; }
  .outcome-timeline-legend { justify-self: end; }
  .outcome-timeline-total {
    grid-column: 1;
    display: flex;
    gap: 7px;
    align-items: baseline;
    padding-left: 0;
    border-left: 0;
  }
  .outcome-timeline-total small { display: none; }
  .outcome-timeline-total strong,
  .outcome-timeline-total span { margin-top: 0; }
  .outcome-timeline-period {
    grid-column: 2;
    grid-row: 2;
  }
  .outcome-timeline-period > span { display: none; }
}

@media (max-width: 430px) {
  .outcome-timeline-panel {
    margin-right: -4px;
    margin-left: -4px;
  }
  .outcome-timeline-panel > header { padding: 7px 9px; }
  .outcome-timeline-heading span { display: none; }
  .outcome-timeline-legend span {
    min-width: 25px;
    height: 24px;
  }
  .outcome-timeline-period .period-select { min-width: 118px; }
}
