:root {
  --bg-dark: #070a09;
  --panel-bg: rgba(13, 28, 21, 0.88);
  --glass: rgba(18, 62, 44, 0.72);
  --glass-border: rgba(113, 185, 141, 0.45);
  --glass-hover: rgba(69, 217, 221, 0.18);
  --text-main: #E4F5E9;
  --text-dim: #A7C5B3;
  --accent-cyan: #45D9DD;
  --accent-amber: #E3B96B;
  --accent-danger: #E6574F;
  --worker: #38b6d8;
  --soldier: #e8c33f;
  --spitter: #d84fa8;
  --bomber: #f08c3a;
  --radius: 22px;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  background-image: url('assets/images/ant-world-forest-vertical-draft.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

/* Underground scene extension */
.underground-extension {
  position: absolute;
  left: 0; right: 0;
  top: 175vw;
  bottom: 0;
  z-index: 0;
  background-image: url('assets/images/underground-extension.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  pointer-events: none;
}
.underground-extension::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,9,0.2) 0%, rgba(7,10,9,0.5) 18%, rgba(7,10,9,0.45) 100%);
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber), var(--spitter));
  box-shadow: 0 0 10px rgba(69,217,221,0.5);
  z-index: 1001; pointer-events: none;
}

/* Pheromone path overlay */
.pheromone-path {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(69,217,221,0.5));
}

/* Particles / spores */
.particles {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(69,217,221,0.1) 1.5px, transparent 1.5px);
  background-size: 160px 160px, 240px 240px;
  background-position: 0 0, 80px 80px;
  animation: drift 60s linear infinite;
  opacity: 0.35;
}
@keyframes drift {
  from { background-position: 0 0, 80px 80px; }
  to { background-position: 0 400px, 80px 480px; }
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-120vh) scale(1.5); opacity: 0; }
}

/* Hide generated watermark */
body::after {
  content: '';
  position: fixed; bottom: 0; right: 0;
  width: 280px; height: 120px;
  background: radial-gradient(ellipse at bottom right, rgba(7,10,9,0.98) 0%, rgba(7,10,9,0.65) 45%, transparent 75%);
  z-index: 0; pointer-events: none;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #7ef0f3; text-shadow: 0 0 8px rgba(69,217,221,0.4); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 4vw;
  background: linear-gradient(180deg, rgba(7,10,9,0.92) 0%, rgba(7,10,9,0.65) 60%, transparent 100%);
  backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--text-main); font-weight: 800; font-size: 1.2rem; }
.nav-logo img { width: 38px; height: 38px; border-radius: 10px; filter: drop-shadow(0 0 8px rgba(69,217,221,0.3)); }
.nav-menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--text-dim); font-size: 0.95rem; padding: 0.4rem 0.2rem; position: relative;
  transition: color 0.2s; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text-main); }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text-main); transition: 0.3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2; text-align: center; padding: 10vh 4vw 12vh;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-subtitle {
  color: var(--accent-cyan); font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.14em; margin-bottom: 0.8rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.6rem); font-weight: 900; margin: 0 0 0.5rem;
  text-shadow: 0 6px 30px rgba(0,0,0,0.9), 0 0 70px rgba(69,217,221,0.18);
  letter-spacing: 0.04em;
}
.hero-en { font-size: clamp(1rem, 2.2vw, 1.5rem); color: var(--text-dim); letter-spacing: 0.2em; margin-bottom: 2.4rem; text-transform: uppercase; }
.version-badge {
  position: absolute; top: -1.4rem; right: -0.6rem;
  background: var(--accent-amber); color: #1a120b; font-size: 0.78rem; font-weight: 800;
  padding: 0.35rem 0.8rem; border-radius: 999px; box-shadow: var(--shadow);
}
.hero-spores {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(69,217,221,0.08) 0%, transparent 18%),
              radial-gradient(circle at 80% 70%, rgba(227,185,107,0.06) 0%, transparent 20%);
  animation: pulse-spores 6s ease-in-out infinite alternate;
}
@keyframes pulse-spores { from { opacity: 0.6; } to { opacity: 1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.6rem; border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--text-main); border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(18,62,44,0.78) 0%, rgba(13,45,32,0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 30px rgba(0,0,0,0.45), 0 0 18px rgba(69,217,221,0.12);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.08s, box-shadow 0.25s, background 0.25s;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 45%);
  pointer-events: none;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}
