:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-strong: #121931;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-soft: rgba(30, 41, 59, 0.8);
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.16);
  --green: #22c55e;
  --yellow: #facc15;
  --red: #f87171;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.18), transparent 26%),
    linear-gradient(180deg, #11172b 0%, #0b1020 100%);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

.site-header {
  width: min(1120px, calc(100vw - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.site-brand-mark {
  display: grid;
  width: auto;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.48);
  border-radius: 6px;
  background: var(--accent-soft);
  color: #ddd6fe;
  font-size: 11px;
}

.site-nav,
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-footer-links a {
  color: #cbd5e1;
  font-size: 13px;
}

.site-nav a:hover,
.site-footer-links a:hover {
  color: #ffffff;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.initial-insights {
  display: grid;
  gap: 22px;
  margin-top: 16px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.initial-insights[hidden] {
  display: none;
}

.home-battle-card-section {
  display: grid;
  gap: 16px;
  min-height: 260px;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.home-battle-card-section[hidden] {
  display: none;
}

.home-battle-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.home-battle-card-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.home-battle-card-heading > p,
.home-battle-card-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-battle-card-content {
  display: grid;
  position: relative;
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.18);
}

.home-battle-card-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 18%;
  min-width: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

.home-battle-card-nav.is-previous {
  left: 0;
  padding-left: 16px;
  text-align: left;
}

.home-battle-card-nav.is-next {
  right: 0;
  padding-right: 16px;
  text-align: right;
}

.home-battle-card-content:hover .home-battle-card-nav:not(:disabled),
.home-battle-card-nav:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.home-battle-card-nav.is-previous:hover:not(:disabled) {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.58), transparent);
}

.home-battle-card-nav.is-next:hover:not(:disabled) {
  background: linear-gradient(270deg, rgba(2, 6, 23, 0.58), transparent);
}

.home-battle-card-nav:disabled {
  opacity: 0;
  cursor: default;
}

.home-battle-card-count {
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.home-battle-card-content > .duo-battle-card-panel {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

.initial-insights-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.initial-insights-heading h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.initial-insights-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-glossary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.metric-glossary > div {
  display: grid;
  gap: 5px;
  padding: 15px 12px;
  text-align: center;
}

.metric-glossary > div + div {
  border-left: 1px solid var(--line);
}

.metric-glossary dt {
  color: #c4b5fd;
  font-size: 17px;
  font-weight: 850;
}

.metric-glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.mode-result-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mode-result-guide > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.mode-result-guide strong {
  color: #e2e8f0;
  font-size: 12px;
}

.mode-result-guide span {
  color: var(--muted);
  font-size: 11px;
}

.service-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
  align-items: center;
  margin-top: 20px;
  padding: 28px 4px 8px;
  border-top: 1px solid var(--line);
}

.service-guide-copy h2 {
  margin: 5px 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.service-guide-copy p:last-child,
.site-footer-summary p,
.copyright-notice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.service-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.service-facts dt {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 800;
}

.service-facts dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
}

.site-footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  background: rgba(5, 9, 20, 0.58);
}

.site-footer-inner {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.2fr);
  gap: 18px 32px;
}

.site-footer-summary {
  display: grid;
  gap: 6px;
}

.site-footer-summary strong {
  font-size: 14px;
}

.site-footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.copyright-notice {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.hero,
.panel-stack,
.summary-card,
.match-card,
.team-card,
.empty-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  position: relative;
  z-index: 4;
  overflow: visible;
  gap: 22px;
  padding: 28px;
}

.site-notices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.site-notices[hidden] {
  display: none;
}

.site-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(13, 38, 43, 0.94);
}

.site-notice-dismiss {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  place-items: center;
}

.site-notice-dismiss:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-notice.is-warning {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(47, 40, 15, 0.94);
}

.site-notice.is-maintenance {
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(51, 23, 29, 0.95);
}

