.achievement-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
}
.achievement-sidebar {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  padding: 20px 12px;
  background: #0e151f;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.side-kicker {
  padding: 0 10px 8px;
  color: #74889e;
  font-weight: 750;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.side-entry {
  border: 0;
  border-radius: 6px;
  text-align: left;
  padding: 9px 11px;
  margin: 2px 0;
  background: transparent;
  color: #aebdcd;
}
.side-entry:hover,
.side-entry.active {
  background: #182a38;
  color: #a5e5ed;
}
.side-rule {
  height: 1px;
  background: var(--line);
  margin: 16px 6px;
}
.side-stats {
  font-size: 12px;
  color: #c3d1df;
}
.side-stats div {
  padding: 7px 10px;
  border-bottom: 1px solid #1d2a37;
}
.side-stats b {
  float: right;
  color: #eff6fc;
  font-variant-numeric: tabular-nums;
}
.side-note {
  margin-top: auto;
  padding: 12px 10px;
  color: #7e90a4;
  font-size: 11px;
}
.achievement-main {
  min-width: 0;
  padding: 25px clamp(16px, 2.8vw, 38px) 60px;
}
.achievement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.achievement-head h1 {
  font-size: 25px;
  margin: 4px 0;
}
.achievement-summary {
  max-width: 850px;
  color: var(--muted);
}
.achievement-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin: 17px 0;
}
.achievement-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}
.achievement-stat strong {
  font-size: 19px;
  display: block;
}
.achievement-stat span {
  font-size: 10px;
  color: var(--muted);
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.filter-grid input,
.filter-grid select {
  width: 100%;
  background: #0e1721;
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--text);
}
.achievement-result-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin: 12px 2px;
}
.achievement-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e151f;
}
.achievement-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1080px;
  width: 100%;
  font-size: 11px;
}
.achievement-table th {
  position: sticky;
  top: 0;
  background: #192532;
  color: #a9c1d4;
  text-align: left;
  font-size: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line2);
  z-index: 1;
}
.achievement-table td {
  max-width: 320px;
  padding: 9px 10px;
  border-bottom: 1px solid #1d2a37;
  vertical-align: top;
  color: #cbd7e3;
}
.achievement-table tr:hover td {
  background: #14212d;
}
.achievement-id {
  color: #77d7e2;
  font:
    11px Consolas,
    monospace;
  white-space: nowrap;
}
.achievement-title {
  font-size: 12px;
  font-weight: 650;
  color: #ecf3fb;
}
.achievement-key {
  font:
    10px Consolas,
    monospace;
  color: #8599ad;
  overflow-wrap: anywhere;
}
.achievement-objective {
  max-width: 230px;
  white-space: normal;
}
.achievement-open {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.achievement-open:hover .achievement-title {
  text-decoration: underline;
}
.row-actions {
  margin-top: 5px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 11px;
}
.pager button {
  border: 1px solid var(--line2);
  background: #172432;
  border-radius: 5px;
  padding: 5px 9px;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}
.feature-panel {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.feature-panel h2 {
  font-size: 15px;
  margin: 0 0 10px;
}
.data-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #35495e;
  border-radius: 20px;
  color: #bdcbd9;
  font-size: 10px;
}
.detail-shell {
  margin-top: 17px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: #0e151f;
  overflow: hidden;
}
.detail-top {
  padding: 15px 17px;
  background: #15212e;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.detail-top h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.detail-top p {
  margin: 3px 0;
  color: #9eb0c2;
  font-size: 11px;
}
.detail-close {
  border: 1px solid var(--line2);
  background: #1b2938;
  border-radius: 5px;
  padding: 5px 9px;
}
.detail-tabs {
  display: flex;
  gap: 5px;
  padding: 0 14px;
  background: #111b27;
  border-bottom: 1px solid var(--line);
}
.detail-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 11px;
  font-size: 11px;
}
.detail-tab.active {
  border-color: var(--accent);
  color: #c7f3f7;
}
.detail-content {
  padding: 15px;
  max-height: 68vh;
  overflow: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}
.detail-cell {
  padding: 9px;
  background: #121d29;
  border: 1px solid #223243;
  border-radius: 6px;
  min-width: 0;
}
.detail-cell small {
  display: block;
  color: #8398ad;
  font-size: 10px;
  margin-bottom: 4px;
}
.detail-cell div {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.steps-list,
.reward-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.step-card,
.reward-card {
  padding: 11px;
  background: #121d29;
  border: 1px solid #25374a;
  border-radius: 6px;
}
.step-title {
  font-size: 12px;
  color: #ecf3fa;
  font-weight: 650;
}
.step-card p,
.reward-card p {
  font-size: 11px;
  color: #aabaca;
  margin: 5px 0;
}
.translated {
  display: block;
  color: #8dd0b8;
  font-size: 11px;
  margin: 3px 0;
}
.raw-details {
  margin: 10px 0;
  border: 1px solid #29394a;
  border-radius: 6px;
  background: #0a1017;
}
.raw-details summary {
  padding: 9px 11px;
  cursor: pointer;
  color: #b7c8d8;
  font-size: 11px;
}
.raw-details pre {
  overflow: auto;
  padding: 12px;
  margin: 0;
  color: #c2d0df;
  font:
    10px/1.5 Consolas,
    monospace;
  max-height: 520px;
}
.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.field-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #223243;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.field-table td:first-child {
  color: #8ea3b7;
  font:
    10px Consolas,
    monospace;
  width: 35%;
}
.field-table td:last-child {
  color: #d4dee9;
}
.small-muted {
  color: var(--muted);
  font-size: 10px;
}
.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 10px;
}
.connection-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #121d29;
}
.connection-card h3 {
  font-size: 12px;
  margin: 0 0 6px;
}
.connection-card p {
  margin: 5px 0;
  color: #a8b7c6;
  font-size: 11px;
}
.connection-card strong {
  color: #c7eff1;
}
.warning-note {
  padding: 10px 12px;
  border: 1px solid #685933;
  background: #2c2414;
  border-radius: 7px;
  color: #ead8a9;
  font-size: 11px;
  margin-bottom: 12px;
}
.loading-state,
.error-state {
  padding: 25px;
  color: var(--muted);
}
.error-state {
  color: #ffb2a8;
}
@media (max-width: 1050px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
  .achievement-stats {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}
@media (max-width: 760px) {
  .achievement-layout {
    display: block;
  }
  .achievement-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .achievement-sidebar .side-rule,
  .achievement-sidebar .side-kicker:nth-of-type(2),
  .side-stats,
  .side-note {
    display: none;
  }
  .achievement-main {
    padding: 18px 12px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .achievement-head {
    display: block;
  }
}

/* Temporary readability pass for the Achievement feature. */
.achievement-main {
  font-size: 15px;
}
.achievement-head h1 {
  font-size: 27px;
}
.achievement-summary {
  font-size: 15px;
  line-height: 1.55;
}
.side-entry {
  font-size: 14px;
}
.side-stats {
  font-size: 13px;
}
.side-note {
  font-size: 12px;
  line-height: 1.55;
}
.filter-grid input,
.filter-grid select,
.topbar #achievementLocale {
  background-color: #111c28;
  color: #f4f7fb;
  font-size: 14px;
  min-height: 40px;
}
.filter-grid select option,
.topbar #achievementLocale option {
  background-color: #111c28;
  color: #f4f7fb;
}
.achievement-table {
  font-size: 13px;
}
.achievement-table th {
  font-size: 12px;
  padding: 11px 10px;
}
.achievement-table td {
  padding: 11px 10px;
}
.achievement-title {
  font-size: 14px;
}
.achievement-id {
  font-size: 12px;
}
.small-muted,
.achievement-stat span {
  font-size: 11px;
}
.detail-content {
  font-size: 13px;
}
.field-table {
  font-size: 12px;
}
.field-table td:first-child {
  font-size: 11px;
}
.step-title {
  font-size: 13px;
}

