/* ============================================================
   DANIEL 7 — ESTILOS PRINCIPALES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&family=IM+Fell+English:ital@0;1&display=swap');

/* ---- VARIABLES ---- */
:root {
  --gold:       #c9a84c;
  --gold-light: #f0d080;
  --gold-dim:   #7a6030;
  --crimson:    #8b1a1a;
  --crimson-light: #c0392b;
  --parchment:  #1a1510;
  --parchment2: #221e16;
  --parchment3: #2e2820;
  --stone:      #3d3528;
  --stone-light:#5a4e3a;
  --ink:        #d4c9a8;
  --ink-dim:    #9a8f72;
  --ink-faint:  #5a5040;
  --shadow:     rgba(0,0,0,0.8);
  --glow-gold:  0 0 12px rgba(201,168,76,0.5);
  --glow-red:   0 0 14px rgba(139,26,26,0.7);
  --radius:     6px;
  --transition: 0.35s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- SCREENS ---- */
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; min-height: 100vh; }
#game-container.active { display: flex; flex-direction: column; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  align-items: center;
  justify-content: center;
  background: var(--parchment);
}
.loader-inner {
  text-align: center;
  animation: fadeIn 0.5s ease;
}
.scroll-icon {
  font-size: 4rem;
  animation: float 1.8s ease-in-out infinite;
}
.loader-text {
  margin-top: 1rem;
  color: var(--gold-dim);
  font-style: italic;
  letter-spacing: 0.1em;
}

/* ============================================================
   PANTALLA INICIAL
   ============================================================ */
