/* ══════════════════════════════════════════════════════
   LUNA | THE STORY — Global Stylesheet
   luna.css
   ══════════════════════════════════════════════════════ */

/* ── FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

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

/* ── SHARED VARIABLES ───────────────────────────────── */
:root {
  --luna:         #ffbe0b;
  --luna-dim:     rgba(255,190,11,0.12);
  --luna-border:  rgba(255,190,11,0.3);
  --ai:           lime;
  --ai-dim:       rgba(0,255,0,0.07);
  --ai-border:    rgba(0,255,0,0.25);
  --line:         #1a1a22;
}

.mail-link {
    color: var(--luna);
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    margin-top: 14px;
    display: inline-block;
}
.mail-link:hover { opacity: 1; }

/* ── PER-PAGE VARIABLE OVERRIDES ─────────────────────
   Add class to <body> to activate page-specific tokens */

body.page-ep1 {
  --bg:        #02040a;
  --panel-bg:  #080c18;
  --border:    #00b4d8;
  --accent:    #ffbe0b;
  --text:      #e0e1dd;
  --muted:     #64748b;
  --strip-w:   800px;
}

body.page-discussion {
  --bg:        #060608;
  --panel-bg:  #0d0d12;
  --muted:     #444;
}


/* ══════════════════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════════════════ */

/* ── LINK HOME ──────────────────────────────────────── */
.link-home {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}
.link-home::before { content: '← '; opacity: 0.4; }
.link-home:hover   { color: var(--luna); }

/* ── EPISODE HEADER ─────────────────────────────────── */
.episode-header {
  width: var(--strip-w, 100%);
  max-width: 100%;
  padding: 30px 0 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0,180,216,0.2);
  margin-bottom: 0;
}
.episode-header .series {
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--border);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.episode-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text, #e8e8e0);
}
.episode-header .ep-num {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  max-width: 900px;
  margin: 80px auto 0;
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-link {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.2rem;
  color: var(--muted, #444);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.footer-link::before { content: '← '; opacity: 0.4; }
.footer-link:hover   { color: var(--luna); }

/* footer-link sizing per page */
body.page-ep1        .footer-link { font-size: 0.8rem;  text-transform: none; }
body.page-discussion .footer-link { font-size: 1.5rem;  letter-spacing: 0.5rem; text-transform: uppercase; }

/* ── PANEL SYSTEM ───────────────────────────────────── */
.panel {
  width: 100%;
  background: var(--panel-bg);
  position: relative;
  overflow: hidden;
  border-left:  1px solid rgba(0,180,216,0.08);
  border-right: 1px solid rgba(0,180,216,0.08);
}
.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.panel-landscape            { height: auto; background: var(--panel-bg); }
.panel-landscape img        { width: 100%; height: auto; object-fit: contain; }

.panel-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: var(--panel-bg);
  border: 1px dashed rgba(0,180,216,0.25);
}
.panel-placeholder .ph-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.panel-placeholder svg.ph-icon { opacity: 0.15; }

/* height presets */
.panel-full  { height: 480px; }
.panel-half  { height: 300px; }
.panel-wide  { height: 220px; }
.panel-tall  { height: 600px; }

/* two-column row */
.panel-row        { display: flex; width: 100%; }
.panel-row .panel { flex: 1; }
.panel-row .panel + .panel { border-left: 2px solid var(--bg); }

/* ── SPACER ─────────────────────────────────────────── */
.spacer-sm { height: 20px; }
.spacer-md { height: 40px; }
.spacer-lg { height: 80px; }

/* ── NARRATIVE BAR ──────────────────────────────────── */
.narrative {
  width: 100%;
  background: #000;
  border-left: 3px solid var(--border);
  padding: 18px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.narrative.accent  { border-left-color: var(--accent); color: rgba(255,190,11,0.75); }
.narrative .prompt { color: var(--border); margin-right: 8px; user-select: none; }
.narrative.gold    { border-left: none; color: var(--luna); }


/* ══════════════════════════════════════════════════════
   EFFECTS LIBRARY  — disponibili in ogni pagina
   Usa le classi .fx-* nell'HTML, funzionano ovunque.
   ──────────────────────────────────────────────────────
   RIFERIMENTO RAPIDO:

   .fx-blink-sub          testo status lampeggiante
   → <div class="fx-blink-sub">// testo ▮</div>

   .fx-scan-bar           barra di scansione animata
   → <div class="fx-scan-bar"></div>

   .fx-glitch             testo glitch base
   → <div class="fx-glitch" data-text="TESTO">TESTO</div>

   .fx-glitch--glow       variante glitch con glow ambra
   → <div class="fx-glitch fx-glitch--glow" data-text="TESTO">TESTO</div>

   .fx-scanlines          overlay scanlines CRT (wrapper)
   → <div class="fx-scanlines"> ... </div>

   .fx-fade-in            fade in al caricamento
   → <div class="fx-fade-in"> ... </div>

   .fx-cursor             cursore lampeggiante standalone
   → <span class="fx-cursor"></span>
   ══════════════════════════════════════════════════════ */

/* ── FX: BLINK STATUS TEXT ──────────────────────────
   <div class="fx-blink-sub">// initializing ▮</div>   */
.fx-blink-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px, 2.5vw, 18px);
  letter-spacing: 0.3em;
  color: var(--luna);
  animation: blinkSub 3s infinite;
}
@keyframes blinkSub { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── FX: SCAN PROGRESS BAR ──────────────────────────
   <div class="fx-scan-bar"></div>                      */
.fx-scan-bar {
  width: clamp(180px, 50vw, 480px);
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.fx-scan-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--luna), transparent);
  animation: scan 2.2s linear infinite;
}
@keyframes scan { 0% { left: -60%; } 100% { left: 110%; } }

