:root {
  color-scheme: dark;
  --ink: #f4efe2;
  --muted: #b9c2b1;
  --surface: #101814;
  --surface-2: #17231d;
  --line: rgba(244, 239, 226, 0.14);
  --accent: #e0b74f;
  --accent-2: #58b39a;
  --danger: #d7684f;
  --deep: #08110e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(8, 17, 14, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.055);
}

.language-option {
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease;
}

.language-option.active,
.language-option:hover {
  background: var(--accent);
  color: #1a1306;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(224, 183, 79, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(224, 183, 79, 0.26), rgba(88, 179, 154, 0.18));
  color: var(--accent);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(244, 239, 226, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-shell {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: clamp(38px, 7vw, 92px) clamp(20px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(8, 17, 14, 0.96), rgba(8, 17, 14, 0.78) 44%, rgba(8, 17, 14, 0.22)),
    #0b1712;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 44%;
  opacity: 0.86;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-map-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 14, 0.96), rgba(8, 17, 14, 0.76) 38%, rgba(8, 17, 14, 0.18) 72%, rgba(8, 17, 14, 0.42)),
    linear-gradient(0deg, rgba(8, 17, 14, 0.84), transparent 28%, transparent 66%, rgba(8, 17, 14, 0.42)),
    radial-gradient(circle at 76% 52%, rgba(224, 183, 79, 0.22), transparent 34%);
}

.hero-squad {
  position: absolute;
  right: clamp(22px, 8vw, 120px);
  top: clamp(92px, 16vw, 174px);
  display: grid;
  grid-template-columns: repeat(2, 92px);
  gap: 12px;
  transform: rotate(4deg);
  opacity: 0.94;
}

.hero-squad img {
  width: 92px;
  height: 92px;
  border: 2px solid rgba(224, 183, 79, 0.48);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.54);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

.hero-squad img:nth-child(2),
.hero-squad img:nth-child(4) {
  transform: translateY(18px);
}

.hero-squad img:nth-child(2) {
  animation-delay: 450ms;
}

.hero-squad img:nth-child(3) {
  animation-delay: 900ms;
}

.hero-squad img:nth-child(4) {
  animation-delay: 1350ms;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(45px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(31px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action {
  background: var(--accent);
  color: #1a1306;
}

.secondary-action {
  border: 1px solid rgba(244, 239, 226, 0.22);
  background: rgba(244, 239, 226, 0.06);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.battle-brief {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: clamp(20px, 5vw, 60px);
  width: min(390px, calc(100% - 40px));
  padding: 22px;
  border-left: 3px solid var(--accent);
  background: rgba(8, 17, 14, 0.68);
  backdrop-filter: blur(16px);
}

.battle-brief span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.battle-brief strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.45;
}

.battle-brief p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-panel,
.split-section {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 70px);
  background: var(--surface);
}

.page-panel {
  min-height: calc(100svh - 72px);
  padding-top: clamp(64px, 8vw, 112px);
}

.page-index {
  background:
    linear-gradient(180deg, rgba(8, 17, 14, 0.18), rgba(8, 17, 14, 0.52)),
    var(--surface);
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(16, 24, 20, 0), rgba(8, 17, 14, 0.54)),
    #0d1512;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.section-heading h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
}

.page-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-link-card {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(88, 179, 154, 0.12), transparent 46%),
    rgba(244, 239, 226, 0.045);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.page-link-card:hover {
  border-color: rgba(224, 183, 79, 0.6);
  background:
    linear-gradient(145deg, rgba(224, 183, 79, 0.15), rgba(88, 179, 154, 0.08) 48%, rgba(244, 239, 226, 0.045)),
    rgba(244, 239, 226, 0.055);
  transform: translateY(-3px);
}

.page-link-card span {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-link-card strong {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
}

.page-link-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.editorial-section {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin-top: clamp(34px, 5vw, 64px);
}

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

.editorial-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(88, 179, 154, 0.09), transparent 48%),
    rgba(244, 239, 226, 0.045);
}

