/* ==========================================================================
   ABEFOLIO — ANIME × NOLAN × VILLENEUVE DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-obsidian: #09090d;
  --bg-panel: #121218;
  --ink: #070709;
  --ivory: #f4f1ea;
  --amber: #e5a93c;      /* Arrakis / Dune Ochre */
  --crimson: #ff2a4b;    /* Akira / Evangelion Crimson */
  --cyan: #00e5ff;       /* Blade Runner 2049 Cyan */
  --violet: #8b5cf6;     /* Tenet Inversion Violet */
  --muted: #9ca3af;

  --border-ink: 3px solid #000000;
  --border-light: 2px solid rgba(244, 241, 234, 0.16);
  --shadow-hard: 6px 6px 0px #000000;
  --shadow-hard-lg: 10px 10px 0px #000000;

  --font-display: 'Bebas Neue', Impact, 'Noto Sans JP', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--ivory);
  font-family: var(--font-body);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(229, 169, 60, 0.08), transparent 40%),
    radial-gradient(circle at 80% 35%, rgba(0, 229, 255, 0.06), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255, 42, 75, 0.05), transparent 50%),
    var(--bg-obsidian);
  overflow-x: hidden;
  transition: filter 0.35s ease;
}

/* Tenet Inversion Flash */
body.entropy-inverted {
  --amber: #00e5ff;
  --cyan: #e5a93c;
}

body.inverting-flash {
  filter: invert(0.92) hue-rotate(180deg);
}

/* Subtle 70mm Film Grain */
.film-grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 900;
  opacity: 0.045;
  background-image: radial-gradient(#ffffff 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  animation: grainShift 0.6s steps(4) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* 2.39:1 Anamorphic Cinema Letterbox Mode */
.cinema-letterbox-top,
.cinema-letterbox-bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  background: #000000;
  z-index: 850;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 234, 0.65);
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cinema-letterbox-top {
  top: 0;
  border-bottom: 1px solid rgba(229, 169, 60, 0.25);
}

.cinema-letterbox-bottom {
  bottom: 0;
  border-top: 1px solid rgba(229, 169, 60, 0.25);
}

body.cinema-mode .cinema-letterbox-top,
body.cinema-mode .cinema-letterbox-bottom {
  height: 44px;
}

body.cinema-mode .top-nav {
  top: 44px;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: #000;
  text-decoration: none;
  padding: 4px 10px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.brand-badge:hover {
  transform: translate(-1px, -1px);
}

.brand-jp {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  background: #000;
  color: var(--amber);
  padding: 1px 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ivory);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ivory);
  border: 1px solid rgba(244, 241, 234, 0.22);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.hud-btn.active {
  background: var(--amber);
  color: #000;
  border-color: #000;
  box-shadow: 2px 2px 0 #000;
}

.hud-btn-invert.active {
  background: var(--crimson);
  color: #fff;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.icon-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

.icon-link:hover {
  color: #000;
  background: var(--cyan);
  border-color: #000;
}

.cover-pill {
  background: var(--cyan);
  color: #000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

/* ==========================================================================
   HERO / MANGA COVER (Inspired by reference comic cover)
   ========================================================================== */
.hero-section {
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-stage {
  width: 100%;
  max-width: 1080px;
  perspective: 1400px;
}

.manga-cover {
  position: relative;
  background: #c80b04;
  color: var(--ivory);
  border: 4px solid #000;
  box-shadow: 12px 12px 0 #000, 0 28px 80px rgba(0, 0, 0, 0.75);
  padding: 22px 26px 26px;
  overflow: hidden;
}

.cover-halftone {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(#000 1.2px, transparent 1.2px);
  background-size: 7px 7px;
}

.cover-foil {
  display: none;
}

.cover-meta-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.issue-stamp {
  background: var(--ivory);
  color: #000;
  border: 2.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 4px 10px;
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-mono);
  line-height: 1.15;
}

.stamp-vol {
  font-size: 10px;
  font-weight: 700;
}

.stamp-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
}

.cover-jp-header {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chronometer {
  background: #000;
  color: var(--amber);
  padding: 2px 7px;
  display: inline-block;
  align-self: flex-end;
  letter-spacing: 0.08em;
}

.cover-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.kicker-tag {
  display: inline-block;
  background: #000;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 1px 10px;
  transform: rotate(-2deg);
  margin-bottom: 4px;
}

.cover-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.5vw, 96px);
  letter-spacing: 0.01em;
}

.title-line {
  display: inline-block;
  transform: skewX(-6deg);
  -webkit-text-stroke: 2.5px #000;
  text-shadow: 5px 5px 0 #000;
}

.title-crimson {
  color: var(--ivory);
}

.title-violet {
  color: var(--amber);
}

.author-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.03em;
  line-height: 1;
  transform: skewX(-4deg);
}

