/* 서브 페이지(업적·도움말·랭킹) 공통 레이아웃 */
.page-wrap {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 88px;
}

.page-hero {
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-lede {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.doc-panel {
  margin-top: 24px;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(22, 15, 9, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.doc-panel h2 {
  margin: 0 0 16px;
  font-size: 19px;
  font-weight: 800;
}

.doc-panel h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.doc-panel p,
.doc-panel li {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.doc-panel ul,
.doc-panel ol {
  margin: 0;
  padding-left: 22px;
}

.doc-panel li + li {
  margin-top: 10px;
}

.cmd-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
}

.cmd-table th,
.cmd-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.cmd-table th {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
  width: 28%;
}

.cmd-table td code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--gold);
  word-break: break-all;
}

.command-detail {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.command-detail summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  color: var(--soft);
  list-style: none;
}

.command-detail summary::-webkit-details-marker {
  display: none;
}

.command-detail pre {
  margin: 0;
  padding: 0 18px 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.top-tabs .tab-link.is-current {
  color: var(--gold);
  background: rgba(0, 132, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 132, 255, 0.22);
}

.ranking-live-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.ranking-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 122, 122, 0.35);
  background: rgba(232, 122, 122, 0.08);
  color: #f0b0b0;
  font-size: 14px;
}

.rank-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.rank-board-table td:first-child,
.rank-board-table th:first-child {
  white-space: nowrap;
  width: 52px;
}

/* —— 랭킹 전용(리더보드) —— */
.ranking-page .page-hero--ranking {
  border-bottom: 1px solid rgba(0, 132, 255, 0.22);
  padding-bottom: 32px;
  margin-bottom: 20px;
  position: relative;
}

.ranking-page .page-hero--ranking::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(280px, 55%);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  opacity: 0.85;
}

.ranking-page-badge {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 132, 255, 0.35);
  background: rgba(0, 132, 255, 0.1);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ranking-live-meta--board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ranking-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.ranking-stat--wide {
  flex: 1 1 220px;
  min-width: 0;
  white-space: normal;
}

