/* ═══════════════════════════════════════════════════════════════════════════
   CASSETTE FUTURE MAGAZINE - FILMORU THEME
   21:9 Aspect Ratio | Minimal | Year 2935
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   FONTS
   ───────────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700;900&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* Techno Agony - Display font for English titles */
@font-face {
  font-family: 'Techno Agony';
  src: url('../fonts/TechnoAgony-Jdzn.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Corke - Display font for Cassette Future Magazine subtitle */
@font-face {
  font-family: 'Corke';
  src: url('../fonts/Corke.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Codex - Display font for site header */
@font-face {
  font-family: 'Codex';
  src: url('../fonts/Codex.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Fawkes Halftone Italic - Display font for English site title */
@font-face {
  font-family: 'Fawkes';
  src: url('../fonts/FawkesHalftoneItalic-7OYxK.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CSS VARIABLES
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --accent: #000000;
  --border: #e0e0e0;

  /* Surfaces */
  --surface: #f5f5f5;

  /* Cassette Futurism / NASA Punk palette */
  --cassette-blue: #1B3A5F;
  --cassette-navy: #0D2137;
  --nasa-orange: #E85D04;
  --nasa-yellow: #FAA307;
  --nasa-gold: #F48C06;
  --nasa-cream: #FFBA08;
  --cassette-yellow: #FFD000;

  /* Fonts */
  --font-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-display: 'Techno Agony', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  /* 21:9 Filmoru dimensions */
  --filmoru-ratio: 21 / 9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   DARK MODE
   ───────────────────────────────────────────────────────────────────────────── */
html[data-theme="dark"] {
  --bg: #0d1117;
  --text: #e6e6e6;
  --text-light: #999999;
  --accent: #ffffff;
  --border: #2a2a2a;
  --surface: #161b22;
  --cassette-blue: #4a7ab5;
}

/* Enhanced CRT scanline visibility on dark backgrounds */
html[data-theme="dark"] body::before {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

/* ─────────────────────────────────────────────────────────────────────────────
   THEME TOGGLE
   ───────────────────────────────────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: var(--space-sm);
  right: 10px;
  width: 180px;
  z-index: 101;
}

/* White full moon - visible in light mode */
.moon-crescent {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle 5px at 10px 9px, rgba(0,0,0,0.25) 50%, transparent 51%),
    radial-gradient(circle 3.5px at 24px 15px, rgba(0,0,0,0.2) 50%, transparent 51%),
    radial-gradient(circle 4px at 14px 27px, rgba(0,0,0,0.18) 50%, transparent 51%),
    radial-gradient(circle 2.5px at 5px 21px, rgba(0,0,0,0.15) 50%, transparent 51%),
    #e8e8e8;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Dark full moon - visible in dark mode */
.moon-full {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle 5px at 10px 9px, rgba(255,255,255,0.25) 50%, transparent 51%),
    radial-gradient(circle 3.5px at 24px 15px, rgba(255,255,255,0.2) 50%, transparent 51%),
    radial-gradient(circle 4px at 14px 27px, rgba(255,255,255,0.18) 50%, transparent 51%),
    radial-gradient(circle 2.5px at 5px 21px, rgba(255,255,255,0.15) 50%, transparent 51%),
    #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Show/hide moon states */
html:not([data-theme="dark"]) .moon-crescent { display: none; }
html[data-theme="dark"] .moon-full { display: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */

/* Japanese text */
.jp, [lang="ja"], .title-jp, h1.jp, h2.jp {
  font-family: var(--font-jp);
  font-weight: 700;
}

/* Vertical Japanese text */
.vertical-jp {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-jp);
  font-weight: 900;
  letter-spacing: 0.1em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

a:hover {
  border-color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.filmoru-frame {
  aspect-ratio: var(--filmoru-ratio);
  width: 100%;
  max-width: 100vw;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER - NASA PUNK STYLE
   ───────────────────────────────────────────────────────────────────────────── */
header {
  padding: 0;
}

.header-accent-top {
  height: 1px;
  background: var(--border);
}

.header-accent-bottom {
  height: 1px;
  background: var(--border);
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  gap: var(--space-xl);
}

.logo {
  letter-spacing: 0.05em;
  margin-left: calc(-1 * var(--space-lg) - 12px);
}

.logo a {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  white-space: nowrap;
}

/* Japanese logo - MAIN (bigger) */
.logo-jp {
  font-family: var(--font-jp);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text);
  order: -1;
  line-height: 1.1;
}

/* English title - Fawkes font for site header */
.logo-en {
  font-family: 'Fawkes', var(--font-display);
  font-size: 2.8rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nasa-orange);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo-cassette,
.logo-future {
  color: inherit;
  background: none;
  -webkit-text-fill-color: inherit;
}

nav ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
}

nav a:hover {
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EDITION BANNER - 21:9 MINIMAL
   ───────────────────────────────────────────────────────────────────────────── */
.edition-banner {
  aspect-ratio: 21 / 9;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 1fr auto;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

/* Left content area */
.banner-content {
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl);
  max-width: 900px;
}

.banner-titles {
  margin-bottom: var(--space-lg);
}

.banner-edition {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.banner-title-main {
  font-family: var(--font-jp);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 var(--space-sm) 0;
}

.banner-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* Headlines */
.banner-headlines {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.banner-headline {
  font-size: 0.85rem;
  color: var(--text);
  border: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
}

.banner-headline:hover {
  color: var(--nasa-orange);
}

/* Right: About block */
.banner-about {
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  border-left: 1px solid var(--border);
}

.banner-about-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.banner-about-audience {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-light);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Footer bar */
.banner-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 8px var(--space-lg);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .edition-banner {
    aspect-ratio: 16 / 9;
    grid-template-columns: 1fr;
  }

  .banner-title-main {
    font-size: 2rem;
  }

  .banner-headlines {
    display: none;
  }

  .banner-about {
    display: none;
  }
}

@media (max-width: 600px) {
  .edition-banner {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    min-height: 250px;
  }

  .banner-content {
    text-align: center;
    padding: var(--space-lg);
  }

  .banner-title-main {
    font-size: 1.8rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER - NASA PUNK STYLE
   ───────────────────────────────────────────────────────────────────────────── */
footer {
  margin-top: var(--space-xl);
}

.footer-accent-top {
  display: none;
}

.footer-accent-bottom {
  display: none;
}

.footer-divider {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: var(--space-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.footer-left {
  text-align: left;
}

.footer-tagline {
  font-family: var(--font-jp);
  margin-bottom: var(--space-xs);
}

.footer-date {
  font-family: monospace;
  font-size: 0.7rem;
}

.footer-center {
  flex: 0 0 auto;
}

.filmoru-badge {
  width: 160px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.filmoru-badge:hover {
  opacity: 1;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--nasa-orange);
}

.footer-sep {
  color: var(--border);
  margin: 0 var(--space-xs);
}

.footer-domain {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARTICLE CARD - FILMORU STYLE
   ───────────────────────────────────────────────────────────────────────────── */
.article-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  margin-left: -var(--space-sm);
  padding-left: var(--space-sm);
  transition: border-color 0.2s;
}

.article-card:hover {
  border-left-color: var(--nasa-orange);
}

.article-card:last-child {
  border-bottom: none;
}

.article-jp-header {
  writing-mode: vertical-rl;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
  line-height: 1;
}

.article-content {
  max-width: 600px;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.article-subtitle {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.article-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

.article-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
}

.article-journalist {
  margin-bottom: var(--space-xs);
}

.article-image {
  width: 200px;
  height: auto;
  object-fit: cover;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ISSUE COVER - FILMORU 21:9
   ───────────────────────────────────────────────────────────────────────────── */
.issue-cover {
  aspect-ratio: 21 / 9;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: var(--space-xl);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.issue-cover-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.issue-cover-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--space-xl);
}

.issue-cover-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.issue-number {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.issue-main-title {
  font-family: var(--font-jp);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.issue-main-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SINGLE ARTICLE PAGE
   ───────────────────────────────────────────────────────────────────────────── */
.article-single {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.article-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.article-header .jp {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 500;
}

.article-byline {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--space-md);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-body h2 {
  font-family: var(--font-jp);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* ─────────────────────────────────────────────────────────────────────────────
   JOURNALIST PROFILE
   ───────────────────────────────────────────────────────────────────────────── */
.journalist-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.journalist-avatar {
  width: 80px;
  height: 80px;
  background: var(--border);
  border-radius: 0;
}

.journalist-info h3 {
  font-family: var(--font-jp);
  margin-bottom: var(--space-xs);
}

.journalist-title {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SPACER IMAGE (Featured Character)
   ───────────────────────────────────────────────────────────────────────────── */
.spacer-feature {
  aspect-ratio: 21 / 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.spacer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.spacer-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-card {
    grid-template-columns: auto 1fr;
  }

  .article-meta {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: var(--space-md);
  }

  .issue-cover {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-jp-header {
    writing-mode: horizontal-tb;
    font-size: 1.5rem;
  }

  .masthead {
    flex-direction: column;
    gap: var(--space-md);
  }

  nav ul {
    gap: var(--space-md);
  }

  .theme-toggle {
    position: static;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION DIVIDER - THREE COLORED LINES
   ───────────────────────────────────────────────────────────────────────────── */
.section-divider,
.content-divider {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: var(--space-xl) 0;
  /* Full bleed across entire page */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.divider-line {
  display: block;
  height: 2px;
  width: 100%;
}

.divider-blue {
  background: var(--cassette-blue);
}

.divider-orange {
  background: var(--nasa-orange);
}

.divider-yellow {
  background: var(--cassette-yellow);
}

/* Section title with accent underline */
.section-title {
  font-family: var(--font-jp);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, var(--cassette-blue) 33%, var(--nasa-orange) 33%, var(--nasa-orange) 66%, var(--cassette-yellow) 66%);
}

/* Page subtitle (English below Japanese titles) */
.page-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: calc(var(--space-sm) * -1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-light { color: var(--text-light); }
.text-small { font-size: 0.875rem; }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   COSMOGIRL OF THE WEEK - HOMEPAGE FEATURE
   ───────────────────────────────────────────────────────────────────────────── */
.cosmogirl-feature-home {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.cosmogirl-feature-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.cosmogirl-feature-image {
  border: none;
}

.cosmogirl-feature-image img {
  width: 100%;
  height: auto;
}

.cosmogirl-feature-info {
  display: flex;
  flex-direction: column;
}

.cosmogirl-feature-info .jp {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-xs);
}

.cosmogirl-feature-info h2 {
  font-family: var(--font-jp);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.cosmogirl-feature-info h2 a {
  color: var(--text);
  border: none;
}

.cosmogirl-feature-info h2 a:hover {
  color: var(--nasa-orange);
}

.cosmogirl-tagline {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.cosmogirl-details {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.cosmogirl-details span {
  padding-right: var(--space-md);
  border-right: 1px solid var(--border);
}

.cosmogirl-details span:last-child {
  border-right: none;
}

.cosmogirl-mini-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.cosmogirl-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nasa-orange);
  border: none;
}

.cosmogirl-link:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .cosmogirl-feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cosmogirl-feature-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .cosmogirl-details {
    justify-content: center;
  }

  .cosmogirl-mini-quote {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--space-md);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL DESIGN ELEMENTS
   Bold magazine-style components
   ═══════════════════════════════════════════════════════════════════════════ */

/* Drop Cap - Magazine-style first letter */
.drop-cap::first-letter {
  font-family: var(--font-jp);
  font-size: 4.5rem;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.1rem;
  color: var(--nasa-orange);
}

/* Pull Quote - Bold callout quote */
.pull-quote {
  font-family: var(--font-jp);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin: var(--space-xl) 0;
  padding: var(--space-lg) 0;
  border-top: 4px solid var(--cassette-blue);
  border-bottom: 4px solid var(--nasa-orange);
  text-align: center;
  position: relative;
}

.pull-quote::before {
  content: '「';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--nasa-orange);
  background: var(--bg);
  padding: 0 0.5rem;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--cassette-navy);
  color: #fff;
  padding: 0.3rem 0.8rem;
  margin-bottom: var(--space-sm);
}

.category-badge--orange {
  background: var(--nasa-orange);
}

.category-badge--outline {
  background: transparent;
  border: 1px solid var(--cassette-navy);
  color: var(--cassette-navy);
}

/* Stat Box - Infographic style */
.stat-box {
  display: inline-block;
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  min-width: 150px;
}

.stat-box__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--nasa-orange);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-box__label {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.stat-box__sublabel {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* Stat Row - Multiple stat boxes */
.stat-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-lg) 0;
}

/* Vertical Text Accent (Japanese magazine style) */
.vertical-accent {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-jp);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-light);
  position: absolute;
}

.vertical-accent--left {
  left: -2rem;
  top: 0;
}

.vertical-accent--right {
  right: -2rem;
  top: 0;
}

/* Bold Section Header */
.section-header-bold {
  position: relative;
  margin-bottom: var(--space-xl);
}

.section-header-bold__jp {
  font-family: var(--font-jp);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.section-header-bold__en {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nasa-orange);
}

.section-header-bold__line {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--cassette-blue), var(--nasa-orange));
  margin-top: var(--space-md);
}

/* Article Hero Card */
.article-hero {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.article-hero__category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nasa-orange);
  margin-bottom: var(--space-sm);
}

.article-hero__title {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.article-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.article-hero__meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-hero__author {
  color: var(--text);
  font-weight: 600;
}

/* Callout Box */
.callout {
  background: var(--surface);
  border-left: 4px solid var(--nasa-orange);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.callout__title {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.callout--navy {
  background: var(--cassette-navy);
  color: #fff;
  border-left-color: var(--nasa-orange);
}

.callout--navy .callout__title {
  color: var(--nasa-orange);
}

/* Inline Label */
.inline-label {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--nasa-orange);
  color: #fff;
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
  margin-right: 0.3rem;
}

/* Large Number (for lists, rankings) */
.large-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--cassette-blue);
  line-height: 0.8;
  opacity: 0.15;
  position: absolute;
  top: 0;
  left: -1rem;
}

/* Accent Border Variations */
.border-accent-left {
  border-left: 4px solid var(--nasa-orange);
  padding-left: var(--space-md);
}

.border-accent-top {
  border-top: 4px solid var(--nasa-orange);
  padding-top: var(--space-md);
}

.border-gradient-left {
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--cassette-blue), var(--nasa-orange), var(--cassette-yellow)) 1;
  padding-left: var(--space-md);
}

/* Magazine Grid Layout */
.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.magazine-grid__main {
  /* Main content area */
}

.magazine-grid__sidebar {
  border-left: 1px solid var(--border);
  padding-left: var(--space-lg);
}

@media (max-width: 800px) {
  .magazine-grid {
    grid-template-columns: 1fr;
  }

  .magazine-grid__sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--space-lg);
  }
}

/* Highlight Text */
.highlight {
  background: linear-gradient(to bottom, transparent 60%, rgba(232, 93, 4, 0.2) 60%);
}

.highlight--strong {
  background: var(--nasa-orange);
  color: #fff;
  padding: 0 0.2rem;
}

/* Stamp / Seal */
.stamp {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid var(--nasa-orange);
  color: var(--nasa-orange);
  padding: 0.3rem 0.6rem;
  transform: rotate(-3deg);
  letter-spacing: 0.05em;
}

/* Edition Number (Magazine style) */
.edition-stamp {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.edition-stamp__number {
  font-size: 1.2rem;
  color: var(--cassette-blue);
  font-weight: 700;
}

/* Kicker (Small text above headline) */
.kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nasa-orange);
  margin-bottom: var(--space-xs);
}

/* Deck (Subhead below headline) */
.deck {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CASSETTE FUTURISM EFFECTS
   Scanlines, terminal flicker, film grain - analog tech meets space age
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   SCANLINES - Very subtle CRT overlay
   ───────────────────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILM GRAIN - Analog texture overlay
   ───────────────────────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TERMINAL FLICKER - Subtle CRT text animation
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes terminal-flicker {
  0%, 100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.8;
  }
  94% {
    opacity: 1;
  }
  97% {
    opacity: 0.9;
  }
  98% {
    opacity: 1;
  }
}

/* Apply to main Japanese titles - very subtle */
.banner-title-main,
.section-title,
.logo-jp {
  animation: terminal-flicker 8s infinite;
}

/* Terminal glow on key elements */
.banner-title-main,
.logo-jp {
  text-shadow: 0 0 1px rgba(27, 58, 95, 0.1);
}

/* Edition number - monospace terminal style */
.banner-edition,
.article-date,
.edition-stamp {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.15em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BLINKING CURSOR - Terminal accent
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.banner-edition::after {
  content: '█';
  font-size: 0.6em;
  margin-left: 0.3em;
  animation: cursor-blink 1s step-end infinite;
  color: var(--nasa-orange);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DIVIDER GLOW - Subtle neon effect on colored lines
   ───────────────────────────────────────────────────────────────────────────── */
.divider-blue {
  box-shadow: 0 0 8px rgba(27, 58, 95, 0.5), 0 0 2px rgba(27, 58, 95, 0.8);
}

.divider-orange {
  box-shadow: 0 0 8px rgba(232, 93, 4, 0.5), 0 0 2px rgba(232, 93, 4, 0.8);
}

.divider-yellow {
  box-shadow: 0 0 8px rgba(255, 208, 0, 0.5), 0 0 2px rgba(255, 208, 0, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BORDER GLOW - Consistent glow on structural borders
   ───────────────────────────────────────────────────────────────────────────── */

/* Article cards - visible blue glow */
.article-card {
  box-shadow: inset 4px 0 12px -4px rgba(27, 58, 95, 0.5), 0 2px 8px rgba(27, 58, 95, 0.15);
}

.article-card:hover {
  box-shadow: inset 4px 0 12px -4px rgba(232, 93, 4, 0.7), 0 2px 12px rgba(232, 93, 4, 0.25);
}

/* Header/footer accent lines */
.header-accent-top,
.header-accent-bottom,
.footer-accent-top,
.footer-accent-bottom {
  box-shadow: 0 0 8px rgba(27, 58, 95, 0.5);
}

/* Edition banner */
.edition-banner {
  box-shadow: 0 4px 16px rgba(27, 58, 95, 0.25);
}

/* Cards and panels - noticeable glow */
.staff-card,
.cosmogirl-stats,
.tier-free,
.letters-box,
.letters-cta {
  box-shadow: 0 0 12px rgba(27, 58, 95, 0.25), inset 0 0 20px rgba(27, 58, 95, 0.05);
}

.staff-card:hover {
  box-shadow: 0 0 20px rgba(232, 93, 4, 0.4), inset 0 0 20px rgba(232, 93, 4, 0.05);
}

/* Subscribe/feature sections - glowing borders */
.subscribe-box,
.cosmogirl-feature-home {
  box-shadow: 0 2px 8px rgba(27, 58, 95, 0.2), 0 -2px 8px rgba(27, 58, 95, 0.2);
}

/* Blockquotes and callouts - strong side glows */
.cosmogirl-quote,
.pull-quote,
.callout {
  box-shadow: inset 5px 0 15px -5px rgba(232, 93, 4, 0.6), inset -5px 0 15px -5px rgba(255, 208, 0, 0.5);
}

/* Stats tables */
.stats-table tr {
  box-shadow: 0 1px 0 rgba(27, 58, 95, 0.2);
}

/* Ship info box */
.ship-info {
  box-shadow: 0 0 10px rgba(27, 58, 95, 0.3);
}

/* Premium tier - strong orange glow */
.tier-premium {
  box-shadow: 0 0 30px rgba(232, 93, 4, 0.5), 0 0 8px rgba(232, 93, 4, 0.7), inset 0 0 30px rgba(232, 93, 4, 0.1);
}

/* Locked wallpaper section */
.locked-content {
  box-shadow: 0 0 30px rgba(27, 58, 95, 0.5), inset 0 0 40px rgba(27, 58, 95, 0.2);
}

/* Disable effects for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .banner-title-main,
  .section-title,
  .logo-jp {
    animation: none;
  }

  .banner-edition::after {
    animation: none;
    opacity: 1;
  }

  .holo-ad {
    animation: none;
  }

  .holo-glitch {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOLOGRAPHIC ADS - Blade Runner / Cassette Future style
   Internal house ads with cyberpunk hologram aesthetic
   ═══════════════════════════════════════════════════════════════════════════ */

.holo-ad {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1B3A5F 50%, #0d2137 100%);
  border: 1px solid rgba(232, 93, 4, 0.5);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  overflow: hidden;
  animation: holo-pulse 4s ease-in-out infinite;
}

@keyframes holo-pulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(232, 93, 4, 0.3),
      0 0 40px rgba(27, 58, 95, 0.2),
      inset 0 0 30px rgba(232, 93, 4, 0.05);
  }
  50% {
    box-shadow:
      0 0 30px rgba(232, 93, 4, 0.5),
      0 0 60px rgba(27, 58, 95, 0.3),
      inset 0 0 40px rgba(232, 93, 4, 0.1);
  }
}

/* Scanline overlay */
.holo-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Glitch/flicker effect */
.holo-glitch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 93, 4, 0.03) 50%,
    transparent 100%
  );
  animation: holo-glitch 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes holo-glitch {
  0%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    transform: translateX(100%);
    opacity: 0;
  }
  21%, 99% {
    opacity: 0;
  }
}

/* Corner accents */
.holo-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #E85D04;
  border-style: solid;
  border-width: 0;
  z-index: 3;
}

.holo-corner-tl {
  top: 6px;
  left: 6px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.holo-corner-tr {
  top: 6px;
  right: 6px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.holo-corner-bl {
  bottom: 6px;
  left: 6px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.holo-corner-br {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* Badge */
.holo-badge {
  position: absolute;
  top: 0;
  right: var(--space-md);
  font-family: var(--font-jp);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 208, 0, 0.7);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  z-index: 4;
}

/* Content layout */
.holo-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 3;
}

.holo-icon {
  font-size: 2.5rem;
  color: #E85D04;
  text-shadow: 0 0 10px rgba(232, 93, 4, 0.8), 0 0 20px rgba(232, 93, 4, 0.4);
  animation: holo-icon-glow 2s ease-in-out infinite alternate;
}

@keyframes holo-icon-glow {
  0% {
    text-shadow: 0 0 10px rgba(232, 93, 4, 0.8), 0 0 20px rgba(232, 93, 4, 0.4);
  }
  100% {
    text-shadow: 0 0 15px rgba(255, 208, 0, 0.9), 0 0 30px rgba(232, 93, 4, 0.6);
  }
}

.holo-text {
  flex: 1;
}

.holo-tagline-jp {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: #FFD000;
  letter-spacing: 0.2em;
  margin-bottom: 2px;
  text-shadow: 0 0 8px rgba(255, 208, 0, 0.5);
}

.holo-headline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.holo-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.holo-cta {
  display: inline-block;
  background: transparent;
  border: 1px solid #E85D04;
  color: #E85D04;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s;
  text-shadow: 0 0 8px rgba(232, 93, 4, 0.5);
  box-shadow: 0 0 10px rgba(232, 93, 4, 0.3), inset 0 0 10px rgba(232, 93, 4, 0.1);
}

.holo-cta:hover {
  background: #E85D04;
  color: #fff;
  box-shadow: 0 0 20px rgba(232, 93, 4, 0.6), inset 0 0 15px rgba(255, 208, 0, 0.2);
  text-shadow: none;
}

.holo-cta-disabled {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  text-shadow: none;
  box-shadow: none;
}

.holo-cta-disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

/* Chromatic aberration on hover */
.holo-ad:hover .holo-headline {
  text-shadow:
    -1px 0 rgba(255, 0, 100, 0.5),
    1px 0 rgba(0, 255, 255, 0.5),
    0 0 15px rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
  .holo-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .holo-icon {
    font-size: 2rem;
  }

  .holo-headline {
    font-size: 1.2rem;
  }

  .holo-cta {
    width: 100%;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOLO AD RAILS - Holographic side-positioned sticky ads
   ───────────────────────────────────────────────────────────────────────────── */
.holo-rail {
  position: fixed;
  top: 10rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
  scrollbar-width: none;
}

.holo-rail::-webkit-scrollbar {
  display: none;
}

.holo-rail-left {
  left: 10px;
}

.holo-rail-right {
  right: 10px;
}

.holo-rail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.holo-rail-header-jp {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: #1B3A5F;
  letter-spacing: 0.2em;
  text-shadow: 0 0 8px rgba(27, 58, 95, 0.5);
}

.holo-rail-header-en {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #1B3A5F;
  letter-spacing: 0.15em;
  text-shadow: 0 0 5px rgba(27, 58, 95, 0.4);
}

html[data-theme="dark"] .holo-rail-header-jp,
html[data-theme="dark"] .holo-rail-header-en {
  color: var(--nasa-orange);
  text-shadow: 0 0 8px rgba(232, 93, 4, 0.5);
}

.holo-rail-divider {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 0 var(--space-sm);
}

.holo-rail-divider .divider-line {
  height: 2px;
}

.holo-sponsor-prompt {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.holo-ad-sponsor-cta {
  border-top: 1px solid rgba(255, 208, 0, 0.2);
  border-bottom: 1px solid rgba(255, 208, 0, 0.2);
}

.holo-ad-side {
  width: 180px;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 58, 95, 0.35) 0%,
    rgba(27, 58, 95, 0.25) 40%,
    rgba(13, 33, 55, 0.15) 70%,
    transparent 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  position: relative;
  overflow: visible;
  text-align: center;
  animation: holo-flicker 0.15s infinite;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 100%
  ),
  radial-gradient(
    ellipse 90% 100% at center,
    black 40%,
    transparent 100%
  );
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 20%,
    black 100%
  ),
  radial-gradient(
    ellipse 90% 100% at center,
    black 40%,
    transparent 100%
  );
  mask-composite: intersect;
}

html:not([data-theme="dark"]) .holo-ad-side {
  background: radial-gradient(
    ellipse at center,
    rgba(27, 58, 95, 0.85) 0%,
    rgba(27, 58, 95, 0.75) 40%,
    rgba(13, 33, 55, 0.6) 70%,
    rgba(13, 33, 55, 0.3) 100%
  );
}

/* Main holographic flicker */
@keyframes holo-flicker {
  0%, 100% {
    opacity: 0.9;
    box-shadow:
      0 0 20px rgba(232, 93, 4, 0.4),
      0 0 40px rgba(0, 255, 255, 0.15),
      inset 0 0 20px rgba(232, 93, 4, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 25px rgba(232, 93, 4, 0.5),
      0 0 50px rgba(0, 255, 255, 0.2),
      inset 0 0 25px rgba(232, 93, 4, 0.15);
  }
}

/* Occasional glitch */
.holo-ad-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 255, 0.1) 45%,
    rgba(255, 0, 100, 0.1) 55%,
    transparent 100%
  );
  animation: holo-glitch-sweep 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes holo-glitch-sweep {
  0%, 100% {
    transform: translateX(-100%) skewX(-5deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  15% {
    transform: translateX(100%) skewX(-5deg);
    opacity: 0;
  }
  16%, 99% {
    opacity: 0;
  }
}

/* Random interference lines */
.holo-ad-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 255, 255, 0.6);
  animation: holo-interference 3s linear infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes holo-interference {
  0%, 100% {
    top: -2px;
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  11% {
    opacity: 0.8;
  }
  30% {
    top: 100%;
    opacity: 0;
  }
  31%, 99% {
    opacity: 0;
  }
}

/* ── Per-ad color overrides ── */

/* BLINK / AWASENOE — warm gold + coral */
[data-ad-type="book"] {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 107, 107, 0.12) 40%,
    rgba(80, 50, 10, 0.1) 70%,
    transparent 100%
  );
  animation: holo-flicker-book 0.15s infinite;
}

@keyframes holo-flicker-book {
  0%, 100% {
    opacity: 0.9;
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.4),
      0 0 40px rgba(255, 107, 107, 0.15),
      inset 0 0 20px rgba(255, 215, 0, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 25px rgba(255, 215, 0, 0.5),
      0 0 50px rgba(255, 107, 107, 0.2),
      inset 0 0 25px rgba(255, 215, 0, 0.15);
  }
}

[data-ad-type="book"] .holo-side-icon {
  color: #FFD700;
  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 215, 0, 0.5),
    0 0 30px rgba(255, 107, 107, 0.3);
  animation: icon-pulse-book 2s ease-in-out infinite alternate;
}

[data-ad-type="book"] .holo-side-badge {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

[data-ad-type="book"] .holo-side-cta {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.5),
    inset 0 0 10px rgba(255, 215, 0, 0.1);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

[data-ad-type="book"] .holo-side-cta:hover {
  background: rgba(255, 215, 0, 0.4);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.7),
    0 0 50px rgba(255, 107, 107, 0.4),
    inset 0 0 15px rgba(255, 215, 0, 0.2);
}

[data-ad-type="book"]::after {
  background: rgba(255, 215, 0, 0.6);
}

[data-ad-type="book"]::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 107, 0.12) 45%,
    rgba(255, 215, 0, 0.12) 55%,
    transparent 100%
  );
}

@keyframes icon-pulse-book {
  0% {
    text-shadow:
      0 0 10px rgba(255, 215, 0, 0.9),
      0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(255, 107, 107, 1),
      0 0 30px rgba(255, 215, 0, 0.7),
      0 0 40px rgba(255, 107, 107, 0.4);
  }
}

/* IT GURU / Scrivener.PRO — neon green / matrix */
[data-ad-type="scrivener"] {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 228, 154, 0.2) 0%,
    rgba(0, 228, 154, 0.12) 40%,
    rgba(0, 60, 40, 0.1) 70%,
    transparent 100%
  );
  animation: holo-flicker-scrivener 0.15s infinite;
  animation-delay: -0.05s;
}

@keyframes holo-flicker-scrivener {
  0%, 100% {
    opacity: 0.9;
    box-shadow:
      0 0 20px rgba(0, 228, 154, 0.4),
      0 0 40px rgba(0, 228, 154, 0.15),
      inset 0 0 20px rgba(0, 228, 154, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 25px rgba(0, 228, 154, 0.5),
      0 0 50px rgba(255, 176, 0, 0.15),
      inset 0 0 25px rgba(0, 228, 154, 0.15);
  }
}

[data-ad-type="scrivener"]::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 228, 154, 0.12) 45%,
    rgba(255, 176, 0, 0.1) 55%,
    transparent 100%
  );
  animation-delay: -2s;
}

[data-ad-type="scrivener"]::after {
  background: rgba(0, 228, 154, 0.6);
  animation-delay: -1.5s;
}

[data-ad-type="scrivener"] .holo-side-icon {
  color: #00E49A;
  text-shadow:
    0 0 10px rgba(0, 228, 154, 0.9),
    0 0 20px rgba(0, 228, 154, 0.5),
    0 0 30px rgba(0, 228, 154, 0.3);
  animation: icon-pulse-scrivener 2.2s ease-in-out infinite alternate;
}

[data-ad-type="scrivener"] .holo-side-badge {
  color: #00E49A;
  text-shadow: 0 0 8px rgba(0, 228, 154, 0.5);
}

[data-ad-type="scrivener"] .holo-side-cta {
  background: rgba(0, 228, 154, 0.2);
  color: #00E49A;
  box-shadow:
    0 0 15px rgba(0, 228, 154, 0.5),
    inset 0 0 10px rgba(0, 228, 154, 0.1);
  text-shadow: 0 0 8px rgba(0, 228, 154, 0.8);
}

[data-ad-type="scrivener"] .holo-side-cta:hover {
  background: rgba(0, 228, 154, 0.4);
  box-shadow:
    0 0 25px rgba(0, 228, 154, 0.7),
    0 0 50px rgba(0, 228, 154, 0.4),
    inset 0 0 15px rgba(0, 228, 154, 0.2);
}

@keyframes icon-pulse-scrivener {
  0% {
    text-shadow:
      0 0 10px rgba(0, 228, 154, 0.9),
      0 0 20px rgba(0, 228, 154, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(0, 228, 154, 1),
      0 0 30px rgba(0, 228, 154, 0.7),
      0 0 40px rgba(255, 176, 0, 0.3);
  }
}

/* GALL-ARRAY — cyan + electric blue */
[data-ad-type="galleray"] {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 255, 0.18) 0%,
    rgba(79, 195, 247, 0.12) 40%,
    rgba(0, 40, 60, 0.1) 70%,
    transparent 100%
  );
  animation: holo-flicker-galleray 0.15s infinite;
  animation-delay: -0.1s;
}

@keyframes holo-flicker-galleray {
  0%, 100% {
    opacity: 0.9;
    box-shadow:
      0 0 20px rgba(0, 255, 255, 0.4),
      0 0 40px rgba(79, 195, 247, 0.15),
      inset 0 0 20px rgba(0, 255, 255, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 25px rgba(0, 255, 255, 0.5),
      0 0 50px rgba(79, 195, 247, 0.2),
      inset 0 0 25px rgba(0, 255, 255, 0.15);
  }
}

[data-ad-type="galleray"]::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 255, 0.12) 45%,
    rgba(79, 195, 247, 0.12) 55%,
    transparent 100%
  );
  animation-delay: -1s;
}

[data-ad-type="galleray"]::after {
  background: rgba(0, 255, 255, 0.6);
  animation-delay: -2.5s;
}

[data-ad-type="galleray"] .holo-side-icon {
  color: #00FFFF;
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.9),
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 30px rgba(79, 195, 247, 0.3);
  animation: icon-pulse-galleray 1.8s ease-in-out infinite alternate;
}

[data-ad-type="galleray"] .holo-side-badge {
  color: #4FC3F7;
  text-shadow: 0 0 8px rgba(79, 195, 247, 0.5);
}

[data-ad-type="galleray"] .holo-side-cta {
  background: rgba(0, 255, 255, 0.2);
  color: #00FFFF;
  box-shadow:
    0 0 15px rgba(0, 255, 255, 0.5),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

[data-ad-type="galleray"] .holo-side-cta:hover {
  background: rgba(0, 255, 255, 0.4);
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.7),
    0 0 50px rgba(79, 195, 247, 0.4),
    inset 0 0 15px rgba(0, 255, 255, 0.2);
}

@keyframes icon-pulse-galleray {
  0% {
    text-shadow:
      0 0 10px rgba(0, 255, 255, 0.9),
      0 0 20px rgba(0, 255, 255, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(0, 255, 255, 1),
      0 0 30px rgba(79, 195, 247, 0.7),
      0 0 40px rgba(0, 255, 255, 0.4);
  }
}

/* IN THE BLACK / Game — hot pink / magenta */
[data-ad-type="intheblack"] {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 102, 170, 0.2) 0%,
    rgba(255, 102, 170, 0.12) 40%,
    rgba(100, 20, 70, 0.1) 70%,
    transparent 100%
  );
  animation: holo-flicker-intheblack 0.15s infinite;
  animation-delay: -0.08s;
}

