/*
 * style.css — Guzopedia
 *
 * 1. Variables & Reset
 * 2. Screens
 * 3. Home
 * 4. Boutons
 * 5. Game / HUD
 * 6. Article Wikipedia (rendu fidèle)
 * 7. Win / Abandon
 * 8. Historique
 * 9. Intro overlay
 * 10. Divers (scrollbar, confetti, responsive)
 */

/* ═══════════════════════════════════════
   1. VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #ffffff0d;
  --border-bright: #ffffff1a;
  --text: #f5f0ec;
  --text-muted: #a09aad;
  --text-dim: #ccc8d4;
  --pink: #ff2d78;
  --pink-light: #ff6fa3;
  --pink-pale: #ff2d7815;
  --pink-glow: #ff2d7830;
}

/* ── Thème clair ── */
body.light {
  --bg: #f5f2ef;
  --surface: #ffffff;
  --surface2: #ede9e6;
  --border: #00000010;
  --border-bright: #00000018;
  --text: #1a1018;
  --text-muted: #7a6f80;
  --text-dim: #3d3344;
  --pink: #e8005a;
  --pink-light: #ff3d80;
  --pink-pale: #e8005a12;
  --pink-glow: #e8005a28;
}
body.light::before { opacity: 0.015; }
body.light .blob1 { opacity: 0.09; }
body.light .blob2 { opacity: 0.06; }
body.light .intro-overlay { background: rgba(230,224,220,0.92); }

/* ── Bouton thème flottant ── */
.theme-toggle {
  position: fixed;
  top: 8px;
  left: 50%; /* centre horizontalement */
  transform: translateX(-50%); /* ajuste le décalage pour un vrai centrage */
  z-index: 500;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--surface2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  padding: 0;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--pink); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain subtil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════
   2. SCREENS
═══════════════════════════════════════ */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; }

/* ═══════════════════════════════════════
   3. HOME
═══════════════════════════════════════ */
#home {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}
.blob1 { width: 500px; height: 500px; background: var(--pink); opacity: 0.07; top: -150px; right: -100px; }
.blob2 { width: 300px; height: 300px; background: var(--pink); opacity: 0.05; bottom: -80px; left: -60px; }

.logo-wrap { text-align: center; margin-bottom: 8px; }
.logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 10vw, 88px);
  letter-spacing: -4px;
  line-height: 1;
  color: var(--text);
  display: inline-block;
}
.logo .accent { color: var(--pink); }
.logo-line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  margin-top: 10px;
  opacity: 0.6;
}
.tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
}

#pseudo-gate { width: 100%; max-width: 420px; margin-top: 44px; }
.pseudo-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.pseudo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}
.pseudo-title { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.5px; color: var(--text); margin-bottom: 6px; }
.pseudo-sub { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 22px; }
.pseudo-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s;
  margin-bottom: 14px;
}
.pseudo-input::placeholder { color: var(--text-muted); font-weight: 400; font-size: 11px; font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 1px; }
.pseudo-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-glow); }
.pseudo-error { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--pink); letter-spacing: 1px; margin-bottom: 12px; display: none; }
.pseudo-error.visible { display: block; }

#menu-card { width: 100%; max-width: 420px; display: none; }
.menu-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 32px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
}
.player-greeting { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.player-greeting span { color: var(--pink); }
.menu-section { margin-bottom: 16px; }

.daily-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--pink-pale); border: 1px solid #ff2d7830; border-radius: 100px; padding: 6px 14px;
  color: var(--pink-light); margin-bottom: 12px;
}
.daily-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ═══════════════════════════════════════
   4. BOUTONS
═══════════════════════════════════════ */
.btn {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 15px 24px;
  transition: all 0.2s;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-light); transform: translateY(-2px); box-shadow: 0 10px 40px var(--pink-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border-bright); }
.btn-secondary:hover { border-color: var(--pink); color: var(--pink-light); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); font-size: 11px; padding: 12px; }
.btn-ghost:hover { border-color: var(--border-bright); color: var(--text); }

/* ═══════════════════════════════════════
   5. GAME / HUD
═══════════════════════════════════════ */
#game { flex-direction: column; min-height: 100vh; }