.btn:hover {
  background: linear-gradient(180deg, rgba(24,78,56,0.85) 0%, rgba(16,55,40,0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 28px rgba(69,217,221,0.3), 0 10px 36px rgba(0,0,0,0.5);
  border-color: rgba(113,185,141,0.75);
}
.btn:hover::after { left: 100%; }
.btn:active { transform: translateY(2px) scale(0.98); }

/* World container */
.world { position: relative; z-index: 2; }

/* Sections */
.section {
  min-height: 100vh; padding: 10vh 4vw; display: flex; align-items: center;
  position: relative;
}
.section-anchor { position: absolute; top: -80px; }

/* Scene panels — integrated into the world */
.scene-panel {
  width: min(1100px, 100%);
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13,28,21,0.9) 0%, rgba(10,22,16,0.93) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(113,185,141,0.35);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  margin-left: auto; margin-right: auto;
  transition: transform 0.4s, box-shadow 0.4s;
}
.scene-panel:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 30px rgba(69,217,221,0.08); }
.scene-panel-right { margin-left: auto; margin-right: 2vw; clip-path: polygon(3% 0, 100% 0, 100% 97%, 97% 100%, 0 100%, 0 3%); }
.scene-panel-left { margin-left: 2vw; margin-right: auto; clip-path: polygon(0 0, 97% 0, 100% 3%, 100% 100%, 3% 100%, 0 97%); }
.scene-panel-center { clip-path: polygon(2% 0, 98% 0, 100% 2%, 100% 98%, 98% 100%, 2% 100%, 0 98%, 0 2%); }

.panel-deco {
  position: absolute; width: 70px; height: 70px; pointer-events: none; opacity: 0.5;
}
.panel-deco-root { top: -20px; left: -20px; background: radial-gradient(circle, rgba(113,185,141,0.3) 0%, transparent 70%); }
.panel-deco-leaf { top: -18px; right: -18px; background: radial-gradient(circle, rgba(69,217,221,0.25) 0%, transparent 70%); }
.panel-deco-crystal { bottom: -22px; right: -22px; background: radial-gradient(circle, rgba(168,85,247,0.35) 0%, transparent 70%); animation: crystal-pulse 3s ease-in-out infinite; }
.panel-deco-mushroom { bottom: -20px; left: -20px; background: radial-gradient(circle, rgba(227,185,107,0.25) 0%, transparent 70%); }
.panel-deco-stone { top: -18px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(160,160,160,0.2) 0%, transparent 70%); }
.panel-deco-scroll { top: -20px; right: 40px; background: radial-gradient(circle, rgba(227,185,107,0.25) 0%, transparent 70%); }
@keyframes crystal-pulse { 0%,100%{opacity:0.4;} 50%{opacity:0.8;} }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 0.7rem;
  color: var(--text-main); text-shadow: 0 3px 16px rgba(0,0,0,0.7);
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent); border-radius: 3px;
}
.section-lead {
  color: var(--text-dim); font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin-bottom: 2.2rem; max-width: 780px;
}

/* Flow */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.2rem; }
.flow-step {
  padding: 1.4rem 1.2rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,62,44,0.55) 0%, rgba(13,45,32,0.65) 100%);
  border: 1px solid rgba(113,185,141,0.28);
  position: relative; overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.flow-step:hover { transform: translateY(-5px); border-color: rgba(113,185,141,0.6); }