.editorial-card {
  padding: clamp(18px, 3vw, 24px);
}

.editorial-card h3 {
  color: var(--ink);
}

.editorial-card p,
.editorial-card li {
  color: var(--muted);
  line-height: 1.72;
}

.editorial-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.tower-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.tower-visual-card,
.tower-world-map {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.045);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.tower-visual-card img,
.tower-world-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tower-visual-card {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
}

.tower-visual-card img {
  aspect-ratio: 4 / 3;
}

.tower-visual-card figcaption,
.tower-world-map figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: var(--muted);
  line-height: 1.55;
}

.tower-visual-card strong {
  color: var(--ink);
  font-size: 16px;
}

.tower-visual-card span,
.tower-world-map figcaption {
  font-size: 13px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.article-card {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-card:hover {
  border-color: rgba(224, 183, 79, 0.58);
  background:
    linear-gradient(145deg, rgba(224, 183, 79, 0.11), rgba(88, 179, 154, 0.08)),
    rgba(244, 239, 226, 0.055);
  transform: translateY(-3px);
}

.article-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card strong {
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.15;
}

.article-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.level-tool-row {
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1.3fr);
}

.world-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.tower-guide-panel {
  display: grid;
  gap: 12px;
}

.compact-world-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.world-tab {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.045);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.world-tab strong {
  color: var(--ink);
  font-size: 14px;
}

.world-tab span {
  font-size: 12px;
}

.world-tab:hover,
.world-tab.active {
  border-color: rgba(224, 183, 79, 0.62);
  background: rgba(224, 183, 79, 0.13);
  color: var(--ink);
  transform: translateY(-2px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(244, 239, 226, 0.055);
  color: var(--ink);
}

select option {
  background: #101814;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: rgba(224, 183, 79, 0.7);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hero-list {
  display: grid;
  gap: 10px;
  max-height: calc(100svh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  position: sticky;
  top: 92px;
  scrollbar-color: rgba(224, 183, 79, 0.55) rgba(244, 239, 226, 0.08);
  scrollbar-width: thin;
}

.hero-list::-webkit-scrollbar,
.hero-detail::-webkit-scrollbar {
  width: 9px;
}

.hero-list::-webkit-scrollbar-track,
.hero-detail::-webkit-scrollbar-track {
  background: rgba(244, 239, 226, 0.08);
  border-radius: 999px;
}

.hero-list::-webkit-scrollbar-thumb,
.hero-detail::-webkit-scrollbar-thumb {
  background: rgba(224, 183, 79, 0.55);
  border-radius: 999px;
}

.hero-button,
.build-tab {
  width: 100%;
  min-height: 62px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.045);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.hero-button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.hero-list-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 239, 226, 0.14);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.42);
  object-fit: cover;
}

.hero-list-text {
  min-width: 0;
}

.hero-button:hover,
.hero-button.active,
.build-tab:hover,
.build-tab.active {
  border-color: rgba(224, 183, 79, 0.62);
  background: rgba(224, 183, 79, 0.12);
  transform: translateX(3px);
}

.hero-button strong,
.hero-button span {
  display: block;
}

.hero-button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.hero-detail,
.build-detail {
  min-height: 360px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 179, 154, 0.1), transparent 42%),
    rgba(244, 239, 226, 0.045);
  box-shadow: var(--shadow);
}

