@font-face {
  font-family: Galmuri;
  src: url('/assets/Galmuri11-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0b1524;
  --bg-alt: #0f1d31;
  --panel: #14253d;
  --panel-elevated: #1a2f4c;
  --gold: #f0c869;
  --gold-deep: #9e7628;
  --cyan: #5ce1e6;
  --green: #55df92;
  --red: #ff7170;
  --purple: #c58af9;
  --text: #f8f5ee;
  --muted: #b4c2d4;
  --line: #293d59;
  --line-bright: #49658a;
  --max: 1240px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

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

button {
  font: inherit;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, dl, dd, ol {
  margin: 0;
}

h1, h2, h3, .brand strong, .button, .nav-cta, .eyebrow, .pill-badge, .step-num, .sys-tag {
  font-family: Galmuri, 'Malgun Gothic', sans-serif;
  font-weight: 700;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: #0b1524;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip:focus {
  top: 12px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(11, 21, 36, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-actions {
  flex-shrink: 0;
}
.nav-cta {
  white-space: nowrap;
}
.site-header nav a {
  white-space: nowrap;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--text);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--gold);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a {
  color: var(--muted);
  transition: color 0.18s;
}
.site-header nav a:hover {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: rgba(240, 200, 105, 0.12);
  color: var(--gold);
  transition: background 0.18s, transform 0.18s;
}
.nav-cta:hover {
  background: var(--gold);
  color: #0b1524;
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: radial-gradient(circle at 75% 30%, rgba(45, 92, 158, 0.28), transparent 55%),
              linear-gradient(180deg, #0b1524 0%, #102036 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 47, 76, 0.85);
  border: 1px solid var(--line-bright);
  color: var(--muted);
}
.pill-badge.gold-pill {
  border-color: rgba(240, 200, 105, 0.55);
  color: var(--gold);
  background: rgba(240, 200, 105, 0.1);
}
.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.48;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 32px;
}
.hero-description strong {
  color: var(--text);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  padding: 16px 24px;
  border-radius: 10px;
  border: none;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
}
.button.gold {
  background: var(--gold);
  color: #101e31;
  box-shadow: 0 4px 0 var(--gold-deep);
}
.button.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--gold-deep);
}
.button.gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--gold-deep);
}
.button.ghost, .button.secondary {
  background: var(--panel-elevated);
  color: var(--text);
  border: 1px solid var(--line-bright);
}
.button.ghost:hover, .button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-metrics > div {
  background: rgba(20, 37, 61, 0.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.hero-metrics dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-metrics dd {
  font-family: Galmuri, sans-serif;
  font-size: 20px;
  color: var(--gold);
}
.hero-metrics dd span {
  font-family: 'Malgun Gothic', sans-serif;
  font-size: 12px;
  color: var(--text);
  margin-left: 4px;
}

/* PHONE FRAME VISUAL */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 370px;
  border-radius: 28px;
  border: 4px solid #354d6e;
  background: #0d1828;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 200, 105, 0.28);
  overflow: hidden;
  aspect-ratio: 9 / 15.5;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 16px;
  background: #08101c;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}
.phone-logo-overlay {
  position: absolute;
  top: 26px;
  left: 10%;
  width: 80%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}
.phone-bottom-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(11, 21, 36, 0.92);
  border: 1px solid rgba(240, 200, 105, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.mini-gem-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.phone-bottom-caption span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

/* CHAPTER STRIP */
.chapter-strip {
  background: #0e1b2e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.strip-inner strong {
  color: var(--gold);
  font-family: Galmuri, sans-serif;
}
.strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.strip-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 47, 76, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--text);
}

/* SECTIONS COMMON */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.gold-text {
  color: var(--gold);
}
.section h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.48;
  letter-spacing: -0.8px;
  margin: 12px 0 16px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.section-heading > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
}