.site-notice-type {
  min-width: 38px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.site-notice.is-warning .site-notice-type {
  background: rgba(250, 204, 21, 0.14);
  color: #fde047;
}

.site-notice.is-maintenance .site-notice-type {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.site-notice-content {
  display: grid;
  gap: 4px;
}

.site-notice-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.site-notice-heading strong {
  font-size: 14px;
}

.site-notice-content p {
  color: #dbe5f3;
  font-size: 13px;
  line-height: 1.45;
}

.site-notice-schedule {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #f8fafc;
  font-size: 12px;
}

.site-notice-schedule strong {
  flex: 0 0 auto;
  color: #fca5a5;
  font-size: 11px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.hero-text,
.section-note,
.section-subtitle,
.summary-extra,
.detail-head p,
.detail-player-meta,
.match-time {
  color: var(--muted);
}

.hero-text {
  margin-top: 10px;
  max-width: 700px;
  line-height: 1.6;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.nickname-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px auto;
  gap: 8px;
}

.search-options {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-areas: "mode season";
  gap: 14px;
  align-items: start;
}

.search-options .mode-field {
  grid-area: mode;
}

.search-options .season-field {
  grid-area: season;
}

.search-options[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field > span {
  font-size: 13px;
  font-weight: 700;
  color: #dbe3f4;
}

.season-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
}

.season-dropdown {
  position: relative;
  min-width: 0;
}

.season-dropdown select {
  display: none;
}

.season-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.season-select-button:hover:not(:disabled),
.season-select-button[aria-expanded="true"] {
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(30, 41, 59, 0.82);
}

.season-select-button:disabled {
  cursor: not-allowed;
}

.season-select-value {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.season-select-value > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-tier-icon {
  display: inline-grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  overflow: hidden;
}

.season-select-tier,
.season-option-tier,
.season-tier-icon img {
  flex: 0 0 auto;
  display: block;
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  object-fit: contain !important;
}

.season-tier-divider {
  width: 1px;
  height: 21px;
  margin: 0 2px;
  background: rgba(148, 163, 184, 0.48);
}

.season-select-caret {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 2px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.season-select-button[aria-expanded="true"] .season-select-caret {
  transform: rotate(225deg) translate(-2px, -1px);
}

.season-select-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 260px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: #080d18;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.season-select-menu[hidden] {
  display: none;
}

.season-select-option {
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 42px !important;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.season-select-option:hover,
.season-select-option.is-selected {
  background: rgba(124, 58, 237, 0.18);
  color: #f8fafc;
}

.season-tier-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
  pointer-events: none;
}

.season-tier-entry {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.season-tier-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.season-tier-season {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.season-tier-group + .season-tier-group {
  padding-left: 6px;
  border-left: 1px solid rgba(148, 163, 184, 0.24);
}

.season-tier-entry img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.season-tier-state .season-tier-entry + .season-tier-entry {
  padding-left: 6px;
  border-left: 1px solid rgba(148, 163, 184, 0.24);
}

.refresh-history-button {
  min-height: 52px;
  align-self: stretch;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.74);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.refresh-history-button:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(76, 29, 149, 0.24);
  color: #f5f3ff;
}

.refresh-history-button.is-refresh-ready {
  border-color: rgba(52, 211, 153, 0.76);
  background: rgba(16, 185, 129, 0.16);
  color: #d1fae5;
}

.refresh-history-button.is-cache-stale {
  border-color: rgba(148, 163, 184, 0.48);
  background: rgba(51, 65, 85, 0.56);
  color: #cbd5e1;
}

.refresh-history-button.is-refresh-ready:hover:not(:disabled) {
  border-color: #6ee7b7;
  background: rgba(16, 185, 129, 0.25);
  color: #ecfdf5;
}

.refresh-history-button.is-cache-stale:hover:not(:disabled) {
  border-color: rgba(203, 213, 225, 0.7);
  background: rgba(71, 85, 105, 0.64);
  color: #f8fafc;
}

.refresh-history-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.season-availability-notice {
  margin: -1px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.season-control select:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.season-info {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  cursor: help;
  outline: none;
}

.season-info:focus-visible {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.season-tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 40px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111827;
  color: #e2e8f0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.season-info:hover .season-tooltip,
.season-info:focus .season-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

input,
select,
.search-button,
.mode-toggle {
  min-height: 52px;
  border-radius: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.frequent-nicknames,
.frequent-duos {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  max-height: 58px;
  overflow: hidden;
}

.frequent-duos {
  margin-top: 2px;
}

.frequent-nicknames.is-collapsed,
.frequent-duos.is-collapsed {
  max-height: 26px;
}

.frequent-nicknames[hidden],
.frequent-duos[hidden] {
  display: none;
}

.frequent-nicknames-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.frequent-history-toggle {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #7f8ca3;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}

.frequent-history-toggle:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #e2e8f0;
}

.frequent-nickname-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.56);
}

.frequent-duo-chip {
  max-width: 280px;
}

.frequent-nickname-search,
.frequent-nickname-remove {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.frequent-nickname-search {
  overflow: hidden;
  padding: 4px 5px 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequent-nickname-remove {
  flex: 0 0 23px;
  width: 23px;
  padding: 2px 6px 4px 4px;
  color: #7f8ca3;
  font-size: 14px;
  line-height: 1;
}

.frequent-nickname-chip:hover {
  border-color: rgba(167, 139, 250, 0.58);
}

.frequent-nickname-search:hover {
  color: #f5f3ff;
}

.admin-search-log-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.admin-search-log-control[hidden] {
  display: none;
}

.admin-search-log-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #a78bfa;
  cursor: pointer;
}

.frequent-nickname-remove:hover {
  color: #fca5a5;
}

.mode-toggle-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: stretch;
}

.mode-toggle {
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.5);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mode-toggle.is-active {
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.2);
  color: #f5f3ff;
}

.action-card {
  align-self: stretch;
  grid-template-rows: auto minmax(52px, auto) minmax(16px, auto);
}

.action-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.action-card-body-single {
  grid-template-columns: minmax(0, 1fr);
}

.search-limit-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.game-limit-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.game-limit-control > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.game-limit-control select {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.detail-tier-option {
  min-height: 52px;
  height: 52px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
}

.detail-option-list {
  min-height: 52px;
  height: 52px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
}

.detail-option-list .detail-tier-option {
  min-height: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}

.detail-tier-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #8b5cf6;
  min-height: auto;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  align-self: start;
}

.search-notice {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tier-option-field > .tier-option-notice {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.search-limit-messages {
  min-width: 0;
  display: grid;
  gap: 2px;
  grid-column: 2;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.search-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.status-message {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.status-message[data-type="error"] {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.status-message[data-type="loading"] {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.35);
}

.status-message[data-type="cancelled"] {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.search-progress-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-progress-spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(147, 197, 253, 0.28);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}

.search-progress-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.search-progress-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-progress-dots {
  display: inline-flex;
  gap: 3px;
}

.search-progress-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #93c5fd;
  animation: search-dot 1.1s ease-in-out infinite;
}

.search-progress-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.search-progress-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.search-progress-count {
  margin-left: auto;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.search-progress-eta {
  display: block;
  min-height: 15px;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 15px;
}

.search-progress-eta.is-busy {
  color: #fde68a;
}

.search-progress-track {
  display: block;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
}

.search-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  transition: width 0.35s ease;
}

@keyframes search-spin {
  to { transform: rotate(360deg); }
}

@keyframes search-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .search-progress-spinner,
  .search-progress-dots i,
  .detail-loading:not(.is-error)::before {
    animation: none;
  }
}

.panel-stack {
  margin-top: 18px;
  padding: 18px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.match-history-tools {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.duo-relation-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.58);
}

.duo-relation-filter button {
  min-width: 72px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.duo-relation-filter button span {
  margin-left: 3px;
  color: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.duo-relation-filter button.is-active {
  background: rgba(124, 58, 237, 0.24);
  color: #f5f3ff;
}

.duo-relation-filter button:hover:not(.is-active) {
  color: #e2e8f0;
}

.inline-header {
  margin-top: 18px;
}

.recent-games-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.recent-games-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.recent-game-character-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.recent-game-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.recent-game-filters .player-character-filter {
  max-width: 150px;
}

.recent-game-character-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.section-heading-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-subtitle {
  margin-top: 4px;
}

.summary-grid,
.player-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  padding: 14px;
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.summary-label-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.summary-card strong {
  display: block;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1;
}

.player-performance {
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.player-performance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.player-performance-head h3 {
  font-size: 14px;
}

.player-performance-scope {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.player-performance-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.performance-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.performance-visibility-toggle {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.performance-visibility-toggle:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: #f8fafc;
}

.player-performance.is-collapsed > :not(.player-performance-head),
.duo-performance.is-collapsed > :not(.duo-performance-head) {
  display: none !important;
}

.player-performance.is-collapsed .player-performance-head,
.duo-performance.is-collapsed .duo-performance-head {
  margin-bottom: 0;
}

.player-character-filter {
  width: auto;
  max-width: 180px;
  min-height: 30px;
  height: 30px;
  padding: 0 28px 0 10px;
  border-radius: 6px;
  font-size: 11px;
}

.player-performance-controls > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

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

.player-performance-item {
  --duo-stat-color: #22d3ee;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.32);
}

.player-performance-item dt {
  color: var(--muted);
  font-size: 11px;
}

.player-performance-item dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.player-death-areas {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.player-death-areas[hidden] {
  display: none;
}

.player-death-area-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.player-death-area-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.32);
}

.player-death-area-item strong {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-death-area-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.player-death-area-bar {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.player-death-area-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f87171;
}

.player-elimination-areas .player-death-area-bar i {
  background: #34d399;
}

.player-death-area-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.2);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.player-matchups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.player-matchups[hidden] {
  display: none;
}

.player-matchup-group {
  min-width: 0;
  padding: 0 14px;
}

.player-matchup-group:first-child {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.player-matchup-group:last-child {
  padding-right: 0;
}

.player-matchup-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.player-matchup-title h4 {
  font-size: 12px;
}

.player-matchup-title span {
  color: var(--muted);
  font-size: 10px;
}

.player-list-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.player-list-toggle {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.player-list-toggle:hover {
  border-color: rgba(147, 197, 253, 0.5);
  color: #f8fafc;
}

.player-list-toggle[hidden] {
  display: none;
}

.player-matchup-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.player-matchup-list.is-expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-matchup-list.is-expanded .player-matchup-item strong {
  white-space: normal;
}

.player-matchup-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.32);
}

.player-matchup-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 48px;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.2);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.player-matchup-item img,
.player-matchup-fallback {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
}

.player-matchup-fallback {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
}

.player-matchup-item > span:last-child {
  min-width: 0;
}

.player-matchup-item strong,
.player-matchup-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-matchup-item strong {
  font-size: 10px;
}

.player-matchup-item small {
  margin-top: 2px;
  overflow: visible;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-overflow: clip;
  white-space: nowrap;
}

.duo-performance {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.duo-performance-head,
.duo-performance-title,
.duo-stat-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.duo-performance-head {
  margin-bottom: 10px;
}

.duo-performance-head h3 {
  font-size: 14px;
}

.duo-performance-head span,
.duo-performance-title span {
  color: var(--muted);
  font-size: 11px;
}

.duo-performance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.duo-performance-column {
  --duo-stat-color: #a78bfa;
  padding: 4px 16px 2px;
}

.duo-performance-column.is-other-first {
  --duo-stat-color: #fbbf24;
}

.duo-performance-column.is-other-second {
  --duo-stat-color: #34d399;
}

.duo-performance-column + .duo-performance-column {
  border-left: 1px solid var(--line);
}

.duo-performance-column:first-child {
  padding-left: 0;
}

.duo-performance-column:last-child {
  padding-right: 0;
}

.duo-battle-card-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.duo-battle-card-head,
.duo-battle-card-actions,
.duo-battle-card-head-tools {
  display: flex;
  align-items: center;
}

.duo-battle-card-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}

.duo-battle-card-head h3 {
  margin: 2px 0 0;
  font-size: 15px;
}

.duo-battle-card-kicker {
  color: #22d3ee;
  font-size: 10px;
  font-weight: 850;
}

.duo-battle-card-actions {
  gap: 7px;
}

.duo-battle-card-head-tools {
  justify-content: flex-end;
  gap: 10px;
}

.duo-card-type-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
}

.duo-card-type-toggle button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.duo-card-type-toggle button.is-active {
  background: rgba(124, 58, 237, 0.24);
  color: #f5f3ff;
}

.duo-card-type-toggle button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.duo-battle-card-actions button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.duo-battle-card-actions button[data-battle-card-action="download"] {
  border-color: rgba(34, 211, 238, 0.42);
  color: #a5f3fc;
}

.duo-battle-card-actions button[data-battle-card-action="pin-home"] {
  border-color: rgba(250, 204, 21, 0.72);
  background: rgba(250, 204, 21, 0.14);
  color: #fef08a;
}

.duo-battle-card-actions button[data-battle-card-action="pin-home"]:hover:not(:disabled) {
  border-color: #fde047;
  background: rgba(250, 204, 21, 0.24);
  color: #fef9c3;
}

.duo-battle-card-actions button:hover:not(:disabled) {
  border-color: rgba(246, 196, 83, 0.7);
  color: #fde68a;
}

.duo-battle-card-actions button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.duo-battle-card-frame {
  width: 100%;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.42);
  border-radius: 8px;
  background: #060b15;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.duo-battle-card-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 5px;
  background: #07111f;
}

.duo-battle-card-note {
  margin: 8px 1px 0;
  color: var(--muted);
  font-size: 11px;
}

.duo-performance-title {
  margin-bottom: 8px;
}

.duo-performance-title strong {
  font-size: 13px;
}

.duo-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 0;
}

.duo-stat-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  min-height: 24px;
}

.duo-stat-list > .is-win-rate {
  grid-column: 2;
  grid-row: 2;
}

.duo-stat-list > .is-top-three-rate {
  grid-column: 2;
  grid-row: 3;
}

.duo-stat-list > .is-total-rp {
  grid-column: 1;
  grid-row: 4;
}

.duo-stat-list > .is-average-rp {
  grid-column: 1;
  grid-row: 5;
}

.duo-stat-list > .is-clutch-rate {
  grid-column: 2;
  grid-row: 4;
}

.duo-stat-list dt {
  color: var(--muted);
  font-size: 11px;
}

.duo-stat-list dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.duo-stat-meter {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
}

.duo-stat-meter i {
  position: relative;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--duo-stat-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--duo-stat-color) 58%, transparent);
  transition: width 300ms ease, background-color 180ms ease;
}

.duo-stat-meter i::after {
  position: absolute;
  top: 1px;
  right: 2px;
  bottom: 1px;
  width: 18%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.4);
  content: "";
}

.duo-dual-meter {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
}

.duo-dual-meter > span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}

.duo-dual-meter b {
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
}

.duo-dual-meter .duo-stat-meter {
  grid-column: auto;
}

.summary-extra {
  margin-top: 6px;
  line-height: 1.35;
  font-size: 12px;
}

.summary-character-list {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.summary-character-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 36px;
}

.summary-character-image,
.summary-character-fallback {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.summary-character-image {
  display: block;
  object-fit: cover;
}

.summary-character-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  overflow: hidden;
}

.summary-character-games,
.summary-character-empty {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.rank-card-body,
.dual-metric-card,
.detail-player-main,
.player-chip {
  display: flex;
  gap: 14px;
}

.rank-card-body {
  align-items: stretch;
}

.rank-copy,
.dual-metric-card > div,
.player-chip-copy {
  flex: 1;
}

.player-chip-copy {
  min-width: 0;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.rank-copy {
  padding-top: 6px;
}

.rank-title {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 800;
  line-height: 1.1;
}

.rank-score {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 39px);
}

.rank-previous-season {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.rank-season-source {
  margin-left: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.rank-season-source.is-current,
.detail-rank-source.is-current {
  border-color: rgba(34, 211, 238, 0.52);
  background: rgba(8, 145, 178, 0.16);
  color: #67e8f9;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.18);
}

.rank-season-source.is-current {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  border: 1px solid rgba(34, 211, 238, 0.52);
  border-radius: 3px;
  line-height: 1.2;
}

.rank-previous-season strong {
  font-size: 10px;
  font-weight: 700;
}

.rank-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex: 0 0 auto;
  align-self: flex-start;
}

.dual-metric-card {
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
}

.summary-rate-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-rate-pair .summary-label {
  margin-bottom: 6px;
}

.summary-rate-pair strong {
  font-size: clamp(18px, 1.8vw, 24px);
}

.summary-outcome-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.summary-outcome-card > .summary-rate-pair {
  flex: 1 1 0;
  min-height: 0;
}

.summary-outcome-card > .summary-frequent-characters {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.summary-frequent-characters {
  min-width: 0;
}

.summary-frequent-characters .summary-label {
  margin-bottom: 4px;
}

.summary-frequent-characters .summary-extra {
  margin-top: 0;
}

.summary-frequent-characters .summary-character-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}

.summary-frequent-characters .summary-character-item {
  min-width: 0;
}

.summary-frequent-characters .summary-character-image,
.summary-frequent-characters .summary-character-fallback {
  width: min(100%, 36px);
  height: auto;
  aspect-ratio: 1;
}

.summary-mobile-quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.summary-mobile-quick-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.summary-mobile-quick-stats span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.summary-mobile-quick-stats strong {
  font-size: 14px;
  white-space: nowrap;
}

.player-summary-grid .summary-core-metrics {
  display: none;
}

@media (min-width: 981px) {
  .player-summary-grid .rank-card {
    grid-column: span 2;
  }

  .player-summary-grid > .dual-metric-card:not(.summary-core-metrics) {
    grid-column: span 2;
  }
}

.match-list {
  display: grid;
  gap: 10px;
}

.result-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 2px;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-arrow,
.pagination-page {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pagination-arrow {
  font-size: 22px;
  line-height: 1;
}

.pagination-page.is-active {
  border-color: rgba(167, 139, 250, 0.72);
  background: rgba(124, 58, 237, 0.24);
  color: #f5f3ff;
}

.pagination-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.match-card,
.empty-card {
  padding: 14px;
}

.match-card {
  cursor: pointer;
}

.match-card.is-same-team-match {
  background: rgba(15, 23, 42, 0.92);
}

.match-card.is-same-team-match .player-chip {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(91, 33, 182, 0.3);
}

.match-card.is-opponent-match {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(96, 165, 250, 0.24);
}

.match-card-header,
.match-title-row,
.match-card-actions,
.detail-head,
.team-card-head,
.detail-player-top,
.stat-bar-row {
  display: flex;
  align-items: center;
}

.match-card-header,
.detail-head,
.team-card-head {
  justify-content: space-between;
  gap: 12px;
}

.match-title-row {
  gap: 8px;
  margin-bottom: 0;
}

.match-card h3,
.detail-head h4,
.team-card-head strong {
  font-size: 15px;
  line-height: 1.15;
}

.mode-pill,
.placement-badge,
.rp-pill,
.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.mode-pill {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.placement-badge {
  background: rgba(148, 163, 184, 0.16);
}

.placement-badge.is-win {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.placement-badge.is-top {
  background: rgba(250, 204, 21, 0.18);
  color: #fde68a;
}

.placement-badge.is-loss {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.rp-pill {
  background: rgba(124, 58, 237, 0.18);
  color: #ddd6fe;
}

.detail-button {
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.5);
  color: var(--text);
  cursor: pointer;
}

.match-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.match-player-list.single {
  grid-template-columns: 1fr;
}

.player-chip {
  min-height: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.56);
  border: 1px solid transparent;
  align-items: center;
}

.detail-player.is-highlighted {
  border-color: rgba(167, 139, 250, 0.58);
  background: rgba(124, 58, 237, 0.12);
}

.player-chip.is-opponent-a {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.34);
}

.player-chip.is-opponent-b {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.34);
}

.player-chip img,
.detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.player-chip-top,
.detail-player-top {
  justify-content: space-between;
  gap: 8px;
}

.player-chip-top {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-direction: row;
  gap: 6px;
  min-width: 0;
}

.player-name,
.detail-player-link {
  font-weight: 800;
  font-size: 13px;
}

.player-chip .player-name {
  font-size: 12px;
}

.player-character {
  color: var(--muted);
  font-size: 12px;
}

.player-chip .player-character {
  font-size: 11px;
}

.player-chip-stats {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

.player-chip-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.stat-part {
  white-space: nowrap;
}

.stat-label {
  color: #94a3b8;
  font-weight: 800;
}

.stat-part.is-terminate .stat-label,
.stat-part.is-clutch .stat-label {
  color: inherit;
}

.stat-part.is-terminate {
  color: #93c5fd;
}

.stat-part.is-clutch {
  color: #86efac;
}

.stat-sep {
  display: inline-block;
  margin: 0 5px;
  color: rgba(148, 163, 184, 0.6);
}

.player-chip-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-left: auto;
  text-align: right;
  flex: 0 0 auto;
}

.player-chip-rank-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.player-chip-rank {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.player-chip-escape {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.player-chip-escape.is-escape-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.16);
}

.player-chip-escape.is-escape-fail {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

.player-chip-rp {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.player-chip-rp.is-positive {
  color: #86efac;
}

.player-chip-rp.is-negative {
  color: #fca5a5;
}

.player-chip-rp.is-neutral {
  color: #cbd5e1;
}

.player-chip-tier,
.player-chip-current-rp {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
}

.player-chip-result {
  display: grid;
  justify-items: end;
  gap: 5px;
}

@media (min-width: 721px) {
  #matches-section .player-chip-side {
    display: grid;
    justify-items: end;
    gap: 3px;
  }

  #matches-section .player-chip-side .player-chip-result,
  #player-games .player-chip-side .player-chip-result {
    order: -1;
  }

  #player-games .player-chip-side {
    display: grid;
    justify-items: end;
    gap: 3px;
  }

  .summary-rate-pair .summary-label {
    font-size: 13px;
  }

  .summary-rate-pair strong {
    font-size: 25px;
  }

  .player-chip {
    min-height: 60px;
    padding: 9px 12px;
    position: relative;
    gap: 8px;
  }

  .player-chip-copy {
    min-height: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .player-chip-metrics {
    top: 50%;
    justify-content: center;
    transform: translate(-50%, -50%);
  }

  #player-games .player-chip .player-name,
  #matches-section .player-chip .player-name {
    font-size: 13px;
  }

  #player-games .player-chip-stats,
  #matches-section .player-chip-stats {
    margin-top: 0;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }

  .player-chip-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  #player-games .player-chip-rank,
  #matches-section .player-chip-rank {
    font-size: 13px;
  }

  #player-games .player-chip-rp,
  #matches-section .player-chip-rp {
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
}