.ranking-stat__label {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.ranking-stat strong {
  color: var(--soft);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.doc-panel--ranking {
  border-color: rgba(0, 132, 255, 0.18);
  background:
    linear-gradient(165deg, rgba(0, 132, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(18, 12, 8, 0.82);
}

.rank-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rank-board__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rank-board__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.rank-board__tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bde5ff;
  border: 1px solid rgba(0, 132, 255, 0.35);
  background: rgba(0, 132, 255, 0.1);
}

.rank-board__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.rank-board__scroll {
  max-height: min(520px, 62vh);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.rank-board__scroll .cmd-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #1c1410 0%, #16100c 100%);
  border-bottom: 1px solid rgba(0, 132, 255, 0.2);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  color: var(--gold);
}

.rank-board-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

@media (hover: hover) and (pointer: fine) {
  .rank-board-table tbody tr:hover {
    background: rgba(0, 132, 255, 0.06);
  }
}

.rank-board-table__name {
  font-weight: 800;
  color: var(--soft);
}

.rank-board-table__score {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-align: right;
}

.rank-board-table__num,
.rank-board-table__pct {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 700;
}

.rank-board-table__pct {
  color: #bde5ff;
}

.rank-board-table th.rank-board-table__num,
.rank-board-table td.rank-board-table__num,
.rank-board-table th.rank-board-table__score,
.rank-board-table td.rank-board-table__score {
  text-align: right;
}

.rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-cell__medal {
  font-size: 15px;
  line-height: 1;
  width: 1.25em;
  text-align: center;
}

.rank-cell__medal--empty {
  opacity: 0;
}

.rank-cell__num {
  min-width: 1.5em;
  color: var(--soft);
}

.rank-row--1 {
  box-shadow: inset 3px 0 0 #e8c547;
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.12), transparent) !important;
}

.rank-row--2 {
  box-shadow: inset 3px 0 0 #c0c8d4;
  background: linear-gradient(90deg, rgba(192, 200, 212, 0.08), transparent) !important;
}

.rank-row--3 {
  box-shadow: inset 3px 0 0 #cd7f32;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent) !important;
}

.rank-row--top10 .rank-cell__num {
  color: var(--gold);
}

/* 포디움(국력 상위) */
.rank-podium {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  align-items: end;
}

.rank-podium--triple {
  grid-template-columns: 1fr 1.12fr 1fr;
}

.rank-podium--double {
  grid-template-columns: 1fr 1.12fr;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.rank-podium--single {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.rank-podium__card {
  position: relative;
  border-radius: 20px;
  padding: 16px 14px 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.2)),
    rgba(12, 9, 6, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rank-podium__card--1 {
  padding-bottom: 22px;
  min-height: 148px;
  border-color: rgba(0, 132, 255, 0.45);
  background:
    linear-gradient(180deg, rgba(0, 132, 255, 0.18), rgba(0, 0, 0, 0.25)),
    rgba(18, 12, 8, 0.95);
}

.rank-podium__card--2 {
  min-height: 118px;
}

.rank-podium__card--3 {
  min-height: 104px;
}

.rank-podium__medal {
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.rank-podium__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--soft);
  line-height: 1.35;
  word-break: break-word;
}

.rank-podium__value {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.rank-podium__value strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.rank-podium__unit {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .rank-podium--triple {
    grid-template-columns: 1fr;
  }

  .rank-podium--triple .rank-podium__card--1 {
    order: -1;
  }

  .rank-podium--triple .rank-podium__card--2 {
    order: 0;
  }

  .rank-podium--triple .rank-podium__card--3 {
    order: 1;
  }

  .doc-panel:not(.rank-board) .cmd-table th {
    width: 34%;
  }
}

/* Guide FAQ 검색/필터 */
.faq-searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 10px;
}

.faq-searchbar__input {
  flex: 1;
  min-width: 240px;
  border-radius: 14px;
  border: 1px solid rgba(0, 132, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 12px 14px;
  font: 500 14px/1.2 var(--font);
}

.faq-searchbar__input:focus {
  outline: none;
  border-color: rgba(0, 132, 255, 0.44);
}

.faq-searchbar__clear {
  border-radius: 999px;
  border: 1px solid rgba(0, 132, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 10px 14px;
  font: 800 13px/1 var(--font);
  cursor: pointer;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.faq-filter-btn {
  border: 1px solid rgba(0, 132, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  font: 800 13px/1 var(--font);
  background: rgba(255, 255, 255, 0.02);
  color: var(--soft);
  cursor: pointer;
}

.faq-filter-btn.is-active {
  color: var(--gold);
  border-color: rgba(0, 132, 255, 0.56);
  background: rgba(0, 132, 255, 0.12);
}

.faq-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.faq-popular-btn {
  border: 1px solid rgba(0, 132, 255, 0.35);
  border-radius: 999px;
  padding: 10px 14px;
  font: 900 13px/1 var(--font);
  background: rgba(0, 132, 255, 0.08);
  color: #bde5ff;
  cursor: pointer;
}

.faq-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.faq-list {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid rgba(0, 132, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(0, 132, 255, 0.30);
}

.faq-summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--soft);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.help-page .doc-panel,
#landing-help-panel .doc-panel {
  border-color: rgba(0, 132, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(0, 132, 255, 0.08), rgba(165, 230, 29, 0.07)),
    #ffffff;
  box-shadow: 0 16px 40px rgba(0, 132, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.help-page .doc-panel p,
.help-page .doc-panel li,
#landing-help-panel .doc-panel p,
#landing-help-panel .doc-panel li {
  color: #123b5d;
}

.help-page .cmd-table-wrap,
#landing-help-panel .cmd-table-wrap {
  border-color: rgba(0, 132, 255, 0.16);
  background: #ffffff;
}

.help-page .cmd-table th,
.help-page .cmd-table td,
#landing-help-panel .cmd-table th,
#landing-help-panel .cmd-table td {
  border-bottom-color: rgba(0, 132, 255, 0.12);
}

.help-page .cmd-table th,
#landing-help-panel .cmd-table th {
  background: rgba(0, 132, 255, 0.08);
  color: var(--electric-blue);
}

.help-page .cmd-table td,
#landing-help-panel .cmd-table td {
  background: rgba(255, 255, 255, 0.96);
  color: #123b5d;
}

.help-page .cmd-table td code,
#landing-help-panel .cmd-table td code {
  color: #0067c7;
}

.help-page .command-detail,
#landing-help-panel .command-detail {
  border-color: rgba(0, 132, 255, 0.18);
  background: linear-gradient(150deg, rgba(0, 132, 255, 0.07), rgba(165, 230, 29, 0.07)), #ffffff;
}

.help-page .command-detail pre,
#landing-help-panel .command-detail pre {
  color: #245070;
}

.help-page .faq-searchbar__input,
#landing-help-panel .faq-searchbar__input {
  border-color: rgba(0, 132, 255, 0.24);
  background: #ffffff;
  color: #0b2740;
}

.help-page .faq-searchbar__clear,
#landing-help-panel .faq-searchbar__clear {
  border-color: rgba(0, 132, 255, 0.24);
  background: rgba(0, 132, 255, 0.08);
  color: #0067c7;
}

.help-page .faq-filter-btn,
#landing-help-panel .faq-filter-btn {
  border-color: rgba(0, 132, 255, 0.2);
  background: rgba(0, 132, 255, 0.08);
  color: #245070;
}