/* 01. PLAYABLE SANDBOX SECTION */
.play-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.lead-copy {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.lead-copy strong {
  color: var(--text);
}
.play-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.play-steps li {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.step-num {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--gold);
  background: rgba(240, 200, 105, 0.12);
  border: 1px solid rgba(240, 200, 105, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  height: fit-content;
}
.play-steps h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.play-steps p {
  font-size: 13.5px;
  color: var(--muted);
}

.demo-guide-box {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(92, 225, 230, 0.08);
  border: 1px solid rgba(92, 225, 230, 0.3);
  font-size: 13.5px;
}
.demo-guide-box strong {
  display: block;
  color: var(--cyan);
  margin-bottom: 4px;
}
.demo-guide-box p {
  color: var(--muted);
}

/* INTERACTIVE WIDGET */
.demo-wrap {
  max-width: 470px;
  width: 100%;
  justify-self: end;
  background: #102036;
  border: 2px solid #594b31;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.demo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.demo-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: Galmuri, sans-serif;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.demo-combo-pill {
  font-family: Galmuri, sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 200, 105, 0.16);
  color: var(--gold);
  border: 1px solid rgba(240, 200, 105, 0.4);
}

.mini-battlefield {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, rgba(14, 28, 48, 0.85), rgba(14, 28, 48, 0.92)),
              url('/assets/defense_field_1.png') center 38% / cover no-repeat;
  padding: 12px;
  overflow: hidden;
}
.bf-hud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.bf-bar-group {
  background: rgba(8, 16, 28, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.bf-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}
.bf-bar-track {
  height: 7px;
  background: #1a283d;
  border-radius: 999px;
  overflow: hidden;
}
.bf-bar-fill {
  height: 100%;
  transition: width 0.35s ease;
}
.ally-fill {
  background: linear-gradient(90deg, #38b874, #55df92);
}
.portal-fill {
  background: linear-gradient(90deg, #9b4dca, #e25894);
}

.bf-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  gap: 6px;
}
.bf-castle-zone, .bf-enemy-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bf-zone-tag {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(8, 16, 28, 0.72);
  padding: 2px 7px;
  border-radius: 4px;
}
.bf-units-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 62px;
}
.bf-unit-sprite, .bf-enemy-sprite {
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.65));
  transition: transform 0.28s, filter 0.28s;
}
.bf-unit-sprite.summon-pop {
  transform: scale(1.24) translateY(-4px);
  filter: brightness(1.3) drop-shadow(0 0 12px var(--gold));
}
.bf-enemy-sprite.hit-shake {
  transform: translateX(6px) scale(0.92);
  filter: brightness(1.6) sepia(1) hue-rotate(-30deg);
}
.bf-enemy-sprite.frozen {
  filter: hue-rotate(170deg) brightness(1.35) saturate(1.6);
}

.bf-clash-banner {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(8, 16, 28, 0.86);
  border: 1px solid rgba(240, 200, 105, 0.35);
  border-radius: 8px;
  padding: 5px 10px;
  margin: 0 auto;
}

.bf-skill-btn {
  position: absolute;
  left: 4px;
  bottom: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 21, 36, 0.92);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.16s, border-color 0.16s;
}
.bf-skill-btn:hover {
  transform: scale(1.08);
}
.bf-skill-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.bf-skill-btn span {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  margin-top: -2px;
}

/* 6-COLOR LEGEND BAR */
.demo-role-legend {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 10px;
  background: #0a1423;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.demo-role-legend span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 2px;
  border-radius: 6px;
  background: #15263f;
  color: var(--text);
}
.demo-role-legend span.highlight {
  outline: 1.5px solid var(--gold);
  background: #283a56;
  color: var(--gold);
}