@keyframes holo-flicker-intheblack {
  0%, 100% {
    opacity: 0.9;
    box-shadow:
      0 0 20px rgba(255, 102, 170, 0.4),
      0 0 40px rgba(170, 0, 255, 0.15),
      inset 0 0 20px rgba(255, 102, 170, 0.1);
  }
  50% {
    opacity: 0.95;
    box-shadow:
      0 0 25px rgba(255, 102, 170, 0.5),
      0 0 50px rgba(170, 0, 255, 0.2),
      inset 0 0 25px rgba(255, 102, 170, 0.15);
  }
}

[data-ad-type="intheblack"]::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 102, 170, 0.12) 45%,
    rgba(170, 0, 255, 0.1) 55%,
    transparent 100%
  );
  animation-delay: -1.5s;
}

[data-ad-type="intheblack"]::after {
  background: rgba(255, 102, 170, 0.6);
  animation-delay: -0.8s;
}

[data-ad-type="intheblack"] .holo-side-icon {
  color: #FF66AA;
  text-shadow:
    0 0 10px rgba(255, 102, 170, 0.9),
    0 0 20px rgba(255, 102, 170, 0.5),
    0 0 30px rgba(170, 0, 255, 0.3);
  animation: icon-pulse-intheblack 2s ease-in-out infinite alternate;
}