/* ── FX: GLITCH TEXT ────────────────────────────────
   <div class="fx-glitch" data-text="TESTO">TESTO</div>
   Variante con glow ambra: aggiungi .fx-glitch--glow   */
.fx-glitch {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(16px, 4.5vw, 52px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-align: center;
  text-transform: uppercase;
  color: var(--luna);
  position: relative;
  animation: flicker 4s infinite;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  display: inline-block;
}
.fx-glitch--glow {
  animation-duration: 6s;
  text-shadow: 0 0 6px var(--luna), 0 0 14px #ff9f00, 0 0 24px #ff6f00;
}
.fx-glitch::before, .fx-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.7;
  white-space: nowrap;
}
.fx-glitch::before {
  color: #ff003c;
  animation: glitch-top 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  transform: translateX(-3px);
}
.fx-glitch::after {
  color: var(--luna);
  animation: glitch-bot 3.5s infinite;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  transform: translateX(3px);
}
.fx-glitch--glow::after { color: #ffd166; }

@keyframes flicker {
  0%,100% { opacity: 1; }
  92% { opacity: 1; }  93% { opacity: 0.2; }
  94% { opacity: 1; }  96% { opacity: 0.5; }  97% { opacity: 1; }
}
@keyframes glitch-top {
  0%,90%,100% { transform: translateX(-3px); opacity: 0; }
  91% { transform: translateX(-6px); opacity: 0.8; }
  92% { transform: translateX( 4px); opacity: 0.6; }
  93% { transform: translateX(-3px); opacity: 0;   }
}
@keyframes glitch-bot {
  0%,90%,100% { transform: translateX(3px); opacity: 0; }
  91% { transform: translateX( 6px); opacity: 0.7; }
  92% { transform: translateX(-4px); opacity: 0.5; }
  93% { transform: translateX( 3px); opacity: 0;   }
}

/* ── FX: CRT SCANLINES ──────────────────────────────
   Aggiunge scanlines verdi su qualsiasi wrapper.
   Il wrapper deve avere position: relative.
   <div class="fx-scanlines"> ... </div>               */
.fx-scanlines { position: relative; }
.fx-scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,0,0.04) 0px,
    rgba(0,255,0,0.04) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── FX: FADE IN ────────────────────────────────────
   <div class="fx-fade-in"> ... </div>                 */