.help-page .faq-filter-btn.is-active,
#landing-help-panel .faq-filter-btn.is-active {
  border-color: rgba(165, 230, 29, 0.62);
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.12), rgba(165, 230, 29, 0.22));
  color: #0067c7;
}

.help-page .faq-popular-btn,
#landing-help-panel .faq-popular-btn {
  border-color: rgba(165, 230, 29, 0.58);
  background: rgba(165, 230, 29, 0.18);
  color: #457800;
}

.help-page .faq-count,
#landing-help-panel .faq-count {
  color: #245070;
}

.help-page .faq-item,
#landing-help-panel .faq-item {
  border-color: rgba(0, 132, 255, 0.16);
  background: linear-gradient(150deg, rgba(0, 132, 255, 0.07), rgba(255, 255, 255, 0.98)), #ffffff;
}

.help-page .faq-item[open],
#landing-help-panel .faq-item[open] {
  border-color: rgba(0, 132, 255, 0.34);
  background: linear-gradient(150deg, rgba(0, 132, 255, 0.1), rgba(165, 230, 29, 0.08)), #ffffff;
}

.help-page .faq-summary,
#landing-help-panel .faq-summary {
  color: #0b2740;
}

.help-page .faq-answer,
#landing-help-panel .faq-answer {
  color: #245070;
}

/* Landing 내부 도감/업적 패널 */
.landing-panel {
  padding-bottom: 24px;
}

.landing-tab-pad {
  padding-top: 14px;
}

.landing-panel[hidden] {
  display: none;
}

.landing-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.codex-country-grid {
  margin-top: 10px;
}

.landing-codex-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.landing-codex-shell > * {
  min-width: 0;
}

.landing-stats-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.landing-stats-section {
  border-color: rgba(0, 132, 255, 0.18);
}

.landing-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.landing-stats-head h2 {
  margin: 10px 0 6px;
}

.landing-stats-head p {
  margin: 0;
  max-width: 620px;
}

.landing-stats-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 132, 255, 0.28);
  background: rgba(0, 132, 255, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-stats-card {
  min-height: 132px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 132, 255, 0.2);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 132, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-stats-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(0, 132, 255, 0.2);
  background: rgba(0, 132, 255, 0.08);
  color: var(--electric-blue);
  box-shadow: none;
}

.landing-stats-card > span {
  color: #0067c7;
  font-size: 12px;
  font-weight: 800;
}

.landing-stats-card strong {
  color: #0b2740;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.landing-stats-card p {
  margin: auto 0 0;
  color: #245070;
  font-size: 12px;
  line-height: 1.45;
}

.landing-stats-section .landing-stats-card p {
  color: #245070;
}

.landing-stats-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 132, 255, 0.14);
  color: #245070;
  font-size: 13px;
  line-height: 1.55;
}

.landing-svg-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.landing-button-svg {
  width: 17px;
  height: 17px;
}

.landing-panel-actions .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-codex-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 200, 102, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 24%, rgba(241, 200, 102, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(65, 45, 19, 0.92), rgba(22, 15, 8, 0.98) 58%, rgba(42, 29, 13, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(22px, 4vw, 38px);
}

.landing-codex-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(241, 200, 102, 0.13);
  border-radius: 22px;
  pointer-events: none;
}

.landing-codex-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.landing-codex-hero-grid--simple {
  grid-template-columns: minmax(0, 1fr);
}

.landing-atlas-orb {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(241, 200, 102, 0.22);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.3), transparent 36%),
    repeating-linear-gradient(110deg, rgba(241, 200, 102, 0.16) 0 2px, transparent 2px 14px),
    rgba(26, 18, 8, 0.7);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.48), 0 30px 52px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.landing-eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-eyebrow-line .landing-svg-icon {
  width: 16px;
  height: 16px;
}

.landing-eyebrow-line::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.landing-codex-title {
  margin: 10px 0 10px;
  color: var(--soft);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.landing-title-particle {
  display: inline;
}

.landing-codex-copy {
  max-width: 620px;
  color: #d8c6a8;
  font-size: 15px;
  line-height: 1.7;
}

.landing-progress-stage {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.landing-progress-ring {
  width: 160px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #1a1208 0 58%, transparent 59%),
    conic-gradient(var(--gold) var(--progress-deg, 0deg), rgba(255, 255, 255, 0.1) 0);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.55), 0 0 32px rgba(241, 200, 102, 0.16);
}

.landing-progress-ring strong {
  display: block;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

.landing-progress-ring span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.landing-ring-svg {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  color: var(--gold);
  opacity: 0.88;
}

.landing-hero-stat-grid,
.landing-record-grid,
.landing-rarity-ledger {
  display: grid;
  gap: 10px;
}

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

.landing-hero-stat,
.landing-record-card,
.landing-rarity-ledger-item,
.landing-section-panel,
.landing-featured-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(241, 200, 102, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-hero-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  border-radius: 18px;
  padding: 13px 14px;
}

.landing-stat-icon {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 132, 255, 0.08);
  color: var(--gold);
}

.landing-stat-icon .landing-svg-icon {
  width: 19px;
  height: 19px;
}

.landing-hero-stat span,
.landing-rarity-ledger-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-hero-stat strong,
.landing-rarity-ledger-item strong {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 22px;
  line-height: 1;
}

.landing-hero-stat span,
.landing-hero-stat strong {
  grid-column: 2;
}

.landing-featured-card {
  min-height: 100%;
  border-radius: 26px;
  padding: 20px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 82% 16%, rgba(241, 200, 102, 0.18), transparent 13rem);
}