.flow-step h3 { margin: 0 0 0.6rem; font-size: 1.15rem; color: var(--text-main); }
.flow-step p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.flow-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c); box-shadow: 0 0 16px var(--c);
}

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feature-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem; border-radius: 18px;
  background: rgba(18,62,44,0.45); border: 1px solid rgba(113,185,141,0.22);
  transition: background 0.25s, transform 0.25s;
}
.feature-card:hover { background: rgba(18,62,44,0.62); transform: translateY(-3px); }
.feature-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, var(--c), rgba(0,0,0,0.4));
  box-shadow: 0 0 18px var(--c);
}
.feature-card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* Units */
.unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.unit-card {
  text-align: center; padding: 1.8rem 1.2rem 1.4rem;
  border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(18,62,44,0.55) 0%, rgba(13,45,32,0.7) 100%);
  border: 1px solid rgba(113,185,141,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.unit-card:hover { transform: translateY(-6px); }
.unit-card.worker { border-top: 4px solid var(--worker); --u: var(--worker); }
.unit-card.soldier { border-top: 4px solid var(--soldier); --u: var(--soldier); }
.unit-card.spitter { border-top: 4px solid var(--spitter); --u: var(--spitter); }
.unit-card.bomber { border-top: 4px solid var(--bomber); --u: var(--bomber); }
.unit-glow {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--u), rgba(0,0,0,0.5));
  box-shadow: 0 0 26px var(--u); animation: unit-pulse 2.5s ease-in-out infinite;
}
@keyframes unit-pulse { 0%,100%{box-shadow:0 0 20px var(--u);} 50%{box-shadow:0 0 34px var(--u);} }
.unit-card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.unit-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* Modes */
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.mode-card {
  position: relative; padding: 1.8rem 1.4rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,62,44,0.55) 0%, rgba(13,45,32,0.7) 100%);
  border: 1px solid rgba(113,185,141,0.28);
  transition: transform 0.3s, box-shadow 0.3s;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.45); }
.mode-status {
  position: absolute; top: 0.9rem; right: 0.9rem;
  font-size: 0.72rem; font-weight: 800; padding: 0.22rem 0.6rem;
  border-radius: 999px; text-transform: uppercase;
}
.mode-card.available .mode-status { background: rgba(113,185,141,0.25); color: var(--text-main); box-shadow: 0 0 10px rgba(113,185,141,0.2); }
.mode-card.disabled .mode-status { background: rgba(100,100,100,0.22); color: var(--text-dim); }
.mode-card.disabled { opacity: 0.78; }
.mode-card h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.mode-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* Season gallery */
.biome-gallery {
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 0.8rem;
}
.gallery-main {
  position: relative; margin: 0; border-radius: 24px; overflow: hidden;
  aspect-ratio: 16/9; cursor: zoom-in;
  border: 1px solid rgba(113,185,141,0.4);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), inset 0 0 40px rgba(69,217,221,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gallery-main:hover {
  box-shadow: 0 22px 60px rgba(0,0,0,0.65), 0 0 34px rgba(69,217,221,0.18);
  transform: translateY(-2px);
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s cubic-bezier(0.2,0.8,0.2,1), opacity 0.35s;
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-main figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: 3rem 1.6rem 1.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
}
.gallery-season {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.9);
  letter-spacing: 0.08em;
}
.gallery-hint {
  font-size: 0.82rem; color: rgba(228,245,233,0.8);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(113,185,141,0.35);
  white-space: nowrap;
}
.gallery-nav {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(113,185,141,0.4);
  background: rgba(13,28,21,0.7); color: var(--text-main);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.gallery-nav:hover { background: rgba(24,78,56,0.85); box-shadow: 0 0 20px rgba(69,217,221,0.3); }
.gallery-nav:active { transform: scale(0.94); }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.7rem; margin-top: 1rem;
}
.thumb {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 14px;
  overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.75); transition: filter 0.2s, transform 0.4s; }