/* Body contrast pass: graphite canvas with white readable copy. */
body {
  background: #151d28;
  color: #fff;
}
.topbar {
  color: #fff;
}
.top-caption,
.locale-picker {
  color: #fff;
}
.achievement-main {
  background: #151d28;
  color: #fff;
}
.achievement-sidebar {
  color: #fff;
}
.achievement-summary,
.side-stats,
.side-note,
.achievement-stat span,
.achievement-result-bar,
.achievement-table td,
.small-muted,
.field-table td,
.connection-card p,
.achievement-key,
.hint,
.step-card p,
.reward-card p,
.detail-top p {
  color: #fff;
}

/* Larger type for easier reading. */
.achievement-main {
  font-size: 16px;
}
.achievement-summary {
  font-size: 16px;
}
.filter-grid input,
.filter-grid select,
.topbar #achievementLocale {
  font-size: 15px;
}
.achievement-table {
  font-size: 14px;
}
.achievement-table th {
  font-size: 13px;
}
.achievement-table td {
  font-size: 14px;
}
.achievement-title {
  font-size: 15px;
}
.achievement-id,
.achievement-key {
  font-size: 12px;
}
.small-muted,
.achievement-stat span,
.achievement-result-bar,
.side-note,
.side-stats {
  font-size: 12px;
}
.detail-top p,
.detail-content {
  font-size: 14px;
}
.field-table {
  font-size: 13px;
}
.field-table td:first-child {
  font-size: 12px;
}
.step-title {
  font-size: 14px;
}
.step-card p,
.reward-card p,
.connection-card p {
  font-size: 12px;
}
.quest-only-filter {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 5px 2px;
}
.filter-grid .quest-only-filter input {
  width: auto;
  min-height: 0;
  accent-color: #21d8e6;
}
.step-achievement-title {
  margin: 7px 0 3px;
  color: #dce7f3;
  font-weight: 650;
}
.step-objective-text {
  margin: 8px 0 5px;
  padding: 8px 10px;
  border-left: 2px solid #42cad9;
  background: #101a26;
}
.step-objective-text small {
  color: #79dce6;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.step-objective-text p {
  margin: 4px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}
