:root {
  --bg: #120d13;
  --bg-2: #1d1218;
  --ink: #f9ecd7;
  --muted: #c9ad94;
  --line: rgba(249, 236, 215, .18);
  --gold: #f3b84f;
  --red: #c43d42;
  --teal: #5ec4b1;
  --panel: rgba(31, 19, 24, .88);
  --paper: #f7ead2;
  --paper-ink: #21151a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(196, 61, 66, .2), transparent 34rem),
    linear-gradient(180deg, #100b11 0%, #181016 52%, #0d0a0e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  background: rgba(18, 13, 19, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand, .nav { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #171013;
  background: var(--gold);
  border: 2px solid #ffe0a0;
  box-shadow: inset 0 0 0 2px #8d2d34;
}

.nav { gap: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--gold); }
.home-link { color: var(--muted); font-size: 14px; font-weight: 800; }
.home-link:hover { color: var(--gold); }
.menu-button { display: none; }

.section-band {
  position: relative;
  overflow: clip;
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 72px 0 58px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .42;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 19, .98), rgba(18, 13, 19, .78) 38%, rgba(18, 13, 19, .35) 72%, rgba(18, 13, 19, .88)),
    linear-gradient(180deg, transparent 0%, #120d13 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 48px;
  align-items: center;
}
.game-logo { width: min(390px, 80vw); margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .96;
  letter-spacing: 0;
  text-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
h1 span { color: var(--gold); }
.hero-copy p {
  max-width: 680px;
  color: #ecd6bd;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #21151a; border-color: #ffe0a0; }
.button.ghost { background: rgba(249, 236, 215, .06); color: var(--ink); }

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(35, 21, 28, .76), rgba(18, 13, 19, .88));
  box-shadow: var(--shadow);
}
.hero-card::before, .guide-console::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(243, 184, 79, .42);
  pointer-events: none;
}
.mina-float {
  width: min(330px, 72%);
  margin: 18px auto 0;
  filter: drop-shadow(0 30px 35px rgba(0,0,0,.45));
  animation: floaty 4.8s ease-in-out infinite;
}
.stat-grid {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-grid div {
  padding: 13px 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
}
.stat-grid strong { display: block; color: var(--gold); font-size: 13px; }
.stat-grid span { color: #f4dbc0; font-size: 14px; }

.section-title {
  display: grid;
  grid-template-columns: minmax(240px, .48fr) 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}
.section-title p { margin: 0; color: var(--muted); }
.section-title.inverted p { color: #d9bd9b; }

.guide-console {
  position: relative;
  margin-top: -36px;
  padding: 34px;
  background: var(--paper);
  color: var(--paper-ink);
  border: 3px solid #543134;
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tab {
  border: 1px solid #b88d5a;
  background: transparent;
  color: #4f3032;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.tab.active {
  background: #26161b;
  color: var(--gold);
}
.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: rise .28s ease both;
}
.tab-panel h3 { font-size: 26px; margin-bottom: 10px; }
.tab-panel li { margin: 8px 0; }
.combat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.combat-strip img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: contain;
  background: #1b1115;
  border: 2px solid #6b3a3d;
  image-rendering: pixelated;
}
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-cloud button {
  border: 1px solid #9b6d41;
  background: #fff5df;
  color: #2b191d;
  padding: 10px 14px;
  cursor: pointer;
}

.split-section, .route-section, .faq-section {
  padding: 96px 0;
}
.weapon-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
}
.weapon-list, .boss-list {
  display: grid;
  gap: 10px;
}
.weapon-button, .boss-button {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(249, 236, 215, .05);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.weapon-button:hover, .boss-button:hover { transform: translateX(4px); border-color: rgba(243, 184, 79, .7); }
.weapon-button.active, .boss-button.active { background: rgba(243, 184, 79, .12); border-color: var(--gold); }
.weapon-button img, .boss-button img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  image-rendering: pixelated;
}
.weapon-button strong, .boss-button strong { display: block; font-size: 17px; }
.weapon-button span, .boss-button span { color: var(--muted); font-size: 13px; }

.weapon-detail, .boss-detail {
  min-height: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.detail-top {
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr;
  gap: 26px;
  align-items: center;
}
.detail-top img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.38));
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tags span {
  border: 1px solid rgba(94, 196, 177, .5);
  color: #bff0e8;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.guide-list div {
  padding: 14px;
  border-left: 3px solid var(--red);
  background: rgba(0, 0, 0, .18);
}
.guide-list strong { display: block; color: var(--gold); margin-bottom: 6px; }

.boss-section {
  padding: 96px 0;
  background:
    linear-gradient(180deg, rgba(196,61,66,.12), rgba(94,196,177,.08)),
    #171016;
}
.boss-board {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
}
.phase-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.phase-meter span {
  min-height: 10px;
  background: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.route-card {
  padding: 24px;
  background: rgba(249, 236, 215, .06);
  border: 1px solid var(--line);
}
.route-number { color: var(--gold); font-weight: 900; }
.route-card h3 { margin: 10px 0; }
.checklist {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  color: #ead6bd;
}
.checklist input { accent-color: var(--gold); margin-top: 6px; }
.progress {
  height: 12px;
  background: rgba(249,236,215,.12);
  border: 1px solid var(--line);
  margin-top: 14px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width .25s ease;
}

.gallery {
  padding: 90px 0;
  background: #0e0a0d;
}
.gallery-frame {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 16px;
  align-items: center;
}
.gallery-frame figure {
  margin: 0;
  background: #050404;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  image-rendering: pixelated;
}
.gallery-frame figcaption {
  padding: 14px 16px;
  color: #efd6b9;
}
.gallery-arrow {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background: rgba(249,236,215,.06);
  color: var(--gold);
  font-size: 36px;
  cursor: pointer;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}
.faq-list p { color: #e3c9aa; margin: 12px 0 0; }

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #090709;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.source-links { display: flex; gap: 14px; align-items: center; }
.source-links a { color: var(--gold); font-weight: 800; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .site-header { min-height: 64px; }
  .nav {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #171016;
    border: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-button {
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
  }
  .menu-button span { height: 2px; background: var(--ink); }
  .hero { min-height: auto; padding-top: 46px; }
  .hero-grid, .weapon-layout, .boss-board, .detail-top, .section-title {
    grid-template-columns: 1fr;
  }
  .hero-card { min-height: 430px; }
  .combat-strip, .guide-list, .route-grid {
    grid-template-columns: 1fr;
  }
  .boss-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1160px); }
  .guide-console { padding: 22px; }
  .hero-copy p { font-size: 16px; }
  .stat-grid, .boss-list, .phase-meter {
    grid-template-columns: 1fr;
  }
  .hero-card { min-height: 500px; }
  .gallery-frame {
    grid-template-columns: 1fr;
  }
  .gallery-arrow { width: 100%; }
  .footer-grid { flex-direction: column; }
}

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


.section-action {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.inverted-action { justify-content: flex-start; }
.link-cloud a {
  border: 1px solid #9b6d41;
  background: #fff5df;
  color: #2b191d;
  padding: 10px 14px;
  font-weight: 900;
}
.button.ghost-on-light {
  background: rgba(38, 22, 27, .08);
  color: #26161b;
  border-color: #b88d5a;
}
.footer .source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}
.footer .source-links a { color: #f3b84f; font-weight: 800; }
@media (max-width: 860px) {
  .home-link { display: none; }
}