.landing-featured-flag {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(0, 132, 255, 0.08);
  border: 1px solid rgba(0, 132, 255, 0.2);
  font-size: 42px;
  box-shadow: none;
}

.landing-featured-card h2 {
  margin: 16px 0 8px;
  font-size: 31px;
  line-height: 1.1;
}

.landing-featured-card p {
  color: #d5c3a5;
  font-size: 14px;
  line-height: 1.65;
}

.landing-featured-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

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

.landing-record-card,
.landing-section-panel {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 26px);
}

.landing-industry-mastery-card {
  margin-top: 10px;
  border: 1px solid rgba(241, 200, 102, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  padding: 16px;
}

.landing-industry-mastery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.landing-industry-mastery-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--soft);
  font-size: 17px;
}

.landing-industry-mastery-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.landing-industry-mastery-head > strong {
  color: var(--gold);
  font-size: 20px;
  white-space: nowrap;
}

.landing-industry-mastery-card .landing-linear-bar {
  margin-top: 14px;
}

.landing-industry-mastery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.landing-industry-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 132, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 132, 255, 0.05);
  color: var(--muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.landing-industry-chip.is-mastered {
  border-color: rgba(165, 230, 29, 0.42);
  background: rgba(165, 230, 29, 0.12);
  color: #245000;
}

.landing-record-head,
.landing-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.landing-record-head h3,
.landing-section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--soft);
}

.landing-heading-svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.landing-record-head span,
.landing-result-count {
  color: var(--gold);
  font-weight: 900;
}

.landing-record-card p,
.landing-section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.landing-linear-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.landing-linear-bar > span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

.landing-linear-bar.is-complete,
.achv-bar.is-complete {
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
}

.landing-linear-bar.is-complete > span,
.achv-bar.is-complete > span {
  width: 100% !important;
}

.landing-record-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.landing-rarity-ledger {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-rarity-ledger-item {
  border-radius: 18px;
  padding: 14px;
}

.landing-rarity-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.landing-rarity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: 13px;
  background: rgba(0, 132, 255, 0.08);
  color: var(--gold);
}

.landing-rarity-icon .landing-svg-icon {
  width: 17px;
  height: 17px;
}

.landing-quick-filter-row,
.landing-active-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.landing-quick-chip,
.landing-reset-filter-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(241, 200, 102, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  padding: 0 13px;
  font: 800 12px/1 Pretendard, sans-serif;
  cursor: pointer;
}

.landing-chip-svg,
.landing-label-svg,
.landing-badge-svg,
.landing-meta-svg {
  width: 14px;
  height: 14px;
}

.landing-quick-chip.is-active {
  color: var(--gold);
  border-color: rgba(241, 200, 102, 0.56);
  background: rgba(241, 200, 102, 0.14);
}

.landing-codex-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(241, 200, 102, 0.18);
  border-radius: 22px;
  background: rgba(24, 17, 9, 0.86);
}

.landing-filter-field {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-codex-controls select,
.landing-codex-controls input,
.landing-select-button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(241, 200, 102, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--soft);
  padding: 8px 12px;
  font: 600 13px/1 Pretendard, sans-serif;
}

.landing-custom-select {
  position: relative;
  min-width: 0;
}

