/* =====================================================================
 * EL LIBRO DE ELDORIA · CSS V2 (landing + modal fullscreen)
 * 2026-06-09
 * ===================================================================== */

.boe-shell {
  width: 100%;
  min-height: 100vh;
  padding: 24px 20px 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40, 24, 8, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #1a0f08 0%, #0d0805 100%);
  color: #c8b48c;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boe-loading, .boe-error {
  padding: 80px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #8a7050;
  text-align: center;
}
.boe-error { color: #c25050; }

/* ===== LANDING HERO ===== */
.boe-landing-hero {
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.boe-landing-glyph {
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(200, 160, 80, 0.3));
}
.boe-landing-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.14em;
  color: #e8c878;
  text-shadow: 0 2px 16px rgba(200, 160, 80, 0.35);
}
.boe-landing-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.04rem;
  color: #8a7050;
}

/* ===== PROGRESO ===== */
.boe-landing-progress {
  width: 100%;
  max-width: 1080px;
  background:
    linear-gradient(180deg, rgba(40, 24, 8, 0.55) 0%, rgba(20, 12, 4, 0.55) 100%);
  border: 1px solid rgba(200, 160, 80, 0.22);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(200, 160, 80, 0.06);
}
.boe-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.boe-progress-label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8a050;
}
.boe-progress-pct {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8c878;
}
.boe-progress-pct small { font-size: 0.75rem; opacity: 0.7; font-weight: 500; }
.boe-progress-bar {
  height: 8px;
  background: rgba(20, 12, 4, 0.7);
  border: 1px solid rgba(200, 160, 80, 0.25);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.boe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a5028 0%, #c8a050 50%, #f4d088 100%);
  box-shadow: 0 0 14px rgba(200, 160, 80, 0.5);
  transition: width 0.6s ease;
}
.boe-progress-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.boe-chip {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid rgba(200, 160, 80, 0.25);
  background: rgba(40, 24, 8, 0.5);
}
.boe-chip.is-sealed  { color: #f4d088; border-color: rgba(244, 208, 136, 0.45); }
.boe-chip.is-pending { color: #c8a050; }
.boe-chip.is-locked  { color: #8a7050; opacity: 0.8; }
.boe-chip.is-gold    { color: #f4d088; display: inline-flex; align-items: center; gap: 5px; }

/* ===== LANDING GRID (libro + info) ===== */
.boe-landing-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .boe-landing-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ===== BOOK THUMBNAIL ===== */
.boe-book-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.boe-book-thumb-shell {
  width: 240px;
  height: 320px;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
}
.boe-book-thumb-shell:hover {
  transform: translateY(-4px) rotateY(-3deg);
  filter: drop-shadow(0 22px 38px rgba(200, 160, 80, 0.25));
}
.boe-book-thumb-spine {
  position: absolute;
  left: 0; top: 0;
  width: 16px;
  height: 100%;
  background:
    linear-gradient(90deg, #1a0a04 0%, #4a2814 60%, #2a1408 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.5);
}
.boe-book-thumb-pages {
  position: absolute;
  left: 14px;
  top: 4px;
  right: 0;
  bottom: 4px;
  border-radius: 2px 6px 6px 2px;
  background:
    radial-gradient(ellipse at center, rgba(40, 24, 8, 0.18) 0%, transparent 70%),
    linear-gradient(135deg, #5a3214 0%, #3a1e0a 100%);
  border: 1px solid rgba(200, 160, 80, 0.4);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(200, 160, 80, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  color: #e8c878;
  text-align: center;
}
.boe-book-thumb-sigil { opacity: 0.9; }
.boe-book-thumb-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(232, 200, 120, 0.7);
}
.boe-book-thumb-main {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: #f4d088;
  text-shadow: 0 0 12px rgba(244, 208, 136, 0.3);
}
.boe-book-thumb-orn {
  color: rgba(200, 160, 80, 0.55);
  letter-spacing: 0.5em;
  font-size: 0.78rem;
}
.boe-book-thumb-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #b07020 0%, #8a5028 100%);
  color: #fff8e0;
  border: 1px solid #c8a050;
  box-shadow: 0 4px 16px rgba(176, 112, 32, 0.5);
  white-space: nowrap;
  animation: boe-bounce 1.6s infinite;
}
@keyframes boe-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
.boe-open-btn {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #b07020 0%, #8a5028 100%);
  color: #fff8e0;
  border: 1px solid #c8a050;
  border-radius: 4px;
  padding: 10px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(176, 112, 32, 0.35);
}
.boe-open-btn:hover {
  background: linear-gradient(180deg, #c8884c 0%, #a06030 100%);
  box-shadow: 0 6px 18px rgba(200, 160, 80, 0.45);
}

/* ===== INFO STACK ===== */
.boe-info-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.boe-info-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(40, 24, 8, 0.55) 0%, rgba(20, 12, 4, 0.55) 100%);
  border: 1px solid rgba(200, 160, 80, 0.22);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.boe-info-card:hover {
  border-color: rgba(200, 160, 80, 0.4);
}
.boe-info-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(20, 12, 4, 0.6);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c);
}
.boe-info-body { flex: 1; min-width: 0; }
.boe-info-title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #e8c878;
  margin-bottom: 6px;
}
.boe-info-list {
  margin: 0;
  padding-left: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.45;
  color: #c8b48c;
}
.boe-info-list li { margin-bottom: 3px; }
.boe-info-list b { color: #e8c878; }

/* ===== TODAY BANNER ===== */
.boe-today-banner {
  width: 100%;
  max-width: 1080px;
  margin-top: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(176, 112, 32, 0.25) 0%, rgba(110, 58, 20, 0.15) 100%);
  border: 1px solid rgba(200, 160, 80, 0.35);
  border-left: 3px solid #c8a050;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #e8c878;
}
.boe-today-banner i { font-size: 1.3rem; color: #f4d088; }
.boe-today-banner b { color: #f4d088; font-weight: 600; }
.boe-today-banner.is-muted {
  background: rgba(40, 24, 8, 0.4);
  border-color: rgba(200, 160, 80, 0.15);
  border-left-color: rgba(200, 160, 80, 0.3);
  color: #8a7050;
}
.boe-today-banner.is-muted i { color: #8a7050; }

/* ===== MODAL OVERLAY (fullscreen con blur) ===== */
.boe-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 4, 2, 0.55);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: boe-modal-in 0.35s ease;
}
.boe-modal-overlay.is-closing {
  animation: boe-modal-out 0.25s ease forwards;
}
@keyframes boe-modal-in {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(12px); }
}
@keyframes boe-modal-out {
  to { opacity: 0; }
}
body.boe-modal-open { overflow: hidden; }

.boe-modal-shell {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.boe-modal-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(40, 24, 8, 0.85);
  border: 1px solid rgba(200, 160, 80, 0.4);
  color: #c8a050;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.15s;
  z-index: 2;
}
.boe-modal-close:hover {
  background: rgba(80, 40, 16, 0.95);
  color: #f4d088;
  border-color: rgba(200, 160, 80, 0.65);
  transform: scale(1.05);
}
.boe-modal-book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.boe-book {
  width: 100%;
  max-width: 1000px;
  perspective: 1500px;
}

/* ===== PAGE BASE ===== */
.boe-page {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(60, 40, 20, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(60, 40, 20, 0.10) 0%, transparent 50%),
    linear-gradient(135deg, #f5e8c8 0%, #ecdcb0 100%);
  color: #3a2412;
  font-family: 'Cormorant Garamond', serif;
  padding: 22px 26px;
  box-shadow:
    inset 0 0 80px rgba(120, 80, 40, 0.18),
    inset 0 0 12px rgba(60, 40, 20, 0.3);
  position: relative;
  overflow: hidden;
}
.boe-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(80, 50, 20, 0.05) 0px, transparent 18px),
    radial-gradient(circle at 88% 72%, rgba(80, 50, 20, 0.06) 0px, transparent 22px),
    radial-gradient(circle at 50% 95%, rgba(80, 50, 20, 0.04) 0px, transparent 32px);
  pointer-events: none;
}
.boe-page-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
}
/* 2026-06-16: cap body con scroll interno en TODAS las pantallas (PC + mobile)
   cuando el texto supera el alto de la hoja. Prompt+botón quedan FIJOS abajo. */