[data-ad-type="intheblack"] .holo-side-badge {
  color: #FF66AA;
  text-shadow: 0 0 8px rgba(255, 102, 170, 0.5);
}

[data-ad-type="intheblack"] .holo-side-cta {
  background: rgba(255, 102, 170, 0.2);
  color: #FF66AA;
  box-shadow:
    0 0 15px rgba(255, 102, 170, 0.5),
    inset 0 0 10px rgba(255, 102, 170, 0.1);
  text-shadow: 0 0 8px rgba(255, 102, 170, 0.8);
}

[data-ad-type="intheblack"] .holo-side-cta:hover {
  background: rgba(255, 102, 170, 0.4);
  box-shadow:
    0 0 25px rgba(255, 102, 170, 0.7),
    0 0 50px rgba(170, 0, 255, 0.4),
    inset 0 0 15px rgba(255, 102, 170, 0.2);
}

@keyframes icon-pulse-intheblack {
  0% {
    text-shadow:
      0 0 10px rgba(255, 102, 170, 0.9),
      0 0 20px rgba(255, 102, 170, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(255, 102, 170, 1),
      0 0 30px rgba(170, 0, 255, 0.7),
      0 0 40px rgba(255, 102, 170, 0.4);
  }
}

/* CRYPTORTOISE — matrix green + dark teal */
[data-ad-type="cryptortoise"] {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 230, 118, 0.18) 0%,
    rgba(0, 200, 83, 0.12) 40%,
    rgba(0, 50, 30, 0.1) 70%,
    transparent 100%
  );
}