.author-role {
  margin: 4px 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-pill {
  background: #000;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.06em;
}

.volume-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2.5px solid #000;
  color: var(--ivory);
  padding-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.volume-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-issue-card {
  background: var(--ivory);
  color: #000;
  border: 2.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  padding: 7px 8px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 82px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mini-issue-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 #000;
}

.mini-issue-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
}

.mini-issue-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  margin: 8px 0 4px;
}

.mini-issue-jp {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.75;
}

/* Cover Right: Portrait Panel + Barcode */
.cover-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portrait-frame {
  position: relative;
  flex: 1;
  min-height: 330px;
  background: #c80b04;
  border: 3.5px solid #000;
  box-shadow: 5px 5px 0 #000;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.speedlines {
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(0, 0, 0, 0.14) 0deg 4deg,
    transparent 4deg 12deg
  );
  animation: slowSpin 38s linear infinite;
  pointer-events: none;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

.speech-bubble {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 146px;
  background: var(--ivory);
  color: #000;
  border: 2.5px solid #000;
  border-radius: 14px;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 3px 3px 0 #000;
  z-index: 4;
}

.speech-bubble p {
  margin: 0;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 26px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 11px solid #000;
}

.portrait-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.starburst-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  width: 86px;
  height: 86px;
  background: var(--amber);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 0.95;
  cursor: pointer;
  clip-path: polygon(
    50% 0%, 63% 14%, 82% 8%, 82% 27%, 100% 35%, 88% 52%, 98% 70%,
    79% 75%, 77% 95%, 58% 86%, 45% 100%, 34% 85%, 14% 92%, 17% 73%,
    0% 62%, 13% 46%, 3% 28%, 22% 24%, 25% 5%, 42% 14%
  );
  transition: transform 0.2s ease;
}

.starburst-badge:hover {
  transform: scale(1.08) rotate(6deg);
}

.barcode-card {
  background: var(--ivory);
  color: #000;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 10px 14px 8px;
}

.barcode-bars {
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    #000 0 3px,
    transparent 3px 5px,
    #000 5px 6px,
    transparent 6px 9px,
    #000 9px 13px,
    transparent 13px 15px,
    #000 15px 17px,
    transparent 17px 21px
  );
}

.barcode-caption {
  margin-top: 5px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.scroll-cue {
  margin-top: 18px;
}

.scroll-cue-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 6px 12px;
}

.scroll-cue-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SHARED SECTION CONTAINERS & BADGES
   ========================================================================== */
.section-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 54px 24px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 2.5px solid #000;
  box-shadow: 3px 3px 0 #000;
  color: #000;
  margin-bottom: 14px;
}