.hero-detail {
  max-height: calc(100svh - 132px);
  overflow-y: auto;
  position: sticky;
  top: 92px;
  scrollbar-color: rgba(224, 183, 79, 0.55) rgba(244, 239, 226, 0.08);
  scrollbar-width: thin;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.hero-title-group {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: start;
}

.hero-portrait {
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(224, 183, 79, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(224, 183, 79, 0.24), transparent 50%),
    rgba(8, 17, 14, 0.62);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank {
  display: grid;
  min-width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 8px;
  background: rgba(224, 183, 79, 0.16);
  color: var(--accent);
  font-size: 31px;
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-bars {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.stat {
  display: grid;
  grid-template-columns: 70px 1fr 34px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 239, 226, 0.12);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.notes {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  padding-left: 15px;
  border-left: 2px solid rgba(224, 183, 79, 0.52);
  color: var(--muted);
  line-height: 1.75;
}

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

.level-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.level-card:hover {
  border-color: rgba(88, 179, 154, 0.62);
  background: rgba(88, 179, 154, 0.08);
  transform: translateY(-4px);
}

.level-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.load-more-button {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(224, 183, 79, 0.54);
  border-radius: 8px;
  background: rgba(224, 183, 79, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

.load-more-button:hover {
  background: rgba(224, 183, 79, 0.2);
  transform: translateY(-2px);
}

.level-map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(244, 239, 226, 0.14);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.62);
}

.level-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-map figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border: 1px solid rgba(244, 239, 226, 0.18);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pending-map img {
  object-fit: contain;
}

.level-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.level-card small {
  color: var(--accent);
  font-weight: 900;
}

.level-card p {
  color: var(--muted);
  line-height: 1.72;
}

.level-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.split-section .editorial-section {
  grid-column: 1 / -1;
}

.tower-timeline {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tower-timeline div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px;
  background: rgba(244, 239, 226, 0.04);
}

.tower-timeline span {
  color: var(--accent);
  font-size: 23px;
  font-weight: 900;
}

.tower-timeline p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
}

.world-guide {
  display: grid;
  gap: 12px;
}

.world-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.04);
}

.world-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.world-card h3 {
  margin-bottom: 5px;
}

.tower-world-map {
  margin-bottom: 18px;
}

.tower-world-map img {
  aspect-ratio: 16 / 9;
}

.world-card p,
.world-card li,
.build-columns span,
.hero-meta {
  color: var(--muted);
  line-height: 1.68;
}

.world-card ul,
.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.tower-depth {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.tower-depth-grid,
.tower-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tower-depth-card,
.tower-special-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 226, 0.04);
}

.tower-depth-card h3,
.tower-special-card h3 {
  margin-bottom: 8px;
}

.tower-depth-card p,
.tower-depth-card li,
.tower-special-card p,
.tower-special-card li {
  color: var(--muted);
  line-height: 1.7;
}

.tower-depth-card ul,
.tower-special-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

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

.hero-meta {
  display: grid;
  gap: 6px;
  margin: 14px 0 4px;
  font-size: 14px;
}

.level-count {
  grid-column: 1 / -1;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.empty {
  color: var(--muted);
}

.build-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.build-tab {
  min-height: 52px;
  text-align: center;
}

.build-detail {
  min-height: 250px;
}

.build-detail p {
  color: var(--muted);
  line-height: 1.75;
}

.lineup-heroes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.lineup-hero {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.34);
}

.lineup-hero img {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(224, 183, 79, 0.28);
  border-radius: 8px;
  object-fit: cover;
}

.lineup-hero strong,
.lineup-hero span {
  min-width: 0;
}

.lineup-hero span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lineup-notes,
.lineup-lists {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.lineup-notes section,
.lineup-lists section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.lineup-notes strong,
.lineup-lists strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

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

.lineup-lists ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.build-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.build-columns div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.build-columns strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.tournament-page {
  background:
    linear-gradient(180deg, rgba(8, 17, 14, 0.22), rgba(8, 17, 14, 0.58)),
    var(--surface);
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.tournament-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.tournament-summary article,
.tournament-lineup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(88, 179, 154, 0.1), transparent 50%),
    rgba(244, 239, 226, 0.045);
}

.tournament-summary article {
  min-height: 150px;
  padding: 22px;
}

.tournament-summary span,
.tournament-use strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-summary strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.tournament-section {
  margin-top: clamp(34px, 6vw, 72px);
}

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

.tournament-rhythm div {
  padding-top: 16px;
  border-top: 1px solid rgba(224, 183, 79, 0.42);
}