[data-ad-type="cryptortoise"]:hover {
  box-shadow:
    0 0 20px rgba(0, 230, 118, 0.4),
    0 0 50px rgba(0, 200, 83, 0.2),
    inset 0 0 25px rgba(0, 230, 118, 0.15);
}

[data-ad-type="cryptortoise"]::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 230, 118, 0.12) 45%,
    rgba(0, 200, 83, 0.1) 55%,
    transparent 100%
  );
  animation-delay: -0.5s;
}

[data-ad-type="cryptortoise"]::after {
  background: rgba(0, 230, 118, 0.6);
  animation-delay: -1.8s;
}

[data-ad-type="cryptortoise"] .holo-side-icon {
  color: #00E676;
  text-shadow:
    0 0 10px rgba(0, 230, 118, 0.9),
    0 0 20px rgba(0, 230, 118, 0.5),
    0 0 30px rgba(0, 200, 83, 0.3);
  animation: icon-pulse-cryptortoise 2.2s ease-in-out infinite alternate;
}

[data-ad-type="cryptortoise"] .holo-side-badge {
  color: #00C853;
  text-shadow: 0 0 8px rgba(0, 200, 83, 0.5);
}

[data-ad-type="cryptortoise"] .holo-side-cta {
  background: rgba(0, 230, 118, 0.2);
  color: #00E676;
  box-shadow:
    0 0 15px rgba(0, 230, 118, 0.5),
    inset 0 0 10px rgba(0, 230, 118, 0.1);
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
}