.hud {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}
body.light .hud { background: rgba(245,242,239,0.95); }
.hud-logo { display: flex; align-items: center; flex-shrink: 0; }
.hud-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.hud-target { flex: 1; min-width: 0; }
.hud-target-label { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); line-height: 1; }
.hud-target-name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 13px; color: var(--pink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.hud-stats { display: flex; gap: 16px; flex-shrink: 0; }
.hud-stat { text-align: center; }
.hud-stat-value { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 500; color: var(--text); line-height: 1; }
.hud-stat-label { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.hud-btn {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: all 0.2s; flex-shrink: 0; white-space: nowrap;
}
.hud-btn:hover { border-color: var(--pink); color: var(--pink); }
.timer-warn { color: #f5a623 !important; }
.timer-danger { color: var(--pink) !important; }

.breadcrumb {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 8px 20px; display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.crumb { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.crumb.current { color: var(--text-dim); }
.crumb-sep { color: var(--border-bright); margin: 0 6px; }

/* ═══════════════════════════════════════
   6. ARTICLE WIKIPEDIA
   Rendu fidèle à fr.wikipedia.org
═══════════════════════════════════════ */
.article-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 28px 24px 64px;
  overflow-y: auto;
}

.article-inner {
  width: 100%;
  max-width: 960px;
}

/* Titre principal — style Wikipedia */
.article-title {
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
  font-weight: normal;
  font-size: 1.95em;
  line-height: 1.3;
  color: var(--text);
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

/* Corps de l'article */
.article-body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1em;
  line-height: 1.75;
  color: var(--text);
}

.article-body p { margin-bottom: 1em; }
.article-body ul, .article-body ol { padding-left: 2em; margin-bottom: 0.8em; }
.article-body li { margin-bottom: 0.35em; }
.article-body b, .article-body strong { font-weight: 600; }
.article-body i, .article-body em { font-style: italic; }
.article-body small { font-size: 0.85em; color: var(--text-muted); }
.article-body abbr { border-bottom: 1px dotted var(--text-muted); cursor: help; }
.article-body hr { border: none; border-top: 1px solid var(--border-bright); margin: 20px 0; }
.article-body blockquote {
  border-left: 3px solid var(--border-bright);
  padding: 4px 16px;
  color: var(--text-dim);
  margin: 12px 0;
  font-style: italic;
}

/* Liens cliquables */
.article-body [data-wiki-target] {
  color: #5b9cf6;
  text-decoration: underline;
  text-decoration-color: #5b9cf666;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.12s;
}
body.light .article-body [data-wiki-target] {
  color: #1a5fbd;
  text-decoration-color: #1a5fbd66;
}
.article-body [data-wiki-target]:hover {
  color: var(--pink-light);
  text-decoration-color: var(--pink);
}

/* Liens désactivés */
.article-body [data-wiki-disabled] {
  color: inherit;
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}

/* Titres de sections */
.article-body h2 {
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
  font-weight: normal;
  font-size: 1.5em;
  line-height: 1.3;
  color: var(--text);
  border-bottom: 1px solid var(--border-bright);
  padding-bottom: 4px;
  margin: 28px 0 12px;
}
.article-body h3 {
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text);
  margin: 20px 0 8px;
}
.article-body h4 {
  font-size: 1em;
  font-weight: bold;
  color: var(--text-dim);
  margin: 14px 0 5px;
}
.article-body h5, .article-body h6 {
  font-size: 0.9em;
  font-weight: bold;
  color: var(--text-muted);
  margin: 10px 0 4px;
}

/* ── Images ── */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  opacity: 0.92;
  display: inline-block;
}
/* Figures avec légende */
.article-body figure {
  margin: 12px 0 16px;
  display: table;
}
.article-body figcaption,
.article-body .thumbcaption {
  font-size: 0.78em;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 2px;
  line-height: 1.4;
  display: table-caption;
  caption-side: bottom;
}
/* Conteneurs d'images flottants (thumbs Wikipedia) */
.article-body .thumb {
  margin: 4px 0 16px 16px;
  float: right;
  clear: right;
  max-width: clamp(180px, 30%, 280px);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 4px;
}
.article-body .thumb.tleft,
.article-body .thumbleft {
  float: left;
  margin: 4px 16px 16px 0;
  clear: left;
}
.article-body .thumb img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 540px) {
  .article-body .thumb,
  .article-body .thumb.tleft,
  .article-body .thumbleft {
    float: none;
    max-width: 100%;
    margin: 0 0 12px 0;
  }
}

/* ── Infobox ── */
.article-body .infobox,
.article-body table.infobox {
  float: right;
  clear: right;
  margin: 0 0 20px 24px;
  width: clamp(200px, 33%, 300px);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  font-size: 0.8em;
  line-height: 1.5;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .article-body .infobox,
  .article-body table.infobox {
    float: none; width: 100%; margin: 0 0 16px 0;
  }
}
.article-body .infobox caption,
.article-body table.infobox caption {
  font-weight: bold;
  font-size: 1em;
  padding: 8px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-bright);
  text-align: center;
  color: var(--text);
}
.article-body .infobox th,
.article-body table.infobox th {
  background: var(--surface2);
  padding: 5px 10px;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.88em;
  font-weight: normal;
  border: 1px solid var(--border);
  vertical-align: top;
  width: 40%;
}
.article-body .infobox td,
.article-body table.infobox td {
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}

/* ── Tableaux normaux (wikitable) ── */
.article-body table:not(.infobox) {
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85em;
  width: 100%;
  overflow-x: auto;
  display: block;
}
.article-body table:not(.infobox) th {
  background: var(--surface2);
  padding: 7px 12px;
  border: 1px solid var(--border-bright);
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
}
.article-body table:not(.infobox) td {
  padding: 6px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.article-body table:not(.infobox) tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

/* ── Loader ── */
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 80px 24px; flex: 1; width: 100%; }
.loader-dots { display: flex; gap: 8px; }
.loader-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: bounce 0.8s infinite; }
.loader-dot:nth-child(2) { animation-delay: 0.15s; opacity: 0.6; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; opacity: 0.3; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(-10px); opacity: 1; } }
.loader-text { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; }