.tournament-rhythm strong,
.tournament-rhythm span {
  display: block;
}

.tournament-rhythm strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.tournament-rhythm span,
.tournament-lineup p,
.tournament-use p,
.tournament-use li,
.tournament-checklist,
.tournament-mistakes {
  color: var(--muted);
  line-height: 1.7;
}

.tournament-checklist,
.tournament-mistakes {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tournament-checklist li,
.tournament-mistakes li {
  padding-left: 15px;
  border-left: 2px solid rgba(224, 183, 79, 0.52);
}

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

.tournament-maps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tournament-map-card {
  display: grid;
  gap: 16px;
  min-height: 520px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(224, 183, 79, 0.09), transparent 48%),
    rgba(244, 239, 226, 0.045);
}

.tournament-map-card h3 {
  font-size: 22px;
}

.tournament-map-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.map-diagram {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 226, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, rgba(88, 179, 154, 0.18), transparent 18%),
    radial-gradient(circle at 78% 74%, rgba(224, 183, 79, 0.16), transparent 20%),
    rgba(8, 17, 14, 0.46);
}

.lane,
.map-node {
  position: absolute;
  display: block;
}

.lane {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 183, 79, 0.9), rgba(88, 179, 154, 0.82));
  box-shadow: 0 0 18px rgba(224, 183, 79, 0.2);
}

.map-node {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(244, 239, 226, 0.8);
  border-radius: 999px;
  background: var(--surface-2);
}

.tower-a {
  width: 22px;
  height: 22px;
  border-color: rgba(224, 183, 79, 0.95);
  background: rgba(224, 183, 79, 0.34);
}

.exit-a {
  border-color: rgba(215, 104, 79, 0.95);
  background: rgba(215, 104, 79, 0.34);
}

.map-diagram-single .lane-a {
  left: 12%;
  right: 10%;
  top: 58%;
  transform: rotate(-8deg);
}

.map-diagram-single .lane-b {
  left: 28%;
  right: 34%;
  top: 36%;
  transform: rotate(18deg);
}

.map-diagram-split .lane-a {
  left: 8%;
  width: 48%;
  top: 28%;
  transform: rotate(14deg);
}

.map-diagram-split .lane-b {
  left: 8%;
  width: 48%;
  top: 76%;
  transform: rotate(-18deg);
}

.map-diagram-split .lane-c {
  left: 46%;
  width: 42%;
  top: 52%;
  transform: rotate(2deg);
}

.map-diagram-multi .lane-a {
  left: 10%;
  right: 12%;
  top: 24%;
}

.map-diagram-multi .lane-b {
  left: 10%;
  right: 12%;
  top: 52%;
}

.map-diagram-multi .lane-c {
  left: 10%;
  right: 12%;
  top: 80%;
}

.map-diagram-air .lane-a {
  left: 10%;
  right: 10%;
  top: 66%;
  transform: rotate(-4deg);
}

.map-diagram-air .lane-b {
  left: 42%;
  right: 12%;
  top: 28%;
  height: 5px;
  border: 1px dashed rgba(88, 179, 154, 0.9);
  background: transparent;
}

.map-diagram-boss .lane-a {
  left: 15%;
  right: 15%;
  top: 50%;
}

.map-diagram-boss .lane-b {
  left: 28%;
  width: 45%;
  top: 30%;
  transform: rotate(34deg);
}

.map-diagram-boss .lane-c {
  left: 28%;
  width: 45%;
  top: 70%;
  transform: rotate(-34deg);
}

.map-diagram .start-a {
  left: 10%;
  top: 56%;
}

.map-diagram .start-b {
  left: 10%;
  top: 24%;
}

.map-diagram .tower-a {
  left: 48%;
  top: 45%;
}

.map-diagram .exit-a {
  right: 9%;
  top: 56%;
}

.map-diagram-multi .start-a {
  top: 18%;
}

.map-diagram-multi .start-b {
  top: 74%;
}

.map-diagram-multi .exit-a {
  top: 46%;
}