[data-ad-type="cryptortoise"] .holo-side-cta:hover {
  background: rgba(0, 230, 118, 0.4);
  box-shadow:
    0 0 25px rgba(0, 230, 118, 0.7),
    0 0 50px rgba(0, 200, 83, 0.4),
    inset 0 0 15px rgba(0, 230, 118, 0.2);
}

@keyframes icon-pulse-cryptortoise {
  0% {
    text-shadow:
      0 0 10px rgba(0, 230, 118, 0.9),
      0 0 20px rgba(0, 230, 118, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(0, 230, 118, 1),
      0 0 30px rgba(0, 200, 83, 0.7),
      0 0 40px rgba(0, 230, 118, 0.4);
  }
}

/* Scanlines - more visible */
.holo-side-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.3) 1px,
    rgba(0, 0, 0, 0.3) 2px
  );
  pointer-events: none;
  z-index: 2;
  animation: scanline-scroll 8s linear infinite;
}

@keyframes scanline-scroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100px;
  }
}

.holo-side-badge {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: #1B3A5F;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 5;
  text-shadow: 0 0 8px rgba(27, 58, 95, 0.5);
}

.holo-side-content {
  position: relative;
  z-index: 5;
}

.holo-side-icon {
  font-size: 2.5rem;
  color: #E85D04;
  text-shadow:
    0 0 10px rgba(232, 93, 4, 0.9),
    0 0 20px rgba(232, 93, 4, 0.5),
    0 0 30px rgba(232, 93, 4, 0.3);
  margin-bottom: var(--space-sm);
  animation: icon-pulse 2s ease-in-out infinite alternate;
}