#screen-intro {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #2a2015 0%, #100d08 100%);
}
#sea-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 680px;
}
.seal {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  display: block;
  margin-bottom: 0.5rem;
}
.main-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: var(--gold);
  text-shadow: var(--glow-gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.main-subtitle {
  font-size: 1.1rem;
  color: var(--ink-dim);
  font-style: italic;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.intro-verse {
  background: rgba(201,168,76,0.07);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.intro-verse span { display: block; margin-top: 0.4rem; color: var(--gold-dim); font-size: 0.85rem; }

/* PARTICLES */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 6px 28px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.btn-icon {
  background: transparent;
  border: 1px solid var(--ink-faint);
  color: var(--ink-dim);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }
.btn-bible-text {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 0.5rem 1.2rem;
  font-family: 'IM Fell English', serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-bible-text:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.dark-bible-btn { border-color: var(--crimson); color: var(--crimson-light); }
.dark-bible-btn:hover { background: rgba(139,26,26,0.15); border-color: var(--crimson-light); }
.btn-check {
  padding: 0.65rem 1.5rem;
  background: var(--gold-dim);
  color: var(--parchment);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-check:hover { background: var(--gold); }
.dark-check { background: var(--crimson); color: #f0c0a0; }
.dark-check:hover { background: var(--crimson-light); }
.btn-hint-inline {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-family: 'IM Fell English', serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: var(--transition);
  display: block;
  margin-top: 0.6rem;
}
.btn-hint-inline:hover { color: var(--gold-dim); }
.saved-label { color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 0.5rem; font-style: italic; }

/* ============================================================
   GAME HEADER
   ============================================================ */
.game-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(16,13,8,0.95);
  border-bottom: 1px solid var(--stone);
  backdrop-filter: blur(8px);
}
.header-left, .header-right {
  display: flex; align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.phase-label {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: var(--stone);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width 0.6s ease;
  width: 0%;
}

/* ============================================================
   PHASES
   ============================================================ */
.phase { display: none; }
.phase.active { display: block; animation: fadeSlideIn 0.5s ease; }

.phase-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.phase-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.blood-tag { color: var(--crimson-light); background: rgba(139,26,26,0.1); border-color: var(--crimson); }
.phase-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: var(--glow-gold);
}
.red-title { color: #d04040; text-shadow: var(--glow-red); }
.phase-desc { color: var(--ink-dim); font-style: italic; margin-bottom: 1.5rem; }

/* Dark phase */
.dark-phase {
  background: radial-gradient(ellipse at top, #1a0a0a 0%, var(--parchment) 80%);
  min-height: 100vh;
}
.final-phase {
  background: radial-gradient(ellipse at top, #0d0808 0%, var(--parchment) 70%);
}

/* ============================================================
   PHASE 1 — SEA VISUAL
   ============================================================ */
.sea-visual {
  position: relative;
  height: 120px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #0a1828 0%, #0d2040 100%);
  border: 1px solid #1a3050;
}
#mini-sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea-text {
  position: absolute;
  bottom: 0.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.8rem;
}
.wind-word {
  font-size: 1.4rem;
  animation: sway 2s ease-in-out infinite;
}
.wind-word:nth-child(2) { animation-delay: 0.3s; }
.wind-word:nth-child(3) { animation-delay: 0.6s; }

/* ============================================================
   CODEX BLOCK
   ============================================================ */
.codex-block {
  margin: 1rem 0;
}
.clue-box {
  background: rgba(201,168,76,0.05);
  border-left: 3px solid var(--gold-dim);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ============================================================
   CLUE SCROLL
   ============================================================ */
.clue-scroll {
  background: var(--parchment2);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}
.clue-scroll h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.dark-scroll { background: #120808; border-color: #3a1010; }
.clue-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.clue-list li {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  color: var(--ink-dim);
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid transparent;
}
.clue-list li:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold-dim);
  color: var(--ink);
}
.clue-list li.revealed {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold-dim);
  color: var(--ink);
}

/* ============================================================
   BEAST PORTRAITS
   ============================================================ */
.beast-portrait {
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
}
.beast-art { font-size: 5rem; display: block; animation: float 3s ease-in-out infinite; }
.beast-wings { font-size: 2.5rem; display: block; margin-top: -0.5rem; }
.heads-row { display: flex; justify-content: center; gap: 0.5rem; font-size: 1.2rem; margin-top: 0.5rem; }
.fourth-portrait .beast-art { filter: hue-rotate(0deg); }
.terror-art { animation: pulse-terror 2s ease-in-out infinite; }

/* ============================================================
   PHASE 2 — DRAG & DROP
   ============================================================ */
.drag-instruction {
  margin: 1rem 0 0.5rem;
  color: var(--ink-dim);
}
.drag-arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .drag-arena { grid-template-columns: 1fr 1fr; align-items: start; }
}
.drag-sources {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.drag-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--parchment2);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  cursor: grab;
  transition: var(--transition);
  user-select: none;
}
.drag-card:hover { border-color: var(--gold-dim); background: var(--parchment3); }
.drag-card.dragging { opacity: 0.4; border-color: var(--gold); }
.drag-card.placed { opacity: 0.3; pointer-events: none; }
.beast-emoji { font-size: 1.6rem; }
.beast-name { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold); flex: 1; }
.beast-sub { font-size: 0.7rem; color: var(--ink-faint); }

.statue-zones { display: flex; flex-direction: column; gap: 0.6rem; }
.statue-part {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  border: 2px dashed var(--stone-light);
  background: var(--parchment2);
  transition: var(--transition);
  min-height: 60px;
}
.statue-part.drag-over { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.statue-part.correct-drop { border-color: #4caf50; background: rgba(76,175,80,0.08); border-style: solid; }
.statue-part.wrong-drop { border-color: var(--crimson); background: rgba(139,26,26,0.08); animation: shake 0.4s ease; }
.statue-visual { font-size: 1.4rem; }
.gold-part { color: #ffd700; }
.silver-part { color: #c0c0c0; }
.bronze-part { color: #cd7f32; }
.iron-part { color: #8a8a8a; }
.statue-label { font-size: 0.8rem; color: var(--ink-dim); flex: 1; }
.drop-slot { min-width: 80px; font-size: 0.75rem; }
.drop-slot:empty::after { content: 'Arrastra aquí'; color: var(--ink-faint); }
.placed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  background: rgba(76,175,80,0.15);
  border: 1px solid #4caf50;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #7cbb7c;
}

/* ============================================================
   PHASE 6 — HORNS
   ============================================================ */
.horns-row {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.horn {
  color: var(--crimson-light);
  font-size: 1.1rem;
  animation: horn-glow 2s ease-in-out infinite;
  display: inline-block;
}
.horn:nth-child(odd) { animation-delay: 0.3s; }

/* ============================================================
   PHASE FINAL — HORN VISUAL
   ============================================================ */
.horn-visual {
  text-align: center;
  padding: 1.5rem 0 1rem;
}
.horn-container { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; }
.horn-big { font-size: 0.9rem; color: var(--crimson); letter-spacing: 0.15em; }
.horn-small { font-size: 2rem; color: var(--gold); }
.blink-horn { animation: blink-glow 1.5s ease-in-out infinite; }
.horn-caption { font-style: italic; color: var(--ink-dim); font-size: 0.9rem; margin-top: 0.5rem; }

/* ============================================================
   DEDUCTION BOARD
   ============================================================ */
.deduction-board {
  background: #0d0808;
  border: 1px solid var(--crimson);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1.5rem 0;
}
.deduction-title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--crimson-light);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.deduction-intro { font-size: 0.9rem; color: var(--ink-dim); margin-bottom: 1rem; }
.clue-checks { display: flex; flex-direction: column; gap: 0.5rem; }
.clue-check-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  color: var(--ink-dim);
  border: 1px solid transparent;
}
.clue-check-item:hover { background: rgba(139,26,26,0.15); border-color: var(--crimson); }
.clue-check-item input[type="checkbox"] {
  accent-color: var(--crimson-light);
  width: 16px; height: 16px;
  cursor: pointer;
}
.clue-check-item:has(input:checked) { color: var(--ink); background: rgba(139,26,26,0.15); border-color: var(--crimson); }
.deduction-status {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--gold-dim);
  font-style: italic;
  min-height: 1.2em;
}

/* ============================================================
   QUESTION BLOCK
   ============================================================ */
.question-block {
  background: var(--parchment2);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.5rem;
}
.final-question { background: #110808; border-color: var(--crimson); }
.question-text {
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.question-hint-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.answer-area {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.answer-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  background: var(--parchment3);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.answer-input:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 2px rgba(201,168,76,0.15); }
.dark-input:focus { border-color: var(--crimson); box-shadow: 0 0 0 2px rgba(139,26,26,0.15); }
.feedback {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  padding: 0 0.2rem;
}
.feedback.correct { color: #7dbd7d; }
.feedback.wrong { color: #c07070; }
.feedback.info { color: var(--gold-dim); font-style: italic; }

/* ============================================================
   VICTORY
   ============================================================ */
.victory-inner {
  text-align: center;
  padding: 4rem 1.5rem;
}
.victory-seal {
  font-size: 4rem;
  color: var(--gold);
  animation: spin-slow 8s linear infinite;
  display: block;
  margin-bottom: 1rem;
  text-shadow: var(--glow-gold);
}
.victory-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold);
  text-shadow: var(--glow-gold);
  margin-bottom: 0.5rem;
}
.victory-sub { color: var(--ink-dim); font-style: italic; margin-bottom: 2rem; }
.victory-summary {
  background: var(--parchment2);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: left;
}
.victory-summary h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--gold-dim);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}
.victory-summary ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.victory-summary li { font-size: 0.9rem; color: var(--ink-dim); }
.victory-summary li::before { content: '✦ '; color: var(--gold-dim); }
.final-verse {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.95rem;
  border-top: 1px solid var(--stone);
  padding-top: 1.5rem;
}
.final-verse span { display: block; margin-top: 0.5rem; color: var(--gold-dim); font-size: 0.85rem; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--parchment2);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.hint-box { border-color: var(--gold-dim); max-width: 460px; }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: 1px solid var(--ink-faint);
  color: var(--ink-dim);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-ref {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.modal-text {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.9;
}
.modal-text .verse {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--stone);
}
.modal-text .verse:last-child { border-bottom: none; }
.modal-text .verse-num {
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-right: 0.5rem;
  font-family: 'Cinzel', serif;
}

/* ============================================================
   TYPEWRITER
   ============================================================ */
.typewriter-title::after {
  content: '|';
  animation: cursor-blink 0.8s step-end infinite;
  color: var(--gold);
  margin-left: 2px;
}
.typewriter-title.done::after { display: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) translateX(var(--drift, 20px)); opacity: 0; }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse-terror {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.2) hue-rotate(10deg); }
}
@keyframes horn-glow {
  0%,100% { opacity: 0.6; text-shadow: none; }
  50%      { opacity: 1; text-shadow: 0 0 8px rgba(192,57,43,0.8); }
}
@keyframes blink-glow {
  0%,100% { opacity: 0.5; text-shadow: none; }
  50%      { opacity: 1; text-shadow: 0 0 16px rgba(201,168,76,0.9); }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .phase-inner { padding: 1.5rem 1rem 3rem; }
  .beast-art { font-size: 3.5rem; }
  .answer-area { flex-direction: column; }
  .answer-input { min-width: unset; width: 100%; }
  .modal-box { padding: 1.5rem 1.2rem; }
  .drag-card { padding: 0.6rem 0.8rem; }
}