.map-diagram-air .start-b {
  left: 40%;
  top: 22%;
}

.map-diagram-air .exit-a {
  top: 26%;
}

.map-diagram-boss .tower-a {
  left: 45%;
  top: 43%;
  width: 28px;
  height: 28px;
}

.map-type-notes {
  display: grid;
  gap: 12px;
  margin: 0;
}

.map-type-notes div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.map-type-notes dt {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-type-notes dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.tournament-lineup {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}

.tournament-lineup h3 {
  font-size: 24px;
}

.tournament-lineup p {
  margin-bottom: 0;
}

.tournament-heroes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tournament-heroes span {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 17, 14, 0.34);
}

.tournament-heroes img {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(224, 183, 79, 0.28);
  border-radius: 8px;
  object-fit: cover;
}

.tournament-heroes b,
.tournament-heroes small {
  min-width: 0;
}

.tournament-heroes small {
  color: var(--muted);
  line-height: 1.35;
}

.tournament-use {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tournament-use ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background: #07100d;
  color: var(--muted);
}

footer strong {
  color: var(--ink);
}

.fan-disclaimer {
  flex-basis: 100%;
  margin: 0;
  max-width: 900px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #91a69a;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  color: var(--accent);
}

.blog-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(54px, 9vw, 120px) clamp(20px, 6vw, 90px);
  background: #0b1712;
  isolation: isolate;
}

.blog-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.blog-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  opacity: 0.78;
  filter: saturate(1.08) contrast(1.02);
}

.blog-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 17, 14, 0.96), rgba(8, 17, 14, 0.76) 52%, rgba(8, 17, 14, 0.34)),
    linear-gradient(0deg, rgba(8, 17, 14, 0.82), transparent 42%, rgba(8, 17, 14, 0.46));
}

.blog-hero-copy {
  align-self: center;
  max-width: 760px;
}

.blog-hero-copy h1 {
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  overflow-wrap: break-word;
}

.blog-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.blog-article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) clamp(20px, 5vw, 44px);
}

.blog-article h2 {
  max-width: 860px;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.16;
}

.blog-article h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.14;
}

.blog-article h3 {
  margin-top: 34px;
  color: var(--accent);
  font-size: 24px;
}

.blog-article p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.blog-article a {
  color: var(--accent);
  font-weight: 800;
}

.blog-article-secondary {
  border-top: 1px solid var(--line);
}

[data-blog-lang][hidden] {
  display: none;
}

.blog-callout {
  margin-top: 34px;
  padding: 22px;
  border-left: 3px solid var(--accent);
  background: rgba(244, 239, 226, 0.055);
  color: var(--muted);
  line-height: 1.65;
}

