:root {
  --ink: #0c1517;
  --ink-deep: #060b0c;
  --ink-2: #16272a;
  --ink-3: #203a3c;
  --paper: #f1e6cc;
  --paper-dim: #bcb096;
  --mute: #889e98;
  --gold: #d6b25e;
  --gold-hi: #f6dd95;
  --gold-dim: #7d6430;
  --red: #a8291f;
  --red-hi: #d9472f;
  --jade: #2f8f7c;
  --jade-hi: #6fd8bd;

  --font-kai: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "Noto Serif SC", "Georgia", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --max-w: 1180px;
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 143, 124, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 35%, rgba(214, 178, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #070d0e 0%, #0c1517 40%, #081012 100%);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(var(--max-w), calc(100% - 40px));
  margin: 0 auto;
}

/* Ink Panel with Gold Corner Brackets (inspired by theme.js) */
.ink-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 39, 42, 0.92), rgba(12, 21, 23, 0.95));
  border: 1px solid rgba(214, 178, 94, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.ink-panel::before,
.ink-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border-radius: 5px;
}

.ink-panel::before {
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1.5px 14px no-repeat;
  opacity: 0.85;
}

/* Cinnabar Seal */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(241, 230, 204, 0.85);
  box-shadow: inset 0 0 0 2px rgba(168, 41, 31, 0.9), 0 4px 12px rgba(0, 0, 0, 0.45);
  transform: rotate(-5deg);
  flex-shrink: 0;
  user-select: none;
}

.seal-lg {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 6px;
}

/* Pixel SVG Icon */
.px-icon {
  width: 32px;
  height: 32px;
  shape-rendering: crispEdges;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.px-icon-sm {
  width: 22px;
  height: 22px;
}

.px-icon-lg {
  width: 48px;
  height: 48px;
}

/* Buttons matching game BTN palette */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #c9442f 0%, #8f2219 100%);
  border: 1.5px solid var(--gold-hi);
  color: var(--paper);
  box-shadow: 0 6px 20px rgba(168, 41, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-jade {
  background: linear-gradient(180deg, #2f8f7c 0%, #195548 100%);
  border: 1.5px solid var(--gold);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(47, 143, 124, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-ink {
  background: linear-gradient(180deg, #24393b 0%, #111d1f 100%);
  border: 1.5px solid rgba(214, 178, 94, 0.65);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.btn-gold {
  background: linear-gradient(180deg, #f0cf7a 0%, #b88a2c 100%);
  border: 1.5px solid #fff1c2;
  color: #2a1a05;
  box-shadow: 0 6px 20px rgba(214, 178, 94, 0.35);
}

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 14, 16, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 178, 94, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(8, 14, 16, 0.94);
  border-bottom-color: rgba(214, 178, 94, 0.42);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-kai);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-hi);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 14px;
  color: var(--paper-dim);
  transition: color 0.18s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-hi);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Highlighted keyword style for "我的世界" */
.mc-highlight {
  display: inline-block;
  padding: 0 7px;
  margin: 0 2px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(47, 143, 124, 0.32), rgba(214, 178, 94, 0.2));
  border: 1px solid rgba(111, 216, 189, 0.55);
  color: var(--jade-hi);
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 2px 10px rgba(47, 143, 124, 0.22);
}

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

.voxel-card {
  padding: 24px 20px;
}

.voxel-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-kai);
  font-size: 20px;
  color: var(--gold-hi);
}

.voxel-card p {
  margin: 0;
  font-size: 14px;
  color: var(--paper-dim);
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  padding: 22px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-kai);
  font-size: 18px;
  color: var(--gold-hi);
}

.faq-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--paper-dim);
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 10px;
  border: 1px solid rgba(214, 178, 94, 0.38);
  border-radius: 6px;
  background: rgba(12, 21, 23, 0.88);
  color: var(--gold-hi);
  transition: border-color 0.18s, background 0.18s;
}

.lang-select-wrap:hover,
.lang-select-wrap:focus-within {
  border-color: var(--gold);
  background: rgba(19, 32, 35, 0.96);
}

.lang-select-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
}

.lang-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23d6b25e' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 4px center;
  background-size: 10px 6px;
  background-repeat: no-repeat;
  border: none;
  color: var(--paper);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 20px 4px 2px;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  background: #101b1e;
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(214, 178, 94, 0.4);
  align-items: center;
  justify-content: center;
  color: var(--gold-hi);
  font-size: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 112px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-banner.png") center 35% / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 12, 0.92) 0%, rgba(8, 15, 17, 0.72) 48%, rgba(6, 11, 12, 0.42) 100%),
    linear-gradient(180deg, rgba(6, 11, 12, 0.65) 0%, transparent 25%, transparent 65%, #070d0e 100%);
}