@keyframes icon-pulse {
  0% {
    text-shadow:
      0 0 10px rgba(232, 93, 4, 0.9),
      0 0 20px rgba(232, 93, 4, 0.5);
  }
  100% {
    text-shadow:
      0 0 15px rgba(255, 208, 0, 1),
      0 0 30px rgba(232, 93, 4, 0.7),
      0 0 40px rgba(232, 93, 4, 0.4);
  }
}

.holo-side-headline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    -1px 0 rgba(255, 0, 100, 0.3),
    1px 0 rgba(0, 255, 255, 0.3);
}

.holo-side-subtext {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.holo-side-cta {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 34px;
  border: none;
  background: rgba(232, 93, 4, 0.2);
  color: #E85D04;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow:
    0 0 15px rgba(232, 93, 4, 0.5),
    inset 0 0 10px rgba(232, 93, 4, 0.1);
  text-shadow: 0 0 8px rgba(232, 93, 4, 0.8);
}

.holo-side-cta:hover {
  background: rgba(232, 93, 4, 0.4);
  color: #fff;
  box-shadow:
    0 0 25px rgba(232, 93, 4, 0.7),
    0 0 50px rgba(232, 93, 4, 0.4),
    inset 0 0 15px rgba(232, 93, 4, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* Enhanced chromatic aberration on hover */
.holo-ad-side:hover .holo-side-headline {
  animation: chromatic-shift 0.1s infinite;
}

@keyframes chromatic-shift {
  0%, 100% {
    text-shadow:
      -2px 0 rgba(255, 0, 100, 0.7),
      2px 0 rgba(0, 255, 255, 0.7),
      0 0 10px rgba(255, 255, 255, 0.8);
  }
  50% {
    text-shadow:
      2px 0 rgba(255, 0, 100, 0.7),
      -2px 0 rgba(0, 255, 255, 0.7),
      0 0 10px rgba(255, 255, 255, 0.8);
  }
}

.holo-ad-side:hover {
  animation: holo-flicker-intense 0.1s infinite;
}

@keyframes holo-flicker-intense {
  0%, 100% {
    opacity: 0.85;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.95;
  }
}

/* Hide on smaller screens where there's no room */
@media (max-width: 1400px) {
  .holo-rail {
    display: none;
  }
}

/* Show only one rail on medium screens */
@media (max-width: 1600px) and (min-width: 1401px) {
  .holo-rail-left {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   KO-FI FLOAT - Bottom left fixed CTA
   ───────────────────────────────────────────────────────────────────────────── */
.holo-kofi-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.holo-kofi-float:hover {
  opacity: 1;
  transform: scale(1.05);
}

.kofi-logo-img {
  display: block;
  height: 48px;
  width: auto;
}

@media (max-width: 600px) {
  .holo-kofi-float {
    bottom: 15px;
    left: 15px;
  }

  .kofi-logo-img {
    height: 36px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .holo-ad-side,
  .holo-ad-side:hover,
  .holo-side-scanlines,
  .holo-side-icon,
  .holo-ad-side:hover .holo-side-headline,
  .banner-title-main,
  .section-title,
  .logo-jp,
  .banner-edition::after {
    animation: none;
  }

  .holo-ad-side::before,
  .holo-ad-side::after {
    display: none;
  }

  .divider-blue,
  .divider-orange,
  .divider-yellow {
    box-shadow: none;
  }
}

/* Disable flicker animations on touch devices (iPad, phones) —
   rapid opacity cycling causes WebKit GPU rendering artifacts */
@media (hover: none) {
  .banner-title-main,
  .section-title,
  .logo-jp {
    animation: none;
  }

  .banner-edition::after {
    animation: none;
  }

  .divider-blue,
  .divider-orange,
  .divider-yellow {
    box-shadow: none;
  }

  .holo-ad-side,
  .holo-ad-side:hover,
  .holo-side-scanlines,
  .holo-side-icon,
  .holo-ad-side:hover .holo-side-headline {
    animation: none;
  }

  .holo-ad-side::before,
  .holo-ad-side::after {
    display: none;
  }

  .holo-ad-side {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
