@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --red: #cc0000;
  --black: #000;
  --white: #fff;
  --gray: #888;
  --gray-dark: #3a3a3a;
  --font: 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 22px; /* base: 投影友好 */
  user-select: none;
}

/* ── SLIDE SYSTEM ──────────────────────────────── */

#slides { position: relative; width: 100vw; height: 100vh; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  background: var(--black);
  overflow: hidden;
}

.slide.active { opacity: 1; pointer-events: all; }

/* ── FULLSCREEN HINT ───────────────────────────── */

#fs-hint {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem; cursor: pointer;
}

#fs-hint .fs-key {
  font-family: var(--mono); font-size: 3.5rem; font-weight: 700;
  color: var(--white); border: 2px solid var(--red);
  padding: 0.4rem 1.4rem; line-height: 1;
}

#fs-hint .fs-label {
  font-family: var(--mono); font-size: 1rem;
  color: var(--gray); letter-spacing: 0.15em;
}

#fs-hint .fs-skip {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--gray-dark); margin-top: 1rem;
  letter-spacing: 0.1em;
}

/* ── NAVIGATION HUD ────────────────────────────── */

#hud {
  position: fixed; bottom: 1.8rem; right: 2.2rem;
  z-index: 200; text-align: right; pointer-events: none;
}

#hud-ch {
  display: block; font-family: var(--mono); font-size: 0.85rem;
  color: var(--red); letter-spacing: 0.15em;
}

#hud-pg {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  color: var(--gray-dark); letter-spacing: 0.1em; margin-top: 0.15rem;
}

.nav-zone {
  position: fixed; top: 0; bottom: 0; width: 12%; z-index: 100; cursor: pointer;
}
#nav-prev { left: 0; }
#nav-next { right: 0; }

/* ── RED DIAGONAL LINES ────────────────────────── */

.lines {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.lines span {
  position: absolute; left: -8%; right: -8%;
  transform: rotate(-7deg); display: block;
}
.lines span:nth-child(1) { top: 54%; height: 2px; background: rgba(204,0,0,0.65); }
.lines span:nth-child(2) { top: 59%; height: 1px;  background: rgba(204,0,0,0.25); }
.lines span:nth-child(3) { top: 63%; height: 1.5px; background: rgba(204,0,0,0.45); }

.lines-right span { left: 55%; right: -8%; }

/* ── CHAPTER LABEL ─────────────────────────────── */

.ch-label {
  position: absolute; top: 2rem; left: 3rem;
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--red); letter-spacing: 0.18em;
}

/* ── CHAPTER DIVIDER ───────────────────────────── */

.divider {
  display: flex; flex-direction: column;
  justify-content: center; padding: 4rem 6rem;
}

.divider-num {
  font-family: var(--mono); font-size: 1rem;
  color: var(--red); letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.divider-title {
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em;
  position: relative; z-index: 2; max-width: 55%;
}

.divider-sub {
  margin-top: 1.5rem;
  font-family: var(--mono); font-size: 1rem;
  color: var(--gray); letter-spacing: 0.08em;
  position: relative; z-index: 2;
}

/* ── GHOST BG TEXT ─────────────────────────────── */

.ghost {
  position: absolute; right: -1rem; bottom: -1rem;
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 900; color: var(--red); opacity: 0.05;
  letter-spacing: -0.03em; pointer-events: none;
  line-height: 1; white-space: nowrap;
}

/* ── STANDARD CONTENT PAGE ─────────────────────── */

.page {
  padding: 4rem 5.5rem 2.5rem;
  display: flex; flex-direction: column; height: 100%;
}

.page-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900; margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.red { color: var(--red); }

/* ── MEMBER GRID ───────────────────────────────── */

.member-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.2rem; margin-top: 0.5rem; flex: 1;
  align-content: center;
}

.member-card {
  border: 1px solid rgba(204,0,0,0.5);
  padding: 1.4rem 1.5rem;
  position: relative;
  display: flex; flex-direction: column; gap: 0.5rem;
  width: calc(25% - 1.2rem); text-align: center;
}

.member-card::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 0.8rem; height: 0.8rem;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
}

.member-card::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 0.8rem; height: 0.8rem;
  border-bottom: 2px solid rgba(204,0,0,0.3); border-right: 2px solid rgba(204,0,0,0.3);
}

.member-role {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--red); letter-spacing: 0.1em; text-transform: uppercase;
}

.member-name {
  font-size: 2.2rem; font-weight: 700; color: var(--white);
  padding: 0.8rem 0;
}

.member-intro-hint {
  margin-top: 2rem;
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--gray-dark); letter-spacing: 0.12em;
}

/* ── VISION BOX ────────────────────────────────── */

.vision-bar {
  width: 2.5rem; height: 3px;
  background: var(--red); margin-bottom: 1.8rem;
}

.vision-box {
  border-left: 4px solid var(--red);
  padding: 1.4rem 2.2rem; max-width: 75%;
}