/* Game inspired Achievement catalog */
.achievement-layout {
  display: block;
}
.achievement-sidebar {
  display: none;
}
.achievement-main {
  padding: 0 0 40px;
  background: #030609 url("/assets/bg/UT_BG_Achievement_All.png") center
    center/cover fixed no-repeat;
  color: #f5f3ef;
}
.game-head {
  height: 58px;
  padding: 0 clamp(14px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.58));
  border-bottom: 1px solid rgba(210, 220, 235, 0.14);
}
.game-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.game-title h1 {
  font:
    600 27px Georgia,
    serif;
  margin: 0;
  color: #efeff4;
  text-shadow: 0 2px 8px #9cb6d8;
}
.game-mark {
  font-size: 33px;
  color: #bbd8f1;
  text-shadow: 0 0 14px #9ccaff;
}
.race-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.race-control__label {
  color: #aeb3bd;
  font:
    700 11px/1 NotoSansUI,
    Arial,
    sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.race-picker {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid #39424b;
  background: #10151b;
}
.race-picker a[data-race="Light"],
.race-picker a[data-race="Dark"],
.race-picker button[data-race="Light"],
.race-picker button[data-race="Dark"] {
  align-self: center;
}
.race-picker button,
.race-picker a,
.game-tabs button,
.game-tabs a {
  color: #aeb3bd;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 15px;
}
.race-picker button.active,
.race-picker a.active {
  color: #fff;
  background: #263443;
  box-shadow: inset 0 -2px #65dbe8;
}
.race-picker button[data-race="Light"],
.race-picker button[data-race="Dark"],
.race-picker a[data-race="Light"],
.race-picker a[data-race="Dark"] {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  padding: 3px 7px;
}
.race-picker button[data-race="Light"] img,
.race-picker button[data-race="Dark"] img,
.race-picker a[data-race="Light"] img,
.race-picker a[data-race="Dark"] img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.race-picker button[data-race="Light"]:hover img,
.race-picker button[data-race="Dark"]:hover img,
.race-picker a[data-race="Light"]:hover img,
.race-picker a[data-race="Dark"]:hover img {
  filter: drop-shadow(0 0 4px #9edfff);
}
.game-tabs {
  height: 44px;
  display: flex;
  justify-content: center;
  gap: clamp(12px, 4vw, 66px);
  background: rgba(0, 0, 0, 0.83);
  border-bottom: 1px solid rgba(225, 230, 240, 0.17);
}
.game-tabs button {
  position: relative;
  min-width: 92px;
  font-size: 15px;
}
.game-tabs button.active,
.game-tabs a.active {
  color: #fff;
  font-weight: 700;
}
.game-tabs button.active:after,
.game-tabs a.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 7px;
  background: radial-gradient(
    ellipse,
    #d6e8ff 0%,
    #819bd9 34%,
    transparent 73%
  );
  filter: drop-shadow(0 0 6px #adcaff);
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(220px, 25%) minmax(0, 1fr);
  min-height: calc(100vh - 180px);
}
.game-rail {
  position: relative;
  min-height: calc(100vh - 180px);
  padding: 22px 17px 20px;
  background: linear-gradient(
    90deg,
    rgba(2, 5, 10, 0.68),
    rgba(2, 5, 10, 0.12)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.gate-art {
  position: absolute;
  inset: 0;
  background: url("/assets/bg/UT_BG_Achievement_Gate.png") center 47% / auto 88%
    no-repeat;
  filter: drop-shadow(0 0 24px rgba(23, 128, 255, 0.43));
  pointer-events: none;
}
.game-rail label,
.gate-progress {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px #000;
}
.game-rail label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #d5dae2;
}
.game-rail select,
.game-toolbar input {
  background: rgba(12, 18, 25, 0.94);
  color: white;
  border: 1px solid #394856;
  padding: 10px 12px;
  font-size: 14px;
}
.gate-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  margin: 10px 0 2px;
  color: #fff;
}
.gate-progress b {
  font-size: 13px;
}
.gate-progress span {
  font-size: 11px;
  color: #bec9d8;
}
.game-content {
  min-width: 0;
  padding: 22px clamp(10px, 1.3vw, 22px) 30px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.08));
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
}
.game-toolbar h2 {
  margin: 3px 0 0;
  font:
    600 20px Georgia,
    serif;
  color: #f2f2f5;
}
.game-toolbar .eyebrow {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #a9bfd3;
}
.game-toolbar input {
  width: min(280px, 40%);
  border-radius: 3px;
}
.achievement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 7px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  /* min-height: 340px; */
  padding: 13px 12px 0;
  border: 1px solid #596068;
  border-radius: 0;
  background: linear-gradient(
    145deg,
    rgba(42, 47, 52, 0.77),
    rgba(27, 32, 37, 0.78) 68%
  );
  color: #f1f1f3;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 3px #000;
}
.game-card:hover {
  border-color: #a9c0d5;
  filter: brightness(1.08);
}
.card-glyph {
  height: 45px;
  width: 54px;
  background-image: var(--card-glyph);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  align-self: center;
  margin: 0 auto 5px;
  opacity: 0.94;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));
}
.card-title {
  height: 47px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font:
    20px/1.15 Georgia,
    serif;
  color: #d0ced0;
  text-shadow: 0 1px 2px #111;
}
.card-rule {
  position: relative;
  height: 14px;
  margin: 2px 2px 9px;
  border-top: 1px solid rgba(210, 215, 220, 0.2);
}
.card-rule i {
  position: absolute;
  left: calc(50% - 6px);
  top: -5px;
  width: 12px;
  height: 9px;
  border-bottom: 1px solid #c0c8d1;
  transform: rotate(45deg);
  background: #252a2e;
}
.card-objective {
  height: 48px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #f2f2f3;
}
.card-count {
  margin-top: 8px;
  font-size: 16px;
  color: #f4f5f7;
  font-weight: 650;
}
.card-count b {
  color: #00f1f0;
}
.card-footer {
  height: 35px;
  margin: 0 -12px;
  background: linear-gradient(#30363d, #2b3037);
  display: grid;
  place-items: center;
  color: #b7b7b9;
  text-shadow: 0 1px 2px #000;
  font:
    16px Georgia,
    serif;
}
.card-id {
  padding: 5px 0 3px;
  font:
    10px Consolas,
    monospace;
  color: #9aa5b1;
  opacity: 0.8;
}
.game-card .card-id {
  display: none;
}
#achievementDetail {
  margin: 0 18px;
}
.pager {
  color: white;
}
.card-rule {
  border-top: 0;
  background: url("/assets/sprites/achievement-atlas.png") left -204px/512px
    512px no-repeat;
}
.card-rule i {
  width: 30px;
  height: 26px;
  left: calc(50% - 15px);
  top: -11px;
  border: 0;
  background: url("/assets/sprites/achievement-atlas.png") -44px -321px/512px
    512px no-repeat;
  transform: none;
}
.game-card {
  container-type: inline-size;
}
.card-title {
  position: relative;
  height: 60px;
  box-sizing: border-box;
  padding-bottom: 14px;
}
.card-title::before,
.card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 14px;
  background-image: url("/assets/sprites/achievement-atlas.png");
  background-repeat: no-repeat;
  background-size: 100cqw 100cqw;
  background-position: 0 -39.84cqw;
  pointer-events: none;
}
.card-title::before {
  left: 0;
}
.card-title::after {
  right: 0;
  transform: scaleX(-1);
}
.progression-open {
  position: relative;
  z-index: 2;
  margin: 10px auto 0;
  padding: 8px 12px;
  border: 1px solid #526780;
  background: rgba(18, 31, 46, 0.92);
  color: #d9ebfa;
  font-size: 12px;
  cursor: pointer;
}
.progression-open:hover {
  border-color: #92c9ed;
  background: #1e3449;
}
.category-menu {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 9%;
  width: min(170px, 72%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-menu button,
.category-menu a {
  border: 0;
  border-left: 3px solid transparent;
  background: rgba(3, 7, 13, 0.14);
  padding: 10px 12px 10px 15px;
  text-align: left;
  color: #aeb2ba;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0 2px 4px #000;
}
.category-menu button:hover,
.category-menu button.active,
.category-menu a:hover,
.category-menu a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(24, 35, 55, 0.66), transparent);
  border-left-color: #c7dcff;
  text-shadow: 0 0 10px #b6caff;
}
.progression-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}
.progression-panel {
  width: min(560px, 96vw);
  max-height: min(82vh, 780px);
  overflow: auto;
  background: #222833;
  border: 1px solid #566271;
  box-shadow: 0 12px 45px #000;
  color: #f4f5f7;
}
.progression-panel > header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: #29313e;
  border-bottom: 1px solid #4a5564;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.progression-panel > header div span {
  color: #a9eaff;
}
.progression-panel > header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.progression-groups {
  padding: 8px 12px;
}
.progression-group {
  border-bottom: 1px solid #404a58;
}
.progression-group summary {
  cursor: pointer;
  padding: 9px 2px;
  font-size: 12px;
  color: #eef2f7;
}
.progression-group summary span {
  float: right;
  color: #a9b8c8;
  font-size: 11px;
}
.progression-level {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 5px;
  border-top: 1px solid rgba(150, 170, 190, 0.14);
  background: linear-gradient(90deg, rgba(72, 154, 201, 0.12), transparent 70%);
}
.level-tag {
  color: #c1d3e3;
  font-size: 12px;
}
.progression-level b {
  font-size: 12px;
  font-weight: 600;
}
.progression-level small {
  display: block;
  margin-top: 3px;
  color: #9eacba;
  font:
    10px Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.progression-level strong {
  max-width: 170px;
  color: #f5e3af;
  font-size: 11px;
  text-align: right;
  overflow-wrap: anywhere;
}
.progression-panel footer {
  padding: 9px 14px;
  border-top: 1px solid #404a58;
  color: #aebdca;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}
@media (max-width: 760px) {
  .game-head {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 10px;
  }
  .game-tabs {
    overflow: auto;
    justify-content: flex-start;
    gap: 2px;
  }
  .game-layout {
    display: block;
  }
  .game-rail {
    min-height: 245px;
  }
  .gate-art {
    background-size: auto 100%;
  }
  .game-content {
    padding: 14px 8px;
  }
  .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }
  .game-card {
    min-height: 325px;
  }
  .game-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .game-toolbar input {
    width: 100%;
  }
}

/* Keep the achievement gate and category rail stationary; scroll the card pane. */
.achievement-main {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  background-size: cover;
}
.game-head,
.game-tabs {
  flex: none;
}
.game-layout {
  flex: 1;
  min-height: 0;
  height: auto;
  grid-template-columns: minmax(310px, 34%) minmax(0, 1fr);
  overflow: hidden;
}
.game-rail {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  justify-content: flex-end;
}
.gate-art {
  background-position: center 47%;
  background-size: auto 88%;
}
.category-menu {
  top: 3%;
  left: 0;
  width: min(210px, 78%);
}
.game-content {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-top: 18px;
  padding-bottom: 24px;
}
.achievement-main #achievementDetail:not(:empty) {
  position: fixed;
  z-index: 25;
  inset: 10vh 3vw;
  overflow: auto;
  margin: 0;
  padding: 0 8px 8px;
}
.game-title .game-mark {
  display: block;
  width: 37px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(154, 196, 255, 0.58));
}
.card-title {
  height: 47px;
  padding-bottom: 0;
}
.card-title::before,
.card-title::after {
  content: none;
}
.card-divider {
  display: block;
  width: 100%;
  height: 15px;
  background: url("/assets/sprites/achievement-card-divider.png") center/100%
    100% no-repeat;
  margin: 0 0 8px;
  flex: none;
}
@font-face {
  font-family: Aion2Yoon;
  src: url("/assets/fonts/Aion2Yoon_EN_B.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: NotoSansUI;
  src: url("/assets/fonts/NotoSans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.game-title h1,
.game-tabs button,
.game-tabs a,
.category-menu button,
.category-menu a,
.card-footer {
  font-family: Aion2Yoon, Arial, sans-serif;
  font-weight: 700;
}
.game-toolbar input,
.race-picker button,
.race-picker a {
  font-family: NotoSansUI, Arial, sans-serif;
  font-weight: 700;
}
.card-objective {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card-title {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
.game-card .card-footer {
  display: none;
}
.game-content,
.progression-panel,
#achievementDetail {
  scrollbar-width: thin;
  scrollbar-color: #53677f #10151c;
}
.game-content::-webkit-scrollbar,
.progression-panel::-webkit-scrollbar,
#achievementDetail::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.game-content::-webkit-scrollbar-track,
.progression-panel::-webkit-scrollbar-track,
#achievementDetail::-webkit-scrollbar-track {
  background: rgba(10, 14, 20, 0.82);
  border-left: 1px solid rgba(147, 170, 197, 0.12);
}
.game-content::-webkit-scrollbar-thumb,
.progression-panel::-webkit-scrollbar-thumb,
#achievementDetail::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #637d98, #34465d);
  border: 2px solid #111821;
  border-radius: 8px;
}
.game-content::-webkit-scrollbar-thumb:hover,
.progression-panel::-webkit-scrollbar-thumb:hover,
#achievementDetail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8aa8c6, #4c6683);
}
body.achievement-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #030609;
  color: #f5f3ef;
}
.achievement-page .achievement-main {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.achievement-page .achievement-main--connections {
  display: block;
  overflow: auto;
}
.achievement-footer {
  z-index: 5;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(#111720, #090d13);
  border-top: 1px solid rgba(180, 196, 214, 0.2);
  color: #9eafc2;
  font:
    12px Aion2Yoon,
    Arial,
    sans-serif;
}
.achievement-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.achievement-footer a {
  color: #c5d7e8;
  text-decoration: none;
}
.achievement-footer a:hover {
  color: #fff;
}
.achievement-footer .side-entry {
  padding: 4px 8px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #9eafc2;
  font: inherit;
  cursor: pointer;
}
.achievement-footer .side-entry:hover,
.achievement-footer .side-entry.active {
  background: rgba(68, 119, 158, 0.22);
  color: #d8f6ff;
}
.achievement-locale {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #aebdcd;
}
.achievement-locale select {
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #394856;
  background: #111c28;
  color: #f4f7fb;
  font:
    12px Aion2Yoon,
    Arial,
    sans-serif;
}
.achievement-page .achievement-main--connections {
  scrollbar-width: thin;
  scrollbar-color: #53677f #10151c;
}
.achievement-page .achievement-main--connections::-webkit-scrollbar {
  width: 10px;
}
.achievement-page .achievement-main--connections::-webkit-scrollbar-track {
  background: #10151c;
}
.achievement-page .achievement-main--connections::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #637d98, #34465d);
  border: 2px solid #111821;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .achievement-page .game-head {
    height: 54px;
    min-height: 54px;
    padding: 0 8px;
    gap: 4px;
  }
  .achievement-page .game-title {
    gap: 4px;
    min-width: 0;
  }
  .achievement-page .game-title h1 {
    font-size: 20px;
    white-space: nowrap;
  }
  .achievement-page .game-title .game-mark {
    width: 30px;
    height: 40px;
  }
  .achievement-page .race-picker {
    gap: 1px;
    padding: 2px;
  }
  .achievement-page .race-picker button,
  .achievement-page .race-picker a {
    padding: 5px 7px;
    font-size: 11px;
  }
  .achievement-page .race-picker button[data-race="Light"],
  .achievement-page .race-picker button[data-race="Dark"],
  .achievement-page .race-picker a[data-race="Light"],
  .achievement-page .race-picker a[data-race="Dark"] {
    width: 32px;
    height: 32px;
    padding: 2px;
  }
  .achievement-page .race-picker button[data-race="Light"] img,
  .achievement-page .race-picker button[data-race="Dark"] img,
  .achievement-page .race-picker a[data-race="Light"] img,
  .achievement-page .race-picker a[data-race="Dark"] img {
    width: 23px;
    height: 23px;
  }
  .achievement-page .game-tabs {
    height: 40px;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .achievement-page .game-tabs::-webkit-scrollbar {
    display: none;
  }
  .achievement-page .game-tabs button,
  .achievement-page .game-tabs a {
    flex: 1 0 76px;
    min-width: 76px;
    padding: 6px 8px;
    font-size: 12px;
  }
  .achievement-page .game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: auto;
  }
  .achievement-page .game-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 0;
    background: rgba(3, 7, 13, 0.78);
  }
  .achievement-page .gate-art {
    display: none;
  }
  .achievement-page .category-menu {
    position: relative;
    grid-column: 1/-1;
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 4px;
    padding: 5px 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #53677f #10151c;
  }
  .achievement-page .category-menu button,
  .category-menu a {
    flex: 0 0 auto;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 7px 9px;
    background: transparent;
    font-size: 12px;
    white-space: nowrap;
  }
  .achievement-page .category-menu button:hover,
  .achievement-page .category-menu button.active,
  .achievement-page .category-menu a:hover,
  .achievement-page .category-menu a.active {
    border: 0;
    border-bottom: 2px solid #91c9ef;
    background: linear-gradient(180deg, transparent, rgba(24, 35, 55, 0.65));
  }
  .achievement-page .gate-progress {
    grid-column: 1;
    align-items: flex-start;
    margin: 2px 9px 5px;
    font-size: 11px;
  }
  .achievement-page .progression-open {
    grid-column: 2;
    margin: 2px 8px 5px;
    padding: 5px 8px;
    font-size: 10px;
  }
  .achievement-page .game-content {
    min-height: 0;
    height: auto;
    padding: 10px 8px 16px;
  }
  .achievement-page .game-toolbar {
    gap: 7px;
    margin-bottom: 9px;
  }
  .achievement-page .game-toolbar h2 {
    font-size: 17px;
  }
  .achievement-page .game-toolbar input {
    width: 100%;
    min-height: 38px;
  }
  .achievement-page .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 5px;
  }
  .achievement-page .game-card {
    min-height: 285px;
    padding: 10px 8px 0;
  }
  .achievement-page .achievement-footer {
    flex-basis: 38px;
    gap: 4px;
    padding: 0 7px;
    overflow-x: auto;
    font-size: 10px;
  }
  .achievement-page .achievement-footer nav {
    flex: none;
    gap: 3px;
  }
  .achievement-page .achievement-footer .side-entry {
    padding: 4px 5px;
    font-size: 10px;
  }
  .achievement-page .achievement-locale {
    gap: 4px;
    font-size: 10px;
  }
  .achievement-page .achievement-locale select {
    max-width: 92px;
    padding: 3px 4px;
    font-size: 10px;
  }
}
@media (max-width: 380px) {
  .achievement-page .game-title h1 {
    font-size: 18px;
  }
  .achievement-page .race-picker button[data-race=""] {
    font-size: 10px;
    padding-inline: 5px;
  }
  .achievement-page .category-menu button,
  .category-menu a {
    padding-inline: 7px;
  }
  .achievement-page .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}