.badge-amber { background: var(--amber); }
.badge-crimson { background: var(--crimson); color: #fff; }
.badge-cyan { background: var(--cyan); }
.badge-violet { background: var(--violet); color: #fff; }

.section-title-lg {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: 0.03em;
  line-height: 1;
}

.jp-inline {
  font-family: var(--font-body);
  font-size: 0.45em;
  color: var(--muted);
  vertical-align: middle;
}

.section-hint {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ==========================================================================
   ABOUT / PROLOGUE
   ========================================================================== */
.about-statement {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.4;
  font-weight: 600;
  max-width: 880px;
  margin: 0 0 24px;
}

.hl-cyan { color: var(--cyan); }
.hl-amber { color: var(--amber); }
.hl-crimson { color: var(--crimson); }

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  color: #000;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.cta-ivory { background: var(--ivory); }
.cta-cyan { background: var(--cyan); }
.cta-amber { background: var(--amber); }
.cta-crimson { background: var(--crimson); color: #fff; }

/* ==========================================================================
   ABILITIES / POWERS (3D FLIPPABLE CARDS)
   ========================================================================== */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.quote-sticker {
  position: relative;
  max-width: 340px;
  background: #14141c;
  border: 2.5px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 18px 16px 12px;
  margin-top: 8px;
}

.quote-sticker-badge {
  position: absolute;
  top: -13px;
  left: -10px;
  background: var(--cyan);
  color: #000;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  transform: rotate(-3deg);
}

.quote-sticker-text {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--amber);
}

.quote-sticker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-sticker-src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.quote-next-btn {
  background: var(--amber);
  color: #000;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  cursor: pointer;
}

.quote-next-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

.powers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.power-card {
  perspective: 1100px;
  height: 310px;
  cursor: pointer;
}

.power-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.power-card:hover .power-card-inner,
.power-card.flipped .power-card-inner {
  transform: rotateY(180deg);
}

.power-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.power-front.accent-crimson { background: var(--crimson); color: #fff; }
.power-front.accent-cyan { background: var(--cyan); color: #000; }
.power-front.accent-amber { background: var(--amber); color: #000; }
.power-front.accent-violet { background: var(--violet); color: #fff; }

.power-back {
  background: var(--ivory);
  color: #000;
  transform: rotateY(180deg);
}

.power-top-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
}

.power-icon-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.power-icon-wrap svg {
  width: 88px;
  height: 88px;
}

.power-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.power-back-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
}

.power-specs {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
}

.power-meter {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.power-bar-bg {
  height: 8px;
  background: #d4d0c5;
  border: 2px solid #000;
  margin-top: 4px;
}

.power-bar-fill {
  height: 100%;
  background: #000;
}

/* ==========================================================================
   EPISODES / ISSUES SECTION
   ========================================================================== */
.episodes-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
}

.timeline-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  border: 1px solid rgba(229, 169, 60, 0.35);
  padding: 6px 12px;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.episode-block {
  border: 3.5px solid #000;
  box-shadow: var(--shadow-hard-lg);
  background: var(--bg-panel);
  overflow: hidden;
}

.episode-banner {
  position: relative;
  padding: 26px 28px;
  border-bottom: 3.5px solid #000;
  color: #000;
}

.episode-banner.accent-amber { background: var(--amber); }
.episode-banner.accent-crimson { background: var(--crimson); color: #fff; }
.episode-banner.accent-cyan { background: var(--cyan); }
.episode-banner.accent-violet { background: var(--violet); color: #fff; }

.episode-sfx {
  position: absolute;
  right: 24px;
  top: 18px;
  font-family: var(--font-display);
  font-size: 46px;
  transform: rotate(7deg);
  opacity: 0.9;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ep-num-badge {
  background: #000;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
}

.ep-tag {
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
}

.episode-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 0.95;
  transform: skewX(-4deg);
}

.episode-subtitle {
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.episode-summary {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.episode-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  background: #0d0d12;
}

.manga-panel {
  position: relative;
  background: #14141c;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}

.panel-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border: 2px solid #000;
}

.panel-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
}

.spec-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spec-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.16);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  letter-spacing: 0.03em;
}

.spec-chip-accent {
  border-color: rgba(0, 229, 255, 0.45);
  color: var(--cyan);
}

.panel-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ivory);
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  padding-top: 10px;
}

/* ==========================================================================
   TRANSMISSIONS / TALKS
   ========================================================================== */
.talks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.talk-card {
  background: var(--bg-panel);
  border: 3px solid #000;
  box-shadow: var(--shadow-hard);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.talk-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  color: #000;
  border: 2px solid #000;
}

.talk-badge.accent-crimson { background: var(--crimson); color: #fff; }
.talk-badge.accent-amber { background: var(--amber); }
.talk-badge.accent-cyan { background: var(--cyan); }

.talk-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.talk-venue {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   THE WORKSHOP (Tilted Banner)
   ========================================================================== */
.workshop-section {
  padding: 20px 0 30px;
}

.tilted-banner {
  background: var(--violet);
  color: #fff;
  border: 3.5px solid #000;
  box-shadow: var(--shadow-hard-lg);
  padding: 24px 28px;
  transform: rotate(-1.2deg);
  margin-bottom: 28px;
}

.tilted-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tilted-title {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 0.95;
}

.tilted-sub {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workshop-card {
  background: var(--ivory);
  color: #000;
  border: 3px solid #000;
  box-shadow: var(--shadow-hard);
  padding: 18px;
}

.workshop-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--crimson);
}

.workshop-card h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
}

.workshop-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================================
   ORIGINS (EPISODE 00)
   ========================================================================== */
.origins-card {
  background: #14141c;
  border: 3.5px solid #000;
  box-shadow: var(--shadow-hard-lg);
  padding: 28px;
}

.origins-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
}

.origins-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 640px;
}

.origins-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.origin-frame {
  background: var(--ivory);
  color: #000;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 12px;
  transform: rotate(var(--rot, -1deg));
  transition: transform 0.2s ease;
}

.origin-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.origin-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
}