.vision-text {
  font-size: 2rem; font-weight: 700; line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.vision-placeholder {
  font-size: 1.7rem; color: var(--gray-dark);
  font-style: italic;
}

/* ── TAGS ──────────────────────────────────────── */

.tag {
  display: inline-block;
  border: 1px solid var(--red); color: var(--red);
  font-family: var(--mono); font-size: 0.85rem;
  padding: 0.3rem 0.9rem; letter-spacing: 0.08em;
  margin-right: 0.6rem; margin-bottom: 0.6rem;
}

.tag-fill { background: var(--red); color: var(--white); border-color: var(--red); }

.body-text {
  font-size: 1.6rem; line-height: 1.9;
  color: #bbb; max-width: 58ch;
}

.body-text strong { color: var(--white); font-weight: 700; }

/* ── REFERENCE GAME SLIDE ─────────────────────── */

.ref-page {
  padding: 3.5rem 5rem 2.5rem;
  display: flex; flex-direction: column; height: 100%;
}

.ref-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.ref-tag .tag-type {
  background: var(--red); color: var(--white);
  padding: 0.2rem 0.7rem;
}

.ref-tag .tag-name { color: var(--gray); }

.ref-game-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900; margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.ref-screenshots {
  display: grid; gap: 0.8rem; flex: 1;
  min-height: 0;
}

.ref-screenshots.two-col {
  grid-template-columns: 1fr 1fr;
}

.ref-screenshots.main-side {
  grid-template-columns: 1.6fr 1fr;
}

.ref-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
}

.ref-caption {
  margin-top: 1rem;
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--gray-dark); letter-spacing: 0.1em;
}

/* ── BLANK SLIDE (CH.03) ───────────────────────── */

.blank-page {
  padding: 4rem 5.5rem 3rem;
  display: flex; flex-direction: column;
  justify-content: space-between; height: 100%;
}

.blank-title {
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900; color: rgba(255,255,255,0.9);
}

.blank-hint {
  font-family: var(--mono); font-size: 1rem;
  color: var(--gray-dark); letter-spacing: 0.12em;
}

/* ── VIDEO SLIDE ───────────────────────────────── */

.video-slide {
  display: flex; align-items: center; justify-content: center;
  background: #000; cursor: pointer;
}

.video-slide video { width: 100%; height: 100%; object-fit: contain; }

.video-hint {
  position: absolute; bottom: 2.5rem; right: 3rem;
  font-family: var(--mono); font-size: 0.8rem;
  color: rgba(255,255,255,0.2); letter-spacing: 0.1em;
  pointer-events: none;
}

/* ── DISCUSSION CARDS ──────────────────────────── */

.discussion-page {
  padding: 3rem 5.5rem 2rem;
  display: flex; flex-direction: column; gap: 0;
  height: 100%; justify-content: center;
}

.discussion-section-label {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--red); letter-spacing: 0.2em; margin-bottom: 1.5rem;
}

.q-item {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.q-item:last-child { border-bottom: none; }

.q-num {
  font-family: var(--mono); font-size: 2rem; font-weight: 700;
  color: var(--red); flex-shrink: 0; line-height: 1.4; min-width: 2.5rem;
}

.q-body { flex: 1; }

.q-text {
  font-size: 1.6rem; font-weight: 700;
  line-height: 1.4; color: var(--white);
}

.q-options {
  display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.7rem;
}

.q-opt {
  border: 1px solid var(--gray-dark);
  padding: 0.35rem 0.9rem; font-size: 0.9rem;
  color: var(--gray); font-family: var(--mono);
}

.q-opt em { color: var(--red); font-style: normal; margin-right: 0.4rem; }

.q-subs {
  display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.6rem;
}

.q-sub {
  font-family: var(--mono); font-size: 0.8rem; color: var(--gray-dark);
  border-left: 1.5px solid var(--gray-dark); padding-left: 0.6rem;
}

/* ── COMMUNICATION SLIDE ───────────────────────── */

.comm-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; margin-top: 1rem;
}

.comm-block h3 {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--red); letter-spacing: 0.15em; text-transform: uppercase;
  padding-bottom: 0.7rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--red);
}

.comm-item {
  font-size: 1.6rem; color: var(--gray);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 0.8rem;
}

.comm-item::before {
  content: ''; display: block; width: 5px; height: 5px;
  border: 1px solid var(--gray-dark); border-radius: 50%; flex-shrink: 0;
}

.comm-tbd {
  margin-top: 1.2rem; font-family: var(--mono); font-size: 0.8rem;
  color: var(--gray-dark); letter-spacing: 0.1em;
}

/* ── ACTION TABLE ──────────────────────────────── */

.action-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }

.action-table th {
  font-family: var(--mono); font-size: 0.85rem; color: var(--red);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.4rem; border-bottom: 1px solid var(--red); text-align: left;
}

.action-table td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.5rem; color: var(--gray);
}

.action-table td:first-child { color: var(--white); }

/* ── ENDING ────────────────────────────────────── */

.ending {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}

.ending-ghost {
  position: absolute; font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 900; color: var(--red); opacity: 0.06;
  pointer-events: none; white-space: nowrap; letter-spacing: -0.02em;
}

.ending-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900; letter-spacing: 0.08em; position: relative; z-index: 2;
}

.ending-en {
  font-family: var(--mono); font-size: 1rem;
  color: var(--red); letter-spacing: 0.3em;
  margin-top: 1rem; position: relative; z-index: 2;
}

.ending-date {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--gray-dark); letter-spacing: 0.2em;
  margin-top: 2.5rem; position: relative; z-index: 2;
}