.thumb span {
  position: absolute; bottom: 0.3rem; left: 0.45rem; z-index: 2;
  font-size: 0.8rem; font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.thumb:hover { transform: translateY(-3px); border-color: rgba(113,185,141,0.6); }
.thumb:hover img { filter: brightness(0.95); transform: scale(1.06); }
.thumb.active { border-color: var(--accent-cyan); box-shadow: 0 0 18px rgba(69,217,221,0.35); }
.thumb.active img { filter: brightness(1); }
.season-disclaimer { margin-top: 1.4rem; font-size: 0.84rem; color: var(--text-dim); text-align: center; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 3.5vw;
  background: rgba(3, 6, 5, 0.92);
  backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  margin: 0; max-width: 92vw; max-height: 88vh;
  transform: scale(0.94); transition: transform 0.35s;
}
.lightbox.open .lightbox-figure { transform: scale(1); }
.lightbox-figure img {
  display: block; max-width: 92vw; max-height: 80vh;
  border-radius: 18px; border: 1px solid rgba(113,185,141,0.4);
  box-shadow: 0 30px 90px rgba(0,0,0,0.8), 0 0 60px rgba(69,217,221,0.12);
  object-fit: contain;
}
.lightbox-figure figcaption {
  text-align: center; margin-top: 0.9rem;
  font-size: 1.1rem; color: var(--text-main); letter-spacing: 0.1em;
}
.lightbox-close {
  position: absolute; top: 2.2vw; right: 2.2vw;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(113,185,141,0.4); background: rgba(13,28,21,0.7);
  color: var(--text-main); font-size: 1.6rem; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.lightbox-close:hover { background: rgba(24,78,56,0.85); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(113,185,141,0.4); background: rgba(13,28,21,0.7);
  color: var(--text-main); font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s, box-shadow 0.2s;
}
.lightbox-nav:hover { background: rgba(24,78,56,0.85); box-shadow: 0 0 22px rgba(69,217,221,0.35); }
.lightbox-nav.prev { left: 2.2vw; }
.lightbox-nav.next { right: 2.2vw; }

/* Cursor glow */
.cursor-glow {
  position: fixed; width: 280px; height: 280px; border-radius: 50%;
  pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(circle, rgba(69,217,221,0.1) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-amber), var(--spitter));
  border-radius: 3px; box-shadow: 0 0 12px rgba(69,217,221,0.25);
}
.timeline-item { position: relative; padding: 0.7rem 0 1.4rem 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.55rem; top: 0.7rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--panel-bg); border: 2px solid var(--text-dim);
}
.timeline-item.done::before { background: var(--accent-cyan); border-color: var(--accent-cyan); box-shadow: 0 0 14px var(--accent-cyan); }
.timeline-item.current::before { background: var(--accent-amber); border-color: var(--accent-amber); box-shadow: 0 0 18px var(--accent-amber); animation: node-pulse 2s infinite; }
.timeline-item.finale time { color: var(--accent-amber); font-weight: 900; }
.timeline-item.finale::before { border-color: var(--accent-amber); box-shadow: 0 0 20px var(--accent-amber); }
.timeline-item time { display: block; font-size: 0.95rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.timeline-item p { margin: 0; color: var(--text-main); }
@keyframes node-pulse { 0%,100%{box-shadow:0 0 10px var(--accent-amber);} 50%{box-shadow:0 0 22px var(--accent-amber);} }

/* Download */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.platform-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.8rem 1rem 1.4rem; border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,62,44,0.55) 0%, rgba(13,45,32,0.7) 100%);
  border: 1px solid rgba(113,185,141,0.28);
  position: relative; transition: transform 0.3s;
}
.platform-card:hover { transform: translateY(-4px); }
.platform-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: rgba(113,185,141,0.18); border: 1px solid rgba(113,185,141,0.35);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: var(--text-main);
}
.platform-icon.android::before { content: 'A'; }
.platform-icon.taptap::before { content: 'T'; }
.platform-icon.wechat::before { content: 'W'; }
.platform-icon.steam::before { content: 'S'; }
.platform-card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.platform-card p { margin: 0; color: var(--text-dim); }
.platform-note {
  margin-top: 0.9rem; padding: 0.25rem 0.75rem;
  background: rgba(100,100,100,0.22); color: var(--text-dim);
  border-radius: 999px; font-size: 0.78rem;
}
.platform-card small { margin-top: 0.7rem; color: var(--text-dim); font-size: 0.74rem; }
.platform-card.disabled { opacity: 0.72; }
.platform-card.available {
  border-color: rgba(69,217,221,0.55);
  box-shadow: 0 0 26px rgba(69,217,221,0.16);
}
.platform-download {
  margin-top: 0.9rem; padding: 0.55rem 1.1rem;
  border-radius: 999px; font-size: 0.84rem; font-weight: 800;
  color: #082018; background: linear-gradient(180deg, #7ef0f3, #45D9DD);
  box-shadow: 0 0 18px rgba(69,217,221,0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.platform-download:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(69,217,221,0.6);
}

/* Changelog */
.changelog-list { display: flex; flex-direction: column; gap: 0.9rem; }
.changelog-item {
  border-radius: 16px; overflow: hidden;
  background: rgba(18,62,44,0.45); border: 1px solid rgba(113,185,141,0.22);
  transition: background 0.25s;
}
.changelog-item:hover { background: rgba(18,62,44,0.58); }
.changelog-item summary {
  padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 1rem; font-weight: 800;
}
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-item summary::before {
  content: '▸'; color: var(--accent-cyan); transition: transform 0.2s; font-size: 1.1rem;
}
.changelog-item[open] summary::before { transform: rotate(90deg); }
.changelog-item .version { color: var(--accent-amber); font-size: 1.15rem; }
.changelog-item time { color: var(--text-dim); font-size: 0.9rem; margin-left: auto; }
.log-body { padding: 0 1.5rem 1.2rem; }
.log-body h4 { margin: 1rem 0 0.4rem; color: var(--accent-cyan); font-size: 0.95rem; }
.log-body ul { margin: 0; padding-left: 1.2rem; color: var(--text-dim); }
.log-body li { margin-bottom: 0.4rem; }

/* Footer */
.footer {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 10vh 4vw; position: relative; z-index: 2;
}
.footer-stone {
  text-align: center; padding: 2.5rem 3rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13,28,21,0.9) 0%, rgba(8,16,12,0.95) 100%);
  border: 1px solid rgba(113,185,141,0.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  clip-path: polygon(5% 0, 95% 0, 100% 8%, 100% 92%, 95% 100%, 5% 100%, 0 92%, 0 8%);
}
.footer-title { font-size: 1.6rem; font-weight: 900; margin: 0; color: var(--text-main); }
.footer-sub { font-size: 0.95rem; color: var(--text-dim); letter-spacing: 0.15em; margin: 0.3rem 0 1rem; }
.footer-stone p { margin: 0.45rem 0; color: var(--text-dim); }
.copyright { margin-top: 1.2rem; font-size: 0.85rem; opacity: 0.75; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1080px) {
  .feature-grid, .mode-grid { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .scene-panel-right { margin-right: 0; }
  .scene-panel-left { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: center; gap: 0;
    background: rgba(7,10,9,0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border); padding: 1rem 0;
    transform: translateY(-130%); opacity: 0; transition: transform 0.35s, opacity 0.35s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .nav-menu a { padding: 0.85rem 0; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .unit-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .biome-gallery { grid-template-columns: 40px 1fr 40px; gap: 0.4rem; }
  .gallery-nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .flow { grid-template-columns: 1fr; }
  .version-badge { right: 0; top: -2.6rem; }
  .hero-title { font-size: 2.6rem; }
}
@media (max-width: 480px) {
  .unit-grid, .platform-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .scene-panel { padding: 1.4rem; clip-path: none; border-radius: 22px; }
  .hero-title { font-size: 2.2rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
  .gallery-hint { display: none; }
}
