:root {
  color-scheme: dark;
  --bg: #090b11;
  --bg-raised: #10131c;
  --surface: rgba(21, 25, 36, 0.94);
  --surface-strong: #181d2a;
  --surface-hover: #202738;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f8fb;
  --text-muted: #9ca5b8;
  --text-faint: #6f788a;
  --accent: #8b7cff;
  --accent-bright: #b1a7ff;
  --accent-soft: rgba(139, 124, 255, 0.16);
  --green: #65d8a4;
  --yellow: #f2ce6c;
  --red: #ff818f;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --content-width: 1160px;
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113, 99, 224, 0.2), transparent 34rem),
    radial-gradient(circle at 90% 15%, rgba(78, 157, 216, 0.1), transparent 25rem),
    var(--bg);
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 80%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: progress;
}

.site-shell {
  width: min(100% - 40px, var(--content-width));
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand__logo-wrap {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(139, 124, 255, 0.48), rgba(43, 49, 72, 0.9));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.brand__copy span {
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: 160ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

main {
  padding: 54px 0 42px;
}

.hero-panel,
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.hero-panel__copy,
.page-intro {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.hero-panel h1,
.page-intro h1 {
  margin: 0;
  font-size: clamp(35px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.08;
}

.hero-panel__description,
.page-intro > p {
  max-width: 620px;
  margin: 15px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-panel__actions {
  flex: 0 0 auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(27, 32, 46, 0.9), rgba(14, 17, 25, 0.93));
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: 160ms ease;
}

.button--primary {
  border-color: rgba(176, 167, 255, 0.85);
  color: #141124;
  background: linear-gradient(135deg, #c2b9ff, #8778fa);
  box-shadow: 0 9px 24px rgba(108, 93, 218, 0.28);
}

.button--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button--secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.button--secondary:hover {
  border-color: rgba(177, 167, 255, 0.62);
  background: var(--accent-soft);
}

.button.is-busy .button__refresh-icon {
  animation: spin 0.8s linear infinite;
}

.button__refresh-icon {
  font-size: 19px;
  line-height: 1;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.search-panel--wide {
  margin-bottom: 40px;
}

.search-panel__copy h2,
.section-heading h2,
.info-card h2,
.player-query-heading h2,
.stats-panel h3,
.previous-season-panel h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.search-panel__copy p:not(.section-kicker) {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.search-form {
  width: min(100%, 510px);
}

.search-form__field {
  display: flex;
  min-width: min(100%, 360px);
  gap: 8px;
}

.search-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(4, 6, 10, 0.4);
  transition: 160ms ease;
}

.search-form input::placeholder {
  color: #7c8493;
}

.search-form input:focus {
  border-color: rgba(177, 167, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.14);
}

.search-form__message {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 48px;
}

.summary-card {
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 28, 0.68);
}

.summary-card__label {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.summary-card__value {
  display: inline-block;
  margin-top: 11px;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.065em;
}

.summary-card__suffix {
  margin-left: 4px;
  color: var(--text-faint);
  font-size: 13px;
}

.ranking-section {
  margin-bottom: 28px;
}

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

.refresh-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(101, 216, 164, 0.1);
}

.status-dot--live {
  background: var(--yellow);
  animation: pulse 1.2s ease-in-out infinite;
}

.status-dot--muted {
  background: var(--text-faint);
  box-shadow: none;
}

.status-dot--error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 129, 143, 0.1);
}

.ranking-card {
  overflow: hidden;
}

.ranking-table-heading,
.ranking-row,
.ranking-skeleton {
  display: grid;
  grid-template-columns: 72px minmax(240px, 2fr) minmax(165px, 1.1fr) minmax(116px, 0.7fr) minmax(235px, 1.5fr);
  align-items: center;
  gap: 14px;
}

.ranking-table-heading {
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-faint);
  background: rgba(0, 0, 0, 0.15);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.ranking-table-heading span:nth-child(4),
.ranking-table-heading span:nth-child(5) {
  text-align: right;
}

.ranking-list {
  min-height: 130px;
}

.ranking-row {
  min-height: 84px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  transition: 150ms ease;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:hover {
  background: linear-gradient(90deg, rgba(139, 124, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.rank-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 900;
}

.rank-number--top-1,
.rank-number--top-2,
.rank-number--top-3 {
  color: #1d1600;
}

.rank-number--top-1 {
  background: linear-gradient(145deg, #ffe68d, #d9a51c);
}

.rank-number--top-2 {
  background: linear-gradient(145deg, #e5edf6, #8b9cac);
}

.rank-number--top-3 {
  background: linear-gradient(145deg, #efbd95, #a85e31);
}

.ranking-player,
.ranking-tier {
  display: flex;
  min-width: 0;
  align-items: center;
}

.ranking-player {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.ranking-player__name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player__sub {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-player-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid rgba(177, 167, 255, 0.5);
  border-radius: 99px;
  color: #d8d2ff;
  background: rgba(139, 124, 255, 0.14);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.fixed-player-badge--large {
  min-height: 22px;
  font-size: 11px;
}

.ranking-tier {
  gap: 9px;
}

.tier-frame {
  display: grid;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
}

.tier-frame--master {
  border-color: rgba(255, 156, 222, 0.58);
  background: rgba(234, 93, 181, 0.15);
}

.tier-frame--diamond {
  border-color: rgba(106, 210, 255, 0.58);
  background: rgba(49, 153, 218, 0.13);
}

.tier-frame--platinum {
  border-color: rgba(122, 246, 221, 0.5);
  background: rgba(29, 169, 150, 0.12);
}

.tier-frame--gold {
  border-color: rgba(255, 210, 100, 0.56);
  background: rgba(190, 132, 18, 0.13);
}

.tier-frame--silver {
  border-color: rgba(212, 224, 238, 0.46);
  background: rgba(130, 153, 178, 0.13);
}

.tier-frame--bronze {
  border-color: rgba(218, 147, 102, 0.56);
  background: rgba(154, 80, 39, 0.14);
}

.tier-frame--temporary,
.tier-frame--unranked {
  border-color: rgba(166, 173, 188, 0.36);
  background: rgba(113, 122, 142, 0.12);
}

.ranking-tier__icon {
  width: 36px;
  height: 36px;
}

.tier-icon {
  display: block;
  object-fit: contain;
}

.tier-icon--small {
  width: 31px;
  height: 31px;
}

.tier-icon--normal {
  width: 32px;
  height: 32px;
}

.tier-icon--large {
  width: 92px;
  height: 92px;
}

.tier-icon--previous {
  width: 43px;
  height: 43px;
}

.tier-fallback {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 900;
}

.tier-fallback--small {
  width: 31px;
  height: 31px;
  font-size: 14px;
}

.tier-fallback--normal {
  width: 32px;
  height: 32px;
}

.tier-fallback--large {
  width: 92px;
  height: 92px;
  font-size: 32px;
}

.tier-fallback--previous {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.tier-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tier-badge--compact {
  min-height: 22px;
  font-size: 10px;
}

.tier-badge--master {
  border-color: rgba(255, 156, 222, 0.5);
  color: #ffc2e9;
  background: rgba(234, 93, 181, 0.12);
}

.tier-badge--diamond {
  border-color: rgba(106, 210, 255, 0.52);
  color: #acdcff;
  background: rgba(49, 153, 218, 0.12);
}

.tier-badge--platinum {
  border-color: rgba(122, 246, 221, 0.48);
  color: #a4f4e2;
  background: rgba(29, 169, 150, 0.12);
}

.tier-badge--gold {
  border-color: rgba(255, 210, 100, 0.48);
  color: #ffe293;
  background: rgba(190, 132, 18, 0.12);
}

.tier-badge--silver {
  border-color: rgba(212, 224, 238, 0.42);
  color: #dce7f3;
  background: rgba(130, 153, 178, 0.12);
}

.tier-badge--bronze {
  border-color: rgba(218, 147, 102, 0.48);
  color: #edb68e;
  background: rgba(154, 80, 39, 0.14);
}

.tier-badge--temporary,
.tier-badge--unranked {
  color: #bdc4d1;
}

.ranking-score {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.ranking-record {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

.ranking-skeleton {
  min-height: 84px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.ranking-skeleton span,
.player-skeleton__hero,
.player-skeleton__stats {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-skeleton span::after,
.player-skeleton__hero::after,
.player-skeleton__stats::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: shine 1.45s infinite;
}

.ranking-skeleton span:nth-child(1) {
  width: 36px;
  height: 36px;
}

.ranking-skeleton span:nth-child(2) {
  width: 78%;
  height: 38px;
}

.ranking-skeleton span:nth-child(3) {
  width: 76%;
  height: 28px;
}

.ranking-skeleton span:nth-child(4) {
  justify-self: end;
  width: 82px;
  height: 30px;
}

.ranking-skeleton span:nth-child(5) {
  justify-self: end;
  width: 100%;
  height: 24px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
}

.empty-state strong {
  font-size: 16px;
  font-weight: 850;
}

.empty-state p {
  max-width: 500px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-state--error strong {
  color: #ffb1b9;
}

.empty-state__meta {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 192px;
  padding: 24px 25px;
}

.info-card h2 {
  margin-bottom: 15px;
}

.info-card p:not(.section-kicker) {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.info-card p strong {
  color: var(--text);
}

.score-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  margin: 0;
}

.score-rule-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.score-rule-list dt {
  color: var(--text-muted);
  font-size: 13px;
}

.score-rule-list dd {
  margin: 0;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 850;
}

.page-intro {
  display: block;
  margin-bottom: 26px;
}

.page-intro .back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.page-intro .back-link:hover {
  color: var(--accent-bright);
}

.player-query-heading {
  margin: 0 0 14px;
}

.player-query-heading > p:not(.section-kicker) {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.player-profile {
  overflow: hidden;
}

.player-profile__hero {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: radial-gradient(circle at 10% 20%, rgba(139, 124, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.018);
}

.player-profile__tier {
  width: 116px;
  height: 116px;
  border-radius: 25px;
}

.player-profile__identity {
  min-width: 0;
}

.player-profile__name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.player-profile__name-line h3 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.065em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile__names {
  margin: 7px 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile__names span {
  margin: 0 6px;
  color: var(--text-faint);
}

.player-profile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.player-profile__score {
  display: grid;
  gap: 2px;
  min-width: 134px;
  padding-left: 23px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.player-profile__score span,
.player-profile__score small {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
}

.player-profile__score strong {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.notice {
  margin: 0;
  padding: 12px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.notice--temporary {
  color: #dbe0e8;
  background: rgba(125, 137, 157, 0.1);
}

.notice--warning {
  color: #f7d98b;
  background: rgba(192, 138, 20, 0.11);
}

.stats-panel,
.previous-season-panel {
  padding: 28px 30px;
}

.stats-panel__heading,
.previous-season-panel__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.stats-panel__heading > span {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.stat-item {
  display: grid;
  min-height: 100px;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item__label,
.stat-item__helper {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 750;
}

.stat-item__value {
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.previous-season-panel {
  border-top: 1px solid var(--line);
}

.previous-season-panel__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.1);
}

.previous-season-panel__tier {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.previous-season-panel__tier > div {
  display: grid;
  gap: 2px;
}

.previous-season-panel__tier strong {
  font-size: 15px;
  font-weight: 850;
}

.previous-season-panel__tier span,
.previous-season-panel__date,
.previous-season-panel__empty {
  color: var(--text-muted);
  font-size: 12px;
}

.previous-season-panel__date {
  text-align: right;
}

.previous-season-panel__empty {
  margin: 0;
}

.player-skeleton {
  padding: 30px;
}

.player-skeleton__hero {
  width: 100%;
  height: 126px;
  margin-bottom: 22px;
}

.player-skeleton__stats {
  width: 100%;
  height: 118px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes pulse {
  50% {
    opacity: 0.44;
    transform: scale(0.86);
  }
}

@keyframes shine {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 920px) {
  .ranking-table-heading,
  .ranking-row,
  .ranking-skeleton {
    grid-template-columns: 58px minmax(180px, 1.7fr) minmax(145px, 1fr) minmax(92px, 0.6fr);
  }

  .ranking-table-heading span:nth-child(5),
  .ranking-row .ranking-record,
  .ranking-skeleton span:nth-child(5) {
    display: none;
  }

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, var(--content-width));
  }

  .site-header {
    min-height: 76px;
  }

  .brand__logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand__copy strong {
    font-size: 17px;
  }

  .brand__copy span {
    display: none;
  }

  .site-nav__link {
    padding: 8px 9px;
    font-size: 13px;
  }

  main {
    padding-top: 35px;
  }

  .hero-panel,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    margin-bottom: 22px;
  }

  .hero-panel h1,
  .page-intro h1 {
    font-size: 36px;
  }

  .hero-panel__description {
    font-size: 14px;
  }

  .hero-panel__actions .button {
    width: 100%;
  }

  .search-panel {
    gap: 17px;
    padding: 21px;
  }

  .search-panel--wide {
    margin-bottom: 30px;
  }

  .search-form,
  .search-form__field {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 36px;
  }

  .summary-card {
    min-height: 102px;
    padding: 15px;
  }

  .summary-card__value {
    font-size: 27px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .refresh-status {
    justify-content: flex-start;
    text-align: left;
  }

  .ranking-table-heading {
    display: none;
  }

  .ranking-row,
  .ranking-skeleton {
    grid-template-columns: 43px minmax(0, 1fr) auto;
    min-height: 83px;
    gap: 10px;
    padding: 12px 14px;
  }

  .ranking-row .ranking-tier,
  .ranking-skeleton span:nth-child(3) {
    display: none;
  }

  .ranking-score {
    font-size: 14px;
  }

  .ranking-player__name {
    max-width: 100%;
    font-size: 14px;
  }

  .ranking-player__sub {
    font-size: 10px;
  }

  .rank-number {
    width: 31px;
    height: 31px;
    font-size: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .score-rule-list {
    grid-template-columns: 1fr;
  }

  .player-profile__hero {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

  .player-profile__tier {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .tier-icon--large,
  .tier-fallback--large {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .player-profile__name-line h3 {
    font-size: 24px;
  }

  .player-profile__score {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    padding-top: 15px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .player-profile__score strong {
    font-size: 25px;
  }

  .notice,
  .stats-panel,
  .previous-season-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .stats-panel__heading,
  .previous-season-panel__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-panel__heading > span {
    text-align: left;
  }

  .previous-season-panel__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .previous-season-panel__date {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 410px) {
  .site-shell {
    width: min(100% - 22px, var(--content-width));
  }

  .site-nav {
    gap: 1px;
  }

  .site-nav__link {
    padding-right: 6px;
    padding-left: 6px;
  }

  .search-form__field {
    flex-direction: column;
  }

  .search-form__field .button {
    width: 100%;
  }

  .summary-grid {
    gap: 9px;
  }

  .summary-card {
    padding: 13px;
  }

  .summary-card__label {
    font-size: 12px;
  }

  .summary-card__value {
    font-size: 25px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item,
  .stat-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }
}
