/* ==========================================================================
   OHO — 頁面版面：hero / features / cta / roster
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(60, 40, 25, 0.35), transparent 70%),
    var(--bg);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise);
  opacity: 0.14; mix-blend-mode: overlay;
}
.hero__silhouettes {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/hero-bg.jpg") center 40% / min(160vw, 1800px) auto no-repeat;
  opacity: 0.35;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.1);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 65%, transparent 100%);
}
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(85% 70% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px);
  display: grid; justify-items: center; gap: 22px;
}
.hero__logo {
  width: min(440px, 82vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 106, 26, 0.18));
}
.hero__logo-fallback { display: none; text-align: center; }
.hero__logo-fallback .metal-text { font-size: clamp(4rem, 14vw, 9rem); line-height: 1; letter-spacing: 0.02em; }
.hero__logo-fallback .metal-text--zh { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.25em; margin-top: 8px; }
.hero.no-logo .hero__logo { display: none; }
.hero.no-logo .hero__logo-fallback { display: block; }

.hero__tagline { font-family: var(--font-zh-head); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: 0.32em; color: var(--bone); }
.hero__sub { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--brass-2); }
.hero__lead { color: var(--bone-dim); max-width: 56ch; font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero__countdown { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); width: min(560px, 90vw); }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 0.6rem; letter-spacing: 0.4em; color: var(--bone-mute);
  display: grid; justify-items: center; gap: 8px; z-index: 2;
}
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(180deg, var(--brass-1), transparent); }

/* ---------- Section 基本 ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section__head { display: grid; gap: 14px; text-align: center; justify-items: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .eyebrow::before { display: none; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { text-align: center; padding: 26px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--brass-3); line-height: 1; }
.stat__label { margin-top: 8px; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--bone-mute); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 5vw, 60px) 0;
}
.feature + .feature { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.feature__media .iron-panel { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__media .glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); font-weight: 900;
  color: rgba(217, 168, 90, 0.9);
}
.feature__media .glyph .metal-text { font-size: inherit; }
.feature__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.75));
}
.feature__media .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--brass-2); z-index: 2; }
.feature__media .corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.feature__media .corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.feature__media .corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.feature__media .corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.feature__caption {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-family: var(--font-head); font-size: 0.65rem; letter-spacing: 0.35em; color: var(--brass-2);
}
.feature__body { display: grid; gap: 16px; justify-items: start; }
.feature__body .h-section, .feature__body .lead, .feature__body .feature__list { justify-self: stretch; }
.feature__body .lead { max-width: 52ch; }
.feature__list { display: grid; gap: 8px; margin-top: 4px; }
.feature__list li { display: flex; gap: 12px; align-items: baseline; color: var(--bone-dim); }
.feature__list li::before { content: "◆"; font-size: 0.55rem; color: var(--brass-2); flex: none; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  border-block: 1px solid rgba(217, 168, 90, 0.4);
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(255, 106, 26, 0.28), transparent 70%),
    linear-gradient(180deg, #100e0b, #050505);
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
}
.cta__inner { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: center; }
.cta .h-display { color: var(--bone); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ---------- Roster page ---------- */
.roster-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(28px, 4vw, 44px);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(80, 50, 30, 0.35), transparent 70%),
    var(--bg);
}
.roster-hero .hero__silhouettes { opacity: 0.12; background-position: center 0; background-size: min(110vw, 1300px) auto; }
.roster-hero__inner { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: center; }
.roster-hero .h-display { color: var(--bone); }
.roster-hero .lead { text-align: center; }
.roster-tabs { position: relative; z-index: 1; margin-top: clamp(24px, 4vw, 40px); }
.roster-countdown { padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px); }
.roster-grid-wrap { padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 72px); }
.roster-counter-wrap { padding: 8px 0 clamp(40px, 6vw, 72px); }
.roster-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 8px; }
.roster-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--bone-mute); font-family: var(--font-head); }
.roster-legend i { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); }
.roster-legend .lg-common i { background: var(--rarity-common); }
.roster-legend .lg-rare i { background: var(--rarity-rare); box-shadow: 0 0 10px var(--rarity-rare); }
.roster-legend .lg-legendary i { background: var(--rarity-legendary); box-shadow: 0 0 10px var(--rarity-legendary); }
.roster-hint { text-align: center; font-size: 0.85rem; color: var(--bone-mute); letter-spacing: 0.15em; margin-bottom: clamp(20px, 3vw, 32px); }
.roster-hint kbd { font-family: var(--font-head); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; color: var(--brass-2); font-size: 0.75rem; }

/* ==========================================================================
   手機版整理（≤ 640px）
   ========================================================================== */
@media (max-width: 640px) {
  :root { --gap: 18px; }

  /* Hero：logo 縮小到約 1/3 螢幕高，文字降字距、按鈕滿版、隱藏 SCROLL */
  .hero { min-height: calc(100svh - var(--nav-h)); }
  .hero__inner { gap: 14px; padding: 28px 0 40px; }
  .hero__logo { width: auto; height: auto; max-width: 84vw; max-height: 34svh; }
  .hero__sub { font-size: 0.62rem; letter-spacing: 0.28em; white-space: nowrap; }
  .hero__tagline { font-size: 1.15rem; letter-spacing: 0.14em; }
  .hero__lead { font-size: 0.92rem; line-height: 1.75; }
  .hero__actions { width: 100%; gap: 10px; margin-top: 4px; }
  .hero__actions .btn { flex: 1 1 100%; min-height: 48px; }
  .hero__countdown { margin-top: 18px; padding-top: 18px; width: 100%; }
  .hero__scroll { display: none; }
  .hero__silhouettes { background-size: 200vw auto; }
  .anim-float { animation: none; }

  /* Section 標題與內文 */
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 28px; gap: 10px; }
  .h-display { font-size: 1.85rem; letter-spacing: 0.04em; }
  .h-section { font-size: 1.4rem; letter-spacing: 0.05em; }
  .lead { font-size: 0.95rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.26em; }

  /* Stats */
  .stat { padding: 18px 8px; }
  .stat__label { font-size: 0.7rem; letter-spacing: 0.18em; }

  /* Feature：圖片改 16:10 降高度、文字更緊 */
  .feature { padding: 28px 0; gap: 18px; }
  .feature__media { aspect-ratio: 16 / 10; }
  .feature__media .corner { width: 16px; height: 16px; }
  .feature__caption { left: 14px; bottom: 10px; font-size: 0.58rem; }
  .feature__body { gap: 10px; }
  .feature__list { gap: 6px; font-size: 0.92rem; }

  /* CTA */
  .cta { padding: 56px 0; }
  .cta__inner { gap: 12px; }
  .cta__actions { width: 100%; gap: 10px; }
  .cta__actions .btn { flex: 1 1 100%; }

  /* Roster 頁 */
  .roster-hero { padding: 40px 0 20px; }
  .roster-hero__inner { gap: 10px; }
  .roster-hero .lead { font-size: 0.92rem; }
  .roster-legend { gap: 12px; }
  .roster-legend span { font-size: 0.62rem; letter-spacing: 0.18em; }
  .roster-tabs { margin-top: 18px; }
  .roster-countdown { padding: 24px 0 12px; }
  .roster-grid-wrap { padding: 12px 0 32px; }
  .roster-hint { font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 14px; }
  .roster-hint__kbd { display: none; }
  .roster-counter-wrap { padding: 4px 0 40px; }
  .reveal-counter { font-size: 0.95rem; letter-spacing: 0.16em; }
}