@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .achievement-main {
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }
  .game-head {
    height: 58px;
    min-height: 58px;
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .game-tabs {
    height: 44px;
    flex: none;
  }
  .game-layout {
    display: grid;
    grid-template-columns: minmax(120px, 28%) minmax(0, 1fr);
    min-height: 0;
  }
  .game-rail {
    height: 100%;
    min-height: 0;
    padding: 12px 5px;
  }
  .category-menu {
    top: 3%;
    width: 96%;
  }
  .category-menu button,
  .category-menu a {
    padding: 8px 6px 8px 9px;
    font-size: 12px;
  }
  .gate-art {
    background-size: auto 80%;
  }
  .game-content {
    padding: 12px 7px 20px;
  }
  .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .game-card {
    min-height: 325px;
  }
}

.race-picker a,
.game-tabs a,
.category-menu a {
  display: block;
  text-decoration: none;
}
.game-tabs a {
  position: relative;
}
#achSearchForm {
  width: min(280px, 40%);
}
#achSearchForm input {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  #achSearchForm {
    width: 100%;
  }
}
#achievementMain[data-search-active="true"] .achievement-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 6px;
}
#achievementMain[data-search-active="true"] .game-card {
  min-height: 0;
  padding: 9px 11px 12px;
}
#achievementMain[data-search-active="true"] .card-glyph {
  width: 42px;
  height: 35px;
  margin-bottom: 1px;
}
#achievementMain[data-search-active="true"] .card-title {
  height: auto;
  min-height: 0;
  max-height: 2.3em;
  padding: 0;
  font-size: 17px;
  line-height: 1.15;
}
#achievementMain[data-search-active="true"] .card-divider {
  height: 11px;
  margin: 2px 0 5px;
}
#achievementMain[data-search-active="true"] .card-objective {
  height: auto;
  min-height: 0;
  max-height: 3.75em;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#achSearchForm input,