/* 7x7 BOARD */
.board-container {
  margin-top: 8px;
}
.board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: #091322;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line-bright);
  user-select: none;
}
.gem {
  aspect-ratio: 1;
  background: #1b2f4b;
  border: 1px solid #2e476b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.24s, opacity 0.24s, background 0.2s, border-color 0.2s;
}
.gem:hover {
  border-color: var(--gold);
  background: #253f63;
}
.gem img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
}
.gem.hint {
  border-color: var(--gold);
  box-shadow: 0 0 0 1.5px var(--gold), inset 0 0 8px rgba(240, 200, 105, 0.35);
  animation: hintPulse 1.2s infinite ease-in-out;
}
.gem.selected {
  border-color: var(--cyan);
  background: #2b4c73;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(92, 225, 230, 0.6);
  z-index: 2;
}
.gem.matched {
  transform: scale(0.15);
  opacity: 0;
}
.gem.swap-right { transform: translateX(calc(100% + 4px)); }
.gem.swap-left  { transform: translateX(calc(-100% - 4px)); }
.gem.swap-down  { transform: translateY(calc(100% + 4px)); }
.gem.swap-up    { transform: translateY(calc(-100% - 4px)); }

@keyframes hintPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.demo-actions {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  margin-top: 12px;
}
.demo-button, .demo-sub-button {
  width: 100%;
  padding: 13px 12px;
  font-size: 12px;
  gap: 8px;
}
.demo-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* 02. SYSTEM CARDS */
.system-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sys-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.sys-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.sys-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sys-icon-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.sys-tag {
  font-size: 10px;
  color: var(--gold);
  background: rgba(240, 200, 105, 0.12);
  border: 1px solid rgba(240, 200, 105, 0.35);
  padding: 4px 9px;
  border-radius: 999px;
}
.sys-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.sys-card p {
  font-size: 14px;
  color: var(--muted);
}
.sys-card p strong {
  color: var(--text);
}

/* 03. GUARDIAN CLASSES */
.guardian-select {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.guardian-select button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  color: var(--muted);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.guardian-select button img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.guardian-select button strong {
  display: block;
  font-family: Galmuri, sans-serif;
  font-size: 14px;
  color: var(--text);
}
.guardian-select button small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.guardian-select button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--panel-elevated);
  box-shadow: 0 0 0 1px var(--gold);
}
.guardian-select button[aria-pressed="true"] strong {
  color: var(--gold);
}

.guardian-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  padding: 32px;
}
.guardian-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: radial-gradient(circle, rgba(240, 200, 105, 0.12), transparent 68%);
  border-radius: 16px;
  --class-color: #ed806d;
}
.guardian-art > img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 1;
  filter: drop-shadow(0 18px 12px rgba(0, 0, 0, 0.55));
}
.guardian-number {
  position: absolute;
  left: 20px;
  top: 14px;
  font-family: Galmuri, sans-serif;
  font-size: 76px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
}
.guardian-rune {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid var(--class-color);
  opacity: 0.28;
  transform: rotate(45deg);
}
.pose-toggle-btn {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  background: rgba(11, 21, 36, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}
.pose-toggle-btn:hover {
  background: var(--gold);
  color: #0b1524;
}

.guardian-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gem-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 21, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--gold);
}
.guardian-copy h3 {
  font-size: 34px;
  margin: 10px 0 12px;
}
.guardian-copy > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.guardian-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.stat-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.stat-bar {
  height: 9px;
  background: #0d1829;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.guardian-tactic-tip {
  background: rgba(11, 21, 36, 0.75);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.guardian-tactic-tip strong {
  color: var(--gold);
}

/* 04. 10 HERO COMMANDERS CODEX */
.hero-codex-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.hero-roster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.hero-roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  color: var(--muted);
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.hero-roster-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}
.hero-roster-card.active {
  border-color: var(--gold);
  background: var(--panel-elevated);
  box-shadow: 0 0 0 1px var(--gold);
  color: var(--gold);
}
.hero-roster-card img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-roster-card strong {
  font-size: 13px;
  color: var(--text);
}
.hero-roster-card.active strong {
  color: var(--gold);
}
.hero-roster-card small {
  font-size: 10px;
  color: var(--muted);
}