.boe-chapter .boe-page-inner {
  display: flex;
  flex-direction: column;
}
.boe-chapter .boe-chap-body {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
  /* Sombras de fade arriba/abajo para indicar más contenido */
  mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.boe-chapter .boe-chap-body::-webkit-scrollbar { width: 6px; }
.boe-chapter .boe-chap-body::-webkit-scrollbar-track { background: rgba(120, 80, 40, 0.08); border-radius: 3px; }
.boe-chapter .boe-chap-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100, 70, 30, 0.55), rgba(80, 50, 20, 0.4));
  border-radius: 3px;
}
.boe-chapter .boe-chap-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120, 85, 35, 0.75), rgba(100, 65, 25, 0.6));
}
.boe-chapter .boe-prompt { flex-shrink: 0; }
/* Mobile: padding-right más chico para no comer demasiado ancho */
@media (max-width: 760px) {
  .boe-chapter .boe-chap-body { padding-right: 4px; }
  .boe-chapter .boe-chap-body::-webkit-scrollbar { width: 4px; }
}

/* ===== COVER ===== */
.boe-cover {
  background:
    radial-gradient(ellipse at center, rgba(20, 10, 4, 0.0) 0%, rgba(20, 10, 4, 0.4) 100%),
    linear-gradient(135deg, #4a2e14 0%, #2a1808 100%);
  color: #e8c878;
}
.boe-cover-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(200, 160, 80, 0.4);
  border-radius: 4px;
  padding: 30px 18px;
  position: relative;
}
.boe-cover-frame::before, .boe-cover-frame::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(200, 160, 80, 0.5);
}
.boe-cover-frame::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.boe-cover-frame::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.boe-cover-sigil { opacity: 0.85; }
.boe-cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(232, 200, 120, 0.7);
}
.boe-cover-main {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.16em;
  color: #f4d088;
  text-shadow: 0 2px 14px rgba(244, 208, 136, 0.4);
}
.boe-cover-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(232, 200, 120, 0.6);
  text-align: center;
  line-height: 1.4;
}
.boe-cover-ornament {
  color: rgba(200, 160, 80, 0.5);
  letter-spacing: 0.5em;
  font-size: 0.9rem;
}
.boe-cover-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(200, 160, 80, 0.55);
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}