#achievementMain #achSearch {
  height: 35px;
  min-height: 35px;
  padding: 6px 10px;
  font-size: 12px;
}
@media (max-width: 760px) {
  #achievementMain[data-search-active="true"] .achievement-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr));
  }
  #achievementMain[data-search-active="true"] .game-card {
    padding: 8px 8px 10px;
  }
  #achievementMain[data-search-active="true"] .card-title {
    font-size: 15px;
  }
}
.achievement-page .gate-stat {
  width: min(220px, 100%);
  padding: 8px 8px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}
.achievement-page .gate-stat::before {
  content: "";
  width: 100%;
  height: 14px;
  margin-bottom: 1px;
  background: url("/assets/sprites/achievement-card-divider.png") center/100%
    100% no-repeat;
}
.achievement-page .gate-stat__body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 4px;
}
.achievement-page .gate-stat__label {
  font:
    600 13px/1.3 "Aion2Yoon",
    Arial,
    sans-serif;
  color: #e4e8ed;
  letter-spacing: 0.02em;
}
.achievement-page .gate-stat__number {
  font:
    600 30px/1.1 Georgia,
    serif;
  color: #12e6e5;
  /* text-shadow: 0 0 10px rgba(0, 236, 240, 0.38); */
  font-variant-numeric: tabular-nums;
}
.achievement-page .gate-stat--total .gate-stat__body {
  padding: 4px 8px;
  box-shadow: none;
}
.achievement-page .game-card .card-title {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  display: block;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  line-height: 30px;
  text-align: center;
}
.achievement-page .card-title__text {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-page .card-title--scroll .card-title__text {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 0;
}
.achievement-page .game-card:hover .card-title--scroll .card-title__text,
.achievement-page
  .game-card:focus-visible
  .card-title--scroll
  .card-title__text {
  width: max-content;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: achievement-title-scroll 5s linear 0.55s infinite;
}
.achievement-page .game-card:hover .card-title--scroll .card-title__text::after,
.achievement-page
  .game-card:focus-visible
  .card-title--scroll
  .card-title__text::after {
  content: attr(title);
  padding-left: 3em;
}
#achievementMain[data-search-active="true"] .card-title {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  padding: 0;
  line-height: 30px;
  white-space: nowrap;
}
@keyframes achievement-title-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .achievement-page .card-title--scroll .card-title__text {
    animation: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(achievement-content) {
    animation: achievement-content-out 140ms ease both;
  }
  ::view-transition-new(achievement-content) {
    animation: achievement-content-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1)
      both;
  }
  @keyframes achievement-content-out {
    to {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
  @keyframes achievement-content-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

/* Server-rendered achievement detail pages */
body.achievement-detail-page {
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #030609 url("/assets/bg/UT_BG_Achievement_All.png") center/cover
    fixed no-repeat;
}
.achievement-detail-page .detail-page-head {
  position: relative;
  flex: 0 0 58px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: none;
  backdrop-filter: none;
}
.achievement-detail-page .detail-page-head > * {
  min-width: 0;
}
.achievement-detail-page .detail-brand {
  flex: 1 1 auto;
}
.achievement-detail-page .detail-page-head > .detail-return {
  flex: 0 1 auto;
  white-space: nowrap;
}
.achievement-detail-page .detail-brand {
  color: #efeff4;
  text-decoration: none;
  font:
    600 24px Georgia,
    serif;
  text-shadow: 0 2px 8px #9cb6d8;
}
.achievement-detail-page .detail-brand .game-mark {
  width: 34px;
  height: 52px;
  object-fit: contain;
}
.detail-return {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(154, 184, 212, 0.38);
  background: rgba(9, 16, 24, 0.82);
  color: #d9e8f5;
  font:
    600 12px/1.2 NotoSansUI,
    Arial,
    sans-serif;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}
.detail-return:hover {
  border-color: #70dce8;
  background: rgba(24, 45, 59, 0.92);
}
.achievement-detail-main {
  flex: 1 0 auto;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) clamp(14px, 4vw, 38px) 64px;
  box-sizing: border-box;
}
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px 2px;
  color: #90a2b5;
  font:
    600 11px/1.4 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-breadcrumb a,
.detail-eyebrow a {
  color: #9ccbd8;
  text-decoration: none;
}
.detail-breadcrumb a:hover,
.detail-eyebrow a:hover {
  color: #e1fbff;
  text-decoration: underline;
}
.achievement-detail-card {
  overflow: hidden;
  border: 1px solid rgba(180, 197, 214, 0.34);
  background: linear-gradient(
    110deg,
    rgba(49, 63, 77, 0.55),
    rgba(14, 20, 27, 0.28)
  );
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}
.achievement-detail-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 4vw, 36px);
  border-bottom: 1px solid rgba(196, 211, 224, 0.18);
  background: linear-gradient(
    110deg,
    rgba(49, 63, 77, 0.55),
    rgba(14, 20, 27, 0.28)
  );
}
.detail-hero-glyph {
  width: 92px;
  height: 92px;
  background: var(--detail-glyph) center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(218, 236, 255, 0.3));
}
.detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #71889d;
  font:
    700 10px/1.3 NotoSansUI,
    Arial,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-hero-copy h1 {
  margin: 0;
  color: #e1dedc;
  font:
    600 clamp(25px, 4vw, 38px)/1.12 Georgia,
    serif;
  text-wrap: balance;
}
.detail-lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: #c6d0d9;
  font:
    500 14px/1.55 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}