.origin-label {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.05;
}

/* ==========================================================================
   CLOSING & FOOTER
   ========================================================================== */
.closing-section {
  padding-bottom: 96px;
}

.to-be-continued {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  color: var(--cyan);
  text-shadow: 4px 4px 0 #000;
  transform: skewX(-6deg);
  margin-bottom: 12px;
}

.jp-tbc {
  font-size: 0.45em;
  color: var(--amber);
}

.letters-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
}

.letters-sub {
  margin: 0 0 20px;
  color: var(--muted);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.site-footer {
  border-top: 1px solid rgba(244, 241, 234, 0.14);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.club-badge {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.14s ease;
}

.club-badge:hover {
  transform: translateY(-1px);
}

.club-badge-img {
  height: 28px;
  width: auto;
  display: block;
}

/* ==========================================================================
   FLOATING BOTTOM-RIGHT EPISODE NAVIGATOR
   ========================================================================== */
.floating-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 820;
  display: inline-flex;
  background: var(--amber);
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0 #000;
}

body.cinema-mode .floating-nav {
  bottom: 56px;
}

.float-btn {
  background: transparent;
  color: #000;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.float-btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.float-btn-center {
  border-left: 2px solid #000;
  border-right: 2px solid #000;
}

/* ==========================================================================
   BASELINE TEST MODAL (BLADE RUNNER 2049)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 3px solid var(--cyan);
  box-shadow: 10px 10px 0 #000;
  padding: 22px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}

.modal-close {
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.25);
  color: var(--ivory);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
}

.modal-prompt {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--amber);
  margin: 0 0 16px;
}

.baseline-meter {
  height: 12px;
  background: #000;
  border: 2px solid var(--ivory);
  margin-bottom: 10px;
}

.baseline-bar {
  height: 100%;
  width: 99.4%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.5s ease;
}

.baseline-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 18px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links,
  .social-icons {
    display: none;
  }

  .cover-grid,
  .episode-panels {
    grid-template-columns: 1fr;
  }

  .powers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talks-grid,
  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .origins-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .volume-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .powers-grid,
  .origins-strip {
    grid-template-columns: 1fr;
  }

  .episodes-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .episode-banner {
    padding: 20px 18px;
  }

  .episode-sfx {
    position: static;
    display: inline-block;
    font-size: 28px;
    margin-bottom: 8px;
    transform: rotate(3deg);
  }
}