/* ═══════════════════════════════════════
   7. WIN / ABANDON
═══════════════════════════════════════ */
#win, #abandon-screen {
  flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center; position: relative; overflow-y: auto;
}
.win-emoji { font-size: 60px; line-height: 1; margin-bottom: 20px; animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes pop { 0% { transform: scale(0) rotate(-15deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.win-title { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(32px, 8vw, 70px); letter-spacing: -3px; color: var(--pink); text-shadow: 0 0 80px var(--pink-glow); margin-bottom: 8px; line-height: 1; }
.win-subtitle { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 36px; }

.win-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 32px;
}
.win-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  flex: 1;
  min-width: 100px;
}
/* Score optimal : accentué en rose */
.win-stat-optimal {
  border-color: #ff2d7833;
  background: var(--pink-pale);
}
.win-stat-optimal .win-stat-value { color: var(--pink-light); }
.win-stat-value { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(22px, 5vw, 28px); letter-spacing: -1px; color: var(--text); }
.win-stat-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }

.win-path { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; width: 100%; max-width: 460px; margin-bottom: 24px; text-align: left; }
.win-path-title { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.win-path-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.win-path-item { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-dim); background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.win-path-item.start { color: #a0aaff; border-color: #a0aaff33; }
.win-path-item.end { color: var(--pink); border-color: #ff2d7844; }
.win-path-arrow { color: var(--text-muted); font-size: 11px; }
.win-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 16px; }

.share-area { width: 100%; max-width: 300px; margin-bottom: 8px; }
.share-feedback {
  display: none;
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--pink);
  letter-spacing: 2px; text-transform: uppercase; text-align: center; margin-top: 10px;
}

/* ═══════════════════════════════════════
   8. HISTORIQUE
═══════════════════════════════════════ */
#history-screen { flex-direction: column; overflow-y: auto; }
.history-inner { padding: 40px 20px; max-width: 600px; margin: 0 auto; width: 100%; }
.history-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.history-title { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -1px; flex: 1; color: var(--text); }

.history-entry {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.history-entry:hover { border-color: #ffffff2a; }
.history-entry.abandoned { opacity: 0.7; }

.history-status {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.history-route {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  /* Autoriser le retour à la ligne pour les longs titres */
  white-space: normal;
}
.history-path {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.5;
  white-space: normal;
}
.history-meta {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.history-empty { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--text-muted); text-align: center; padding: 40px; letter-spacing: 1px; text-transform: uppercase; }

/* ═══════════════════════════════════════
   9. INTRO OVERLAY
═══════════════════════════════════════ */
.intro-overlay {
  position: fixed; inset: 0; background: rgba(10,10,10,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; backdrop-filter: blur(6px);
}
.intro-card {
  background: var(--surface); border: 1px solid var(--border-bright);
  border-radius: 24px; padding: 44px 36px; max-width: 440px; width: 100%;
  text-align: center; position: relative;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.intro-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), transparent); }
.intro-title { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.5px; margin-bottom: 28px; color: var(--text); }
.intro-from, .intro-to { background: var(--surface2); border-radius: 12px; padding: 14px 18px; margin: 10px 0; border: 1px solid var(--border); }
.intro-to { border-color: #ff2d7833; }
.intro-label { font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.intro-article-name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.5px; color: var(--text); line-height: 1.3; }
.intro-to .intro-article-name { color: var(--pink); }
.intro-arrow { font-size: 20px; color: var(--text-muted); margin: 4px 0; }

/* ═══════════════════════════════════════
   10. DIVERS
═══════════════════════════════════════ */

/* ── Scrollbar rose épaisse ── */
* {
  scrollbar-width: thick;
  scrollbar-color: var(--pink) var(--surface2);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface2); border-radius: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 10px;
  border: 2px solid var(--surface2);
}
::-webkit-scrollbar-thumb:hover { background: var(--pink-light); }
/* Exception : pas de scrollbar visible sur le breadcrumb */
.breadcrumb { scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }

/* Confettis */
.confetti-piece { position: fixed; width: 7px; height: 7px; pointer-events: none; z-index: 300; animation: confettiDrop linear forwards; }
@keyframes confettiDrop { 0% { transform: translateY(-10px) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .hud { padding: 0 12px; gap: 8px; height: 52px; }
  .hud-target-name { font-size: 11px; }
  .hud-stat-value { font-size: 14px; }
  .article-wrapper { padding: 16px 12px 40px; }
  .pseudo-card { padding: 28px 22px; }
  .menu-card { padding: 24px 20px; }
  .intro-card { padding: 28px 20px; }
  .intro-article-name { font-size: 16px; }
  .history-route { font-size: 13px; }
}
@media (min-width: 1200px) {
  .article-inner { max-width: 1080px; }
}
.daily-modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: -8px; text-align: center; }