.detail-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(157, 180, 201, 0.25);
  background: rgba(5, 10, 15, 0.48);
  color: #aebdca;
  font:
    600 10px/1.2 NotoSansUI,
    Arial,
    sans-serif;
}
.achievement-detail-body {
  padding: clamp(18px, 3.5vw, 32px);
}
.achievement-detail-section + .achievement-detail-section {
  margin-top: 30px;
}
.detail-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 211, 221, 0.16);
}
.detail-kicker {
  color: #72dce6;
  font:
    700 9px/1.2 NotoSansUI,
    Arial,
    sans-serif;
  letter-spacing: 0.13em;
}
.detail-section-heading h2 {
  margin: 4px 0 0;
  color: #e2e5e9;
  font:
    600 22px/1.15 Georgia,
    serif;
}
.detail-section-count {
  color: #8295a8;
  font:
    600 11px/1.4 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-objective-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-objective-step,
.detail-reward-step {
  min-width: 0;
  border: 1px solid rgba(155, 174, 192, 0.2);
  background: rgba(7, 13, 19, 0.52);
}
.detail-objective-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
}
.detail-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(94, 219, 229, 0.5);
  color: #6ce8ec;
  font:
    700 12px/1 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-step-copy h3,
.detail-reward-step__heading h3 {
  margin: 0;
  color: #e2e6eb;
  font:
    600 14px/1.35 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-step-copy p {
  margin: 4px 0 0;
  color: #aebbc8;
  font:
    500 12px/1.5 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-step-count {
  color: #8de9ed;
  font:
    700 12px/1.3 NotoSansUI,
    Arial,
    sans-serif;
  white-space: nowrap;
}
.detail-reward-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}
.detail-reward-step {
  padding: 13px 15px;
}
.detail-reward-step__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #8296a9;
  font:
    600 10px/1.3 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-reward-step ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-reward-step li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d0d7de;
  font:
    500 12px/1.4 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-reward-step li strong {
  color: #8de9ed;
  white-space: nowrap;
}
.detail-empty {
  color: #8799aa;
  font:
    500 12px/1.5 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.achievement-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid rgba(199, 211, 221, 0.16);
  color: #899bab;
  font:
    500 11px/1.4 NotoSansUI,
    Arial,
    sans-serif;
}
.achievement-detail-footer strong {
  color: #d4dce3;
}
.detail-site-footer {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 4px clamp(14px, 3vw, 30px);
  border-top: 1px solid rgba(210, 220, 235, 0.14);
}
.detail-footer-home {
  color: #cbd5df;
  font:
    600 11px/1.4 NotoSansUI,
    Arial,
    sans-serif;
  text-decoration: none;
}
.detail-footer-home span {
  color: #8294a7;
  font-weight: 400;
}
.detail-language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9eacba;
  font:
    600 11px/1.4 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-language-picker select {
  min-height: 30px;
  padding: 4px 25px 4px 8px;
  border: 1px solid rgba(154, 184, 212, 0.34);
  border-radius: 2px;
  background: #111923;
  color: #d9e8f5;
  font: inherit;
}
.detail-return--bottom {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .achievement-detail-page .detail-page-head {
    height: 54px;
    min-height: 54px;
    padding-inline: 12px;
  }
  .achievement-detail-page .detail-brand {
    gap: 5px;
    font-size: 19px;
  }
  .achievement-detail-page .detail-brand .game-mark {
    width: 27px;
    height: 42px;
  }
  .detail-return {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 11px;
  }
  .detail-page-head > .detail-return span {
    display: none;
  }
  .achievement-detail-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 15px;
  }
  .detail-hero-glyph {
    width: 54px;
    height: 64px;
  }
  .detail-lead {
    font-size: 12px;
  }
  .achievement-detail-body {
    padding: 18px 14px;
  }
  .detail-objective-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }
  .detail-step-number {
    width: 27px;
    height: 27px;
  }
  .detail-step-count {
    grid-column: 2;
  }
  .achievement-detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Detail page level progression, styled after the in-game milestone panel. */