.hero-detail-card {
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.hero-detail-top {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-portrait-box {
  position: relative;
  flex-shrink: 0;
}
.hero-portrait-box img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.hero-star-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1524;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero-title-box h3 {
  font-size: 26px;
  margin: 4px 0 6px;
}
.hero-title-box p {
  font-size: 14px;
  color: var(--muted);
}

.hero-skill-panel {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(11, 21, 36, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.hero-skill-panel img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #08111e;
  padding: 4px;
}
.skill-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.skill-name-row strong {
  font-size: 15px;
  color: var(--gold);
}
.cooldown-pill {
  font-size: 11px;
  background: rgba(92, 225, 230, 0.14);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 999px;
}
.hero-skill-panel p {
  font-size: 13.5px;
  color: var(--muted);
}
.hero-recommend-box {
  font-size: 13.5px;
  color: var(--muted);
  background: rgba(240, 200, 105, 0.08);
  border: 1px solid rgba(240, 200, 105, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
}
.hero-recommend-box strong {
  color: var(--gold);
}

/* 05. WORLD MAPS & SCREENSHOTS */
.world-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.world-tab {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s;
}
.world-tab:hover, .world-tab.active {
  background: var(--panel-elevated);
  border-color: var(--gold);
  color: var(--gold);
}

.world-frame {
  position: relative;
  background: #0d1a2d;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.world-frame > img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.map-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: 520px;
  background: rgba(11, 21, 36, 0.92);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}
.map-caption > span {
  font-family: Galmuri, sans-serif;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
}
.map-caption p {
  font-family: Galmuri, sans-serif;
  font-size: 17px;
  margin-top: 4px;
}
.map-caption small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.world-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.note-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.note-card span {
  font-family: Galmuri, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.note-card h3 {
  font-size: 18px;
  margin: 8px 0 8px;
}
.note-card p {
  font-size: 14px;
  color: var(--muted);
}

/* 06. RELEASE & SPECS */
.release-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #14263f 0%, #101e32 100%);
  border: 1px solid #635233;
  border-radius: 22px;
  padding: 44px;
}
.release-info p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.release-info code {
  color: var(--gold);
  background: rgba(240, 200, 105, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.release-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Galmuri, sans-serif;
  font-size: 13px;
  color: var(--gold);
  background: rgba(240, 200, 105, 0.12);
  border: 1px solid var(--gold);
  padding: 14px 20px;
  border-radius: 10px;
}
.copy-link-btn {
  padding: 14px 18px;
  font-size: 12px;
}

.spec-box {
  background: rgba(11, 21, 36, 0.82);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  padding: 24px;
}
.spec-box h3 {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.spec-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-list dt {
  color: var(--muted);
}
.spec-list dd {
  color: var(--text);
  font-weight: 600;
}

/* 07. FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}
.faq-sub {
  color: var(--muted);
  font-size: 14.5px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  color: var(--gold);
  font-size: 22px;
  transition: transform 0.2s;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  font-size: 14.5px;
  color: var(--muted);
  padding: 0 24px 22px 0;
  line-height: 1.75;
}

/* FOOTER */
.site-footer {
  padding: 32px 0 44px;
  background: #08101c;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a:hover {
  color: var(--gold);
}

/* RESPONSIVE */
@media (max-width: 1240px) {
  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }
}
@media (max-width: 1060px) {
  .site-header nav {
    display: none;
  }
  .hero-grid, .play-grid, .guardian-stage, .hero-codex-layout, .release-card, .faq-grid {
    grid-template-columns: 1fr;
  }
  .demo-wrap {
    justify-self: center;
  }
  .system-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .guardian-select {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .site-header nav {
    display: none;
  }
  .hero {
    padding: 36px 0 48px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .system-cards, .world-notes {
    grid-template-columns: 1fr;
  }
  .guardian-select {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-roster-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .hero-roster-card img {
    width: 44px;
    height: 44px;
  }
  .hero-roster-card strong {
    font-size: 11px;
  }
  .hero-roster-card small {
    display: none;
  }
  .release-card {
    padding: 26px 20px;
  }
  .map-caption {
    position: static;
    max-width: none;
    border-left: none;
    border-top: 2px solid var(--gold);
    border-radius: 0;
  }
  .world-frame {
    flex-direction: column;
    min-height: 0;
  }
}

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