#fireflies {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 21, 23, 0.82);
  border: 1px solid rgba(214, 178, 94, 0.5);
  color: var(--gold-hi);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade-hi);
  box-shadow: 0 0 8px var(--jade-hi);
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-title {
  margin: 0;
  font-family: var(--font-kai);
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.12;
  font-weight: 700;
  background: linear-gradient(180deg, #fff6da 0%, #f6dd95 45%, #d6b25e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.hero-en {
  margin: 8px 0 0;
  font-family: var(--font-kai);
  font-size: 17px;
  color: var(--jade-hi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-desc {
  margin: 18px 0 28px;
  max-width: 580px;
  font-size: 16.5px;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  font-size: 12.5px;
  color: var(--paper-dim);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(12, 21, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Right Hero Floating Preview Card */
.hero-showcase {
  padding: 18px;
  backdrop-filter: blur(8px);
}

.hero-showcase-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(214, 178, 94, 0.4);
  aspect-ratio: 16 / 9;
}

.hero-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-showcase-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 12, 0.92));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--gold-hi);
}

.hero-mini-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-stat {
  text-align: center;
  padding: 10px 6px;
  background: rgba(6, 11, 12, 0.6);
  border: 1px solid rgba(214, 178, 94, 0.22);
  border-radius: 6px;
}

.mini-stat strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 24px;
  line-height: 1.1;
  color: var(--gold-hi);
}

.mini-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--paper-dim);
}

/* Section Layout */
.section {
  padding: 84px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 30, 32, 0.45), rgba(8, 15, 17, 0.45));
  border-top: 1px solid rgba(214, 178, 94, 0.12);
  border-bottom: 1px solid rgba(214, 178, 94, 0.12);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--jade-hi);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-kicker::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  margin: 0;
  font-family: var(--font-kai);
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--gold-hi);
  letter-spacing: 0.05em;
}

.section-sub {
  margin: 12px 0 0;
  color: var(--paper-dim);
  font-size: 15.5px;
}

/* Heroes Section */
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.hero-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(18, 32, 35, 0.8);
  border: 1.5px solid rgba(214, 178, 94, 0.25);
  text-align: left;
  transition: all 0.2s ease;
}

.hero-tab:hover {
  border-color: rgba(214, 178, 94, 0.65);
  transform: translateY(-2px);
}

.hero-tab.active {
  background: linear-gradient(180deg, rgba(47, 143, 124, 0.26), rgba(16, 30, 32, 0.95));
  border-color: var(--gold-hi);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(246, 221, 149, 0.2);
}

.hero-tab-meta strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 18px;
  color: var(--paper);
}

.hero-tab-meta span {
  display: block;
  font-size: 12.5px;
  color: var(--paper-dim);
}

.hero-detail {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.hero-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(214, 178, 94, 0.2);
}

.hero-role-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(214, 178, 94, 0.14);
  border: 1px solid rgba(214, 178, 94, 0.4);
  color: var(--gold-hi);
  margin-bottom: 8px;
}

.hero-profile-name {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 30px;
  color: var(--paper);
}

.hero-profile-title {
  font-size: 14px;
  color: var(--jade-hi);
  margin-left: 8px;
}

.hero-profile-desc {
  margin: 14px 0 18px;
  color: var(--paper-dim);
  font-size: 14.5px;
}

.hero-core-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.core-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(8, 15, 17, 0.72);
  border: 1px solid rgba(214, 178, 94, 0.24);
}

.core-box small {
  display: block;
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.core-box strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 16px;
  color: var(--gold-hi);
}

.core-box p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--paper-dim);
  line-height: 1.45;
}

.realms-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.realm-step {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 15, 17, 0.65);
  border-left: 3px solid var(--jade);
}

.realm-step span {
  display: block;
  font-size: 11px;
  color: var(--mute);
}

.realm-step strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 15px;
  color: var(--paper);
  margin: 2px 0 4px;
}

.realm-step p {
  margin: 0;
  font-size: 12px;
  color: var(--paper-dim);
  line-height: 1.45;
}

.hero-weapons-panel h4 {
  margin: 0 0 14px;
  font-family: var(--font-kai);
  font-size: 18px;
  color: var(--gold-hi);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.weapon-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(8, 15, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.weapon-chip:hover {
  border-color: rgba(214, 178, 94, 0.55);
  transform: translateY(-2px);
}

.weapon-chip-info strong {
  display: block;
  font-size: 14px;
  color: var(--paper);
}

.elem-tag {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid currentColor;
}

/* Arsenal & Mechanics Tabs */
.pill-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.pill-tab {
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--font-kai);
  font-size: 16px;
  background: rgba(16, 30, 32, 0.85);
  border: 1px solid rgba(214, 178, 94, 0.3);
  color: var(--paper-dim);
  transition: all 0.2s ease;
}

.pill-tab.active,
.pill-tab:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
  background: rgba(47, 143, 124, 0.24);
}

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