.achievement-detail-hero {
  min-height: 0;
  padding: 12px clamp(14px, 2.2vw, 22px);
  background: none;
  border-bottom-color: rgba(114, 220, 230, 0.56);
  box-shadow: 0 1px 0 rgba(114, 220, 230, 0.14);
}
.detail-hero-copy h1,
.detail-lead,
.detail-eyebrow,
.detail-tags span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.detail-level-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(199, 211, 221, 0.16);
}
.detail-level-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(150px, 230px);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(199, 211, 221, 0.15);
  background: linear-gradient(
    90deg,
    rgba(8, 14, 20, 0.22),
    rgba(8, 14, 20, 0.5)
  );
}
.detail-level-marker {
  position: relative;
  display: grid;
  min-height: 54px;
  place-items: center;
  color: #d5dce4;
  font:
    600 12px/1.2 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-level-marker img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.detail-level-marker > span:last-child {
  position: absolute;
  bottom: 0;
  white-space: nowrap;
}
.detail-level-marker__fallback {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(154, 186, 209, 0.55);
  border-radius: 50%;
  color: #8de9ed;
}
.detail-level-objective {
  min-width: 0;
}
.detail-level-objective h3 {
  margin: 0 0 3px;
  color: #72e8e7;
  font:
    700 12px/1.3 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-level-objective p {
  margin: 0;
  color: #e0e5eb;
  font:
    500 13px/1.4 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-level-objective small {
  display: block;
  margin-top: 3px;
  color: #8fa1b1;
  font:
    500 10px/1.3 NotoSansUI,
    Arial,
    sans-serif;
}
.detail-level-rewards {
  min-width: 0;
}
.detail-level-rewards ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-level-rewards li {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: #cbd5df;
  font:
    500 11px/1.35 Aion2Yoon,
    NotoSansUI,
    Arial,
    sans-serif;
}
.detail-level-rewards li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-level-rewards li strong {
  color: #8de9ed;
  white-space: nowrap;
}
.detail-no-reward {
  color: #78899a;
  font:
    500 10px/1.4 NotoSansUI,
    Arial,
    sans-serif;
}
@media (max-width: 640px) {
  .achievement-detail-hero {
    min-height: 0;
    padding: 10px 12px;
  }
  .detail-level-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 4px;
  }
  .detail-level-marker {
    min-height: 48px;
  }
  .detail-level-marker img {
    width: 36px;
    height: 36px;
  }
  .detail-level-rewards {
    grid-column: 2;
    padding-top: 3px;
  }
  .detail-level-rewards li {
    justify-content: flex-start;
  }
}

.achievement-page a.game-card {
  color: inherit;
  text-decoration: none;
}

.achievement-page a.game-card,
.achievement-page a.game-card:visited,
.achievement-page a.game-card:hover,
.achievement-page a.game-card:focus,
.achievement-page a.game-card:active {
  text-decoration: none;
}

/* Keep the achievement navigation and gate counters balanced on phones. */
@media (max-width: 760px) {
  .achievement-page .game-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 40px;
    overflow: hidden;
  }
  .achievement-page .game-tabs button,
  .achievement-page .game-tabs a {
    flex: initial;
    min-width: 0;
    padding: 6px 2px;
    font-size: clamp(9px, 2.8vw, 12px);
    text-align: center;
  }
  .achievement-page .game-rail {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .achievement-page .gate-progress {
    grid-column: 1;
    justify-self: center;
    align-items: center;
    width: min(100%, 360px);
    margin: 5px auto 8px;
    text-align: center;
  }
  .achievement-page .gate-stat {
    width: min(220px, 100%);
    margin-inline: auto;
  }
  .achievement-page .progression-open {
    grid-column: 1;
    justify-self: center;
    margin: 2px auto 9px;
  }
}

.progression-panel {
  width: min(560px, 96vw);
  max-height: min(82vh, 780px);
  background:
    radial-gradient(
      ellipse at 50% 0,
      rgba(78, 112, 151, 0.18),
      transparent 55%
    ),
    linear-gradient(145deg, #252d37, #1c222a 72%);
  border-color: #566271;
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.82),
    0 0 24px rgba(64, 143, 201, 0.12);
}
.progression-panel > header {
  min-height: 42px;
  box-sizing: border-box;
  background: linear-gradient(90deg, #303a49, #252d38);
  color: #c7e6f8;
  text-shadow: 0 1px 4px #000;
}
.progression-panel > header div span {
  color: #9feaff;
}
.progression-panel > header button {
  width: 30px;
  height: 30px;
  margin: -3px -5px -3px 8px;
  color: #dce8f2;
}
.progression-groups {
  padding: 6px 12px 8px;
}
.progression-group {
  border-color: rgba(156, 180, 204, 0.2);
}
.progression-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  list-style: none;
}
.progression-group summary::-webkit-details-marker {
  display: none;
}
.progression-group summary::after {
  content: "+";
  order: 2;
  color: #91d9ef;
  font-size: 16px;
}
.progression-group[open] summary::after {
  content: "−";
}
.progression-group__title {
  color: #f1f3f5;
  font-size: 13px;
  font-weight: 700;
}
.progression-group__race {
  margin-left: auto;
  color: #b7c6d5;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}
.progression-group__race i,
.progression-panel footer i {
  color: #9feaff;
  font-style: normal;
}
.progression-level {
  grid-template-columns: 54px minmax(0, 1fr) minmax(90px, auto);
  min-height: 52px;
  padding: 8px 5px;
  border-top-color: rgba(150, 190, 218, 0.18);
  background: linear-gradient(90deg, rgba(65, 158, 204, 0.12), transparent 76%);
}
.progression-level__marker {
  position: relative;
  display: grid;
  width: 48px;
  height: 46px;
  place-items: start center;
  color: #d5dce4;
  font-size: 11px;
  line-height: 1;
}
.progression-level__marker img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.progression-level__marker span {
  position: absolute;
  bottom: 0;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
}
.progression-level__description b {
  color: #c8f3ff;
  font-size: 12px;
  line-height: 1.4;
}
.progression-level strong {
  color: #f0e2bd;
  font-size: 14px;
  font-weight: 600;
}
.progression-level strong i {
  color: #93dcec;
  font-style: normal;
}
.progression-panel footer {
  color: #9eafc0;
}
.progression-categories {
  padding: 5px 12px 8px;
}
.progression-category + .progression-category {
  margin-top: 12px;
  border-top: 1px solid rgba(156, 180, 204, 0.22);
}
.progression-category .progression-level {
  min-height: 62px;
  border-top-color: rgba(156, 180, 204, 0.24);
}
.progression-level__description b {
  color: #f1f4f8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.progression-category .progression-level strong {
  color: #f4e8c8;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .progression-backdrop {
    padding: 10px;
  }
  .progression-panel {
    width: 100%;
    max-height: 88vh;
  }
  .progression-panel > header {
    padding: 10px 12px;
    font-size: 14px;
  }
  .progression-categories {
    padding-inline: 9px;
  }
  .progression-group summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .progression-group__race {
    margin-left: 0;
    text-align: left;
  }
  .progression-group summary::after {
    margin-left: auto;
  }
  .progression-level {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
  }
  .progression-level strong {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }
}