/* ===== INDEX ===== */
.boe-index-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.08em;
  color: #6e3a14;
  margin: 0 0 4px;
}
.boe-index-sub {
  font-style: italic;
  font-size: 0.9rem;
  color: #8a5028;
  text-align: center;
  margin: 0 0 18px;
}
.boe-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(100, 60, 20, 0.2);
}
.boe-stat { text-align: center; }
.boe-stat b {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #5a3010;
  display: block;
  line-height: 1;
}
.boe-stat span {
  font-style: italic;
  font-size: 0.78rem;
  color: #8a5028;
}
.boe-index-list { font-family: 'Cormorant Garamond', serif; }
.boe-idx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  border-bottom: 1px dotted rgba(100, 60, 20, 0.2);
  font-size: 0.95rem;
}
.boe-idx-row.is-locked { opacity: 0.55; }
.boe-idx-icon {
  width: 16px; text-align: center;
  color: #6e3a14;
  font-size: 0.9rem;
}
.boe-idx-row.is-sealed .boe-idx-icon { color: #b07020; }
.boe-idx-row.is-pending .boe-idx-icon { color: #5a3010; }
.boe-idx-num {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: #8a5028;
  width: 24px;
}
.boe-idx-title {
  font-style: italic;
  color: #4a2e14;
  flex: 1;
}
.boe-idx-row.is-locked .boe-idx-title { color: #8a5028; }

/* ===== CHAPTER PAGE ===== */
.boe-chap-no {
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: #8a5028;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3px;
}
.boe-chap-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-align: center;
  color: #5a3010;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(100, 60, 20, 0.25);
}
.boe-chap-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #3a2412;
  text-align: justify;
  text-indent: 1.3em;
  font-style: italic;
}
.boe-chap-body p { margin: 0 0 0.55em; }
.boe-chap-body p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 2.55em;
  font-weight: 700;
  color: #6e3a14;
  float: left;
  line-height: 0.9;
  margin: 0.05em 0.08em 0 0;
}

/* ===== PROMPT con INPUT INLINE ===== */
.boe-prompt {
  margin-top: 14px;
  padding: 10px 12px 10px 14px;
  background: rgba(110, 58, 20, 0.06);
  border-left: 3px solid #b07020;
  border-radius: 3px;
}
.boe-prompt-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #4a2e14;
  margin: 0;
  line-height: 1.5;
}

/* Input inline en la frase — se ve como continuación natural del texto */
.boe-answer-input {
  font-family: 'Dancing Script', 'Cormorant Garamond', cursive;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 500;
  color: #2a1808;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(110, 58, 20, 0.55);
  outline: none;
  padding: 0 6px 1px;
  min-width: 130px;
  max-width: 200px;
  margin: 0 2px;
  vertical-align: baseline;
  transition: border-bottom-color 0.15s, background 0.15s;
}
.boe-answer-input::placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(138, 80, 40, 0.55);
  font-size: 0.95rem;
}
.boe-answer-input:focus {
  border-bottom-color: #b07020;
  background: rgba(255, 248, 220, 0.5);
}

/* Botón al lado abajo del prompt */
.boe-prompt-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.boe-answer-btn {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #b07020 0%, #8a5028 100%);
  color: #f4e8c8;
  border: 1px solid #5a3010;
  border-radius: 3px;
  padding: 6px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.boe-answer-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #c8884c 0%, #a06030 100%);
}
.boe-answer-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.boe-attempts {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: #8a5028;
}