.arsenal-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arsenal-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arsenal-card-head h3 {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 19px;
  color: var(--gold-hi);
}

.arsenal-formula {
  font-size: 12px;
  color: var(--jade-hi);
  background: rgba(47, 143, 124, 0.16);
  border: 1px solid rgba(111, 216, 189, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.arsenal-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--paper-dim);
}

.elements-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.elem-card {
  padding: 18px 14px;
  text-align: center;
  border-radius: 10px;
  background: rgba(12, 21, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.elem-glyph {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid currentColor;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.elem-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--paper);
}

.elem-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--paper-dim);
}

.reactions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* World & Campaigns */
.campaigns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.campaign-card {
  padding: 24px;
}

.campaign-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.campaign-card h3 {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 24px;
  color: var(--gold-hi);
}

.campaign-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.45);
  color: var(--gold-hi);
}

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

.stage-node {
  padding: 12px;
  border-radius: 8px;
  background: rgba(8, 15, 17, 0.72);
  border: 1px solid rgba(214, 178, 94, 0.22);
}

.stage-node small {
  display: block;
  font-size: 11px;
  color: var(--jade-hi);
}

.stage-node strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 17px;
  color: var(--paper);
  margin: 2px 0 4px;
}

.stage-node span {
  display: block;
  font-size: 12px;
  color: var(--paper-dim);
}

.world-systems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.world-box {
  padding: 22px;
}

.world-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-kai);
  font-size: 20px;
  color: var(--gold-hi);
}

.weather-pills,
.demon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-pill,
.demon-pill {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(8, 15, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.18s;
}

.weather-pill.active,
.weather-pill:hover {
  border-color: var(--gold-hi);
}

.weather-detail {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(8, 15, 17, 0.72);
  border-left: 3px solid var(--gold);
  font-size: 13.5px;
  color: var(--paper);
}

/* Pets Grid */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pet-card {
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-hi);
}

.pet-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 178, 94, 0.18), rgba(8, 15, 17, 0.9));
  border: 1.5px solid rgba(214, 178, 94, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.pet-card h3 {
  margin: 0;
  font-family: var(--font-kai);
  font-size: 20px;
  color: var(--paper);
}

.pet-role {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 143, 124, 0.2);
  border: 1px solid rgba(111, 216, 189, 0.35);
  color: var(--jade-hi);
}

.pet-card p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--paper-dim);
  line-height: 1.5;
}

.pet-tame {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
  color: var(--gold);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(214, 178, 94, 0.32);
  background: var(--ink);
  cursor: zoom-in;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-hi);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-caption {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--paper);
  background: rgba(10, 18, 20, 0.96);
}

.shot-caption span {
  color: var(--gold);
  font-size: 12px;
}

/* Play / Platforms Section */
.play-banner {
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.play-banner-img {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(214, 178, 94, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

.platform-card {
  padding: 22px;
}

.platform-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-kai);
  font-size: 20px;
  color: var(--gold-hi);
}

.platform-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--paper-dim);
}

.controls-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: rgba(8, 15, 17, 0.85);
  border: 1px solid rgba(214, 178, 94, 0.35);
  color: var(--gold-hi);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 9, 10, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1040px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-bar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(214, 178, 94, 0.22);
  background: #060b0c;
  color: var(--paper-dim);
  font-size: 13.5px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--gold);
}

.footer-links a:hover {
  color: var(--gold-hi);
  text-decoration: underline;
}

.health-notice {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--mute);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-content,
  .hero-detail,
  .play-banner,
  .campaigns-grid,
  .world-systems-grid {
    grid-template-columns: 1fr;
  }

  .pets-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .elements-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .arsenal-grid,
  .gallery-grid,
  .platforms-grid,
  .reactions-row,
  .voxel-grid,
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 24px 24px;
    background: rgba(8, 14, 16, 0.97);
    border-bottom: 1px solid rgba(214, 178, 94, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-tabs,
  .weapons-grid,
  .realms-track,
  .stage-chain,
  .hero-core-pair,
  .pets-grid,
  .arsenal-grid,
  .gallery-grid,
  .platforms-grid,
  .reactions-row,
  .voxel-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .elements-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-mini-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.studio-return-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.45);
  background: rgba(22, 39, 42, 0.85);
  color: var(--gold-hi);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.studio-return-pill:hover {
  border-color: var(--gold-hi);
  background: rgba(32, 58, 60, 0.95);
}

@media (max-width: 640px) {
  .studio-return-pill {
    display: none;
  }
}