.landing-select-button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.landing-select-button [data-filter-value],
.landing-select-button [data-sort-value] {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.landing-select-chevron {
  grid-column: 3;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.16s ease;
}

.landing-custom-select.is-open .landing-select-chevron {
  transform: rotate(180deg);
}

.landing-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(0, 132, 255, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.landing-custom-select.is-open .landing-select-menu {
  display: grid;
  gap: 4px;
}

.landing-select-option,
.landing-select-action {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0b2740;
  padding: 9px 10px;
  font: 800 13px/1.2 var(--font);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.landing-select-option input {
  position: relative;
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 auto;
  grid-column: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
}

.landing-codex-controls .landing-select-option input {
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  padding: 0;
}

.landing-select-option input::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--electric-blue);
  font-size: 16px;
  font-weight: 900;
  opacity: 0;
}

.landing-select-option input:checked::before {
  opacity: 1;
}

.landing-select-option:has(input:checked),
.landing-select-action.is-selected {
  color: var(--electric-blue);
}

@media (hover: hover) and (pointer: fine) {
  .landing-select-option:hover,
  .landing-select-action:hover {
    background: rgba(0, 132, 255, 0.07);
  }
}

@media (max-width: 1100px) {
  .landing-codex-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-filter-field:first-child,
  .landing-reset-filter-button {
    grid-column: 1 / -1;
  }
}

.landing-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(241, 200, 102, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold);
  background: rgba(241, 200, 102, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.landing-empty-results {
  display: none;
  border: 1px dashed rgba(241, 200, 102, 0.28);
  border-radius: 22px;
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.landing-empty-results.is-visible {
  display: block;
}

.landing-codex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-codex-list .landing-country-card {
  position: relative;
  list-style: none;
  border-radius: 24px;
  border: 1px solid rgba(200, 176, 122, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.landing-codex-list .landing-country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
  opacity: 0.7;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .landing-codex-list .landing-country-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 132, 255, 0.28);
    box-shadow: 0 20px 48px rgba(0, 132, 255, 0.14);
  }
}

.landing-codex-list .landing-country-card.is-hidden {
  display: none;
}

.landing-codex-list .landing-country-card[data-grade="rare"] { border-color: rgba(112, 183, 231, 0.38); }
.landing-codex-list .landing-country-card[data-grade="epic"] { border-color: rgba(180, 138, 242, 0.4); }
.landing-codex-list .landing-country-card[data-grade="legendary"] {
  border-color: rgba(241, 200, 102, 0.58);
  box-shadow: 0 0 0 1px rgba(241, 200, 102, 0.06), 0 0 30px rgba(241, 200, 102, 0.1);
}

.landing-codex-list .landing-country-card:not([data-owned="true"]) {
  filter: saturate(0.52);
  opacity: 0.66;
}

.landing-codex-list .country-card-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.landing-codex-list .country-card-body {
  min-width: 0;
}

.landing-codex-list .flag-medallion {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(0, 132, 255, 0.2);
  background: rgba(0, 132, 255, 0.08);
  font-size: 31px;
}

.landing-codex-list .country-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.landing-codex-list .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
}

.landing-codex-list .grade-normal { background: rgba(200, 176, 122, 0.14); border-color: rgba(200, 176, 122, 0.6); color: #e0cfa0; }
.landing-codex-list .grade-rare { background: rgba(91, 174, 224, 0.14); border-color: rgba(91, 174, 224, 0.6); color: #a8d8f8; }
.landing-codex-list .grade-epic { background: rgba(157, 112, 224, 0.14); border-color: rgba(157, 112, 224, 0.6); color: #d0b8f8; }
.landing-codex-list .grade-legendary { background: rgba(240, 200, 64, 0.16); border-color: rgba(240, 200, 64, 0.8); color: #ffe480; }
.landing-codex-list .continent { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); color: var(--muted); }

.landing-codex-list .country-name {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.landing-codex-list .country-description {
  margin-top: 8px;
  min-height: 62px;
  color: #c8b89a;
  font-size: 13px;
  line-height: 1.55;
}

.landing-codex-list .country-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.landing-codex-list .country-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}

.landing-codex-list .country-meta-row .exchange-badge {
  border-color: rgba(241, 200, 102, 0.32);
  background: rgba(241, 200, 102, 0.1);
  color: var(--gold);
}

.landing-codex-list .country-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.landing-country-exchange-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(241, 200, 102, 0.34);
  border-radius: 999px;
  background: rgba(241, 200, 102, 0.12);
  color: var(--gold);
  padding: 0 12px;
  font: 900 12px/1 Pretendard, sans-serif;
  cursor: pointer;
}

.landing-country-exchange-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.landing-codex-list .owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--success);
  border: 1px solid rgba(145, 199, 119, 0.3);
  background: rgba(145, 199, 119, 0.08);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.landing-codex-list .owned-badge[data-owned="false"] {
  color: #9e8c70;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 900px) {
  .landing-codex-hero-grid,
  .landing-progress-stage {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .page-wrap {
    width: min(900px, calc(100% - 32px));
  }

  .landing-tab-pad {
    width: 100%;
    padding: 18px 0 76px;
  }

  .landing-tab-pad,
  .landing-codex-shell {
    min-width: 0;
  }

  .landing-codex-shell {
    gap: 18px;
  }

  .landing-codex-hero,
  .landing-record-grid,
  .landing-section-panel {
    scroll-margin-top: 84px;
  }

  .landing-codex-hero {
    max-width: 100%;
    border-radius: 20px;
    padding: 18px 14px;
  }

  .landing-codex-hero::before {
    inset: 8px;
    border-radius: 16px;
  }

  .landing-atlas-orb {
    display: none;
  }

  .landing-eyebrow-line {
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .landing-eyebrow-line::before {
    width: 24px;
  }

  .landing-codex-title {
    font-size: 31px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .landing-title-particle {
    margin-left: 1px;
  }

  .landing-codex-copy {
    font-size: 14px;
    line-height: 1.62;
  }

  .landing-panel-actions .cta-button {
    width: 100%;
    min-height: 46px;
  }

  .landing-progress-stage {
    gap: 14px;
    margin-top: 22px;
  }

  .landing-progress-ring {
    width: 118px;
    margin: 0 auto;
  }

  .landing-progress-ring strong {
    font-size: 28px;
  }

  .landing-ring-svg {
    display: none;
  }

  .landing-record-grid,
  .landing-rarity-ledger,
  .landing-stats-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .landing-hero-stat {
    min-width: 0;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    border-radius: 15px;
    padding: 12px;
  }

  .landing-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .landing-hero-stat span {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .landing-hero-stat strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .landing-featured-card,
  .landing-record-card,
  .landing-industry-mastery-card,
  .landing-section-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .landing-industry-mastery-head {
    align-items: flex-start;
  }

  .landing-industry-mastery-card h3 {
    font-size: 15px;
  }

  .landing-industry-mastery-head > strong {
    font-size: 18px;
  }

  .landing-industry-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-featured-flag {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 34px;
  }

  .landing-featured-card h2 {
    font-size: 25px;
  }

  .landing-featured-card p {
    font-size: 13px;
    line-height: 1.55;
  }

  .landing-featured-footer {
    gap: 6px;
  }

  .landing-stats-head {
    display: grid;
  }

  .landing-section-heading {
    display: grid;
    gap: 6px;
  }

  .landing-quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .landing-quick-filter-row::-webkit-scrollbar {
    display: none;
  }

  .landing-quick-chip,
  .landing-reset-filter-button {
    min-height: 40px;
  }

  .landing-codex-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .landing-filter-field:first-child,
  .landing-reset-filter-button {
    grid-column: 1 / -1;
  }

  .landing-codex-controls select,
  .landing-codex-controls input,
  .landing-select-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
  }

  .landing-stats-card {
    min-height: 112px;
    padding: 14px;
  }

  .landing-codex-controls .landing-select-option input {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 18px;
    padding: 0;
  }

  .landing-codex-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-codex-list .landing-country-card {
    border-radius: 20px;
  }

  .landing-codex-list .country-card-inner {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px;
  }

  .landing-codex-list .flag-medallion {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 28px;
  }

  .landing-codex-list .country-topline {
    gap: 5px;
    margin-bottom: 7px;
  }

  .landing-codex-list .badge,
  .landing-codex-list .owned-badge {
    margin-left: 0;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .landing-codex-list .country-name {
    font-size: 18px;
    line-height: 1.2;
  }

  .landing-codex-list .country-description {
    min-height: 0;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .landing-codex-hero,
  .landing-featured-card,
  .landing-record-card,
  .landing-section-panel,
  .landing-codex-list .landing-country-card {
    border-color: rgba(0, 132, 255, 0.16);
  }

  .landing-codex-list .country-meta-row {
    gap: 6px;
    margin-top: 10px;
  }

  .landing-codex-list .country-meta-row span {
    padding: 5px 8px;
    font-size: 10px;
  }

  .ranking-page .page-hero--ranking {
    padding-bottom: 24px;
    margin-bottom: 16px;
  }

  .ranking-page-badge {
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .ranking-live-meta--board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .ranking-stat {
    min-width: 0;
    white-space: normal;
  }

  .ranking-page .doc-panel--ranking {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .rank-board__head {
    gap: 8px;
  }

  .rank-board__title {
    gap: 8px;
    font-size: 18px;
    min-width: 0;
  }

  .rank-board__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .rank-board__tag {
    padding: 5px 9px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .rank-board__scroll {
    max-height: min(520px, 62vh);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
  }

  .ranking-page .rank-board-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .ranking-page .rank-board-table th,
  .ranking-page .rank-board-table td {
    padding: 9px 8px;
    vertical-align: middle;
  }

  .rank-board-table td:first-child,
  .rank-board-table th:first-child {
    width: 48px;
  }

  .rank-board-table__name {
    overflow-wrap: anywhere;
  }

  .rank-board-table__score,
  .rank-board-table__num,
  .rank-board-table__pct {
    font-size: 12px;
  }

  .rank-board-table--war th:first-child,
  .rank-board-table--war td:first-child {
    width: 44px;
  }

  .rank-board-table--war th:nth-child(2),
  .rank-board-table--war td:nth-child(2) {
    width: auto;
  }

  .rank-board-table--war th:nth-child(3),
  .rank-board-table--war td:nth-child(3),
  .rank-board-table--war th:nth-child(4),
  .rank-board-table--war td:nth-child(4) {
    width: 38px;
  }

  .rank-board-table--war th:nth-child(5),
  .rank-board-table--war td:nth-child(5) {
    width: 48px;
  }

  .rank-cell {
    gap: 3px;
  }

  .rank-cell__medal {
    width: 16px;
    font-size: 13px;
  }

  .rank-cell__num {
    min-width: 1em;
  }

  .rank-podium {
    gap: 10px;
  }

  .rank-podium__card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .rank-podium__card--1,
  .rank-podium__card--2,
  .rank-podium__card--3 {
    min-height: 0;
  }

  .ranking-page .doc-panel:not(.rank-board) .cmd-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .ranking-page .doc-panel:not(.rank-board) .cmd-table th,
  .ranking-page .doc-panel:not(.rank-board) .cmd-table td {
    padding: 10px 9px;
    overflow-wrap: anywhere;
  }
}

.achv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.achv-filter-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: color 0.16s ease;
}

.achv-filter-toggle input {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid rgba(0, 132, 255, 0.36);
  border-radius: 6px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: currentColor;
}

.achv-filter-toggle input::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--electric-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.achv-filter-toggle input:checked {
  border-color: var(--electric-blue);
  background: rgba(0, 132, 255, 0.08);
}

.achv-filter-toggle input:checked::before {
  opacity: 1;
}

.achv-filter-toggle input:focus-visible {
  outline: 2px solid rgba(0, 132, 255, 0.34);
  outline-offset: 3px;
}

.achv-filter-toggle:has(input:checked) {
  border-color: transparent;
  background: transparent;
  color: var(--electric-blue);
  box-shadow: none;
}

.achv-filter-summary {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

@media (max-width: 900px) {
  .achv-block-grid {
    grid-template-columns: 1fr;
  }
}

.achv-block {
  border-radius: 22px;
  border: 1px solid rgba(0, 132, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  padding: 14px 14px 12px;
}

.achv-empty {
  border-radius: 18px;
  border: 1px solid rgba(0, 132, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.achv-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.achv-progress-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.achv-progress-pct {
  font-weight: 900;
  color: var(--gold);
}

.achv-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.achv-bar > span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: 999px;
}

.achv-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.achv-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.achv-title-button {
  min-height: 38px;
  border: 1px solid rgba(0, 132, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 132, 255, 0.08);
  color: var(--electric-blue);
  padding: 0 14px;
  font: 900 12px/1 Pretendard, sans-serif;
  cursor: pointer;
}

.achv-title-button.is-active {
  border-color: rgba(165, 230, 29, 0.42);
  background: rgba(165, 230, 29, 0.14);
  color: #245000;
}

.achv-clear-title-button {
  min-height: 28px;
  margin-left: 8px;
  border: 1px solid rgba(165, 230, 29, 0.42);
  border-radius: 999px;
  background: rgba(165, 230, 29, 0.14);
  color: #245000;
  padding: 0 10px;
  font: 900 12px/1 Pretendard, sans-serif;
  cursor: pointer;
}

.achv-title-button:disabled,
.achv-clear-title-button:disabled {
  cursor: default;
  border-color: rgba(165, 230, 29, 0.42);
  background: rgba(165, 230, 29, 0.14);
  color: #245000;
}

/* White launch theme */
.doc-panel,
.doc-panel--ranking,
.landing-codex-hero,
.landing-hero-stat,
.landing-record-card,
.landing-industry-mastery-card,
.landing-rarity-ledger-item,
.landing-section-panel,
.landing-featured-card,
.landing-codex-controls,
.landing-codex-list .landing-country-card,
.achv-block,
.achv-empty {
  border-color: rgba(0, 132, 255, 0.16);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.landing-codex-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(165, 230, 29, 0.24), transparent 14rem),
    radial-gradient(circle at 10% 12%, rgba(0, 132, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #eef7ff);
}

.landing-codex-hero::before {
  border-color: rgba(0, 132, 255, 0.16);
}

.landing-atlas-orb {
  border-color: rgba(0, 132, 255, 0.18);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 44% 60%, rgba(165, 230, 29, 0.42), transparent 25%),
    radial-gradient(circle at 65% 36%, rgba(165, 230, 29, 0.34), transparent 19%),
    var(--electric-blue);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.35), 0 28px 54px rgba(0, 132, 255, 0.2);
}

.landing-codex-title,
.landing-record-head h3,
.landing-industry-mastery-card h3,
.landing-section-heading h2,
.rank-board__title,
.achv-block h3 {
  color: var(--text);
}

.landing-codex-copy,
.landing-featured-card p,
.landing-industry-mastery-card p,
.doc-panel p,
.doc-panel li {
  color: var(--soft);
}

.landing-eyebrow-line,
.landing-heading-svg,
.landing-result-count,
.landing-record-head span,
.landing-industry-mastery-head > strong,
.landing-ring-svg,
.landing-progress-ring strong,
.landing-stat-icon,
.landing-rarity-icon,
.landing-quick-chip.is-active,
.landing-active-chip,
.achv-progress-pct,
.cmd-table th {
  color: var(--electric-blue);
}

.landing-eyebrow-line::before {
  background: linear-gradient(90deg, transparent, var(--electric-blue));
}

.landing-progress-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--electric-blue) var(--progress-deg, 0deg), rgba(157, 167, 184, 0.22) 0);
  box-shadow: inset 0 0 24px rgba(0, 132, 255, 0.08), 0 0 30px rgba(0, 132, 255, 0.14);
}

.landing-linear-bar,
.achv-bar {
  background: rgba(157, 167, 184, 0.22);
}

.landing-linear-bar > span,
.landing-linear-bar.is-complete,
.achv-bar > span,
.achv-bar.is-complete {
  background: linear-gradient(90deg, var(--electric-blue) 0%, var(--lime-green) 100%);
}

.landing-stat-icon,
.landing-rarity-icon,
.landing-featured-flag,
.flag-medallion,
.rank-board__icon {
  border-color: rgba(0, 132, 255, 0.2);
  background: rgba(0, 132, 255, 0.08);
  color: var(--electric-blue);
  box-shadow: none;
}

.landing-codex-controls select,
.landing-codex-controls input,
.landing-select-button,
.faq-searchbar__input {
  border-color: rgba(0, 132, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.landing-quick-chip,
.landing-reset-filter-button,
.landing-industry-chip,
.landing-country-exchange-button,
.badge,
.owned-badge,
.landing-country-card .country-meta-row span,
.ranking-page-badge,
.rank-board__tag,
.ranking-live-meta--board {
  border-color: rgba(0, 132, 255, 0.16);
  background: rgba(0, 132, 255, 0.07);
  color: #245070;
}

.landing-codex-list .country-meta-row .exchange-badge,
.landing-country-exchange-button {
  border-color: rgba(165, 230, 29, 0.46);
  background: rgba(165, 230, 29, 0.14);
  color: #457800;
}

.landing-codex-list .grade-legendary {
  background: rgba(165, 230, 29, 0.18);
  border-color: rgba(165, 230, 29, 0.68);
  color: #457800;
}

.landing-codex-list .grade-rare {
  background: rgba(0, 132, 255, 0.12);
  border-color: rgba(0, 132, 255, 0.52);
  color: #0067c7;
}

.landing-codex-list .grade-normal,
.landing-codex-list .continent {
  background: rgba(157, 167, 184, 0.13);
  border-color: rgba(157, 167, 184, 0.38);
  color: #526071;
}

.landing-codex-list .country-description,
.landing-codex-list .country-meta-row span,
.ranking-live-meta,
.rank-board__hint,
.ranking-stat__label,
.achv-progress-line,
.achv-desc {
  color: var(--muted);
}

.rank-board__scroll {
  border-color: rgba(0, 132, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.rank-board__scroll .cmd-table thead th {
  background: linear-gradient(180deg, #f3f9ff 0%, #e8f4ff 100%);
  border-bottom-color: rgba(0, 132, 255, 0.18);
  color: var(--electric-blue);
}

.rank-board-table tbody tr:nth-child(even) {
  background: rgba(157, 167, 184, 0.07);
}

.rank-row--1,
.rank-row--2,
.rank-row--3 {
  background: linear-gradient(90deg, rgba(0, 132, 255, 0.08), rgba(165, 230, 29, 0.08)) !important;
}

@media (hover: hover) and (pointer: fine) {
  .rank-board-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 132, 255, 0.08), rgba(165, 230, 29, 0.08)) !important;
  }
}

.rank-board-table__name,
.rank-cell__num,
.rank-podium__name {
  color: var(--text);
}

.rank-board-table__score,
.rank-board-table__pct,
.rank-podium__value strong {
  color: var(--electric-blue);
}

.rank-podium__card {
  border-color: rgba(0, 132, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.rank-podium__card--1 {
  border-color: rgba(165, 230, 29, 0.6);
  background:
    radial-gradient(circle at 50% 0%, rgba(165, 230, 29, 0.24), transparent 9rem),
    linear-gradient(180deg, #ffffff, #f3fbff);
}