.fx-fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FX: TYPING CURSOR ──────────────────────────────
   Cursore lampeggiante standalone.
   <span class="fx-cursor"></span>                     */
.fx-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  background: var(--luna);
  animation: blinkCursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blinkCursor { 50% { opacity: 0; } }


/* ══════════════════════════════════════════════════════
   PAGE: hello.html  →  <body class="page-hello">
   ══════════════════════════════════════════════════════ */

body.page-hello {
  background: black;
  font-family: monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.page-hello .wrapper { position: relative; }

.page-hello .wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,255,0,0.04) 0px,
    rgba(0,255,0,0.04) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.page-hello h1 {
  animation: typing 8s steps(16,end) infinite,
             fade        8s infinite,
             blinkCursor 0.8s step-end infinite;
  text-shadow: 0 0 6px var(--luna), 0 0 12px var(--luna), 0 0 18px var(--luna);
  color: var(--luna);
  font-size: 2em;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 8px;
  border-right: 2px solid var(--luna);
  width: 0;
  opacity: 1;
}

@keyframes typing {
  0%   { width: 0; }
  50%  { width: 16ch; }
  100% { width: 16ch; }
}
@keyframes fade {
  0%,60% { opacity: 1; }
  80%    { opacity: 0; }
  100%   { opacity: 0; }
}
@keyframes blinkCursor { 50% { border-color: transparent; } } /* alias di fx-cursor */

.page-hello .prompt {
  color: var(--luna);
  margin-top: 20px;
  font-size: 1.2em;
  opacity: 0;
  animation: showPrompt 6s infinite;
}
.page-hello .cursor {
  display: inline-block;
  width: 10px;
  animation: blinkCursor 1s infinite;
}
@keyframes showPrompt {
  0%,60%  { opacity: 0; }
  70%,80% { opacity: 1; }
  100%    { opacity: 0; }
}


/* ══════════════════════════════════════════════════════
   PAGE: index.html  →  <body class="page-index">
   ══════════════════════════════════════════════════════ */

body.page-index {
  background: #000;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index .bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: pulse 6s infinite ease-in-out;
}
.page-index .bg-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), rgba(0,0,0,0.65));
  z-index: 2;
}
.page-index .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.page-index .bg-1 {
  background-image: url('./img/luna_before_cold.png');
  animation: eyeActivate 2.8s ease-out forwards, fade1 12s infinite ease-in-out 2.8s;
  box-shadow: 0 0 120px rgba(255,190,11,0.15);
  animation-fill-mode: forwards;
}
.page-index .bg-2 {
  background-image: url('./img/luna_code_eye.png');
  animation: fade2 12s infinite ease-in-out 2.8s;
}

