.ranking-workspace {
  --guide-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --guide-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  z-index: 112;
  inset: 0;
  display: grid;
  min-width: 0;
  grid-template-rows: var(--app-header-height, 94px) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 5%, rgba(168, 186, 56, .13), transparent 30rem),
    linear-gradient(145deg, #0d100b, #050605 62%);
  color: #efe9dc;
  font-family: var(--guide-body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.ranking-workspace button,
.ranking-workspace input,
.ranking-workspace select { font-family: var(--guide-body); }

.ranking-header {
  display: grid;
  height: var(--app-header-height, 94px);
  min-height: var(--app-header-height, 94px);
  max-height: var(--app-header-height, 94px);
  grid-template-columns: minmax(250px, auto) minmax(300px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
  padding: 0 clamp(18px, 2.2vw, 42px);
  border-bottom: 1px solid rgba(231, 220, 197, .16);
  background: rgba(7, 9, 6, .97);
}

.ranking-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
}

.ranking-brand img { width: var(--app-brand-icon-size, 58px); height: var(--app-brand-icon-size, 58px); flex: 0 0 var(--app-brand-icon-size, 58px); object-fit: contain; }
.ranking-brand div { min-width: 0; }
.ranking-brand strong { display: block; overflow: hidden; color: #f3eee3; font: 700 clamp(22px, 1.75vw, 34px)/1 var(--guide-display); text-overflow: ellipsis; white-space: nowrap; }
.ranking-brand span { display: block; margin-top: 5px; color: #aeba3d; font-size: 10px; font-weight: 800; letter-spacing: .1em; line-height: 1.25; }
.ranking-header-nav { display: flex; min-width: 0; align-items: stretch; justify-content: center; gap: clamp(20px, 2.3vw, 40px); }
.ranking-header-nav a,
.ranking-header-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4cdbc;
  cursor: pointer;
  font-family: var(--guide-body);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.ranking-header-nav a::after,
.ranking-header-nav button::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; content: ""; }
.ranking-header-nav a:hover,
.ranking-header-nav button:hover,
.ranking-header-nav .active { color: #f7f2e7; }
.ranking-header-nav .active::after { background: #a8ba38; }
.ranking-header-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 8px; }
.ranking-header-actions .language-toggle { height: var(--app-header-control-height, 48px); min-height: var(--app-header-control-height, 48px); }
.ranking-close {
  display: inline-flex;
  min-width: 188px;
  height: var(--app-header-control-height, 48px);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #76831f;
  border-radius: 4px;
  background: #14170e;
  color: #f1ecdf;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
}
.ranking-close:hover, .ranking-close:focus-visible { background: #778523; color: #fff; }
.ranking-header-tier { min-width: clamp(166px, 13vw, 208px); }

.ranking-scroll { min-height: 0; overflow: auto; scrollbar-color: rgba(185, 201, 66, .55) rgba(255, 255, 255, .04); }
.ranking-main { width: min(100%, 1780px); margin: 0 auto; padding: clamp(22px, 3vw, 48px); }

.ranking-hero {
  position: relative;
  display: grid;
  min-height: clamp(300px, 35vh, 430px);
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(228, 217, 184, .17);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 7, 4, .98) 0%, rgba(8, 10, 6, .78) 48%, rgba(8, 10, 6, .34) 100%),
    url("/assets/command-safehouse-20260807.png?v=20260807-1") center 45% / cover;
  box-shadow: 0 25px 65px rgba(0, 0, 0, .38);
}
.ranking-hero::after { position: absolute; inset: 0; border: 1px solid rgba(185, 201, 66, .08); content: ""; pointer-events: none; }
.ranking-hero-copy { position: relative; z-index: 1; padding: clamp(30px, 4vw, 66px); }
.ranking-hero-copy > p { display: flex; align-items: center; gap: 9px; color: #c1cf4a; font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; }
.ranking-hero-copy h1 {
  max-width: 850px;
  margin-top: 15px;
  color: #f2ecdf;
  font: 700 clamp(52px, 5.5vw, 88px)/1.1 var(--guide-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.ranking-hero-copy > span { display: block; max-width: 720px; margin-top: 19px; color: #c0b9a9; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.55; }
.ranking-hero aside { position: relative; z-index: 1; display: flex; min-height: 126px; align-items: center; gap: 18px; margin: 0 clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px); padding: 22px; border: 1px solid rgba(185, 201, 66, .3); border-radius: 6px; background: rgba(11, 14, 8, .86); backdrop-filter: blur(12px); }
.ranking-hero aside > i { color: #bac94a; font-size: 34px; }
.ranking-hero aside strong, .ranking-hero aside span { display: block; }
.ranking-hero aside strong { color: #eff0c8; font: 700 24px/1 var(--guide-display); }
.ranking-hero aside span { margin-top: 7px; color: #aaa596; font-size: 13px; line-height: 1.4; }

.ranking-podium-section, .ranking-table-section { margin-top: clamp(26px, 3vw, 46px); }
.ranking-section-heading, .ranking-table-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 4px 17px; border-bottom: 1px solid rgba(231, 220, 197, .14); }
.ranking-section-heading span, .ranking-table-section > header span { color: #aeba3d; font-size: 11px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; }
.ranking-section-heading h2, .ranking-table-section > header h2 { margin-top: 6px; color: #eee8db; font: 700 clamp(38px, 3.5vw, 56px)/1.08 var(--guide-display); }
.ranking-section-heading p { max-width: 650px; color: #9f998b; font-size: 14px; line-height: 1.5; text-align: right; }
.ranking-table-section > header > strong { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border: 1px solid rgba(185, 201, 66, .26); border-radius: 4px; color: #d9e471; font-size: 13px; }

.ranking-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(12px, 1.6vw, 24px); padding-top: 26px; }
.ranking-podium-card { position: relative; display: grid; min-height: 285px; place-items: center; align-content: center; padding: 28px 20px; overflow: hidden; border: 1px solid rgba(229, 217, 182, .18); border-radius: 7px; background: linear-gradient(155deg, rgba(28, 33, 19, .96), rgba(11, 13, 8, .98)); text-align: center; }
.ranking-podium-card[data-position="1"] { min-height: 330px; border-color: rgba(210, 199, 82, .56); background: radial-gradient(circle at 50% 12%, rgba(210, 199, 82, .2), transparent 45%), linear-gradient(155deg, #292d18, #0d0f09); box-shadow: 0 23px 55px rgba(0, 0, 0, .34); }
.ranking-podium-card[data-position="2"] { order: -1; }
.ranking-podium-position { position: absolute; top: 14px; left: 14px; display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid rgba(232, 220, 184, .22); border-radius: 50%; background: #10130c; color: #dce66e; font: 700 22px/1 var(--guide-display); }
.ranking-avatar { display: grid; width: 94px; height: 94px; place-items: center; overflow: hidden; border: 3px solid #707b22; border-radius: 50%; background: #1b2014; color: #b9c846; font-size: 38px; box-shadow: 0 0 0 7px rgba(185, 201, 66, .08); }
.ranking-podium-card[data-position="1"] .ranking-avatar { width: 112px; height: 112px; border-color: #c5bc4e; }
.ranking-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ranking-podium-card h3 { max-width: 100%; margin-top: 18px; overflow: hidden; color: #f1ebdf; font: 700 clamp(27px, 2.5vw, 39px)/1 var(--guide-display); text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-card p { margin-top: 9px; color: #b8c747; font: 700 clamp(20px, 1.8vw, 28px)/1 var(--guide-display); }
.ranking-podium-card small { margin-top: 9px; color: #918d80; font-size: 11px; font-weight: 800; letter-spacing: .055em; }
.ranking-online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #6b7065; }
[data-online="true"] .ranking-online-dot { background: #a8ba38; box-shadow: 0 0 0 4px rgba(168, 186, 56, .13); }

.ranking-table-section { overflow: hidden; border: 1px solid rgba(230, 218, 183, .16); border-radius: 7px; background: rgba(14, 17, 11, .86); }
.ranking-table-section > header { padding: 24px 28px 18px; }
.ranking-table-head, .ranking-row { display: grid; grid-template-columns: 110px minmax(220px, 1.5fr) minmax(180px, .75fr) minmax(190px, .65fr); align-items: center; gap: 18px; }
.ranking-table-head { min-height: 50px; padding: 0 28px; border-bottom: 1px solid rgba(230, 218, 183, .13); color: #8f9184; font-size: 10px; font-weight: 800; letter-spacing: .09em; line-height: 1.35; }
.ranking-row { min-height: 88px; padding: 12px 28px; border-bottom: 1px solid rgba(230, 218, 183, .09); }
.ranking-row:last-child { border-bottom: 0; }
.ranking-row:hover { background: rgba(185, 201, 66, .045); }
.ranking-row-position { color: #c4d052; font: 700 27px/1 var(--guide-display); }
.ranking-row-player { display: flex; min-width: 0; align-items: center; gap: 14px; }
.ranking-row-player .ranking-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-width: 2px; font-size: 22px; box-shadow: none; }
.ranking-row-player div { min-width: 0; }
.ranking-row-player strong, .ranking-row-player span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-row-player strong { color: #eee8dc; font-size: 18px; line-height: 1.25; }
.ranking-row-player span { margin-top: 5px; color: #8f9185; font-size: 11px; font-weight: 800; line-height: 1.35; }
.ranking-row-tier { display: inline-flex; width: max-content; max-width: 100%; align-items: center; gap: 8px; color: #c2cb72; font-size: 13px; font-weight: 800; line-height: 1.3; }
.ranking-row-time { color: #efe5c8; font: 700 24px/1 var(--guide-display); text-align: right; }
.ranking-loading, .ranking-empty { grid-column: 1 / -1; padding: 48px 24px; color: #9b9d90; text-align: center; }
.ranking-footer { width: min(calc(100% - 48px), 1780px); margin: 0 auto; }

.legacy-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(18px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(226, 218, 190, .16);
  border-radius: 7px;
  background: rgba(226, 218, 190, .12);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}
.legacy-tabs button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 16px;
  border: 0;
  background: rgba(12, 15, 9, .95);
  color: #a9a597;
  font-family: var(--guide-body);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .045em;
  text-align: center;
  cursor: pointer;
}
.legacy-tabs button::after { position: absolute; right: 18%; bottom: 0; left: 18%; height: 4px; border-radius: 4px 4px 0 0; background: transparent; content: ""; }
.legacy-tabs button i { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #697020; font-size: 19px; line-height: 1; vertical-align: 0; }
.legacy-tabs button i::before { display: block; line-height: 1; }
.legacy-tabs button span { display: block; min-width: 0; }
.legacy-tabs button:hover { color: #f3eddf; }
.legacy-tabs button.active { background: linear-gradient(180deg, rgba(49, 57, 25, .98), rgba(18, 22, 12, .98)); color: #f3eddf; }
.legacy-tabs button.active i { color: #c0d03f; }
.legacy-tabs button.active::after { background: #bed13c; box-shadow: 0 0 16px rgba(190, 209, 60, .5); }
.legacy-tabs button:focus-visible, [data-legacy-record]:focus-visible { outline: 3px solid #d8e85b; outline-offset: -4px; }
.legacy-panel { min-height: 460px; }
.legacy-panel[hidden] { display: none !important; }
.legacy-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(30px, 4vw, 56px);
  padding: 0 4px 22px;
  border-bottom: 1px solid rgba(231, 220, 197, .14);
}
.legacy-panel-heading > div > span, .legacy-record-leaders > header span, .legacy-latest > header span, .legacy-personal-section > header span, .legacy-timeline > header span, .legacy-achievement-section > header span { color: #afc13c; font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.35; }
.legacy-panel-heading h2 { margin-top: 7px; color: #f0eadd; font: 700 clamp(42px, 4vw, 66px)/1.08 var(--guide-display); letter-spacing: -.012em; }
.legacy-panel-heading p { max-width: 680px; margin-top: 10px; color: #a5a092; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.55; }
.legacy-panel-heading > strong { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border: 1px solid rgba(190, 209, 60, .28); border-radius: 5px; color: #dce873; font-size: 14px; white-space: nowrap; }
.legacy-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(155px, .7fr));
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(226, 218, 190, .15);
  border-radius: 7px;
  background: rgba(15, 18, 11, .9);
}
.legacy-filter-bar label, .legacy-records-heading > label { display: grid; gap: 7px; color: #aeb54d; font-size: 10px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; }
.legacy-filter-bar input, .legacy-filter-bar select, .legacy-records-heading select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(226, 218, 190, .2);
  border-radius: 5px;
  background: #10130c;
  color: #eee8dc;
  font-family: var(--guide-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.legacy-filter-bar input:focus, .legacy-filter-bar select:focus, .legacy-records-heading select:focus { border-color: #b9c942; outline: 2px solid rgba(185, 201, 66, .18); }
.legacy-fallen-podium { margin-top: 22px; }
.legacy-fallen-podium:empty { display: none; }
.legacy-life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.legacy-life-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(228, 216, 181, .17);
  border-radius: 7px;
  background: radial-gradient(circle at 95% 0, rgba(172, 192, 49, .09), transparent 38%), linear-gradient(150deg, #1b2014, #0d100a 78%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.legacy-life-card:hover { transform: translateY(-3px); border-color: rgba(199, 214, 75, .5); box-shadow: 0 20px 42px rgba(0, 0, 0, .32); }
.legacy-life-card > header { display: flex; min-height: 43px; align-items: center; gap: 9px; padding: 7px 16px; border-bottom: 1px solid rgba(228, 216, 181, .1); color: #939681; font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; }
.legacy-life-card > header strong { color: #d4df61; font: 700 19px/1.1 var(--guide-display); }
.legacy-life-card > header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legacy-life-card > header i { margin-left: auto; color: #788126; }
.legacy-life-identity { display: flex; min-width: 0; align-items: center; gap: 15px; padding: 18px 18px 15px; }
.legacy-life-identity .ranking-avatar { width: 62px; height: 62px; flex: 0 0 62px; border-width: 2px; font-size: 25px; box-shadow: none; }
.legacy-life-identity > div { min-width: 0; }
.legacy-life-identity h3 { overflow: hidden; color: #f0e9dc; font: 700 clamp(24px, 1.8vw, 31px)/1.1 var(--guide-display); text-overflow: ellipsis; white-space: nowrap; }
.legacy-life-identity p { margin-top: 6px; overflow: hidden; color: #969184; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.legacy-life-card > dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 18px 17px; border: 1px solid rgba(227, 215, 179, .1); border-radius: 4px; }
.legacy-life-card > dl > div { min-width: 0; padding: 11px; border-right: 1px solid rgba(227, 215, 179, .1); }
.legacy-life-card > dl > div:last-child { border: 0; }
.legacy-life-card dt { color: #7f8175; font-size: 9px; font-weight: 800; letter-spacing: .06em; line-height: 1.35; }
.legacy-life-card dd { margin-top: 6px; overflow: hidden; color: #e9dfc7; font: 700 18px/1.15 var(--guide-display); text-overflow: ellipsis; white-space: nowrap; }
.legacy-life-card > footer { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-top: 1px solid rgba(227, 215, 179, .1); background: rgba(8, 10, 6, .35); color: #aaa699; font-size: 11px; font-weight: 800; }
.legacy-life-card > footer span { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
.legacy-life-card > footer > span:first-child { color: #cad65e; }
.legacy-pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 26px 0 6px; }
.legacy-pagination button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 17px; border: 1px solid rgba(190, 209, 60, .28); border-radius: 5px; background: #161b0f; color: #e1e8a5; font-size: 11px; font-weight: 800; line-height: 1.25; cursor: pointer; }
.legacy-pagination button:disabled { opacity: .35; cursor: not-allowed; }
.legacy-pagination span { color: #a19d91; font-size: 12px; font-weight: 800; line-height: 1.3; }
.legacy-records-heading > label { width: min(250px, 100%); }
.legacy-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.legacy-stat-grid > article { display: grid; min-height: 142px; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 15px; row-gap: 7px; padding: 21px; border: 1px solid rgba(227, 215, 179, .15); border-radius: 7px; background: linear-gradient(145deg, rgba(27, 32, 19, .96), rgba(12, 15, 9, .96)); }
.legacy-stat-grid > article > i { grid-row: 1 / span 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(190, 209, 60, .25); border-radius: 50%; color: #bdce48; font-size: 21px; line-height: 1; }
.legacy-stat-grid > article > i::before { display: block; line-height: 1; }
.legacy-stat-grid > article strong { min-width: 0; overflow: hidden; color: #f2ead9; font: 700 clamp(29px, 2.3vw, 40px)/1.08 var(--guide-display); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.legacy-stat-grid > article span { min-width: 0; color: #8f9184; font-size: 10px; font-weight: 800; letter-spacing: .07em; line-height: 1.35; }
.legacy-record-leaders, .legacy-latest, .legacy-personal-section, .legacy-timeline, .legacy-achievement-section { margin-top: clamp(30px, 4vw, 54px); }
.legacy-record-leaders > header, .legacy-latest > header, .legacy-personal-section > header, .legacy-timeline > header, .legacy-achievement-section > header { padding-bottom: 15px; border-bottom: 1px solid rgba(227, 215, 179, .14); }
.legacy-record-leaders h3, .legacy-latest h3, .legacy-personal-section h3, .legacy-timeline h3, .legacy-achievement-section h3 { margin-top: 6px; color: #eee8db; font: 700 clamp(32px, 3vw, 48px)/1.08 var(--guide-display); }
.legacy-record-leaders > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.legacy-login-card { display: grid; min-height: 480px; place-items: center; align-content: center; margin-top: 30px; padding: 42px; border: 1px solid rgba(226, 218, 190, .16); border-radius: 8px; background: radial-gradient(circle at 50% 20%, rgba(180, 198, 55, .14), transparent 38%), #10130c; text-align: center; }
.legacy-login-card > i { display: grid; width: 82px; height: 82px; place-items: center; border: 1px solid rgba(190, 209, 60, .35); border-radius: 50%; color: #c3d34d; font-size: 34px; }
.legacy-login-card > span, .legacy-personal-hero > div > span { margin-top: 24px; color: #b8c640; font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.35; }
.legacy-login-card h2 { max-width: 760px; margin-top: 9px; color: #f0eadd; font: 700 clamp(40px, 4vw, 65px)/1.08 var(--guide-display); }
.legacy-login-card p { max-width: 680px; margin-top: 17px; color: #aaa598; font-size: 17px; line-height: 1.6; }
.legacy-login-card button { display: inline-flex; min-height: 53px; align-items: center; gap: 10px; margin-top: 25px; padding: 0 25px; border: 1px solid #b8cb36; border-radius: 5px; background: linear-gradient(180deg, #65751d, #465314); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.25; cursor: pointer; }
.legacy-personal-hero { display: flex; min-height: 230px; align-items: center; gap: 28px; margin-top: 30px; padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(226, 218, 190, .16); border-radius: 8px; background: radial-gradient(circle at 10% 50%, rgba(187, 205, 61, .16), transparent 31%), linear-gradient(120deg, #1a2012, #0d100a); }
.legacy-personal-avatar .ranking-avatar { width: 126px; height: 126px; border-color: #bdcd43; font-size: 45px; }
.legacy-personal-hero h2 { margin-top: 7px; color: #f0eadd; font: 700 clamp(50px, 5vw, 78px)/1.08 var(--guide-display); }
.legacy-personal-hero p { margin-top: 12px; color: #aaa598; font-size: 17px; }
.legacy-achievement-section > header p { max-width: 700px; margin-top: 10px; color: #979386; line-height: 1.5; }
.legacy-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legacy-badges > span { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(190, 209, 60, .28); border-radius: 999px; background: rgba(48, 57, 20, .55); color: #e2e9a4; font-size: 12px; font-weight: 800; line-height: 1.3; }
.legacy-badges.compact > span { min-height: 32px; padding: 0 10px; font-size: 10px; }
.legacy-no-badges { display: block; margin-top: 17px; color: #8e8b80; }
.legacy-timeline ol { position: relative; display: grid; gap: 0; margin-top: 19px; padding: 0; list-style: none; }
.legacy-timeline ol::before { position: absolute; top: 10px; bottom: 10px; left: 22px; width: 1px; background: rgba(190, 209, 60, .25); content: ""; }
.legacy-timeline li { position: relative; display: flex; min-height: 74px; align-items: center; gap: 18px; padding: 10px 14px; border-bottom: 1px solid rgba(227, 215, 179, .08); }
.legacy-timeline li > i { z-index: 1; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(190, 209, 60, .32); border-radius: 50%; background: #11140d; color: #bdcd42; }
.legacy-timeline li strong, .legacy-timeline li span { display: block; }
.legacy-timeline li strong { color: #ece5d8; font-size: 15px; }
.legacy-timeline li span { margin-top: 5px; color: #8f8d82; font-size: 12px; }
.ranking-account-name { display: block; margin-top: 5px; color: #89877d; font-size: 11px; font-weight: 800; }
.ranking-podium-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 12px; margin-top: 10px; color: #989588; font-size: 10px; font-weight: 800; }
.ranking-podium-details span { display: inline-flex; align-items: center; gap: 5px; }
.ranking-row-time { display: grid; justify-items: end; gap: 6px; }
.ranking-row-time > strong { color: #efe5c8; font: 700 24px/1 var(--guide-display); }
.ranking-row-time > small { max-width: 100%; overflow: hidden; color: #87887e; font-family: var(--guide-body); font-size: 10px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.legacy-dossier { width: min(760px, calc(100vw - 30px)); max-height: min(860px, calc(100vh - 30px)); padding: 0; overflow: hidden; border: 1px solid rgba(213, 203, 167, .35); border-radius: 9px; background: #11150d; color: #eee8dc; box-shadow: 0 35px 100px rgba(0, 0, 0, .75); }
.legacy-dossier::backdrop { background: rgba(2, 3, 2, .82); backdrop-filter: blur(6px); }
.legacy-dossier > article { position: relative; max-height: min(860px, calc(100vh - 30px)); padding: clamp(27px, 4vw, 48px); overflow: auto; background: radial-gradient(circle at 90% 5%, rgba(183, 201, 57, .15), transparent 30%); }
.legacy-dossier-close { position: absolute; z-index: 2; top: 17px; right: 17px; display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(225, 216, 188, .2); border-radius: 50%; background: #191d13; color: #e7e0d2; cursor: pointer; }
.legacy-dossier header > span, .legacy-dossier section > span { color: #bbca42; font-size: 10px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; }
.legacy-dossier header h2 { max-width: calc(100% - 50px); margin-top: 8px; color: #f4eddf; font: 700 clamp(42px, 6vw, 68px)/1.08 var(--guide-display); }
.legacy-dossier header p { margin-top: 10px; color: #9b978b; font-size: 14px; }
.legacy-history-notice { display: flex; gap: 13px; margin-top: 23px; padding: 15px; border: 1px solid rgba(199, 153, 72, .34); border-radius: 5px; background: rgba(104, 68, 19, .18); color: #d8c29b; }
.legacy-history-notice > i { color: #d2a95c; font-size: 20px; }
.legacy-history-notice p { margin-top: 5px; color: #af9e82; font-size: 12px; line-height: 1.45; }
.legacy-dossier-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 25px; padding: 1px; background: rgba(224, 214, 184, .12); }
.legacy-dossier-stats > div { min-height: 92px; padding: 19px; background: #151a10; }
.legacy-dossier-stats dt { color: #8b8c7f; font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.35; }
.legacy-dossier-stats dd { margin-top: 8px; color: #ede4cf; font: 700 26px/1.12 var(--guide-display); }
.legacy-dossier section { margin-top: 26px; }

@media (max-width: 1120px) {
  .ranking-header { grid-template-columns: minmax(220px, 1fr) auto; }
  .ranking-header-nav { grid-column: 1 / -1; grid-row: 2; }
  .ranking-workspace { grid-template-rows: 132px minmax(0, 1fr); }
  .ranking-header { height: 132px; min-height: 132px; max-height: 132px; padding-bottom: 0; }
  .ranking-header-actions .shop-header-tier { width: 48px; min-width: 48px; padding: 5px; }
  .ranking-header-actions .shop-header-tier-copy, .ranking-header-actions .shop-header-tier-chevron { display: none; }
  .ranking-close { min-width: 52px; width: 52px; }
  .ranking-close span { display: none; }
  .ranking-hero { grid-template-columns: 1fr; }
  .ranking-hero aside { max-width: 440px; }
  .legacy-life-grid, .legacy-record-leaders > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ranking-workspace { grid-template-rows: 112px minmax(0, 1fr); }
  .ranking-header { height: 112px; min-height: 112px; max-height: 112px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px 10px 0; }
  .ranking-brand img { width: 42px; height: 42px; flex-basis: 42px; }
  .ranking-brand strong { font-size: 18px; }
  .ranking-brand span { display: none; }
  .ranking-header-actions { gap: 5px; }
  .ranking-header-actions .language-toggle, .ranking-close, .ranking-header-actions .shop-header-tier { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; }
  .ranking-header-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .ranking-header-nav a, .ranking-header-nav button { min-height: 44px; padding: 0 2px; font-size: 10px; }
  .ranking-main { padding: 12px; }
  .ranking-hero { min-height: 410px; }
  .ranking-hero-copy { padding: 28px 22px; }
  .ranking-hero-copy h1 { font-size: clamp(38px, 12vw, 52px); line-height: 1.08; overflow-wrap: anywhere; }
  .ranking-hero-copy > span { font-size: 16px; }
  .ranking-hero aside { min-height: 96px; margin: 0 18px 18px; padding: 16px; }
  .ranking-section-heading { display: block; }
  .ranking-section-heading p { margin-top: 12px; text-align: left; }
  .ranking-podium { grid-template-columns: 1fr; }
  .ranking-podium-card, .ranking-podium-card[data-position="1"] { min-height: 235px; }
  .ranking-podium-card[data-position="2"] { order: initial; }
  .ranking-table-section > header { align-items: flex-start; padding: 19px; }
  .ranking-table-head { display: none; }
  .ranking-row { min-height: 96px; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .ranking-row-tier { display: none; }
  .ranking-row-time { font-size: 19px; }
  .ranking-row-player .ranking-avatar { width: 46px; height: 46px; flex-basis: 46px; }
  .ranking-footer { width: calc(100% - 24px); }
  .legacy-tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legacy-tabs button { min-height: 58px; gap: 8px; padding: 8px; font-size: 11px; line-height: 1.25; }
  .legacy-panel-heading { display: grid; align-items: start; }
  .legacy-panel-heading h2 { font-size: 40px; }
  .legacy-panel-heading > strong { width: max-content; }
  .legacy-filter-bar { grid-template-columns: 1fr; padding: 13px; }
  .legacy-life-grid, .legacy-record-leaders > div, .legacy-stat-grid { grid-template-columns: 1fr; }
  .legacy-life-card > dl { grid-template-columns: 1fr; }
  .legacy-life-card > dl > div { border-right: 0; border-bottom: 1px solid rgba(227, 215, 179, .1); }
  .legacy-stat-grid > article { min-height: 112px; }
  .legacy-personal-hero { display: grid; text-align: center; }
  .legacy-personal-avatar { display: grid; place-items: center; }
  .legacy-personal-hero h2 { overflow-wrap: anywhere; }
  .legacy-dossier-stats { grid-template-columns: 1fr; }
  .legacy-pagination button span { display: none; }
}