.blog-callout strong {
  color: var(--ink);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1180px) {
  .topbar {
    gap: 14px;
  }

  .brand {
    min-width: 170px;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding-inline: 10px;
  }

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

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

  .editorial-grid,
  .tower-depth-grid,
  .tower-checklist,
  .tower-visual-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-world-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: clamp(24px, 5vw, 38px);
    padding-block: clamp(46px, 8vw, 82px);
  }

  .hero-map {
    object-position: 66% 44%;
  }

  .hero-squad {
    top: auto;
    right: 20px;
    bottom: 42px;
    grid-template-columns: repeat(4, 58px);
    gap: 8px;
    transform: rotate(0deg);
  }

  .hero-squad img {
    width: 58px;
    height: 58px;
  }

  .hero-squad img:nth-child(2),
  .hero-squad img:nth-child(4) {
    transform: translateY(0);
  }

  .battle-brief {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(620px, 100%);
    margin-top: 0;
  }

  .tool-row,
  .hero-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .level-tool-row {
    grid-template-columns: 1fr;
  }

  .world-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .world-tab {
    flex: 0 0 128px;
    scroll-snap-align: start;
  }

  .hero-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 10px;
    position: static;
    scroll-snap-type: x proximity;
  }

  .hero-button {
    flex: 0 0 min(250px, 76vw);
    scroll-snap-align: start;
  }

  .hero-button:hover,
  .hero-button.active {
    transform: translateY(-2px);
  }

  .hero-detail {
    max-height: none;
    overflow: visible;
    position: static;
  }

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

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

  .lineup-heroes,
  .lineup-notes,
  .lineup-lists,
  .tournament-summary,
  .tournament-rhythm,
  .tournament-maps,
  .tournament-lineups,
  .tower-special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-heroes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 8px 12px 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
    max-width: calc(100vw - 128px);
    min-width: 0;
    overflow: hidden;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.1;
  }

  .brand small {
    font-size: 11px;
  }

  .language-switch {
    position: fixed;
    top: 9px;
    right: 12px;
    z-index: 30;
    width: 92px;
    min-width: 92px;
    padding: 3px;
  }

  .language-option {
    min-height: 28px;
    padding: 4px 5px;
    font-size: 12px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav a {
    min-width: 0;
    min-height: 30px;
    padding: 6px 2px;
    border: 1px solid rgba(244, 239, 226, 0.1);
    background: rgba(244, 239, 226, 0.04);
    font-size: 11px;
    line-height: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav a.active {
    border-color: rgba(224, 183, 79, 0.5);
    background: rgba(224, 183, 79, 0.14);
    color: var(--accent);
  }
}

@media (max-width: 680px) {
  .tournament-summary,
  .tournament-rhythm,
  .tournament-maps,
  .tournament-lineups,
  .editorial-grid,
  .tower-depth-grid,
  .tower-checklist,
  .tower-special-grid,
  .tower-visual-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .tournament-map-card {
    min-height: 0;
  }

  .hero-shell {
    min-height: auto;
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-map {
    object-position: 73% 44%;
    opacity: 0.78;
  }

  .hero-map-shade {
    background:
      linear-gradient(90deg, rgba(8, 17, 14, 0.96), rgba(8, 17, 14, 0.82) 54%, rgba(8, 17, 14, 0.36)),
      linear-gradient(0deg, rgba(8, 17, 14, 0.88), transparent 34%, rgba(8, 17, 14, 0.44));
  }

  h1 {
    font-size: clamp(38px, 13vw, 62px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .section-heading h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .page-panel {
    min-height: 0;
    padding-top: 42px;
  }

  .page-link-grid {
    grid-template-columns: 1fr;
  }

  .page-link-card {
    min-height: 0;
  }

  .hero-copy p:not(.eyebrow),
  .section-heading p:not(.eyebrow),
  .blog-hero-copy p:not(.eyebrow),
  .blog-article p {
    font-size: 16px;
  }

  .blog-hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .blog-hero-copy h1 {
    font-size: clamp(28px, 7.8vw, 36px);
    line-height: 1.12;
  }

  .blog-article h1 {
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1.18;
  }

  .blog-article h2 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
  }

  .blog-article h3 {
    font-size: 20px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .battle-brief {
    padding: 18px 20px;
  }

  .battle-brief strong {
    font-size: 18px;
  }

  .hero-squad {
    display: none;
  }

  .detail-top,
  .level-card header {
    flex-direction: column;
  }

  .hero-title-group {
    grid-template-columns: 72px 1fr;
    gap: 14px;
  }

  .hero-portrait {
    width: 72px;
  }

  .hero-button {
    flex-basis: min(220px, 82vw);
    min-height: 58px;
    padding: 10px;
  }

  .hero-list-icon {
    width: 40px;
    height: 40px;
  }

  .build-matrix {
    grid-template-columns: 1fr;
  }

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

  .level-card {
    padding: 16px;
  }

  .lineup-hero {
    grid-template-columns: 52px 1fr;
    min-height: 74px;
  }

  .lineup-hero img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-title-group {
    grid-template-columns: 1fr;
  }

  .rank {
    min-width: 62px;
    height: 62px;
    font-size: 26px;
  }

  .stat {
    grid-template-columns: 58px 1fr 30px;
  }

  .level-map {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