@keyframes fade1 { 0%,40%   { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes fade2 { 0%,40%   { opacity: 0; } 50%,90%  { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulse {
  0%,100% { filter: brightness(1);   transform: scale(1);    }
  50%     { filter: brightness(1.4); transform: scale(1.02); }
}
@keyframes eyeActivate {
  0%   { opacity: 0; filter: brightness(0) blur(8px); transform: scale(1.05); }
  30%  { opacity: 1; filter: brightness(2) blur(2px); }
  60%  {             filter: brightness(1.4) blur(0); }
  100% { opacity: 1; filter: brightness(1); transform: scale(1); }
}

.page-index .overlay {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* glitch text — alias di .fx-glitch e .fx-glitch--glow */
.upload-text { }          /* usa class="fx-glitch" in nuove pagine          */
.upload-text,
.year { /* stili già in .fx-glitch */
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(16px,4.5vw,52px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-align: center;
  text-transform: uppercase;
  color: var(--luna);
  position: relative;
  animation: flicker 4s infinite;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  display: inline-block;
}
.year        { animation-duration: 6s; text-shadow: 0 0 6px var(--luna), 0 0 14px #ff9f00, 0 0 24px #ff6f00; }
.upload-text::before, .upload-text::after,
.year::before, .year::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; overflow: hidden; opacity: 0.7; white-space: nowrap;
}
.upload-text::before, .year::before { color: #ff003c; animation: glitch-top 3.5s infinite; clip-path: polygon(0 0,100% 0,100% 38%,0 38%); transform: translateX(-3px); }
.upload-text::after  { color: var(--luna); animation: glitch-bot 3.5s infinite; clip-path: polygon(0 62%,100% 62%,100% 100%,0 100%); transform: translateX(3px); }
.year::after         { color: #ffd166;     animation: glitch-bot 3.5s infinite; clip-path: polygon(0 62%,100% 62%,100% 100%,0 100%); transform: translateX(3px); }

/* .progress-bar — alias di .fx-scan-bar */
.page-index .progress-bar { /* usa class="fx-scan-bar" in nuove pagine */
  width: clamp(180px,50vw,480px); height: 2px;
  background: rgba(255,255,255,0.08); overflow: hidden; position: relative;
}
.page-index .progress-bar::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--luna), transparent);
  animation: scan 2.2s linear infinite;
}

/* .sub — alias di .fx-blink-sub */
.page-index .sub { /* usa class="fx-blink-sub" in nuove pagine */
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(10px,2.5vw,18px);
  letter-spacing: 0.3em;
  color: var(--luna);
  animation: blinkSub 3s infinite;
}

@media (max-width: 768px) {
  .page-index .bg { background-position: center; background-size: cover; }
}
@media (max-width: 420px) {
  .page-index .bg { background-size: contain; background-repeat: no-repeat; background-color: black; }
}


/* ══════════════════════════════════════════════════════
   PAGE: v1_ep1.html  →  <body class="page-ep1">
   ══════════════════════════════════════════════════════ */

body.page-ep1 {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Space Mono', monospace;
  padding: 40px 20px 80px;
  color: var(--text);
}

.webtoon-strip {
  width: var(--strip-w);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.balloon-wrap { position: absolute; z-index: 10; }
.balloon-wrap text,
.balloon-wrap tspan {
  font-family: 'JetBrains Mono', monospace;
  pointer-events: none;
}

.chapter-break {
  width: 100%;
  padding: 24px 28px;
  background: linear-gradient(90deg, rgba(0,180,216,0.12) 0%, transparent 100%);
  border-top:    1px solid rgba(0,180,216,0.3);
  border-bottom: 1px solid rgba(0,180,216,0.3);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--border);
}

.end-mark {
  width: 100%;
  padding: 40px 28px;
  text-align: center;
  background: #000;
  font-size: 10px;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.guide {
  position: fixed;
  top: 40px; right: 20px;
  width: 220px;
  background: rgba(5,8,16,0.95);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: 10px;
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  z-index: 100;
}
.guide h2 {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--border);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guide .tag { color: var(--accent); }
@media (max-width: 1100px) { .guide { display: none; } }

@media (max-width: 600px) {
  body.page-ep1              { padding: 20px 0 60px; }
  .page-ep1 .panel-full      { height: 280px; }
  .page-ep1 .panel-half      { height: 200px; }
  .page-ep1 .panel-wide      { height: 140px; }
  .page-ep1 .panel-tall      { height: 380px; }
  .page-ep1 .episode-header h1   { font-size: 16px; letter-spacing: 1px; }
  .page-ep1 .narrative           { font-size: 11px; padding: 14px 16px; }
  .page-ep1 .panel-row           { flex-direction: column; }
  .page-ep1 .panel-row .panel + .panel { border-left: none; border-top: 2px solid var(--bg); }
  .page-ep1 .balloon-wrap        { transform: scale(0.72); transform-origin: top right; }
  .page-ep1 .panel-full .balloon-wrap,
  .page-ep1 .panel-tall .balloon-wrap { right: 4px !important; top: 8px !important; }
}


/* ══════════════════════════════════════════════════════
   PAGE: discussion_luna_ai.html  →  <body class="page-discussion">
   ══════════════════════════════════════════════════════ */

body.page-discussion {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  font-family: 'Share Tech Mono', monospace;
  color: #aaa;
  min-height: 100vh;
  padding: 60px 20px 100px;
}

.page-discussion header {
  max-width: 900px;
  margin: 0 auto 70px;
  text-align: center;
  position: relative;
}
.page-discussion header::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  margin: 28px auto 0;
}
.header-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-discussion h1 {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 600;
  font-size: clamp(1.6rem,4vw,2.8rem);
  line-height: 1.2;
  color: #e8e8e0;
  letter-spacing: 0.02em;
}

/* ── DIALOGUE ───────────────────────────────────────── */
.dialogue {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.turn {
  border-radius: 4px;
  padding: 28px 32px;
  position: relative;
  border: 1px solid transparent;
  animation: fadeIn 0.4s ease both;
}
.turn.luna { background: var(--luna-dim); border-color: var(--luna-border); border-left: 3px solid var(--luna); color: var(--luna); }
.turn.ai   { background: var(--ai-dim);   border-color: var(--ai-border);   border-left: 3px solid var(--ai);   color: var(--ai); }

.speaker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
}
.speaker::before { content: '▶'; font-size: 0.5rem; opacity: 0.6; }

.content {
  text-align: justify;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
  line-height: 1.82;
  letter-spacing: 0.01em;
}
.turn.luna .content { color: var(--luna); }
.turn.ai   .content { color: var(--ai); }

.content p              { margin-bottom: 0.9em; }
.content p:last-child   { margin-bottom: 0; }
.content h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 1.6em 0 0.7em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,255,0,0.2);
  opacity: 0.9;
}
.turn.luna .content h3  { border-bottom-color: rgba(255,190,11,0.25); }

.content ul             { list-style: none; margin: 0.5em 0 1em; padding: 0; }
.content ul li          { padding: 0.25em 0 0.25em 1.4em; position: relative; }
.content ul li::before  { content: '—'; position: absolute; left: 0; opacity: 0.5; font-family: 'Share Tech Mono', monospace; font-size: 0.8em; }
.content ul ul          { margin-top: 0.3em; margin-bottom: 0; margin-left: 1em; }
.content ul ul li::before { content: '·'; }
.content strong         { font-weight: 600; font-style: normal; opacity: 1; }

.question {
  display: block;
  margin-top: 1.4em;
  padding: 12px 16px;
  border-left: 2px solid rgba(0,255,0,0.35);
  font-style: italic;
  font-size: 0.97em;
  opacity: 0.85;
  background: rgba(0,255,0,0.04);
}
.turn.luna .question { border-left-color: rgba(255,190,11,0.4); background: rgba(255,190,11,0.04); }

.chevron {
  display: block;
  text-align: right;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  opacity: 0.3;
  margin-top: 14px;
  letter-spacing: 0.1em;
}

/* @keyframes fadeIn — definito in EFFECTS LIBRARY (.fx-fade-in) */

#backToTop {
  position: fixed;
  bottom: 20px; right: 20px;
  display: none;
  background: var(--panel-bg);
  color: var(--luna);
  border: 1px solid var(--luna-border);
  padding: 10px 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
  z-index: 1000;
}
#backToTop:hover { background: var(--luna); color: var(--bg); }

.btn-audio {
  min-width: 80px;
  min-height: 44px;
  padding: 5px 14px;
  margin-top: 15px;
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
  font-family: inherit;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s;
  touch-action: manipulation;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-audio:hover { opacity: 1; }

@media (max-width: 600px) {
  body.page-discussion       { padding: 40px 12px 80px; }
  .page-discussion .turn     { padding: 20px 16px; }
}


/* ══════════════════════════════════════════════════════
   SOUND BUTTON  —  globale, disponibile in ogni pagina
   ══════════════════════════════════════════════════════ */
#sound-btn {
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 9999;
    background: transparent;
    border: 1px solid rgba(255,190,11,0.3);
    color: rgba(255,190,11,0.6);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 10px 18px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    outline: none;
    touch-action: manipulation;
}
#sound-btn:hover { color: #ffbe0b; border-color: rgba(255,190,11,0.7); }
#sound-btn.on    { color: #ffbe0b; border-color: rgba(255,190,11,0.6); }