.player-chip-rank.is-win {
  color: #86efac;
}

.player-name.is-win {
  color: #86efac;
}

.player-chip-rank.is-top {
  color: #fde68a;
}

.player-name.is-top {
  color: #fde68a;
}

.player-chip-rank.is-loss {
  color: #fca5a5;
}

.player-name.is-loss {
  color: #fca5a5;
}

/* Keep long names from colliding with the centered match metrics. */
.match-player-list .player-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(112px, 0.68fr) max-content;
  align-items: center;
  position: relative;
  min-width: 0;
  min-height: 68px;
}

.match-player-list .player-chip-copy {
  display: contents;
}

.match-player-list .player-chip-top {
  position: absolute;
  top: 50%;
  left: 62px;
  right: calc(50% + 158px);
  min-width: 0;
  overflow: visible;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2px;
  line-height: 1.15;
}

.match-player-list .player-chip-top > * {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.match-player-list .player-chip-metrics {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(300px, 46%);
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  justify-self: center;
  transform: translate(-50%, -50%);
  white-space: normal;
  overflow: visible;
}

.match-player-list .player-chip-stats {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.25;
  text-align: center;
}

.match-player-list .stat-sep {
  margin-inline: 3px;
}

.stat-damage-group {
  white-space: nowrap;
}

.match-player-list .player-chip.is-damage-stacked .player-chip-top {
  right: calc(50% + 118px);
}

.match-player-list .player-chip.is-damage-stacked .player-chip-metrics {
  width: min(220px, 34%);
}

.match-player-list .player-chip.is-damage-stacked .stat-damage-group {
  display: block;
  margin-top: 2px;
}

.match-player-list .player-chip.is-damage-stacked .stat-damage-group .stat-sep {
  display: none;
}

.match-player-list .player-chip.is-damage-stacked .player-chip-stats {
  white-space: normal;
}

.match-player-list .player-chip-side {
  grid-column: 4;
  min-width: max-content;
}

@media (max-width: 720px) {
  .match-player-list .player-chip {
    display: block;
    min-height: 68px;
    padding: 8px 10px;
  }

  .match-player-list .player-chip > img {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  .match-player-list .player-chip-top {
    position: absolute;
    top: 10px;
    right: 74px;
    left: 62px;
    transform: none;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .match-player-list .player-chip-side {
    position: absolute;
    top: 8px;
    right: 10px;
  }

  .match-player-list .player-chip-metrics {
    position: absolute;
    top: 23px;
    right: 10px;
    left: 62px;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    justify-self: stretch;
    transform: none;
  }

  .match-player-list .player-chip-stats {
    width: 100%;
    white-space: normal;
    text-align: left;
  }

  .match-player-list .player-chip.is-damage-stacked .player-chip-metrics {
    width: auto;
  }

  .match-player-list .stat-damage-group {
    display: block;
    margin-top: 2px;
  }

  .match-player-list .stat-damage-group .stat-sep {
    display: none;
  }
}

.detail-slot {
  margin-top: 10px;
  min-width: 0;
}

.detail-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.detail-loading:not(.is-error)::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(147, 197, 253, 0.24);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}

.detail-loading.is-error {
  color: #fecaca;
}

.detail-panel {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
}

.detail-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  gap: 6px;
  margin-top: 8px;
}

.detail-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.detail-title-row h4 {
  margin: 0;
}

.detail-game-id {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.team-card {
  min-width: 0;
  padding: 6px 8px;
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.detail-team-placement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-team-placement.is-win {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.detail-team-placement.is-top {
  background: rgba(234, 179, 8, 0.14);
  color: #fde047;
}

.detail-team-placement.is-loss {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}

.team-player-list {
  display: grid;
  min-width: 0;
  gap: 4px;
  margin-top: 0;
}

.detail-premade-notice {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-player {
  display: block;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.detail-player:hover {
  background: rgba(51, 65, 85, 0.62);
}

.detail-player-copy {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.detail-player-top {
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
}

.detail-player-identity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.detail-premade {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.detail-premade svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-premade.premade-group-2 {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.detail-premade.premade-group-3 {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
}

.detail-player-main {
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  position: relative;
}

.detail-player-side {
  margin-left: auto;
  flex: 0 0 184px;
  width: 184px;
  min-width: 184px;
  max-width: 184px;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 6px;
}

.detail-player-side-top {
  display: grid;
  gap: 2px;
  width: 100%;
}

.detail-side-character-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 8px;
  width: 100%;
}

.detail-copy-character {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-side-rp {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-player-meta {
  font-size: 11px;
  line-height: 1.2;
}

.detail-player-combat {
  position: static;
  transform: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-rank-score {
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-rank-tier {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-rank-source {
  padding: 1px 4px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.detail-rank-meta {
  grid-column: 2;
  justify-self: end;
  color: #ddd6fe;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  word-break: keep-all;
  line-height: 1.2;
}

.stat-bar-block {
  display: grid;
  gap: 3px;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stat-bar-row > span {
  color: var(--muted);
  font-size: 11px;
}

.stat-bar-row > strong {
  font-size: 12px;
  color: #cbd5e1;
  justify-self: end;
}

.stat-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.14);
}

@media (max-width: 720px) {
  .summary-outcome-card {
    gap: 12px;
  }

  .summary-outcome-card > .summary-rate-pair,
  .summary-outcome-card > .summary-frequent-characters {
    flex: 0 0 auto;
    min-height: auto;
  }

  .summary-outcome-card > .summary-frequent-characters {
    justify-content: flex-start;
  }

  .summary-rate-pair .summary-label {
    font-size: 12px;
  }

  .summary-rate-pair strong {
    font-size: 21px;
  }

  .player-chip-side .player-chip-result {
    order: -1;
  }

  .nickname-search-row:has(.refresh-history-button:not([hidden])) {
    grid-template-columns: minmax(72px, 1fr) 66px auto;
    gap: 4px;
  }

  .nickname-search-row:has(.refresh-history-button:not([hidden])) .search-button {
    gap: 4px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .nickname-search-row:has(.refresh-history-button:not([hidden])) .search-button svg {
    width: 15px;
    height: 15px;
  }

  .nickname-search-row:has(.refresh-history-button:not([hidden])) .refresh-history-button {
    padding-inline: 8px;
    font-size: 11px;
  }

  .search-limit-row {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .search-limit-messages {
    grid-column: 1 / -1;
  }

  .site-header {
    width: min(100vw - 20px, 1120px);
    min-height: 56px;
    gap: 12px;
  }

  .site-brand > span:last-child {
    display: none;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .service-guide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-inline: 0;
  }

  .initial-insights {
    padding: 18px 16px;
  }

  .initial-insights-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .metric-glossary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-glossary > div:nth-child(4) {
    border-left: 0;
  }

  .metric-glossary > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .mode-result-guide {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .site-footer-inner {
    width: min(100vw - 20px, 1120px);
    grid-template-columns: 1fr;
  }

  .site-footer-links {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .copyright-notice {
    grid-column: auto;
  }

  .detail-panel {
    padding: 8px;
  }

  .team-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .detail-player {
    padding: 6px;
  }

  .detail-player-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 6px 8px;
  }

  .detail-avatar {
    grid-column: 1;
    grid-row: 1;
  }

  .detail-player-copy {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
  }

  .detail-player-top {
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
  }

  .detail-copy-character {
    margin: 0;
    text-align: right;
  }

  .detail-player-combat {
    position: static;
    transform: none;
    margin-top: 0;
    white-space: normal;
  }

  .detail-player-side {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    align-self: auto;
  }

  .detail-side-character-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3px 8px;
  }

  .detail-side-rp {
    flex: 0 0 auto;
  }

  .detail-rank-meta {
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
  }
}

.detail-head h4 {
  font-size: 14px;
}

.detail-head p {
  font-size: 11px;
}

.stat-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

@media (max-width: 980px) {
  .search-panel,
  .summary-grid,
  .player-summary-grid,
  .match-player-list {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .action-card-body {
    grid-template-columns: 1fr;
  }

  .player-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo-stat-list {
    grid-template-columns: 1fr;
  }

  .duo-stat-list > .is-win-rate,
  .duo-stat-list > .is-top-three-rate,
  .duo-stat-list > .is-total-rp,
  .duo-stat-list > .is-average-rp,
  .duo-stat-list > .is-clutch-rate {
    grid-column: auto;
    grid-row: auto;
  }

}

@media (min-width: 721px) and (max-width: 900px) {
  #matches-section .match-player-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .duo-battle-card-canvas {
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {

  .home-battle-card-section {
    min-height: 220px;
    padding: 18px 16px;
  }

  .home-battle-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .home-battle-card-nav {
    width: 22%;
    min-width: 46px;
    font-size: 18px;
  }

  .duo-battle-card-head {
    align-items: end;
    flex-wrap: wrap;
  }

  .duo-battle-card-head-tools {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .duo-card-type-toggle button {
    min-height: 27px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .duo-battle-card-actions button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .duo-battle-card-frame {
    padding: 4px;
  }

  .player-performance-head {
    flex-wrap: wrap;
  }

  .player-performance-controls {
    width: 100%;
    justify-content: space-between;
  }

  .player-character-filter {
    max-width: min(190px, 60vw);
  }

  .page {
    width: min(100vw - 20px, 1120px);
    padding-top: 18px;
  }

  .hero,
  .panel-stack,
  .match-card,
  .empty-card {
    padding: 16px;
  }

  .search-panel,
  .search-options,
  .summary-grid,
  .player-summary-grid,
  .match-player-list,
  .detail-team-grid {
    grid-template-columns: 1fr;
  }

  .search-options {
    grid-template-areas: "mode" "season";
  }

  .duo-performance-grid,
  .duo-stat-list {
    grid-template-columns: 1fr;
  }

  .duo-performance-column {
    padding: 10px 0;
  }

  .duo-performance-column + .duo-performance-column {
    border-left: 0;
  }

  .duo-performance-column:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .player-matchups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .player-matchup-group {
    padding: 0;
  }

  .player-matchup-group:first-child {
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .player-matchup-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-death-area-list {
    grid-template-columns: 1fr;
  }

  .section-header,
  .section-heading-line,
  .rank-card-body,
  .detail-head,
  .detail-player-top,
  .player-chip-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-chip-metrics {
    position: static;
    transform: none;
    justify-content: flex-start;
  }

  .player-chip-top {
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
  }

  .detail-player-top {
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
  }

  .match-card-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .match-card-header > div:first-child {
    min-width: 0;
  }

  .match-card-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .match-title-row {
    min-width: 0;
    gap: 6px;
  }

  .match-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rank-image {
    width: 96px;
    height: 96px;
  }

  .player-summary-grid .rank-card {
    padding: 10px;
  }

  .player-summary-grid .rank-card-body {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .player-summary-grid .rank-copy {
    padding-top: 0;
  }

  .player-summary-grid .rank-title {
    font-size: 15px;
  }

  .player-summary-grid .rank-score {
    font-size: 25px;
  }

  .player-summary-grid .rank-image {
    width: 72px;
    height: 72px;
  }

  .summary-mobile-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
  }

  .summary-mobile-quick-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
  }

  .summary-mobile-quick-stats span {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
  }

  .summary-mobile-quick-stats strong {
    font-size: 12px;
    white-space: nowrap;
  }

  .recent-game-character-control {
    width: 100%;
    justify-content: space-between;
  }

  .recent-game-filters {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .match-history-tools {
    width: 100%;
    justify-items: stretch;
  }

  .duo-relation-filter {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .duo-relation-filter button {
    min-width: 0;
  }
}