/* Sealed prompt — cuando ya está completada */
.boe-prompt.is-sealed-prompt {
  background: rgba(176, 112, 32, 0.12);
}
.boe-sealed-word {
  display: inline;
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 700;
  color: #6e3a14;
  letter-spacing: 0.04em;
  padding: 0 4px;
  border-bottom: 1.5px solid rgba(176, 112, 32, 0.5);
}
.boe-sealed-mini {
  margin-top: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #6e3a14;
  text-align: center;
}
.boe-sealed-mini .boe-sealed-mark {
  font-size: 1rem;
  color: #b07020;
  margin-right: 4px;
}
.boe-answer-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  border-radius: 3px;
  animation: boe-fb-in 0.25s ease;
}
@keyframes boe-fb-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.boe-answer-feedback.is-ok {
  background: rgba(176, 112, 32, 0.22);
  color: #5a3010;
  border-left: 3px solid #b07020;
  text-align: center;
}
.boe-answer-feedback.is-ok b {
  font-family: 'Cinzel', serif;
  font-style: normal;
  font-weight: 700;
}
.boe-answer-feedback.is-bad {
  background: rgba(180, 60, 60, 0.14);
  color: #7a2020;
  border-left: 3px solid #a04040;
}

/* ===== SEALED / LOCKED ===== */
.boe-sealed {
  margin-top: 14px;
  padding: 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(176, 112, 32, 0.18) 0%, transparent 70%),
    rgba(232, 200, 120, 0.15);
  border: 1px solid rgba(176, 112, 32, 0.35);
  border-radius: 4px;
}
.boe-sealed-mark { font-size: 2rem; color: #b07020; line-height: 1; }
.boe-sealed-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: #6e3a14;
  margin-top: 4px;
}
.boe-chapter.is-locked .boe-chap-title { color: #6e4828; }
.boe-locked-art {
  font-size: 3.6rem;
  text-align: center;
  color: rgba(110, 58, 20, 0.35);
  margin: 30px 0 20px;
}
.boe-locked-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: #5a3010;
  text-align: center;
  line-height: 1.5;
  padding: 0 12px;
}
.boe-buy-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.boe-buy-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #5a3010;
  padding: 6px 14px;
  background: rgba(176, 112, 32, 0.1);
  border: 1px solid rgba(176, 112, 32, 0.3);
  border-radius: 14px;
}
.boe-buy-cost i { color: #c0a050; font-size: 1.1rem; }
.boe-buy-btn {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #b07020 0%, #8a5028 100%);
  color: #f4e8c8;
  border: 1px solid #5a3010;
  border-radius: 4px;
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.15s;
}
.boe-buy-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #c8884c 0%, #a06030 100%);
  box-shadow: 0 2px 12px rgba(176, 112, 32, 0.4);
}
.boe-buy-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== Today hint (hoja de hoy aún dropeable) ===== */
.boe-today-hint {
  margin: 22px auto 0;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #6e3a14;
  background: rgba(176, 112, 32, 0.08);
  border-left: 3px solid #c8a050;
  border-radius: 3px;
}
.boe-today-hint i { color: #b07020; font-size: 1rem; flex-shrink: 0; }

/* ===== CONTROLES MODAL ===== */
.boe-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.boe-ctrl {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: rgba(40, 24, 8, 0.85);
  color: #c8a050;
  border: 1px solid rgba(200, 160, 80, 0.35);
  border-radius: 3px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.boe-ctrl:hover {
  background: rgba(80, 50, 24, 0.9);
  border-color: rgba(200, 160, 80, 0.6);
  color: #e8c878;
}

/* ===== MOBILE ===== */
@media (max-width: 760px) {
  .boe-landing-title { font-size: 1.5rem; }
  .boe-landing-sub { font-size: 0.92rem; }
  .boe-info-card { padding: 12px 14px; gap: 10px; }
  .boe-info-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: 1.15rem; }
  .boe-info-title { font-size: 0.92rem; }
  .boe-info-list { font-size: 0.92rem; }
  .boe-book-thumb-shell { width: 200px; height: 270px; }
  .boe-book-thumb-main { font-size: 1.2rem; }
  .boe-page { padding: 22px 18px; }
  .boe-chap-title { font-size: 1.15rem; }
  .boe-chap-body { font-size: 0.9rem; line-height: 1.45; }
  .boe-prompt-text { font-size: 0.9rem; }
  .boe-cover-main { font-size: 2rem; }
  /* Input MÁS grande en mobile para tocar mejor */
  .boe-answer-input {
    font-size: 1.15rem;
    min-width: 120px;
    max-width: 180px;
    padding: 2px 8px 3px;
  }
  .boe-answer-btn { padding: 7px 18px; }
  .boe-modal-overlay { padding: 8px; }
  .boe-modal-close { top: -4px; right: -4px; }
  .boe-progress-pct { font-size: 1rem; }
}
