:root {
  --bg-deep: #07090f;
  --bg-base: #0c101b;
  --bg-surface: #13192b;
  --bg-elevated: #1a2238;
  --border-subtle: rgba(148, 163, 184, 0.22);
  --border-gold: rgba(240, 184, 73, 0.45);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-gold: #f0b849;
  --accent-gold-bright: #ffd97d;
  --accent-cyan: #38bdf8;
  --accent-emerald: #4ade80;
  --steam-blue: #1a9fff;
  --steam-blue-dark: #0e6bb8;
  --font-pixel: 'DotGothic16', 'Noto Sans JP', monospace;
  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-window: 0 20px 50px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(240, 184, 73, 0.07), transparent 45%),
    var(--bg-deep);
}

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

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

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.5) 0px,
    rgba(255, 255, 255, 0.5) 1px,
    transparent 1px,
    transparent 3px
  );
}

.container {
  position: relative;
  z-index: 1;
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* RPG Frames & Windows */
.rpg-window {
  background: linear-gradient(180deg, rgba(22, 29, 48, 0.94), rgba(11, 15, 27, 0.98));
  border: 2px solid rgba(203, 213, 225, 0.35);
  box-shadow:
    inset 0 0 0 2px rgba(7, 9, 15, 0.9),
    inset 0 0 0 3px rgba(240, 184, 73, 0.2),
    var(--shadow-window);
  border-radius: var(--radius-md);
}

.rpg-frame {
  position: relative;
  background: var(--bg-surface);
  border: 2px solid rgba(148, 163, 184, 0.32);
  box-shadow:
    inset 0 0 0 2px rgba(7, 9, 15, 0.85),
    0 16px 36px rgba(0, 0, 0, 0.55);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-steam {
  background: linear-gradient(135deg, #27aeff 0%, #1175c8 100%);
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 8px 24px rgba(26, 159, 255, 0.3);
}

.btn-steam:hover {
  box-shadow: 0 12px 30px rgba(26, 159, 255, 0.45);
}

.btn-outline {
  background: rgba(19, 25, 43, 0.75);
  color: var(--text-main);
  border-color: rgba(203, 213, 225, 0.35);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.steam-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-gold-bright), #c98617);
  color: #090b12;
  font-weight: 900;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(240, 184, 73, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent-gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent-gold);
  color: #090b12;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 4% 1.4rem;
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.06);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.72) 0%, rgba(7, 9, 15, 0.55) 45%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(7, 9, 15, 0.92) 0%, rgba(7, 9, 15, 0.55) 60%, rgba(7, 9, 15, 0.8) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(240, 184, 73, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  line-height: 1.24;
  margin: 0 0 1.2rem;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin: 0 0 1.9rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.1rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.meta-value {
  font-weight: 700;
  font-size: 0.92rem;
}

/* Hero Showcase */
.showcase-frame {
  background: #090d16;
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 16, 27, 0.95);
}

.showcase-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.showcase-tab:hover {
  color: var(--text-main);
}

.showcase-tab.is-active {
  color: var(--accent-gold-bright);
  background: rgba(240, 184, 73, 0.08);
  border-bottom-color: var(--accent-gold);
}

.showcase-screen {
  aspect-ratio: 4 / 3;
  background: #05070c;
  overflow: hidden;
}

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

.showcase-caption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1rem;
  font-family: var(--font-pixel);
  font-size: 0.88rem;
  color: #e2e8f0;
  background: rgba(12, 16, 27, 0.96);
  border-top: 1px solid var(--border-subtle);
}

.pixel-arrow {
  color: var(--accent-gold);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
  margin: 0;
}

.section-sub {
  color: var(--text-muted);
  margin: 0.7rem 0 0;
}

/* Story */
.story-box {
  padding: 3rem 2.5rem;
}

.story-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.2rem;
  color: #cbd5e1;
  font-size: 1.03rem;
}

.concept-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.concept-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(7, 9, 15, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.chip-num {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  color: var(--accent-gold);
}

.chip-text {
  font-size: 0.92rem;
  font-weight: 600;
}

/* Pillars */
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.pillar-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2.5rem;
}

.pillar-card.is-reversed .pillar-media {
  order: 2;
}

.pillar-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: rgba(7, 9, 15, 0.85);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: 3px;
}

.media-tag.tag-cyan {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.media-tag.tag-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.pillar-index {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.pillar-name {
  font-family: var(--font-pixel);
  font-size: 1.65rem;
  margin: 0 0 1rem;
  color: var(--accent-gold-bright);
}

.pillar-name span {
  color: var(--text-main);
  font-size: 1.25rem;
}

.pillar-desc {
  color: #cbd5e1;
  margin: 0 0 1.2rem;
}

.pillar-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pillar-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.pillar-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Monsters */
.section-monsters {
  background: linear-gradient(180deg, transparent, rgba(19, 25, 43, 0.45), transparent);
}

.monster-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 2.5rem;
}

.monster-desc {
  color: #cbd5e1;
  margin: 1rem 0 1.6rem;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-cards-single {
  grid-template-columns: 1fr;
}

.stat-card {
  padding: 1.15rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.stat-card-featured {
  padding: 1.5rem 1.6rem;
  background:
    radial-gradient(circle at 15% 50%, rgba(240, 184, 73, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(26, 34, 56, 0.96), rgba(12, 16, 27, 0.98));
  border: 2px solid var(--accent-gold);
  box-shadow:
    inset 0 0 0 1px rgba(255, 217, 125, 0.2),
    0 12px 32px rgba(240, 184, 73, 0.14);
}

.stat-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #090b12;
  background: var(--accent-gold);
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.stat-num {
  font-family: var(--font-pixel);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: var(--accent-gold-bright);
  line-height: 1;
  text-shadow: 0 0 24px rgba(240, 184, 73, 0.45);
}

.stat-unit {
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  color: var(--text-main);
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.monster-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

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

.gallery-item {
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-wide {
  grid-column: span 3;
}

.gallery-wide img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 28%;
}

.gallery-caption {
  display: block;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: #e2e8f0;
  background: rgba(12, 16, 27, 0.96);
  border-top: 1px solid var(--border-subtle);
}

/* Spec */
.spec-window {
  padding: 2.8rem 2.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.spec-table {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 0.95rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  font-family: var(--font-pixel);
  color: var(--accent-gold);
  font-size: 0.92rem;
}

.spec-row dd {
  margin: 0;
  color: #e2e8f0;
}

.spec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.spec-row a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bottom CTA */
.cta-banner {
  padding: 3.2rem 2rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 184, 73, 0.16), transparent 65%),
    var(--bg-surface);
  border-color: var(--border-gold);
}

.cta-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0 0 0.8rem;
}

.cta-desc {
  color: #cbd5e1;
  margin: 0 auto 1.8rem;
  max-width: 580px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  background: #06080d;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand strong {
  font-family: var(--font-pixel);
  color: var(--text-main);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: min(960px, 90vw);
  text-align: center;
}

.lightbox-content img {
  max-height: 78vh;
  margin-inline: auto;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  font-family: var(--font-pixel);
  color: var(--accent-gold-bright);
  margin: 0.9rem 0 0;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(19, 25, 43, 0.85);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .pillar-card,
  .monster-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card.is-reversed .pillar-media {
    order: 0;
  }

  .concept-strip,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .header-actions .btn-steam {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .story-box,
  .spec-window {
    padding: 2rem 1.25rem;
  }

  .concept-strip,
  .stat-cards,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
