/* ============================================================
   SANDIA VILLAGE — Panel del habitante (capa sobre village.css)
   ============================================================ */

.nav-project a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-project a:hover { border-color: var(--flesh); }
.nav-link.as-button {
  background: none; border: none; cursor: pointer;
  font-family: var(--body); font-size: 14px;
  color: var(--cream-dim);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  padding: 0;
}
.nav-link.as-button:hover { color: var(--cream); border-color: var(--flesh); }

/* ----- Cargando: los vecinos pasean mientras se comprueba la sesión ----- */
.boot-stage {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 20px 60px;
}
.boot-card { text-align: center; }
.boot-dolls {
  display: flex; justify-content: center; align-items: flex-end; gap: 10px;
  height: 84px; margin-bottom: 22px;
}
.boot-doll {
  width: 56px; height: auto; image-rendering: pixelated;
  position: relative; bottom: 0;
  animation: bootStep .52s ease-in-out infinite, bootSway .52s ease-in-out infinite, bootIn .5s var(--ease-out) both;
  animation-delay: calc(var(--i) * -0.09s), calc(var(--i) * -0.09s), calc(var(--i) * 0.06s);
}
@keyframes bootStep { 0%, 100% { bottom: 0; } 50% { bottom: 6px; } }
@keyframes bootSway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes bootIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.boot-text {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-faint); margin: 0;
}
.boot-dots i { font-style: normal; animation: bootDot 1.2s infinite; }
.boot-dots i:nth-child(2) { animation-delay: .2s; }
.boot-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes bootDot { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.login-stage.is-in, .dash.is-in, #dash-view.is-in { animation: viewIn .35s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .boot-doll, .boot-dots i, .login-stage.is-in, #dash-view.is-in { animation: none; }
}
@media (max-width: 480px) { .boot-doll { width: 40px; } .boot-dolls { gap: 6px; height: 64px; } }

/* ----- Login ----- */
.login-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  position: relative;
}
.login-stage::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 480px at 50% -10%, rgba(82, 199, 118, 0.10), transparent 60%),
    radial-gradient(600px 420px at 80% 90%, rgba(239, 182, 68, 0.06), transparent 60%);
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.login-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.login-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--flesh); }
.login-sub { font-size: 14.5px; color: var(--cream-dim); margin: 0 0 22px; line-height: 1.55; }

.offline-banner {
  background: rgba(239, 182, 68, 0.08);
  border: 1px solid rgba(239, 182, 68, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--cream-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}
.offline-banner b { color: var(--gold); }
.offline-banner a { color: var(--cream); border-bottom: 1px solid var(--flesh); }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin: 16px 0 8px;
}
.login-card .field-hint {
  display: inline;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cream-faint);
  opacity: 0.8;
}
.login-card select, .login-card input, .whisper-card textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.login-card select:focus, .login-card input:focus, .whisper-card textarea:focus {
  outline: none;
  border-color: var(--leaf);
}
.btn-primary {
  display: block;
  width: 100%;
  margin-top: 22px;
  background: var(--flesh);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out), opacity .2s;
}
.btn-primary:hover:not(:disabled) { background: var(--flesh-deep); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.form-error {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--flesh);
  background: rgba(255, 83, 72, 0.08);
  border: 1px solid rgba(255, 83, 72, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ----- Selector de personaje (login) ----- */
.login-card { max-width: 560px; }
/* campo de contraseña con ojo para verla */
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent;
  color: var(--cream-faint); cursor: pointer; display: grid; place-items: center;
  transition: color .2s, background .2s;
}
.pw-toggle svg { width: 20px; height: 20px; overflow: visible; }
.pw-toggle:hover { color: var(--cream); background: rgba(255, 255, 255, 0.05); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.is-on .eye-off { display: block; }
.pw-toggle.is-on .eye-open { display: none; }

/* regla de los susurros: un aviso violeta con las Z de dormir, como en la crónica */
.login-rule {
  display: flex; align-items: center; gap: 14px;
  background: #3B2E6E; border: 1px solid #6A57B0; border-radius: 12px;
  padding: 12px 16px; margin: 0 0 22px;
  font-size: 14px; line-height: 1.5; color: var(--cream);
}
.login-rule p { margin: 0; }
.login-rule b { font-weight: 600; }
/* retrato de grupo del pueblo en la tarjeta de acceso */
.login-crowd {
  display: block; width: 100%; height: auto; aspect-ratio: 820 / 136; object-fit: contain; margin: 4px 0 18px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

/* ----- Dashboard ----- */
.dash { padding-top: 108px; padding-bottom: 56px; }
.dash { display: grid; gap: 22px; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-col { display: grid; gap: 22px; min-width: 0; }
.dash-col > * { min-width: 0; }
.card-block { overflow-wrap: break-word; }

.card-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.block-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.hud-activity { margin: 0; font-size: 14px; color: var(--cream-dim); line-height: 1.55; }

.sheet-text { margin: 0 0 4px; font-size: 13.5px; color: var(--cream-dim); line-height: 1.6; }
.objectives { display: grid; gap: 10px; }
.objective {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.objective .obj-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}
.objective .obj-tag.hoy { color: var(--leaf); border: 1px solid rgba(82, 199, 118, 0.35); }
.objective .obj-tag.semana { color: var(--gold); border: 1px solid rgba(239, 182, 68, 0.35); }
.objective .obj-tag.global { color: var(--sky); border: 1px solid rgba(111, 182, 217, 0.35); }
.objective.is-done { opacity: 0.55; }
.objective.is-done .obj-text { text-decoration: line-through; }


/* ----- Susurros ----- */
.whisper-history {
  display: grid;
  gap: 8px;
  min-height: 56px;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-bottom: 6px;
  padding-right: 4px;
}
.wh-empty { margin: 4px 0; font-size: 13px; color: var(--cream-faint); font-style: italic; }
.wh-bubble {
  /* la etiqueta del día arriba y el texto debajo, a todo el ancho (antes iban en fila y el texto quedaba en una columna estrecha) */
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--leaf);
  border-radius: 0 12px 12px 0;
  padding: 10px 14px 12px;
  font-family: var(--read, inherit);
  font-size: 14.5px;
  color: var(--cream-dim);
  line-height: 1.5;
  animation: rise .3s var(--ease-out) both;
}
.wh-bubble .wh-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid rgba(82, 199, 118, 0.35);
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 1px;
  white-space: nowrap;
}
.wh-bubble.is-pending { border-left-color: var(--gold); }
.wh-bubble.is-pending .wh-day { color: var(--gold); border-color: rgba(239, 182, 68, 0.35); }

/* Susurro absorbido: la burbuja pendiente pasa de dorado a verde con un pulso */
@keyframes absorbPulse {
  0% {
    border-left-color: var(--gold);
    background: rgba(239, 182, 68, 0.12);
    box-shadow: 0 0 0 rgba(82, 199, 118, 0);
    transform: scale(1);
  }
  35% {
    border-left-color: var(--leaf);
    background: rgba(82, 199, 118, 0.18);
    box-shadow: 0 0 28px rgba(82, 199, 118, 0.4);
    transform: scale(1.015);
  }
  100% {
    border-left-color: var(--leaf);
    background: var(--bg-2);
    box-shadow: 0 0 0 rgba(82, 199, 118, 0);
    transform: scale(1);
  }
}
.wh-bubble.just-absorbed { animation: absorbPulse 2s var(--ease-out) both; }

.whisper-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.w-chip {
  font-family: var(--body);
  font-size: 12px;
  color: var(--cream-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .2s;
}
.w-chip:hover { border-color: var(--gold); color: var(--cream); transform: translateY(-1px); }
.whisper-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.whisper-counter { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--cream-faint); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .2s; }
.wc-bar { width: 56px; height: 3px; border-radius: 999px; background: var(--line-strong); overflow: hidden; }
.wc-bar i { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: inherit; transition: width .15s, background .2s; }
.whisper-counter.is-active { color: var(--cream-dim); }
.whisper-counter.is-warn { color: var(--gold); }
.whisper-counter.is-warn .wc-bar i { background: var(--gold); }
.whisper-counter.is-full { color: var(--flesh); }
.whisper-counter.is-full .wc-bar i { background: var(--flesh); }
.whisper-card .field-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cream-faint);
  margin: 8px 0 0;
}
.whisper-card textarea { resize: vertical; }
.whisper-card .btn-primary { max-width: 320px; }

.personal-feed { max-height: 720px; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; scrollbar-width: thin; padding: 0 4px 0 0; }

/* ----- Toasts ----- */
.toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 600;
  display: grid;
  gap: 10px;
}
/* ----- Entrada en la mente (tras iniciar sesión) ----- */
.enter-fx {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(59, 46, 110, 0.55), rgba(8, 20, 12, 0.96) 70%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.enter-fx.is-in { opacity: 1; }
.enter-fx.is-out { opacity: 0; transition-duration: .4s; }
/* velo previo mientras se confirma la sesión: solo las ondas, sin retrato ni nombre */
.enter-fx.is-pre { transition: none; }
.enter-fx.is-pre .enter-doll, .enter-fx.is-pre .enter-kicker, .enter-fx.is-pre .enter-name { animation: none; opacity: 0; }
.enter-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.enter-ring {
  position: absolute; left: 50%; top: 72px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 1.5px solid #B7A6E8;
  translate: -50% -50%; opacity: 0;
  animation: enterRing 2.2s ease-out infinite;
}
.enter-ring.r2 { animation-delay: .55s; }
.enter-ring.r3 { animation-delay: 1.1s; }
@keyframes enterRing { 0% { scale: 0.35; opacity: 0; } 15% { opacity: .75; } 100% { scale: 1.6; opacity: 0; } }
.enter-doll {
  position: relative; width: 144px; height: 144px;
  display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 0 22px rgba(183, 166, 232, 0.55));
  animation: enterDoll .9s var(--ease-out) both, enterFloat 2.4s ease-in-out .9s infinite;
}
.enter-doll img { width: 112px; height: auto; image-rendering: pixelated; }
.enter-doll span { font-family: var(--display); font-size: 56px; color: var(--cream); }
@keyframes enterDoll { from { opacity: 0; scale: 0.6; translate: 0 26px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes enterFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.enter-kicker {
  margin: 14px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #B7A6E8; opacity: 0; animation: enterText .6s var(--ease-out) .35s both;
}
.enter-name {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--cream); opacity: 0; animation: enterText .7s var(--ease-out) .5s both;
}
@keyframes enterText { from { opacity: 0; translate: 0 10px; letter-spacing: 0.06em; } to { opacity: 1; translate: 0 0; } }
.enter-name { animation-name: enterName; }
@keyframes enterName { from { opacity: 0; translate: 0 10px; letter-spacing: 0.08em; } to { opacity: 1; translate: 0 0; letter-spacing: -0.02em; } }
@media (max-width: 480px) { .enter-name { font-size: 34px; } .enter-doll img { width: 96px; } }

.toast {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--leaf);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--cream);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: rise .3s var(--ease-out) both;
  max-width: 340px;
}
.toast.error { border-left-color: var(--flesh); }

/* ----- Lobby ciudadano (registro) ----- */
.login-card textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .2s;
}
.login-card textarea:focus { outline: none; border-color: var(--leaf); }
.switch-link { margin: 16px 0 0; text-align: center; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--body); font-size: 14px; color: var(--cream-dim);
  border-bottom: 1px solid var(--flesh);
  transition: color .2s;
}
.link-btn:hover { color: var(--cream); }

/* ventana de susurros: abierta (duerme) o cuándo se abre */

/* ── Cabecera del personaje ───────────────────────────────── */
.hud-main { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hud-main .mb-avatar { width: 84px; height: 84px; display: grid; place-items: center; }
.hud-main .mb-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.avatar-initial { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--cream-dim); }
.hud-id { min-width: 0; flex: 1 1 260px; }
.hud-id .mb-name { font-size: 24px; }
.hud-vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; flex: 1 1 320px; max-width: 420px; margin-left: auto; }
.hud-now { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hud-now-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 6px; }
.hud-activity { margin: 0; font-size: 15px; color: var(--cream); line-height: 1.55; }
.hud-now .tl-say { margin-top: 10px; }
.hud-now .tl-quote { font-size: 15px; }
.village-strip { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--cream-faint); }

/* ── Bloque de estado del susurro ─────────────────────────── */
.ws {
  display: flex; gap: 16px; align-items: center;
  border-radius: 14px; padding: 16px 18px; margin: 0 0 18px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  transition: background .3s, border-color .3s;
}
.ws-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.ws-ico svg { width: 22px; height: 22px; overflow: visible; }
.ws-ico .wb-zzz { transform: scale(0.85); }
.ws-body { min-width: 0; }
.ws-body b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--cream); margin-bottom: 3px; }
.ws-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cream-dim); }
.ws.is-open { background: #3B2E6E; border-color: #6A57B0; }
.ws.is-open .ws-body p { color: #E4DDF8; }
.ws.is-open .ws-ico { background: rgba(255, 255, 255, 0.1); color: var(--cream); }
.ws.is-sent { background: rgba(82, 199, 118, 0.10); border-color: rgba(82, 199, 118, 0.45); }
.ws.is-sent .ws-ico { color: var(--leaf); background: rgba(82, 199, 118, 0.15); }
.ws.is-closed { background: rgba(239, 182, 68, 0.08); border-color: rgba(239, 182, 68, 0.4); }
.ws.is-closed .ws-ico { color: var(--gold); background: rgba(239, 182, 68, 0.14); }
.ws.is-locked { background: rgba(255, 83, 72, 0.08); border-color: rgba(255, 83, 72, 0.4); }
.ws.is-locked .ws-ico { color: var(--flesh); background: rgba(255, 83, 72, 0.14); }
.whisper-card .mb-section-title { margin-top: 26px; }
.wh-flag { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; align-self: center; }
.wh-flag.is-pending { color: var(--gold); }
.wh-flag.is-absorbed { color: var(--leaf); }

/* Safari (iPhone) toma la base del flex (320 px, 260 px) como ancho mínimo y ensanchaba toda la tarjeta
   más que la pantalla: ni las tarjetas del panel ni lo de dentro de la cabecera pueden pasar del ancho disponible */
.dash-grid > *, .hud-main > * { min-width: 0; }
@media (max-width: 720px) {
  .hud-vitals { max-width: none; margin-left: 0; flex-basis: 100%; }
  .hud-id { flex-basis: 100%; }
  .ws { align-items: flex-start; }
}

/* ── Historia: buscador y filtros ─────────────────────────── */
.hist-tools { display: grid; gap: 10px; margin: -4px 0 10px; }
.hist-searchbox { position: relative; }
.hist-lupa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--cream-faint); pointer-events: none; }
.hist-search {
  width: 100%; font-family: var(--body); font-size: 14px; color: var(--cream);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 44px 11px 42px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.hist-search::-webkit-search-cancel-button { display: none; }
.hist-search:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(82, 199, 118, 0.15); }
.hist-search::placeholder { color: var(--cream-faint); }
.hist-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: transparent; color: var(--cream-faint); cursor: pointer; display: grid; place-items: center;
}
.hist-clear svg { width: 16px; height: 16px; }
.hist-clear:hover { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.hist-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hist-label { flex: none; width: 30px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-faint); }
.hist-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px 0; }
.hist-chips::-webkit-scrollbar { display: none; }
.h-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-size: 12.5px; color: var(--cream-dim);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.h-chip i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--cream-faint); }
.h-chip i:empty { display: none; }
.h-chip s { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 6px var(--leaf); }
.h-chip:hover { border-color: var(--line-strong); color: var(--cream); }
.h-chip.is-on { background: var(--cream); color: var(--bg); border-color: var(--cream); font-weight: 600; }
.h-chip.is-on i { color: rgba(0, 0, 0, 0.55); }
.hist-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.hist-count, .hist-order { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--cream-faint); min-height: 14px; }
.hist-order { white-space: nowrap; }
.hist-dayhead { margin: 6px 0 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); }
.hist-dayhead:first-child { margin-top: 0; }
.feed-wrap { position: relative; }
.feed-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--card)); border-radius: 0 0 12px 12px; }
.personal-feed { padding-bottom: 28px; }
.personal-feed mark { background: rgba(239, 182, 68, 0.28); color: var(--cream); border-radius: 3px; padding: 0 2px; }

/* ── Historia como línea de tiempo ────────────────────────── */
.personal-feed { padding: 4px 8px 28px 0; gap: 0; }
.personal-feed .hist-dayhead { margin: 14px 0 8px 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 58px 18px minmax(0, 1fr); gap: 0 10px; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.tl-item:first-child, .hist-dayhead + .tl-item { border-top: 0; }
.tl-time { font-family: var(--mono); font-size: 11px; color: var(--cream-faint); padding-top: 3px; text-align: right; white-space: nowrap; }
.tl-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin: 5px auto 0; border-radius: 50%; background: var(--card); border: 2px solid var(--cream-faint); box-sizing: border-box; }
.tl-dot.dialogo { border-color: var(--sky); background: var(--sky); }
.tl-dot.viaje { border-color: var(--gold); }
.tl-dot.plan { border-color: var(--leaf); background: var(--leaf); }
.tl-dot.sueno { border-color: #B7A6E8; background: #B7A6E8; }
.tl-body { min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tl-times { font-family: var(--mono); font-size: 10.5px; color: var(--cream-faint); }
.tl-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--cream-dim); }   /* lo que hace: más apagado que lo que dice */
.tl-quote { margin: 0; font-family: var(--read); font-size: 14.5px; line-height: 1.5; color: var(--cream); }
/* lo que dice: bocadillo, como en la crónica del pueblo (azul si habla con alguien) */
.tl-say { margin: 9px 0 0; padding: 8px 13px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.tl-say.is-to { background: rgba(111, 182, 217, 0.10); border-color: rgba(111, 182, 217, 0.3); border-top-left-radius: 4px; }
.tl-say-meta { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-faint); }
.tl-say-meta b { font-weight: 500; color: var(--sky); }
/* su frase, con su avatar y su nombre, como las respuestas */
.tl-own { display: flex; align-items: flex-start; gap: 8px; min-width: 0; margin: 9px 0 0 -32px; }   /* el avatar cuelga a la izquierda y el bocadillo queda alineado con el texto de arriba */
.tl-own .tl-say { flex: 1; min-width: 0; margin-top: 0; }
.tl-own .mini-avatar, .tl-reply .mini-avatar { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.tl-own .mini-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.tl-say-meta b.tl-me { color: var(--cream); }
/* respuestas de los demás debajo de su turno */
.tl-replies { display: grid; gap: 8px; margin: 10px 0 0 11px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.tl-reply { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.tl-reply .mini-avatar { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.tl-reply .mini-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.tl-reply-bubble { min-width: 0; flex: 1; padding: 8px 13px 10px; border-radius: 14px; border-top-left-radius: 4px; background: rgba(239, 182, 68, 0.07); border: 1px solid rgba(239, 182, 68, 0.25); }
.tl-reply-bubble .tl-say-meta b { color: var(--gold); }
.tl-route { margin: 6px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.tl-route span { color: var(--cream-faint); margin: 0 4px; }
.tl-diary summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; color: var(--cream-dim); }
.tl-diary summary::-webkit-details-marker { display: none; }
.tl-more { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-faint); }
.tl-diary details[open] .tl-more { display: none; }
.tl-diary details[open] summary { color: var(--cream); }
.tl-diary .tl-text { margin-top: 8px; font-size: 13.5px; color: var(--cream-dim); }
/* en el móvil, la hora y el punto suben a la línea de la etiqueta («● 17:11 Diálogo») y el texto y el
   bocadillo ocupan todo el ancho (antes la columna de la hora dejaba un hueco grande a la izquierda) */
@media (max-width: 600px) {
  .tl-item { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 8px; align-items: center; padding: 12px 0 14px; }
  .tl-dot { grid-row: 1; grid-column: 1; margin: 0; }
  .tl-time { grid-row: 1; grid-column: 2; padding-top: 0; text-align: left; }
  .tl-body { display: contents; }
  .tl-body > * { grid-column: 1 / -1; }
  .tl-body > .tl-head { grid-row: 1; grid-column: 3; margin-bottom: 0; }
  .tl-own { margin-left: 0; }
}

/* ── Comentarios ──────────────────────────────────────────── */
.fb-card { position: relative; overflow: hidden; display: flex; gap: 18px; align-items: flex-start; padding-top: 28px; }
.fb-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(135deg, var(--gold) 0 12px, #1c1a14 12px 24px); opacity: 0.85; }
.fb-worker { flex: none; width: 72px; display: grid; place-items: end center; padding-top: 6px; position: relative; }
.fb-worker::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -4px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); filter: blur(2px); }
.fb-worker img { width: 64px; height: 80px; image-rendering: pixelated; position: relative; z-index: 1; animation: workerBob 2.4s ease-in-out infinite; }
@keyframes workerBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.fb-body { min-width: 0; flex: 1; }
.fb-body .kicker { margin-bottom: 6px; }
.fb-h { margin: 0 0 6px; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--cream); }
.fb-text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--cream-dim); }
@media (max-width: 400px) { .fb-card { flex-direction: column; } }
.btn-ghost-full {
  display: block; width: 100%; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s;
}
.btn-ghost-full:hover { border-color: var(--cream-faint); background: rgba(255, 255, 255, 0.04); }
.fb-modal { max-width: 520px; padding: 34px 28px 28px; overflow-x: hidden; }
/* el formulario lleva la cinta de obras y el obrero de la antigua tarjeta «¿Algo no funciona?» */
.fb-modal::before, .fb-page::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(135deg, var(--gold) 0 12px, #1c1a14 12px 24px); opacity: 0.85; }
.fb-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 6px; padding-right: 36px; }
.fb-head .fb-worker { width: 64px; }
.fb-head .fb-worker img { width: 56px; height: 70px; }
.fb-head .fb-title { margin-bottom: 4px; }
.fb-title { margin: 6px 0 6px; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--cream); }
.fb-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--cream-dim); }
.fb-form select, .fb-form input, .fb-form textarea {
  width: 100%; font-family: var(--body); font-size: 14.5px; color: var(--cream);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
}
.fb-form select:focus, .fb-form input:focus, .fb-form textarea:focus { outline: none; border-color: var(--leaf); }
.fb-form textarea { resize: vertical; }
.fb-form .btn-primary { margin-top: 4px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* «Conversaciones» en su historia: la misma lista plegable que la del pueblo (estilos .inbox de village.css) */
.hc-list { margin: 0; }
.hc-open { padding: 4px 6px 12px; background: rgba(255, 255, 255, 0.03); border-radius: 0 0 10px 10px; }
.hc-open .th-msgs { margin-top: 4px; }
.hc-more { display: block; margin: 4px auto 8px; padding: 4px 12px; border-radius: 999px; background: none; border: 1px solid var(--line-strong); color: var(--cream-dim); font-family: var(--mono); font-size: 11px; cursor: pointer; }
.hc-more:hover { border-color: var(--gold); color: var(--gold); }
.hc-list .th-msg { max-width: 92%; }
.hc-list .th-msg.is-b { margin-left: auto; flex-direction: row-reverse; }
.hc-list .inbox-row.is-open .inbox-last { display: none; }
/* en la burbuja en columna, la marca («en su mente», «guiando su día») va debajo, a la izquierda */
.wh-bubble .wh-flag { margin-left: 0; align-self: flex-start; }

/* ── Cartas de susurro (Beta 3, cartas.js) ─────────────────── */
.cartas { margin: 4px 0 18px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.cartas-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cartas-title { font-family: var(--mono, monospace); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.cartas-pts { font-size: 13px; color: var(--cream-dim); }
.cartas-sub, .cartas-note { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); }
.ct-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .ct-row { grid-template-columns: 1fr; } }
.ct { --frame: #52C776; position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)); border: 2px solid var(--frame); color: var(--cream); cursor: pointer;
  font: inherit; transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.ct:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.ct:disabled { cursor: default; opacity: .72; }
.ct-r2 { --frame: #FF6B5E; }
.ct-r3 { --frame: #EFB644; box-shadow: 0 0 0 1px rgba(239,182,68,.35), 0 0 18px rgba(239,182,68,.18); }
.ct-r3::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(115deg, transparent 20%, rgba(255,120,200,.55) 35%, rgba(120,220,255,.55) 50%, rgba(255,240,140,.55) 65%, transparent 80%);
  background-size: 250% 250%; animation: ctHolo 5s linear infinite; }
@keyframes ctHolo { from { background-position: 0% 0%; } to { background-position: 250% 250%; } }
@media (prefers-reduced-motion: reduce) { .ct-r3::after { animation: none; } .ct { transition: none; } }
/* la elegida conserva su diseño (sin doble borde): solo sube un poco y lleva la etiqueta sobre el dibujo; las otras se atenúan */
.ct.is-chosen { transform: translateY(-3px); }
.ct-row:has(.ct.is-chosen) .ct:not(.is-chosen) { opacity: .55; }
.ct-row:has(.ct.is-chosen) .ct:not(.is-chosen):hover { opacity: .9; }
.ct-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ct-line { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .04em; color: var(--cream-dim); }
.ct-line svg { width: 15px; height: 15px; color: var(--frame); flex: none; }
.ct-pips { display: inline-flex; gap: 3px; }
.cp-pip { width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #1c1a1e; box-shadow: inset 0 0 0 1.5px var(--frame); }
.ct-art { position: relative; height: 92px; border-radius: 9px; background: #0d1a12 center/cover no-repeat; image-rendering: pixelated; display: grid; place-items: end center; overflow: hidden; }
.ct-art.no-bg { background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.08), transparent 70%), #0d1a12; }
.ct-who { position: relative; display: block; height: 84px; }
.ct-who img { height: 84px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.4)); }
.ct-who.is-mystery img { filter: brightness(0) drop-shadow(0 0 6px rgba(239,182,68,.5)); }
.ct-who.is-mystery b { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font: 700 26px/1 var(--display, sans-serif); color: var(--gold); }
.ct-text { font-size: 14px; line-height: 1.4; min-height: 3.9em; }
.ct-foot { display: flex; justify-content: space-between; font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--frame); }
.ct-badge { position: absolute; top: 46px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--frame); color: #12271A; font-size: 11.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ct-badge svg { width: 12px; height: 12px; }
.cartas-solo { margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--cream); font: inherit; font-size: 13px; cursor: pointer; }
.cartas-solo:hover { border-color: var(--gold); }
.cartas-limit { margin: 12px 0 0; font-size: 12.5px; color: var(--cream-faint); }
.cy { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.cy.is-ok { border-color: rgba(82,199,118,.4); background: rgba(82,199,118,.06); } .cy.is-no { border-color: rgba(255,107,94,.35); } .cy.is-wait { border-color: rgba(239,182,68,.4); }
.cy-kicker { font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-faint); }
.cy-text { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 4px; font-size: 14px; color: var(--cream); }
.cy-text svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); }
.cy-res { margin: 0; font-size: 13px; color: var(--cream-dim); }
.cy.is-ok .cy-res b { color: #52C776; } .cy.is-no .cy-res b { color: #FF6B5E; }
.cy-rev { font-size: 11px; color: var(--cream-faint); }
.cy-quote { margin: 8px 0 0; font-size: 13.5px; font-style: normal; color: var(--cream); }
.cy-quote span { margin-left: 8px; font-family: var(--mono, monospace); font-size: 11px; color: var(--cream-faint); }
.field-hint-live { display: block; margin-top: 2px; color: var(--gold); }

/* ── Beta 3: vitrina de logros (logros.js) ── */
.lg-ico { flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--fam) 18%, transparent); border: 1.5px solid var(--fam); color: var(--fam); }
.lg-ico svg { width: 55%; height: 55%; }
.lg-tier { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #12271A; background: var(--tier); vertical-align: 2px; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lg-card { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.lg-card.is-got { border-color: color-mix(in srgb, var(--fam) 55%, transparent); background: color-mix(in srgb, var(--fam) 7%, transparent); }
.lg-card:not(.is-got) .lg-ico { opacity: .55; }
.lg-body { min-width: 0; flex: 1; }
.lg-name { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.lg-name b { font-size: 14.5px; color: var(--cream); }
.lg-steps { display: inline-flex; gap: 3px; margin-left: 8px; }
.lg-steps i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--tier); }
.lg-steps i.is-on { background: var(--tier); }
.lg-desc { margin: 3px 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--cream-dim); }
.lg-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.lg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--fam); }
.lg-prog { display: block; margin-top: 4px; font-family: var(--mono, monospace); font-size: 11px; color: var(--cream-faint); }
.lg-meta { margin: 4px 0 0; font-size: 11.5px; color: var(--cream-faint); }
.lg-trophy { color: var(--gold); }
.lg-unlock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(6,14,9,.72); backdrop-filter: blur(4px); animation: lgFade .3s ease; }
.lg-unlock-card { width: min(360px, 100%); display: grid; justify-items: center; gap: 10px; padding: 28px 24px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fam) 22%, #12271A), #12271A); border: 2px solid var(--fam); box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: lgPop .5s cubic-bezier(.16,1,.3,1); }
.lg-unlock-kicker { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fam); }
.lg-unlock-name { font-size: 22px; color: var(--cream); }
.lg-unlock-card p { margin: 0; font-size: 14px; color: var(--cream-dim); }
.lg-unlock-more { font-size: 12.5px !important; color: var(--cream-faint) !important; }
@keyframes lgFade { from { opacity: 0; } }
@keyframes lgPop { from { transform: scale(.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lg-unlock, .lg-unlock-card { animation: none; } }

/* ── Beta 3: álbum de cartas (cartas.js) ── */
.ca { margin-top: 12px; }
.ca summary { cursor: pointer; font-size: 13px; color: var(--cream-dim); }
.ca-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.ca-card { --frame: #52C776; position: relative; min-height: 132px; padding: 0; border-radius: 12px; border: 2px solid var(--frame); background: rgba(0,0,0,.2); color: var(--cream); font: inherit; text-align: left; cursor: pointer; perspective: 600px; }
.ca-card.ct-r2 { --frame: #FF6B5E; } .ca-card.ct-r3 { --frame: #EFB644; }
.ca-card.is-off { --frame: rgba(255,255,255,.18); filter: grayscale(1); opacity: .6; cursor: default; }
.ca-front, .ca-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 9px; backface-visibility: hidden; transition: transform .4s ease; }
.ca-back { transform: rotateY(180deg); background: linear-gradient(160deg, color-mix(in srgb, var(--frame) 25%, #12271A), #12271A); border-radius: 10px; }
.ca-card.is-flipped .ca-front { transform: rotateY(-180deg); }
.ca-card.is-flipped .ca-back { transform: rotateY(0); }
.ca-text { font-size: 12px; line-height: 1.35; flex: 1; }
.ca-res { font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--frame); }
.ca-sign { font-family: var(--mono, monospace); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--frame); }
.ca-quote { font-size: 12.5px; line-height: 1.35; flex: 1; }
@media (prefers-reduced-motion: reduce) { .ca-front, .ca-back { transition: none; } }

/* ── Beta 3: «Tu día en vídeo» (video-dia.js) ── */
.vd-ask p, .vd-note { margin: 0 0 10px; font-size: 13.5px; color: var(--cream-dim); }
.vd-note.is-error { color: #FF6B5E; }
.vd-langs { display: flex; gap: 16px; margin-bottom: 12px; font-size: 14px; color: var(--cream); }
.vd-progress { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vd-progress span { padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--cream-faint); border: 1px solid rgba(255,255,255,.1); }
.vd-progress .is-done { color: #52C776; border-color: rgba(82,199,118,.4); }
.vd-progress .is-now { color: var(--gold); border-color: var(--gold); }
.vd-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vd-ready b { color: var(--cream); } .vd-ready span { font-size: 12px; color: var(--cream-faint); }
.vd-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vd-past li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--cream); }
.vd-lang { font-family: var(--mono, monospace); font-size: 10.5px; color: var(--cream-faint); }
.vd-link { margin-left: auto; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; }

/* ════════════════════════════════════════════════════════════
   «EL DIARIO DE SUEÑOS» (Beta 3): estructura del panel con sesión
   cabecera fina + «Ahora mismo» · columna de noches y colección · la noche de hoy · noches anteriores
   ════════════════════════════════════════════════════════════ */
.dream-diary { display: block; padding-top: 96px; --violet: #B7A6E8; --night: rgba(183,166,232,.10); }
.dream-diary ::selection { background: var(--gold); color: #12271A; }
/* cabecera fina */
.d-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
.d-head .hud-main { gap: 14px; flex-wrap: nowrap; }
.d-head .hud-main .mb-avatar { width: 56px; height: 56px; }
.d-head .hud-id .mb-name { font-size: 26px; line-height: 1.05; }
.d-head .hud-id .mb-role { margin: 2px 0 6px; }
.d-head .hud-vitals { max-width: 360px; flex: 0 1 360px; }
.d-head .hud-now { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--card); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.d-head .hud-now-label { margin: 0; color: var(--violet); white-space: nowrap; }
.d-head .hud-activity { flex: 1 1 300px; font-size: 14.5px; }
.d-head .village-strip { grid-column: 1 / -1; margin: 0; }
body.is-night .d-head .hud-now { background: var(--night); }
/* cuerpo: columna del diario + principal */
.d-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 28px; align-items: start; }
.d-side { position: sticky; top: 92px; display: grid; gap: 22px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(244,237,222,.2) transparent; }
.d-side-title { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-faint); }
.d-index { display: grid; gap: 2px; }
.d-index a, .d-collect a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--cream-dim); text-decoration: none; font-size: 14px; }
.d-index a:hover, .d-collect a:hover { background: rgba(244,237,222,.05); color: var(--cream); }
.d-index a.is-now { background: var(--card); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(183,166,232,.45); }
.d-index b, .d-collect b { font: 500 12px var(--mono); color: var(--cream-faint); }
.d-index b.is-ok { color: #52C776; }
.d-collect { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.d-who .sheet-text { font-size: 13.5px; }
.d-side .fb-card { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); }
.d-side .fb-worker img { width: 44px; height: auto; image-rendering: pixelated; }
.d-side .fb-h { font-size: 15px; margin: 0 0 4px; }
.d-side .fb-text { font-size: 12.5px; }
.d-main { display: grid; gap: 40px; min-width: 0; }
.d-h2 { margin: 0 0 14px; font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
/* la noche de hoy */
.tonight { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
body.is-night .tonight { background: linear-gradient(180deg, rgba(183,166,232,.12), var(--card) 240px); border-color: rgba(183,166,232,.32); }
.t-when { margin: 0; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.t-when b { color: inherit; font-weight: 500; }
.t-title { margin: 8px 0 6px; font: 800 clamp(30px, 4.2vw, 46px)/1.04 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.t-sub { margin: 0 0 18px; max-width: 62ch; color: var(--cream-dim); font-size: 15.5px; }
.tonight .ws { margin-bottom: 18px; }
.tonight .cartas { margin: 0 0 18px; padding: 0; background: none; border: 0; }
.cartas.is-sealed .cartas-sub, .cartas.is-sealed .ct-row, .cartas.is-sealed .cartas-solo, .cartas.is-sealed .cartas-note { display: none; }
.tonight #whisper-form { margin-top: 6px; }
.tonight .btn-primary { color: #1A0B09; }
.tonight .btn-primary:disabled { color: rgba(26,11,9,.6); }
/* noches anteriores */
.nights-list { display: grid; gap: 8px; }
.night { border-radius: 16px; background: rgba(244,237,222,.03); border: 1px solid var(--line); }
.night[open] { background: var(--card); }
.night summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.night summary::-webkit-details-marker { display: none; }
.night summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 16px; }
.n-day { font: 700 15px var(--display); color: var(--cream); white-space: nowrap; }
.n-card { display: flex; gap: 8px; align-items: center; min-width: 0; color: var(--cream-dim); font-size: 14px; }
.n-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-card svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.n-res { font: 500 12px var(--mono); white-space: nowrap; color: var(--cream-faint); }
.n-res.is-ok { color: #52C776; } .n-res.is-no { color: #FF8A80; } .n-res.is-wait { color: var(--gold); }
.n-body { display: grid; gap: 14px; padding: 2px 18px 18px; }
.n-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.n-k { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); padding-top: 3px; }
.n-row p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--cream); }
.n-dream { color: #DCD2F7 !important; }
.n-meta { font: 500 11px var(--mono); color: var(--cream-faint); }
.n-quote { margin-top: 6px !important; padding: 8px 12px; border-radius: 10px; background: rgba(82,199,118,.08); color: var(--cream) !important; }
.n-quote span { margin-left: 8px; font: 500 11px var(--mono); color: var(--cream-faint); }
.n-plan { color: var(--cream-dim) !important; }
.n-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--gold); font: 500 13.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.history { scroll-margin-top: 90px; }
.history .hist-tools { margin-top: 4px; }
/* móvil: una columna, el diario lateral al final */
@media (max-width: 900px) {
  .d-body { grid-template-columns: 1fr; gap: 32px; }
  .d-side { position: static; max-height: none; overflow: visible; order: 2; }
  .d-head { grid-template-columns: 1fr; }
  .d-head .hud-vitals { max-width: none; flex: 1 1 auto; }
  .tonight { padding: 20px 16px; border-radius: 20px; overflow-x: clip; }
  .n-row { grid-template-columns: 1fr; gap: 4px; }
  .night summary { grid-template-columns: auto minmax(0, 1fr); }
  .night summary .n-res { grid-column: 2; }
}
@media (max-width: 560px) {
  .dream-diary { padding-top: 84px; }
  .d-head .hud-main { flex-wrap: wrap; }
  .d-head .hud-vitals { flex-basis: 100%; }
}

/* ── El sobre (sobre.js) ── */
.sobre-stage { margin: 0 0 18px; }
.sb-table { position: relative; display: grid; place-items: center; min-height: 470px; perspective: 1400px; }
.sb-pack { position: relative; width: 236px; height: 380px; transform-style: preserve-3d; cursor: grab; filter: drop-shadow(0 22px 26px rgba(0,0,0,.45));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease, cubic-bezier(.16,1,.3,1)); animation: sbFloat 5s ease-in-out infinite; }
@keyframes sbFloat { 50% { translate: 0 -8px; } }
.sb-pack:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.sb-hint { position: absolute; top: -32px; left: 50%; translate: -50% 0; display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 13px; color: var(--cream-dim); }
.sb-hint svg { width: 16px; height: 16px; color: var(--gold); animation: sbNudge 1.6s ease-in-out infinite; }
@keyframes sbNudge { 50% { translate: 6px 0; } }
.sb-top, .sb-body { position: absolute; left: 0; width: 100%; overflow: hidden; }
.sb-top { top: 0; height: 44px; z-index: 2; transform-origin: 0% 100%; transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .7s; touch-action: none; }
.sb-body { top: 44px; bottom: 0; }
.sb-crimp { position: absolute; left: 0; right: 0; height: 30px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1.5px, rgba(0,0,0,.18) 1.5px 3px, transparent 3px 5px), linear-gradient(180deg, #cfd8cf, #8fa496 45%, #e9efe6 70%, #9fb2a4); }
.sb-crimp.is-top { top: 0; -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0/12px 7px repeat-x, linear-gradient(#000, #000) 0 7px/100% 100% no-repeat; mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0/12px 7px repeat-x, linear-gradient(#000, #000) 0 7px/100% 100% no-repeat; }
.sb-crimp.is-bot { bottom: 0; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100%/12px 7px repeat-x, linear-gradient(#000, #000) 0 0/100% calc(100% - 7px) no-repeat; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100%/12px 7px repeat-x, linear-gradient(#000, #000) 0 0/100% calc(100% - 7px) no-repeat; }
.sb-top-print { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; background: linear-gradient(180deg, #174A2A 0 5px, #2F8F4E 5px); }
.sb-top-print::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; border-top: 1.5px dashed rgba(244,237,222,.6); }
.sb-print { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; display: flex; flex-direction: column; align-items: center; padding: 30px 14px 0; text-align: center;
  background:
    linear-gradient(180deg, #2F8F4E 0 6px, #7FD18A 6px 10px, #CFEBC0 10px 14px, #F4EDDE 14px 19px, rgba(244,237,222,.45) 19px 23px, transparent 30px) 0 0/100% 30px no-repeat,
    linear-gradient(0deg, #174A2A 0 9px, #2F8F4E 9px 17px, #7FD18A 17px 21px, #CFEBC0 21px 25px, #F4EDDE 25px 30px, rgba(244,237,222,.45) 30px 34px, transparent 42px) 0 100%/100% 42px no-repeat,
    radial-gradient(ellipse 4px 7px at 20px 18px, #1a1210 70%, transparent 75%) 0 0/46px 52px,
    radial-gradient(ellipse 4px 7px at 42px 44px, #1a1210 70%, transparent 75%) 0 0/46px 52px,
    radial-gradient(130% 80% at 50% 40%, #FF6A5E 0%, #FF5348 45%, #D93A40 100%); }
.sb-brand { font: 700 10.5px var(--mono); letter-spacing: .26em; color: #FFF3D6; }
.sb-label { position: relative; margin-top: 40px; width: 176px; padding: 14px 10px 12px; border-radius: 18px; background: #F4EDDE; color: #12271A; box-shadow: 0 8px 0 rgba(0,0,0,.22); }
.sb-label img { display: block; width: 56px; margin: -44px auto 4px; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.3)); }
.sb-label b { display: block; font: 800 21px/1 var(--display); color: #12271A; }
.sb-label strong { display: block; margin-top: 4px; font: 800 30px/1 var(--display); color: #C8323A; }
.sb-label span { display: block; margin-top: 8px; white-space: nowrap; font: 700 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #12271A; }
.sb-fine { position: absolute; left: 0; right: 0; bottom: 44px; font: 500 9px var(--mono); letter-spacing: .14em; color: rgba(255,243,214,.88); }
.sb-top::after, .sb-body::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.28), transparent 70%), linear-gradient(105deg, transparent 30%, rgba(255,255,255,.14) 45%, transparent 55%), linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, rgba(0,0,0,.42));
  background-size: 100% 100%, 300% 100%, 100% 100%; background-position: 0 0, var(--hx, 40%) 0, 0 0; }
.sb-notch { position: absolute; top: 38px; width: 8px; height: 12px; background: var(--card); z-index: 3; }
.sb-notch.is-l { left: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); } .sb-notch.is-r { right: 0; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.sb-pack.is-torn .sb-top { transform: translate(150px, -110px) rotate(28deg); opacity: 0; }
.sb-pack.is-torn .sb-hint, .sb-pack.is-torn .sb-notch { opacity: 0; transition: opacity .2s; }
.sb-pack.is-torn { animation: sbShake .45s ease-in-out; }
@keyframes sbShake { 20% { rotate: -3deg; } 40% { rotate: 3deg; } 60% { rotate: -2deg; } 80% { rotate: 1deg; } }
.sb-pack.is-gone { transition: transform .8s cubic-bezier(.16,1,.3,1) .1s, opacity .6s .25s; transform: translateY(220px) rotateX(55deg) scale(.8); opacity: 0; pointer-events: none; }
.sb-hand { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sb-card { position: absolute; width: 196px; height: 286px; transform-style: preserve-3d; cursor: pointer; pointer-events: auto; opacity: 0; --x: 0px; --y: 120px; --r: 0deg; --s: .7;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s)); transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .4s; }
.sb-card.is-out { opacity: 1; }
.sb-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 14px; }
.sb-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.sb-card.is-flipped .sb-inner { transform: rotateY(180deg); }
.sb-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sb-back { display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 46%, rgba(239,182,68,.25), transparent 45%), repeating-conic-gradient(from 0deg at 50% 46%, #123a20 0 10deg, #0f3019 10deg 20deg);
  box-shadow: inset 0 0 0 3px #0B1F12, inset 0 0 0 6px rgba(239,182,68,.55), 0 14px 30px rgba(0,0,0,.45); }
.sb-back-logo { width: 74px; height: 37px; border-radius: 0 0 74px 74px; background: radial-gradient(circle at 50% 0, #FF5348 0 30px, #F4EDDE 30px 32px, #7FD18A 32px 34px, #1F6B3A 34px); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.sb-back b { position: absolute; bottom: 18px; font: 700 10px var(--mono); letter-spacing: .24em; color: var(--gold); }
.sb-card.is-epic:not(.is-flipped) .sb-back { animation: sbEpic 1.4s ease-in-out infinite; }
@keyframes sbEpic { 50% { box-shadow: inset 0 0 0 3px #0B1F12, inset 0 0 0 6px var(--gold), 0 0 34px rgba(239,182,68,.65), 0 14px 30px rgba(0,0,0,.45); } }
.sb-front { transform: rotateY(180deg); }
.sb-front .ct { width: 100%; height: 100%; margin: 0; cursor: default; opacity: 1; background: #10261A; box-shadow: 0 18px 36px rgba(0,0,0,.5); }
.sb-front .ct .ct-text { font-size: 13.5px; }
.sb-burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; pointer-events: none; }
.sb-burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; opacity: 0; animation: sbSpark .9s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes sbSpark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
.sb-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; align-items: center; margin-top: 4px; }
.sb-status { font-size: 14px; color: var(--cream-dim); }
.sb-btn { height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--flesh); color: #1A0B09; font: 600 15px var(--sans); white-space: nowrap; cursor: pointer; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.sb-btn:hover { transform: translateY(-2px); } .sb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) {
  .sb-table { min-height: 590px; }
  .sb-card { width: 160px; height: 236px; }
  .sb-front .ct .ct-art { height: 70px; } .sb-front .ct .ct-who, .sb-front .ct .ct-who img { height: 64px; }
  .sb-front .ct .ct-text { font-size: 12px; min-height: 0; }
  .sb-status { flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .sb-pack, .sb-hint svg, .sb-card.is-epic .sb-back { animation: none !important; } .sb-pack, .sb-card, .sb-inner, .sb-top { transition-duration: .01ms !important; } }
/* con el sobre cerrado, la cabecera y el límite de las cartas esperan a que se abra */
.cartas.is-sealed .cartas-head, .cartas.is-sealed .cartas-limit { display: none; }
/* móvil: las tres cartas en carrusel horizontal (la épica asoma a la derecha) */
@media (max-width: 620px) {
  .tonight .ct-row { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0; padding: 4px 2px 12px; scrollbar-width: none; }
  .tonight .ct-row::-webkit-scrollbar { display: none; }
  .tonight .ct-row .ct { flex: 0 0 76%; scroll-snap-align: center; }
}
.d-main > *, .d-body > *, .tonight > *, .tonight .cartas { min-width: 0; }
.dream-diary .btn-primary { color: #1A0B09; }
.dream-diary .btn-primary:disabled { color: rgba(26,11,9,.6); }

/* ════════════════════════════════════════════════════════════
   Repaso final (17-nov): cabecera plegable en el móvil, rótulos en Geist, contraste, coral solo para la acción
   ════════════════════════════════════════════════════════════ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dream-diary { --cream-faint: rgba(244,237,222,.62); accent-color: var(--gold); caret-color: var(--gold); }
/* rótulos: Geist en frase normal; la mono queda para horas, cifras y contadores */
.dream-diary .hud-now-label, .dream-diary .d-side-title, .dream-diary .cartas-title, .dream-diary .n-k, .dream-diary .mb-role, .dream-diary .mb-chip, .dream-diary .cy-kicker {
  font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.dream-diary .hud-now-label { font-size: 13px; font-weight: 600; }
.dream-diary .d-side-title { font-size: 13px; font-weight: 600; color: var(--cream-dim); }
.dream-diary .cartas-title { font-size: 14px; font-weight: 600; }
.dream-diary .n-k { font-size: 13px; font-weight: 500; padding-top: 1px; }
.dream-diary .mb-role { font-size: 14px; }
.dream-diary .mb-chip { font-size: 12.5px; }
.n-res { font-family: var(--sans); font-size: 13px; }
.n-res.is-no { color: var(--cream-dim); }
.n-cell { display: grid; gap: 6px; min-width: 0; }
.n-cell .n-quote { margin-top: 0 !important; }
.d-index b { font-family: var(--sans); font-size: 12.5px; }
/* las cartas que no elegiste, apagadas fuera de la ventana */
.cartas.is-past .ct:not(.is-chosen) { opacity: .45; }
/* holo de la épica sin cortes: una sola pasada que va y vuelve */
.ct-r3::after { background-repeat: no-repeat; background-size: 300% 300%; animation: ctHolo2 6s ease-in-out infinite alternate; }
@keyframes ctHolo2 { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }
/* sobre: sombras con desenfoque y la letra pequeña sobre una franja limpia */
.sb-label { box-shadow: 0 10px 22px rgba(0,0,0,.32), 0 2px 4px rgba(0,0,0,.2); }
.sb-label img { filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.sb-back-logo { box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.sb-fine { left: 50%; right: auto; translate: -50% 0; padding: 4px 10px; border-radius: 999px; background: rgba(23,74,42,.92); color: #F4EDDE; white-space: nowrap; }
.sb-btn.is-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,237,222,.35); }
.sb-btn.is-ghost:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.sb-hand.is-pickable .sb-card.is-flipped { cursor: pointer; }
.sb-hand.is-pickable .sb-card.is-flipped:hover .sb-inner, .sb-hand.is-pickable .sb-card.is-flipped:focus-visible .sb-inner { transform: rotateY(180deg) translateY(-8px); }
.sb-hand.is-pickable .sb-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 16px; }
/* el botón «Su estado» solo existe en el móvil */
.d-state-toggle { display: none; }
@media (max-width: 640px) {
  .d-head { gap: 10px; padding: 8px 0 14px; }
  .d-head .hud-main { flex-wrap: nowrap; align-items: center; }
  .d-head .hud-main .mb-avatar { width: 44px; height: 44px; }
  .d-head .hud-id .mb-name { font-size: 22px; }
  .d-head:not(.is-open) .hud-id .mb-role, .d-head:not(.is-open) .mb-chips, .d-head:not(.is-open) .hud-vitals, .d-head:not(.is-open) .village-strip { display: none; }
  .d-head.is-open .hud-main { flex-wrap: wrap; }
  .d-head.is-open .hud-vitals { flex-basis: 100%; }
  .d-state-toggle { display: inline-flex; align-items: center; gap: 6px; justify-self: start; grid-row: 1; grid-column: 1; margin-left: 58px; margin-top: 30px; padding: 0; border: 0; background: none;
    color: var(--gold); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
  .d-head.is-open .d-state-toggle { grid-row: auto; margin: 0; }
  .d-head .hud-main { grid-row: 1; grid-column: 1; align-self: start; }
  .d-head .hud-now { padding: 10px 12px; gap: 6px 10px; }
  .d-head .hud-activity { font-size: 14px; }
  .nav-title { min-width: 0; }
  .nav-project { white-space: nowrap; }
  .nav-sep { display: none; }
  .nav-project { font-size: 16px; }
  .nav-inner { gap: 10px; }
}

.n-day small { display: block; margin-top: 2px; font: 500 12.5px var(--sans); color: var(--cream-faint); }
.dream-diary .mb-section-title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--cream-dim); }

/* repaso 2: rótulo del susurro y pistas en Geist, sobre más arriba en el móvil, semillas fuera de la marca, coral fuera de los logros */
.dream-diary .field-label { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--cream-dim); }
.dream-diary .whisper-card .field-hint { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.sb-brand { padding: 4px 10px; border-radius: 6px; background: #E5453F; }
.dream-diary .lg-card .lg-ico[style*="#FF6B5E"], .dream-diary [style*="--fam:#FF6B5E"] { --fam: #EFB644 !important; }
.toasts { top: 84px; bottom: auto; }
@media (max-width: 900px) { .n-card span { white-space: normal; overflow: visible; } }
@media (max-width: 640px) {
  .sb-table { min-height: 420px; transition: min-height .4s cubic-bezier(.16,1,.3,1); }
  .sb-table.is-dealt { min-height: 590px; }
  .tonight .t-sub { margin-bottom: 8px; }
}

/* ════════════════════════════════════════════════════════════
   APARTADOS (tabs.js): un apartado a la vista; columna en el escritorio, barra abajo en el móvil
   ════════════════════════════════════════════════════════════ */
.d-pane[hidden] { display: none !important; }
.d-pane { display: grid; gap: 28px; min-width: 0; animation: paneIn .28s cubic-bezier(.16,1,.3,1); }
@keyframes paneIn { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .d-pane { animation: none; } }
.pane-sub { margin: -6px 0 18px; max-width: 62ch; color: var(--cream-dim); font-size: 15px; }
.pane-empty { margin: 0; padding: 22px; border-radius: 16px; border: 1px dashed var(--line); color: var(--cream-dim); }
.d-side { gap: 0; }
.d-tabs { display: grid; gap: 4px; }
.d-tab { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px;
  background: none; color: var(--cream-dim); font: 500 15px var(--sans); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.d-tab svg { width: 20px; height: 20px; }
.d-tab:hover { background: rgba(244,237,222,.05); color: var(--cream); }
.d-tab.is-on { background: var(--card); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244,237,222,.12); }
.d-tab.is-on svg { color: var(--gold); }
.d-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.d-tab-badge { font: 500 12px var(--mono); color: var(--cream-faint); font-variant-numeric: tabular-nums; }
.d-tab-badge:empty { display: none; }
.d-tab-badge.is-live { color: var(--violet); }
/* «Susurrar»: la etiqueta («abre a las 21:00», «abierta hasta las 9:00», «hecho») va debajo, como subtítulo */
@media (min-width: 901px) { #tab-noche .d-tab-badge { grid-column: 2 / 4; grid-row: 2; margin-top: -10px; font-size: 11.5px; white-space: nowrap; } }
/* Colección: cuatro cifras arriba */
.d-collect { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.d-collect a { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.d-collect a b { font: 800 26px/1 var(--display); color: var(--cream); }
.d-collect a span { font-size: 13px; color: var(--cream-dim); }
/* Su ficha */
.d-ficha { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 900px; gap: 28px; align-items: start; }
.d-ficha .d-who { display: grid; gap: 10px; }
.d-ficha .sheet-text { font-size: 15.5px; line-height: 1.6; }
.d-ficha .fb-card { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--card); }
.d-ficha .fb-worker img { width: 48px; height: auto; image-rendering: pixelated; }
.d-ficha .fb-h { font-size: 16px; margin: 0 0 4px; }
.d-ficha .fb-text { font-size: 13px; }
.d-main > .d-pane > .tonight { margin: 0; }
@media (max-width: 900px) {
  .d-ficha { grid-template-columns: 1fr; }
  .d-collect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* la barra de abajo, como en una app */
  .d-side { position: fixed; z-index: 400; left: 0; right: 0; bottom: 0; top: auto; order: 0; max-height: none; overflow: visible; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(13,30,20,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .d-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .d-tab { grid-template-columns: 1fr; justify-items: center; gap: 3px; padding: 7px 2px 6px; font-size: 11.5px; text-align: center; position: relative; }
  .d-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .d-tab.is-on { background: none; box-shadow: none; color: var(--cream); }
  .d-tab.is-on::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .d-tab-badge { display: none; }
  .d-tab-badge.is-live:not(:empty) { display: block; position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--violet); font-size: 0; }
  body:has(.dream-diary:not([hidden])) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toasts { top: 76px; }
}
/* la entrada del panel no debe dejar un transform puesto: rompería la barra fija de abajo */
#dash-view.is-in { animation-fill-mode: backwards; }
.d-pane { grid-template-columns: minmax(0, 1fr); }

/* ════════════════════════════════════════════════════════════
   MENÚ DE 8 APARTADOS · «En el pueblo» · «Estadísticas»
   ════════════════════════════════════════════════════════════ */
.d-tab-group { margin: 16px 14px 4px; font: 600 12.5px var(--sans); color: var(--cream-faint); }
.d-tab-group:first-child { margin-top: 0; }
.d-tab-more { display: none; }
/* en «En el pueblo» la franja «Ahora mismo» de la cabecera sobra: el apartado entero es eso */
body[data-tab="pueblo"] .d-head .hud-now { display: none; }

/* En el pueblo */
.pb-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 340px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.pb-scene { position: relative; background: var(--bg, none) center 60% / cover no-repeat, linear-gradient(180deg, #1d3d2a, #12271A); image-rendering: pixelated; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 16px 22px; }
.pb-hero.is-home .pb-scene { background: radial-gradient(120% 90% at 50% 100%, rgba(239,182,68,.18), transparent 60%), linear-gradient(180deg, #1d3d2a, #12271A); }
.pb-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, var(--card)); pointer-events: none; }
.pb-doll { position: relative; z-index: 1; height: 92px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.pb-doll.is-me { height: 128px; order: 0; }
.pb-info { display: grid; align-content: center; gap: 14px; padding: 28px 30px; min-width: 0; }
.pb-where { margin: 0; font: 800 clamp(26px, 3.2vw, 38px)/1.08 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.pb-where b { color: var(--gold); font-weight: 800; }
.pb-doing { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cream); }
.pb-say { margin: 0; }
.pb-with { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 13.5px; color: var(--cream-dim); }
.pb-with > span:first-child { width: 100%; font-weight: 600; }
.pb-with.is-alone { color: var(--cream-faint); }
.pb-who { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(244,237,222,.06); color: var(--cream); }
.pb-who img { width: 22px; height: 22px; object-fit: contain; object-position: top; image-rendering: pixelated; }
.pb-live { justify-self: start; display: inline-flex; gap: 8px; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--flesh); color: #1A0B09; font: 600 15px var(--sans); text-decoration: none; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.pb-live:hover { transform: translateY(-2px); }
.pb-live svg { width: 16px; height: 16px; }
.pb-strip { margin: 0; font: 500 12px/1.5 var(--mono); color: var(--cream-faint); }
.pb-today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pb-more { color: var(--gold); font-size: 14px; text-underline-offset: 3px; }
.pb-plan { margin: 0 0 16px; padding: 16px 18px; border-radius: 16px; background: rgba(183,166,232,.08); border: 1px solid rgba(183,166,232,.25); }
.pb-k { display: block; margin-bottom: 6px; font: 600 13px var(--sans); color: var(--violet); }
.pb-plan p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cream); }
.pb-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.pb-row { display: grid; grid-template-columns: 52px 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 8px; border-radius: 12px; }
.pb-row:hover { background: rgba(244,237,222,.03); }
.pb-time { font: 500 12.5px var(--mono); color: var(--cream-faint); padding-top: 4px; text-align: right; }
.pb-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,237,222,.06); color: var(--cream-dim); }
.pb-ico svg { width: 15px; height: 15px; }
.pb-row.is-dialogo .pb-ico { color: #6FB6D9; background: rgba(111,182,217,.12); }
.pb-row.is-viaje .pb-ico { color: var(--gold); background: rgba(239,182,68,.12); }
.pb-row-body p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cream-dim); }
.pb-row-body p + p { margin-top: 4px; }
.pb-row-body .pb-q { color: var(--cream); }
.pb-q span { color: var(--cream-faint); font-size: 13px; }
.pb-route { font: 500 12.5px var(--mono) !important; color: var(--cream-faint) !important; }

/* Estadísticas */
.cf-h1 { margin-bottom: 0; }
.cf-group { display: grid; gap: 4px; }
.cf-group .d-h2 { font-size: 21px; margin-bottom: 4px; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.cf-card { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.cf-big { margin: 0; font: 800 38px/1 var(--display); letter-spacing: -.02em; color: var(--cream); font-variant-numeric: tabular-nums; }
.cf-big small { font-size: 20px; color: var(--cream-faint); margin-left: 2px; }
.cf-title { margin: 4px 0 0; font: 600 15px var(--sans); color: var(--cream); }
.cf-say { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); }
.cf-meter { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(244,237,222,.1); overflow: hidden; }
.cf-meter i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.cf-friends { margin-top: 12px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.cf-friends ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.cf-friends li { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cf-rank { font: 600 13px var(--mono); color: var(--cream-faint); }
.cf-friends img { width: 34px; height: 34px; object-fit: contain; object-position: top; image-rendering: pixelated; }
.cf-friends b { font-weight: 600; } .cf-friends li > span:last-child { font-size: 13px; color: var(--cream-dim); }

@media (max-width: 900px) {
  .pb-hero { grid-template-columns: 1fr; min-height: 0; }
  .pb-scene { min-height: 190px; }
  .pb-scene::after { background: linear-gradient(180deg, transparent 70%, var(--card)); }
  .pb-info { padding: 18px 18px 22px; }
  .pb-row { grid-template-columns: 44px 28px minmax(0, 1fr); gap: 8px; padding: 10px 2px; }
  .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-big { font-size: 32px; }
  /* barra de abajo: cuatro apartados y «Más» */
  .d-tab-group { display: none; }
  .d-tab.is-more { display: none; }
  .d-tab-more { display: grid; }
  .d-tab-more.is-on { color: var(--cream); }
  .d-tab-more.is-on::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .d-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
  /* la hoja de «Más»: los otros cuatro apartados, encima de la barra */
  .d-tabs.is-more-open .d-tab.is-more { display: grid; grid-column: 1 / -1; order: -1; grid-template-columns: 22px minmax(0, 1fr) auto; justify-items: start; gap: 12px; font-size: 15px; padding: 14px 16px; text-align: left; border-radius: 12px; }
  .d-tabs.is-more-open { padding-top: 10px; }
  .d-tabs.is-more-open .d-tab.is-more .d-tab-badge { display: block; font-size: 12px; position: static; width: auto; height: auto; background: none; }
  .d-tabs.is-more-open .d-tab.is-more.is-on::before { display: none; }
  .d-tabs.is-more-open .d-tab.is-more.is-on { color: var(--gold); }
}
#cifras-box { display: grid; gap: 30px; }
#pueblo-box { display: grid; gap: 32px; }
@media (max-width: 900px) { .pb-doll.is-me { height: 104px; } .pb-doll { height: 76px; } }
/* «¿Algo no funciona?» al final del menú, separado de los apartados */
.d-tab-fb { margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 16px; color: var(--cream-faint); }
.d-tab-fb:hover { color: var(--cream); }
@media (max-width: 900px) { .d-tabs.is-more-open .d-tab-fb { margin-top: 0; border-top: 1px solid var(--line); border-radius: 0; } }

/* textos cortos para la barra de abajo del móvil («Ahora mismo» → «Ahora») */
.d-tab .t-short { display: none; }
@media (max-width: 900px) { .d-tab .t-long { display: none; } .d-tab .t-short { display: inline; } }

/* ── «Ahora mismo» en directo (pueblo.js → liveFeed): quién habla, a quién y qué le contestan ── */
.lv-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: #FF5348; vertical-align: 4px; animation: lvPulse 1.6s ease-in-out infinite; }
@keyframes lvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lv-dot { animation: none; } }
.lv-sub { margin: 2px 0 16px; }
details.pb-plan summary { cursor: pointer; list-style: none; margin: 0; }
details.pb-plan summary::-webkit-details-marker { display: none; }
details.pb-plan summary::after { content: '+'; float: right; font: 500 16px var(--mono); color: var(--violet); }
details.pb-plan[open] summary::after { content: '−'; }
details.pb-plan[open] summary { margin-bottom: 8px; }
.lv-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.lv-item { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(244,237,222,.03); border: 1px solid var(--line); }
.lv-item.is-me { background: rgba(239,182,68,.06); border-color: rgba(239,182,68,.28); }
.lv-item.is-tome { background: rgba(111,182,217,.07); border-color: rgba(111,182,217,.32); }
.lv-item.is-room { background: transparent; }
.lv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.lv-face { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; object-position: top; image-rendering: pixelated; background: rgba(0,0,0,.25); }
.lv-name { font: 700 15px var(--display); color: var(--cream); }
.lv-item.is-me .lv-name { color: var(--gold); }
.lv-to { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; color: var(--cream-faint); }
.lv-arrow { color: var(--cream-faint); }
.lv-to-who { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: rgba(244,237,222,.07); color: var(--cream); font-size: 13px; }
.lv-to-who img { width: 20px; height: 20px; object-fit: contain; object-position: top; image-rendering: pixelated; }
.lv-to-who.is-me { background: rgba(111,182,217,.18); color: #9fd3ec; font-weight: 600; }
.lv-phone { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 11.5px; color: var(--cream-dim); }
.lv-time { margin-left: auto; font: 500 12.5px var(--mono); color: var(--cream-faint); }
.lv-bubble { margin: 0; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: rgba(0,0,0,.22); font-size: 15px; line-height: 1.55; color: var(--cream); }
.lv-item.is-me .lv-bubble { background: rgba(239,182,68,.1); }
.lv-item.is-tome .lv-bubble { background: rgba(111,182,217,.12); }
.lv-act { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lv-act.is-open { display: block; }
.lv-item.has-say .lv-act { font-size: 13px; color: var(--cream-faint); }
.lv-act:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.lv-route { margin: 0; font: 500 12.5px var(--mono); color: var(--gold); }
.pb-talk > span:first-child { color: #9fd3ec; }
@media (max-width: 900px) { .lv-item { padding: 10px 12px; } .lv-bubble { font-size: 14.5px; } }
.lv-place { font-family: var(--sans); font-size: 12.5px; }

/* «¿Algo no funciona?» como apartado (#fb): la misma tarjeta con la cinta de obras, ya sin ventana emergente */
.fb-page { position: relative; overflow: hidden; max-width: 620px; padding: 34px 28px 28px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-strong); }
.fb-page .fb-head { padding-right: 0; }
@media (max-width: 900px) { .fb-page { padding: 30px 18px 22px; border-radius: 18px; } }

/* Beta 3: la carta llave de la candidatura y el aviso del vídeo tras susurrar */
.ct.is-key { box-shadow: 0 0 0 2px rgba(239,182,68,.0), 0 10px 26px rgba(0,0,0,.35); }
.cartas-key { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: rgba(239,182,68,.08); border: 1px solid rgba(239,182,68,.4); }
.cartas-key.is-picked { background: rgba(82,199,118,.08); border-color: rgba(82,199,118,.45); }
.ck-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,182,68,.16); color: var(--gold); }
.cartas-key.is-picked .ck-ico { background: rgba(82,199,118,.16); color: #52C776; }
.ck-ico svg { width: 18px; height: 18px; }
.cartas-key b { display: block; font: 700 15px var(--display); color: var(--cream); }
.cartas-key p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cream-dim); }
.vd-cta { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(183,166,232,.08); border: 1px solid rgba(183,166,232,.4); }
.vd-cta[hidden] { display: none; }
.vd-cta-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(183,166,232,.16); color: var(--violet); }
.vd-cta-ico svg { width: 20px; height: 20px; }
.vd-cta b { display: block; font: 700 15.5px var(--display); color: var(--cream); }
.vd-cta p { margin: 3px 0 0; font-size: 13.5px; color: var(--cream-dim); }
.vd-cta-btn { margin-left: auto; flex: none; padding: 10px 18px; border-radius: 999px; background: var(--violet); color: #1a1430; font: 700 14px var(--display); text-decoration: none; }
@media (max-width: 640px) { .vd-cta { flex-wrap: wrap; } .vd-cta-btn { margin-left: 54px; } }

/* ═══ Beta 3 · carta coleccionable (cartas.js → cardHTML, clase .tcg) ═══
   Diseño de Front/beta3/propuestas-cartas-4.html. Todo se mide en cqw (ancho de la carta), así vale igual en la fila,
   dentro del sobre (sobre.js) y en el móvil. Marco = dificultad; cuerpo = línea. */
.ct.tcg { --rim: #3fae68; --rim-hi: #9be3b1; --el: #2f8a55; --el-2: #17432d;
  container-type: inline-size; display: block; position: relative; padding: 9px; border: 0; border-radius: 16px; text-align: left; color: #1c1a15;
  background: linear-gradient(150deg, var(--rim-hi), var(--rim) 40%, var(--rim) 60%, var(--rim-hi)); box-shadow: 0 10px 24px rgba(0,0,0,.35); overflow: hidden; gap: 0; }
.ct.tcg.ct-r2 { --rim: #e0604f; --rim-hi: #ffc0b3; }
.ct.tcg.ct-r3 { --rim: #d9a11f; --rim-hi: #fff0b0; }
.ct.tcg.l-elecciones { --el: #2f8a55; --el-2: #17432d; }
.ct.tcg.l-culebron { --el: #8a45ad; --el-2: #3b1650; }
.ct.tcg.l-corazon { --el: #c94468; --el-2: #5c1426; }
.ct.tcg.l-contrapelo { --el: #c4721f; --el-2: #5a3008; }
.ct.tcg.l-evento { --el: #b4861a; --el-2: #5e430a; }
.ct.tcg:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.42); }
.ct.tcg::after { display: none; }   /* el brillo antiguo de la épica */
.tc-in { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 2.6cqw; height: 100%; padding: 3.3cqw 4cqw 3.6cqw; border-radius: 3.4cqw;
  background: linear-gradient(180deg, color-mix(in srgb, var(--el) 30%, #fff8e8) 0%, color-mix(in srgb, var(--el) 52%, #f3ead3) 100%); }
.tc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3cqw; margin-bottom: 1.6cqw; }
.tc-kind { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 max(9px, 3.5cqw) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--el-2); }
.tc-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 max(14px, 7.4cqw)/1.05 var(--display); letter-spacing: -.02em; color: #15130f; }
.tc-pts { display: flex; align-items: center; gap: 2cqw; }
.tc-pts small { font: 700 max(8px, 3.6cqw) var(--mono); color: #5d574a; }
.tc-pts b { font: 800 max(16px, 9.6cqw)/1 var(--display); color: #15130f; }
.tc-el { width: max(18px, 9.6cqw); height: max(18px, 9.6cqw); border-radius: 50%; display: grid; place-items: center; background: var(--el); color: #fff; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.35); }
.tc-el svg { width: 58%; height: 58%; }
.tc-art { position: relative; display: grid; place-items: end center; aspect-ratio: 2 / 1; border-radius: 1.6cqw; overflow: hidden; background: #0d1a12 center 60% / cover no-repeat; image-rendering: pixelated;
  box-shadow: 0 0 0 1.1cqw #fff8e8, 0 0 0 1.9cqw color-mix(in srgb, var(--el) 60%, #000), 0 4px 10px rgba(0,0,0,.25); }
.tc-art.no-bg { background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.1), transparent 70%), #0d1a12; }
.tc-who { position: relative; display: block; height: 88%; }
.tc-who img { height: 100%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 5px 0 rgba(0,0,0,.4)); }
.tc-who.is-mystery img { filter: brightness(0) drop-shadow(0 0 6px rgba(239,182,68,.55)); }
.tc-who.is-mystery b { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); font: 800 max(18px, 11cqw)/1 var(--display); color: var(--gold); text-shadow: 0 2px 0 #000; }
.tc-strip { display: flex; justify-content: space-between; gap: 3cqw; padding: 1cqw 3cqw; border-radius: 1.2cqw; background: color-mix(in srgb, var(--el) 70%, #1b1b1b); color: #fff; font: 600 max(9.5px, 3.9cqw) var(--body); }
.tc-strip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-move { align-self: start; padding: 3cqw 3.7cqw 3.3cqw; border-radius: 3.7cqw; background: rgba(255,252,243,.82); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 2px 0 rgba(0,0,0,.08); }
.tc-move-h { display: flex; align-items: center; gap: 2.4cqw; margin-bottom: 1.4cqw; font: 800 max(12px, 5.4cqw) var(--display); color: #15130f; }
.tc-move-h svg { width: max(13px, 5.9cqw); height: max(13px, 5.9cqw); color: var(--el); flex: none; }
.tc-text { display: block; font: 500 max(12px, 5.1cqw)/1.38 var(--body); color: #24211a; }
.tc-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3cqw; padding-top: 2.2cqw; border-top: 1px solid rgba(0,0,0,.18);
  font: 700 max(8.5px, 3.5cqw) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--el-2); }
.tc-set { justify-self: end; }
.tc-brand { width: max(18px, 8.9cqw); height: max(14px, 7cqw); background: var(--el-2); opacity: .85;
  -webkit-mask: url('../assets/beta3/marca/sandia-icon-mono.png') center / contain no-repeat; mask: url('../assets/beta3/marca/sandia-icon-mono.png') center / contain no-repeat; }
/* la difícil: oro con un brillo holográfico suave */
.ct.tcg.ct-r3 { background: linear-gradient(135deg, #fff0b8, #e0ad35 22%, #f3b6d8 38%, #b9e9f5 50%, #c8901c 66%, #f6d77a 82%, #fff0b8); background-size: 220% 220%; animation: tcIris 8s ease-in-out infinite alternate; }
.ct.tcg.ct-r3::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; animation: tcSweep 3.5s ease-in-out infinite; }
.ct.tcg.ct-r3 .tc-in { background: linear-gradient(180deg, #fff4cf 0%, #f2d78c 100%); }
.ct.tcg.ct-r3 .tc-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: color-dodge; opacity: .58;
  background: linear-gradient(115deg, transparent 12%, rgba(255,130,205,.7) 30%, rgba(130,220,255,.7) 45%, rgba(170,255,160,.6) 58%, rgba(255,240,150,.7) 70%, transparent 88%);
  background-size: 240% 240%; animation: tcIris 7s ease-in-out infinite alternate; }
.ct.tcg.ct-r3 .tc-in::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: overlay; opacity: .55;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.6px); background-size: 44px 52px; background-position: 9px 13px; animation: tcTwinkle 3s ease-in-out infinite alternate; }
.ct.tcg.ct-r3 .tc-head, .ct.tcg.ct-r3 .tc-foot, .ct.tcg.ct-r3 .tc-strip, .ct.tcg.ct-r3 .tc-art, .ct.tcg.ct-r3 .tc-move { position: relative; z-index: 3; }
.ct.tcg.ct-r3 .tc-art::after { content: ''; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .4; pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,120,200,.7) 32%, rgba(120,220,255,.7) 46%, rgba(255,240,140,.7) 60%, transparent 76%); background-size: 260% 260%; animation: tcIris 7s ease-in-out infinite alternate; }
.ct.tcg.ct-r3 .tc-kind, .ct.tcg.ct-r3 .tc-foot { color: #7a4f05; }
.ct.tcg.ct-r3 .tc-strip { background: linear-gradient(90deg, #b9840f, #dcab3a, #b9840f); color: #241703; }
.ct.tcg.ct-r3 .tc-brand { background: #9a6a0c; }
@keyframes tcIris { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes tcSweep { 0%, 35% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
@keyframes tcTwinkle { from { opacity: .3; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .ct.tcg.ct-r3, .ct.tcg.ct-r3::before, .ct.tcg.ct-r3 .tc-in::after, .ct.tcg.ct-r3 .tc-in::before, .ct.tcg.ct-r3 .tc-art::after { animation: none; } .ct.tcg.ct-r3::before { opacity: 0; } }
/* la fila de cada noche: tres cartas; en el móvil, una debajo de otra sin pasar de 320 px */
.ct-row { align-items: start; }
@media (max-width: 620px) { .ct-row .ct.tcg { max-width: 320px; width: 100%; margin: 0 auto; } }
.ct.tcg .ct-badge { top: 26%; right: 18px; z-index: 5; }
.ct.tcg:disabled { opacity: .85; }
/* dentro del sobre: la cara ocupa toda la carta */
.sb-front .ct.tcg { height: 100%; padding: 7px; border-radius: 14px; }
.sb-front .ct.tcg .tc-in { gap: 2cqw; }
.sb-front .ct.tcg .tc-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* dorso de las cartas del sobre: como el sobre, pulpa con pepitas y la piel de la sandía alrededor (propuestas-cartas-4) */
.sb-back { background: #174A2A !important; box-shadow: 0 14px 30px rgba(0,0,0,.45) !important; }
.sb-back .sv-pulp { position: absolute; inset: 9%; border-radius: 8px;
  box-shadow: 0 0 0 4px #F4EDDE, 0 0 0 7px #CFEBC0, 0 0 0 10px #7FD18A, 0 0 0 14px #2F8F4E, inset 0 0 28px rgba(120,10,20,.35);
  background:
    radial-gradient(ellipse 4px 7px at 20px 18px, #1a1210 70%, transparent 75%) 0 0/46px 52px,
    radial-gradient(ellipse 4px 7px at 42px 44px, #1a1210 70%, transparent 75%) 0 0/46px 52px,
    radial-gradient(130% 80% at 50% 40%, #FF6A5E 0%, #FF5348 45%, #D93A40 100%); }
.sb-back .sv-label { position: relative; z-index: 2; width: 76%; padding: 14px 8px 11px; border-radius: 16px; background: #F4EDDE; color: #12271A; text-align: center; box-shadow: 0 10px 22px rgba(0,0,0,.32), 0 2px 4px rgba(0,0,0,.2); }
.sb-back .sv-label img { display: block; width: 58px; margin: -42px auto 4px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.sb-back .sv-label b { position: static; display: block; font: 800 18px/1 var(--display); letter-spacing: normal; color: #12271A; }
.sb-back .sv-label strong { display: block; margin-top: 2px; font: 800 24px/1 var(--display); color: #C8323A; }
.sb-back .sv-label span { display: block; margin-top: 7px; font: 700 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #2F8F4E; }
@media (max-width: 640px) { .sb-back .sv-label b { font-size: 15px; } .sb-back .sv-label strong { font-size: 20px; } .sb-back .sv-label img { width: 46px; margin-top: -34px; } }

/* el sobre: cartas algo más grandes para la cara nueva, y letra ajustada a ese tamaño (con el dibujo sin encoger) */
.sb-card { width: 212px; height: 296px; }
@media (max-width: 640px) { .sb-card { width: 168px; height: 236px; } }
.sb-front .ct.tcg .tc-in { grid-template-rows: auto auto auto minmax(0, 1fr) auto; padding: 7px 8px 7px; gap: 5px; }
.sb-front .ct.tcg .tc-art { min-height: 0; flex: none; }
.sb-front .ct.tcg .tc-head { margin-bottom: 2px; }
.sb-front .ct.tcg .tc-kind { font-size: 7.5px; }
.sb-front .ct.tcg .tc-name { font-size: 14px; }
.sb-front .ct.tcg .tc-pts b { font-size: 17px; } .sb-front .ct.tcg .tc-pts small { font-size: 7px; }
.sb-front .ct.tcg .tc-el { width: 18px; height: 18px; }
.sb-front .ct.tcg .tc-strip { font-size: 8.5px; padding: 2px 6px; }
.sb-front .ct.tcg .tc-move { padding: 5px 7px 6px; overflow: hidden; }
.sb-front .ct.tcg .tc-move-h { font-size: 10.5px; margin-bottom: 2px; }
.sb-front .ct.tcg .tc-move-h svg { width: 11px; height: 11px; }
.sb-front .ct.tcg .tc-text { font-size: 10.5px; line-height: 1.32; -webkit-line-clamp: 3; }
.sb-front .ct.tcg .tc-foot { font-size: 7px; padding-top: 4px; }
.sb-front .ct.tcg .tc-brand { width: 15px; height: 12px; }
@media (max-width: 640px) {
  .sb-front .ct.tcg .tc-name { font-size: 12px; } .sb-front .ct.tcg .tc-text { font-size: 9.5px; -webkit-line-clamp: 3; }
  .sb-front .ct.tcg .tc-strip { font-size: 7.5px; } .sb-front .ct.tcg .tc-move-h { font-size: 9.5px; }
}

/* móvil: las tres cartas en carrusel con la del medio centrada y un trozo de las otras dos a cada lado;
   abajo, tres puntos que dicen cuál se ve (cartas.js → peekRow) */
@media (max-width: 620px) {
  .tonight .ct-row { gap: 12px; padding: 6px 13% 10px; scroll-padding: 0 13%; }
  .tonight .ct-row .ct.tcg { flex: 0 0 100%; max-width: none; margin: 0; transition: transform .25s ease, opacity .25s ease; }
  .tonight .ct-row .ct.tcg:not(.is-center) { transform: scale(.92); opacity: .7; }
  .ct-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 6px; }
  .ct-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(244,237,222,.25); cursor: pointer; }
  .ct-dots button.is-on { width: 20px; border-radius: 999px; background: var(--gold); }
}
@media (min-width: 621px) { .ct-dots { display: none; } }

/* el navegador del móvil agranda solo el texto de bloques anchos (font boosting): en las cartas, tamaño fijo */
.ct.tcg, .ct.tcg * { -webkit-text-size-adjust: none; text-size-adjust: none; max-height: 999999px; }

/* ═══ Sobre (propuesta 21-nov): luz al rasgar, cartas que salen de la boca del sobre, abanico, y la elegida que vuela al centro ═══ */
.sb-light { position: absolute; left: 50%; top: 40px; width: 340px; height: 260px; margin-left: -170px; transform: translateY(-100%); pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(255,246,214,.95), rgba(255,214,120,.45) 35%, transparent 70%),
    repeating-conic-gradient(from 180deg at 50% 100%, rgba(255,240,190,.35) 0 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(ellipse 60% 100% at 50% 100%, #000 40%, transparent 75%); mask: radial-gradient(ellipse 60% 100% at 50% 100%, #000 40%, transparent 75%);
  opacity: 0; animation: sbLight 1.3s ease-out forwards; }
@keyframes sbLight { 0% { opacity: 0; transform: translateY(-100%) scaleY(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-100%) scaleY(1.15); } }
.sb-card.is-rising { transition: transform .55s cubic-bezier(.2,.9,.25,1.15), opacity .25s; }
.sb-card { transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .3s, filter .4s; }
/* la difícil al girarla: un anillo dorado que se abre */
.sb-card.is-shine::after { content: ''; position: absolute; inset: -6px; border-radius: 20px; pointer-events: none; border: 3px solid rgba(255,222,140,.9);
  box-shadow: 0 0 30px rgba(239,182,68,.7); animation: sbRing 1.2s ease-out forwards; }
@keyframes sbRing { from { opacity: 1; transform: scale(.95); } to { opacity: 0; transform: scale(1.18); } }
/* elegir: la elegida al centro y más grande; las otras caen y se apagan */
.sb-hand.is-choosing .sb-card.is-picked { --x: 0px !important; --y: -10px !important; --r: 0deg !important; --s: 1.14 !important; z-index: 5; }
.sb-hand.is-choosing .sb-card:not(.is-picked) { --y: 160px !important; --s: .7 !important; opacity: 0; filter: blur(2px); }
.sb-hand.is-choosing .sb-card.is-picked .sb-inner { box-shadow: 0 0 0 3px rgba(239,182,68,.85), 0 24px 50px rgba(0,0,0,.55); border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .sb-light, .sb-card.is-shine::after { animation: none; opacity: 0; } }

/* la fila con una carta elegida (ordenador): la elegida en el centro, más grande y con borde de luz; las otras, pequeñas y atenuadas a los lados */
@media (min-width: 621px) {
  .ct-row:has(.ct.is-chosen) { display: flex; justify-content: center; align-items: center; gap: 0; padding: 14px 0 18px; }
  .ct-row:has(.ct.is-chosen) .ct.tcg { flex: 0 0 32%; transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s, box-shadow .3s; }
  .ct-row:has(.ct.is-chosen) .ct.tcg:not(.is-chosen) { transform: scale(.82); opacity: .5; z-index: 0; margin: 0 -2.5%; }
  .ct-row:has(.ct.is-chosen) .ct.tcg:not(.is-chosen):hover { opacity: .85; transform: scale(.86); }
  .ct-row:has(.ct.is-chosen) .ct.tcg.is-chosen { transform: scale(1.05); z-index: 2; box-shadow: 0 0 0 3px rgba(239,182,68,.85), 0 22px 44px rgba(0,0,0,.5); }
}
/* en el móvil la elegida queda en el centro del carrusel con el mismo borde de luz */
@media (max-width: 620px) { .tonight .ct-row .ct.tcg.is-chosen { box-shadow: 0 0 0 3px rgba(239,182,68,.85), 0 16px 34px rgba(0,0,0,.5); } }

/* mientras salen, las cartas van DETRÁS del sobre (asoman por la boca); cuando el sobre se va, quedan delante */
.sb-table.is-dealt .sb-pack:not(.is-gone) { z-index: 3; }
.sb-table .sb-hand { z-index: 1; }

/* las tres cartas, siempre del mismo tamaño: la fila estira a la más alta y la misión ocupa el hueco que sobra */
.ct-row { align-items: stretch !important; }
.ct-row .ct.tcg { height: auto; align-self: stretch; }
.ct-row .ct.tcg .tc-in { height: 100%; }
.ct-row .ct.tcg .tc-move { align-self: stretch; }
@media (min-width: 621px) { .ct-row:has(.ct.is-chosen) { align-items: center !important; } .ct-row:has(.ct.is-chosen) .ct.tcg { align-self: stretch; } }

/* carta elegida: una pestaña dorada encima del borde («Tu carta de esta noche») y una frase debajo de la fila que lo explica */
.ct.tcg.is-chosen { overflow: visible; }
.ct.tcg .ct-badge.tc-chosen { top: -13px; left: 50%; right: auto; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--gold); color: #1b1404; font: 700 12px var(--body); letter-spacing: .02em;
  box-shadow: 0 0 0 3px var(--bg-2, #12271A), 0 6px 14px rgba(0,0,0,.45); }
.ct.tcg .ct-badge.tc-chosen svg { width: 14px; height: 14px; }
.ct-row:has(.ct.is-chosen) { padding-top: 22px !important; }
.cartas-chosen { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; padding: 10px 14px; border-radius: 12px; background: rgba(239,182,68,.1); border: 1px solid rgba(239,182,68,.4); color: var(--cream); font-size: 14px; line-height: 1.45; }
.cartas-chosen svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.cartas-chosen small { display: block; color: var(--cream-dim); font-size: 12.5px; }

/* elegida más marcada (21-nov, Luis): halo dorado grueso que respira y las otras dos detrás, pequeñas, apagadas y desenfocadas */
@media (min-width: 621px) {
  .ct-row:has(.ct.is-chosen) .ct.tcg:not(.is-chosen) { transform: scale(.74) translateY(14px); opacity: .32; filter: grayscale(.6) blur(.6px); margin: 0 -7%; z-index: 0; }
  .ct-row:has(.ct.is-chosen) .ct.tcg:not(.is-chosen):hover { opacity: .7; filter: none; transform: scale(.78) translateY(10px); }
  .ct-row:has(.ct.is-chosen) .ct.tcg.is-chosen { transform: scale(1.08); z-index: 3; }
}
.ct.tcg.is-chosen { box-shadow: 0 0 0 4px var(--gold), 0 0 0 9px rgba(239,182,68,.28), 0 0 46px rgba(239,182,68,.45), 0 24px 48px rgba(0,0,0,.55) !important; animation: tcChosen 2.6s ease-in-out infinite; }
@keyframes tcChosen { 50% { box-shadow: 0 0 0 4px var(--gold), 0 0 0 13px rgba(239,182,68,.18), 0 0 64px rgba(239,182,68,.6), 0 24px 48px rgba(0,0,0,.55); } }
.ct.tcg .ct-badge.tc-chosen { top: -17px; padding: 7px 16px 7px 12px; font-size: 13.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.ct.tcg .ct-badge.tc-chosen svg { width: 16px; height: 16px; }
.ct-row:has(.ct.is-chosen) { padding-top: 30px !important; padding-bottom: 26px !important; }
@media (max-width: 620px) { .tonight .ct-row:has(.ct.is-chosen) .ct.tcg:not(.is-chosen) { opacity: .35; filter: grayscale(.6); } }
@media (prefers-reduced-motion: reduce) { .ct.tcg.is-chosen { animation: none; } }

/* cartas boca abajo: un anillo dorado que late alrededor (una tras otra) y una pastilla «Toca para girarla» debajo; al girarla, se va */
.sb-card.is-out:not(.is-flipped)::before { content: ''; position: absolute; inset: -9px; border-radius: 22px; pointer-events: none; z-index: -1;
  border: 3px solid rgba(255,230,160,.95); box-shadow: 0 0 24px rgba(239,182,68,.65), inset 0 0 14px rgba(239,182,68,.35);
  animation: sbTap 1.8s ease-out infinite; }
.sb-card.is-out:not(.is-flipped):nth-child(2)::before { animation-delay: .3s; }
.sb-card.is-out:not(.is-flipped):nth-child(3)::before { animation-delay: .6s; }
@keyframes sbTap { 0% { opacity: 0; transform: scale(.97); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.09); } }
.sb-card.is-out:not(.is-flipped)::after { content: attr(data-tap); position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #1b1404; font: 700 12px var(--body); box-shadow: 0 6px 14px rgba(0,0,0,.4);
  animation: sbTapHint 1.8s ease-in-out infinite; }
@keyframes sbTapHint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.sb-card.is-out:not(.is-flipped):hover::before { animation-duration: 1s; }
@media (prefers-reduced-motion: reduce) { .sb-card.is-out:not(.is-flipped)::before { animation: none; opacity: 1; } .sb-card.is-out:not(.is-flipped)::after { animation: none; } }

/* ═══ Beta 3 · cartas patrocinadas (cartas.js → .is-sp.th-<clave>; diseño de Front/beta3/propuestas-cartas-5.html) ═══
   Totalmente de la marca: marco, cuerpo, franja y su logo en la cinta y en el pie. La dificultad va en una pastilla.
   En las difíciles patrocinadas se quita el oro holográfico (manda la marca) y se queda solo el destello que pasa. */
.ct.tcg.is-sp .tc-art { place-items: end center; }
.sp-ribbon { position: absolute; top: 3cqw; left: -1px; z-index: 4; display: inline-flex; align-items: center; padding: 1.6cqw 3.6cqw 1.6cqw 3cqw; border-radius: 0 999px 999px 0; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.sp-ribbon img { display: block; height: max(11px, 4.6cqw); width: auto; image-rendering: auto; }
.sp-author { font: 600 max(9.5px, 3.9cqw) 'Inter', var(--body); color: #fc6434; letter-spacing: .01em; text-transform: none; white-space: nowrap; }
.tc-set .sp-logo { display: block; height: max(10px, 4.2cqw); width: auto; max-width: 100%; }
.tc-set .sp-author { font-size: max(8.5px, 3.4cqw); }
.ct.tcg.is-sp .tc-foot > span:first-child { justify-self: start; padding: .6cqw 2.6cqw; border-radius: 999px; }
.ct.tcg.is-sp.ct-r3 { animation: none; background-size: 100% 100%; }
.ct.tcg.is-sp.ct-r3 .tc-in::after, .ct.tcg.is-sp.ct-r3 .tc-in::before, .ct.tcg.is-sp.ct-r3 .tc-art::after { display: none; }
/* Divergente (divergente.app): negro de cine, Inter, amarillo #ffff00 */
.ct.tcg.is-sp.th-divergente { background: linear-gradient(150deg, #ffff66, #ffff00 40%, #e6e600 60%, #ffff66); }
.ct.tcg.is-sp.th-divergente .tc-in { background: radial-gradient(120% 70% at 50% 0%, #1b1b1b, #050505 70%); color: #fff; }
.ct.tcg.is-sp.th-divergente .tc-kind { color: #ffff00; font-family: 'Inter', var(--body); letter-spacing: .22em; }
.ct.tcg.is-sp.th-divergente .tc-name { color: #fff; font-family: 'Inter', var(--body); font-weight: 700; }
.ct.tcg.is-sp.th-divergente .tc-pts small { color: rgba(255,255,255,.6); }
.ct.tcg.is-sp.th-divergente .tc-pts b { color: #ffff00; font-family: 'Inter', var(--body); }
.ct.tcg.is-sp.th-divergente .tc-el { background: #ffff00; color: #000; box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255,255,0,.5); }
.ct.tcg.is-sp.th-divergente .tc-art { box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255,255,0,.55), 0 6px 14px rgba(0,0,0,.6); }
.ct.tcg.is-sp.th-divergente .tc-strip { background: #ffff00; color: #000; font-family: 'Inter', var(--body); font-weight: 700; }
.ct.tcg.is-sp.th-divergente .tc-move { background: #151515; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.ct.tcg.is-sp.th-divergente .tc-move-h { color: #fff; font-family: 'Inter', var(--body); }
.ct.tcg.is-sp.th-divergente .tc-move-h svg { color: #ffff00; }
.ct.tcg.is-sp.th-divergente .tc-text { color: rgba(255,255,255,.88); font-family: 'Inter', var(--body); }
.ct.tcg.is-sp.th-divergente .tc-foot { border-top-color: rgba(255,255,255,.14); color: #ffff00; }
.ct.tcg.is-sp.th-divergente .tc-foot > span:first-child { background: #ffff00; color: #000; }
.ct.tcg.is-sp.th-divergente .tc-brand { background: #ffff00; }
.ct.tcg.is-sp.th-divergente .sp-ribbon { background: #000; box-shadow: 0 0 0 1px rgba(255,255,0,.35), 0 2px 8px rgba(0,0,0,.5); }
/* HockeyHielo.NET (hockeyhielo.net): hielo blanco, rojo #f81018, Oxygen; la ilustración, la pista de hielo del Arena */
.ct.tcg.is-sp.th-hockeyhielo { background: linear-gradient(150deg, #ff5a60, #f81018 40%, #c40a12 62%, #ff5a60); }
.ct.tcg.is-sp.th-hockeyhielo .tc-in { background: linear-gradient(180deg, #ffffff 0%, #eaf4fb 55%, #cfe4f3 100%); color: #141413; }
.ct.tcg.is-sp.th-hockeyhielo:not(.ct-r3) .tc-in::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.7) 18px 19px, transparent 19px 41px); }
.ct.tcg.is-sp.th-hockeyhielo .tc-in > * { position: relative; }
.ct.tcg.is-sp.th-hockeyhielo .tc-kind { color: #f81018; }
.ct.tcg.is-sp.th-hockeyhielo .tc-name { color: #141413; font-family: 'Oxygen', var(--body); font-weight: 700; }
.ct.tcg.is-sp.th-hockeyhielo .tc-pts b { color: #141413; }
.ct.tcg.is-sp.th-hockeyhielo .tc-el { background: #f81018; color: #fff; }
.ct.tcg.is-sp.th-hockeyhielo .tc-art { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f81018, 0 4px 10px rgba(0,0,0,.25); }
.ct.tcg.is-sp.th-hockeyhielo .tc-strip { background: #f81018; color: #fff; font-family: 'Oxygen', var(--body); font-weight: 700; }
.ct.tcg.is-sp.th-hockeyhielo .tc-move { background: #fff; box-shadow: inset 0 0 0 1.5px #f81018; }
.ct.tcg.is-sp.th-hockeyhielo .tc-move-h { font-family: 'Oxygen', var(--body); color: #141413; }
.ct.tcg.is-sp.th-hockeyhielo .tc-move-h svg { color: #f81018; }
.ct.tcg.is-sp.th-hockeyhielo .tc-text { color: #141413; }
.ct.tcg.is-sp.th-hockeyhielo .tc-foot { border-top-color: rgba(248,16,24,.35); color: #141413; }
.ct.tcg.is-sp.th-hockeyhielo .tc-foot > span:first-child { background: #f81018; color: #fff; }
.ct.tcg.is-sp.th-hockeyhielo .tc-brand { background: #f81018; }
.ct.tcg.is-sp.th-hockeyhielo .sp-ribbon { background: #fff; box-shadow: 0 0 0 1.5px #f81018, 0 2px 8px rgba(0,0,0,.3); }
/* Planeta Ilu5i0n (libro de Miguel Roséss): espacio negro, naranja #fc6434 y el azul #90d8d8 del borde del planeta */
.ct.tcg.is-sp.th-libro { background: linear-gradient(150deg, #d6f6f6, #90d8d8 35%, #3d8fb0 60%, #d6f6f6); }
.ct.tcg.is-sp.th-libro .tc-in { color: #fff; background:
    radial-gradient(1.2px 1.2px at 18% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 14%, #fff, transparent),
    radial-gradient(1px 1px at 40% 64%, rgba(255,255,255,.8), transparent), radial-gradient(1.2px 1.2px at 86% 52%, #fff, transparent),
    radial-gradient(1px 1px at 10% 84%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,.7), transparent),
    radial-gradient(120% 60% at 110% 110%, rgba(144,216,216,.35), transparent 55%), linear-gradient(180deg, #0a0f18, #05070c); }
.ct.tcg.is-sp.th-libro .tc-kind { color: #fc6434; }
.ct.tcg.is-sp.th-libro .tc-name { color: #fff; font-family: 'Inter', var(--body); font-weight: 700; }
.ct.tcg.is-sp.th-libro .tc-pts small { color: rgba(255,255,255,.6); }
.ct.tcg.is-sp.th-libro .tc-pts b { color: #fc6434; }
.ct.tcg.is-sp.th-libro .tc-el { background: #fc6434; color: #05070c; box-shadow: 0 0 0 2px #05070c, 0 0 0 3px rgba(144,216,216,.6); }
.ct.tcg.is-sp.th-libro .tc-strip { background: #fc6434; color: #05070c; font-weight: 700; }
.ct.tcg.is-sp.th-libro .tc-move { background: rgba(14,22,34,.92); box-shadow: inset 0 0 0 1px rgba(144,216,216,.35); }
.ct.tcg.is-sp.th-libro .tc-move-h { color: #fff; }
.ct.tcg.is-sp.th-libro .tc-move-h svg { color: #fc6434; }
.ct.tcg.is-sp.th-libro .tc-text { color: rgba(255,255,255,.88); }
.ct.tcg.is-sp.th-libro .tc-foot { border-top-color: rgba(144,216,216,.3); color: #90d8d8; }
.ct.tcg.is-sp.th-libro .tc-foot > span:first-child { background: #fc6434; color: #05070c; }
.ct.tcg.is-sp.th-libro .tc-brand { background: #fc6434; }
.ct.tcg.is-sp.th-libro .sp-ribbon { background: #0c0c0c; box-shadow: 0 0 0 1px rgba(252,100,52,.4), 0 2px 8px rgba(0,0,0,.5); }
/* el fondo del libro: el espacio de la portada (estrellas, una luna y el borde azul de un planeta) en vez del Observatorio */
.ct.tcg.is-sp.th-libro .tc-art { image-rendering: auto; box-shadow: 0 0 0 2px #05070c, 0 0 0 3px #90d8d8, 0 0 14px rgba(144,216,216,.35); background-color: #03050a !important; background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 28% 46%, rgba(255,255,255,.85) 60%, transparent),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff 60%, transparent), radial-gradient(1px 1px at 8% 72%, rgba(255,255,255,.7) 60%, transparent),
    radial-gradient(1px 1px at 36% 82%, rgba(255,255,255,.7) 60%, transparent), radial-gradient(1.2px 1.2px at 58% 30%, rgba(255,255,255,.9) 60%, transparent),
    radial-gradient(1px 1px at 22% 30%, rgba(255,255,255,.6) 60%, transparent), radial-gradient(1px 1px at 52% 64%, rgba(255,255,255,.6) 60%, transparent),
    radial-gradient(circle 11px at 24% 30%, #d4e5ec 0, #9ab6c4 55%, #5d7c8c 90%, transparent 100%),
    radial-gradient(circle 150px at 2% 175%, transparent 0 88%, rgba(220,250,250,.95) 90%, rgba(144,216,216,.7) 93%, rgba(144,216,216,0) 100%),
    radial-gradient(circle 150px at 2% 175%, #8a7d63 0, #5e5a4f 60%, #3c4048 88%, transparent 88.5%),
    radial-gradient(120% 90% at 80% 10%, #0d1424, #03050a 70%) !important; }
.sp-book { position: absolute; right: 14%; top: 5%; bottom: 3%; z-index: 3; aspect-ratio: 200 / 263; transform: rotate(5deg); }
.sp-book::before { content: ''; position: absolute; inset: -20% -25%; z-index: -1; background: radial-gradient(circle, rgba(144,216,216,.4), transparent 62%); }
.sp-book img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.tc-art.has-book .tc-who { justify-self: start; margin-left: 14%; }
/* aviso bajo la fila y la marca en el álbum */
/* 25-nov (Luis): más visible — banda dorada con estrella, el nombre en grande y el logo de la marca */
.cartas-sp { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 16px auto 0; padding: 14px 18px; border-radius: 16px; background: linear-gradient(100deg, rgba(239, 182, 68, .16), rgba(239, 182, 68, .05)); border: 1.5px solid rgba(239, 182, 68, .55); box-shadow: 0 0 0 4px rgba(239, 182, 68, .07); color: var(--cream, #f3ecd9); text-decoration: none; text-align: left; transition: border-color .2s, background .2s; }
.cartas-sp:hover { border-color: var(--gold, #efb644); background: linear-gradient(100deg, rgba(239, 182, 68, .24), rgba(239, 182, 68, .08)); }
.cartas-sp-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 182, 68, .16); border: 1.5px solid rgba(239, 182, 68, .6); color: var(--gold, #efb644); animation: spGlow 2.4s ease-in-out infinite; }
.cartas-sp-ic svg { width: 20px; height: 20px; }
.cartas-sp-t { flex: 1; font-size: 16px; line-height: 1.35; }
.cartas-sp-t small { display: block; margin-bottom: 2px; font-family: var(--mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #efb644); }
.cartas-sp-t b { color: var(--gold, #efb644); font-weight: 700; }
.cartas-sp-logo { flex: none; max-width: 96px; max-height: 34px; object-fit: contain; }
@keyframes spGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 182, 68, 0); } 50% { box-shadow: 0 0 0 6px rgba(239, 182, 68, .14); } }
@media (max-width: 520px) { .cartas-sp-logo { display: none; } .cartas-sp-t { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .cartas-sp-ic { animation: none; } }
.ca-sp { display: block; margin-top: 4px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* ═══ El sobre · rasgado a mano (sobre.js: --p de 0 a 1 según lo que llevas rasgado) ═══
   Un punto de luz recorre la línea para enseñar el gesto; al arrastrar, la línea se abre bajo el dedo con luz dorada
   y bordes de papel roto, la tira se va levantando por la izquierda y saltan virutas. */
.sb-hit { position: absolute; left: -16px; right: -16px; top: -12px; height: 74px; z-index: 6; cursor: grab; touch-action: none; }
.sb-pack.is-gripping .sb-hit { cursor: grabbing; }
.sb-pack.is-gripping { animation-play-state: paused; }
.sb-pack.is-torn .sb-hit { display: none; }
.sb-pack.is-ripping:not(.is-torn) .sb-top { transform-origin: 100% 100%; transform: translateY(calc(var(--p, 0) * -9px)) rotate(calc(var(--p, 0) * -8deg)); transition: transform .12s ease-out; }
.sb-pack.is-ripping .sb-hint { opacity: 0; transition: opacity .2s; }
.sb-rip { position: absolute; left: 0; top: 38px; height: 6px; width: calc(var(--p, 0) * 100%); z-index: 3; pointer-events: none; opacity: 0; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #ffd978, #fff6d6 70%, #fff);
  box-shadow: 0 0 calc(6px + var(--p, 0) * 22px) calc(1px + var(--p, 0) * 5px) rgba(255,210,110,.8), 0 0 3px #fff; }
.sb-rip::before, .sb-rip::after { content: ''; position: absolute; left: 0; right: 0; height: 4px;
  background: linear-gradient(135deg, #F4EDDE 25%, transparent 25%) 0 0 / 6px 4px repeat-x, linear-gradient(225deg, #F4EDDE 25%, transparent 25%) 0 0 / 6px 4px repeat-x; }
.sb-rip::before { top: -3px; transform: scaleY(-1); }
.sb-rip::after { bottom: -3px; }
.sb-pack.is-ripping .sb-rip { opacity: 1; }
.sb-pack.is-torn .sb-rip { opacity: 0; transition: opacity .6s .2s; }
.sb-grip { position: absolute; top: 41px; left: calc(var(--p, 0) * 100%); width: 24px; height: 24px; margin: -12px 0 0 -12px; z-index: 5; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, rgba(255,220,130,.95) 34%, rgba(255,200,90,.35) 55%, transparent 70%);
  animation: sbGuide 2.2s cubic-bezier(.45,0,.25,1) infinite; transition: transform .15s; }
@keyframes sbGuide { 0% { translate: 4px 0; opacity: 0; scale: .6; } 14% { opacity: 1; scale: 1; } 68% { translate: 120px 0; opacity: 1; } 100% { translate: 150px 0; opacity: 0; scale: .7; } }
.sb-pack.is-ripping .sb-grip { animation: none; opacity: 1; }
.sb-pack.is-gripping .sb-grip { transform: scale(1.35); }
.sb-pack.is-torn .sb-grip { opacity: 0; transition: opacity .2s; }
.sb-bits { position: absolute; left: 0; right: 0; top: 40px; height: 0; z-index: 5; pointer-events: none; }
.sb-bits i { position: absolute; top: -2px; width: 6px; height: 5px; background: #F4EDDE; clip-path: polygon(0 0, 100% 25%, 75% 100%, 10% 80%);
  animation: sbBit .9s cubic-bezier(.2,.6,.4,1) forwards; }
.sb-bits i:nth-child(2n) { background: #2F8F4E; width: 5px; height: 4px; }
@keyframes sbBit { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sb-grip { animation: none; } .sb-pack.is-ripping:not(.is-torn) .sb-top { transform: none; } }
.sb-front .ct.tcg.is-sp .tc-name { font-size: 13px; }
.tc-set:has(.sp-logo) { display: flex; justify-content: flex-end; min-width: 0; }
/* en el móvil las cartas van en dos filas casi pegadas: la pastilla «Toca para girarla» va dentro de la carta, abajo,
   para que la de abajo no tape las de arriba */
@media (max-width: 640px) {
  .sb-card.is-out:not(.is-flipped)::after { bottom: 14px; z-index: 3; padding: 5px 11px; font-size: 11.5px; box-shadow: 0 4px 10px rgba(0,0,0,.45), 0 0 0 2px rgba(27,20,4,.25);
    animation-name: sbTapHintIn; }
  @keyframes sbTapHintIn { 0%, 100% { transform: translate(-50%, 0) translateZ(3px); } 50% { transform: translate(-50%, -4px) translateZ(3px); } }
}
/* dorso sin el borde verde oscuro de más: los anillos de la corteza llegan hasta el canto de la carta */
.sb-back { background: #2F8F4E !important; }
.sb-back .sv-pulp { inset: 14px; }
/* la luz al rasgar sale de DENTRO del sobre: crece desde la boca (transform-origin abajo), con un resplandor en la abertura */
.sb-light { top: 44px; transform-origin: 50% 100%; animation-name: sbLightIn; animation-duration: 1.5s; }
@keyframes sbLightIn { 0% { opacity: 0; transform: translateY(-100%) scaleY(0); } 22% { opacity: 1; } 60% { opacity: .9; } 100% { opacity: 0; transform: translateY(-100%) scaleY(1.1); } }
.sb-light::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 230px; height: 26px; margin-left: -115px;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, #fff 0%, rgba(255,240,190,.95) 35%, rgba(255,205,100,.5) 65%, transparent 100%); }

/* ═══ Ahora mismo · dormido: solo su personaje, en la cama y con los ojos cerrados (pueblo.js → bedHTML, sleepHead) ═══ */
.pb-hero.is-asleep .pb-scene { align-items: center; padding: 18px 16px 18px;
  background: radial-gradient(70% 60% at 50% 55%, rgba(120,140,220,.16), transparent 70%), linear-gradient(180deg, #121a33, #0c1224 70%, #0a0f1d); }
.pb-bed { position: relative; width: 264px; height: 200px; image-rendering: pixelated; }
.pb-moon { position: absolute; left: -6px; top: -4px; width: 58px; height: 58px; border-radius: 6px; background: #1c2a4f; box-shadow: inset 0 0 0 5px #3a2a1c, inset 0 0 0 7px #5c432b;
  background-image: radial-gradient(circle 9px at 62% 40%, #fff5cf 0 8px, transparent 9px), radial-gradient(circle 9px at 54% 36%, #1c2a4f 0 8px, transparent 9px),
    radial-gradient(1px 1px at 24% 70%, #fff, transparent), radial-gradient(1px 1px at 30% 30%, #fff, transparent), linear-gradient(90deg, transparent 47%, #5c432b 47% 53%, transparent 53%); }
.pb-board { position: absolute; left: 22px; right: 22px; top: 44px; height: 112px; border-radius: 14px 14px 4px 4px;
  background: repeating-linear-gradient(90deg, #8a5a34 0 22px, #7a4e2c 22px 24px), #8a5a34; box-shadow: inset 0 6px 0 #a8703f, inset 0 -4px 0 #5f3c20, 0 0 0 4px #4a2e18; }
.pb-board::before, .pb-board::after { content: ''; position: absolute; top: -10px; width: 14px; height: 164px; border-radius: 4px 4px 0 0; background: #6b4426; box-shadow: inset 3px 0 0 #8a5a34, 0 0 0 3px #4a2e18; }
.pb-board::before { left: -12px; } .pb-board::after { right: -12px; }
.pb-pillow { position: absolute; left: 62px; right: 62px; top: 84px; height: 46px; border-radius: 16px; background: #f4edde; box-shadow: inset 0 -6px 0 #d9cfba, 0 0 0 3px #b9ad95; }
.pb-sleeper { position: absolute; left: 50%; top: 52px; width: 92px; height: auto; margin-left: -46px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.pb-blanket { position: absolute; left: 14px; right: 14px; top: 112px; height: 68px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #f4edde 0 10px, #cfebc0 10px 13px, #7fd18a 13px 16px, #2f8f4e 16px 20px, transparent 20px),
    radial-gradient(ellipse 3px 5px at 14px 34px, #1a1210 70%, transparent 75%) 0 0 / 34px 30px,
    linear-gradient(180deg, #ff5d52, #d93a40); box-shadow: 0 0 0 3px #7a1f24, 0 6px 10px rgba(0,0,0,.35); }
.pb-foot { position: absolute; left: 4px; right: 4px; bottom: 0; height: 22px; border-radius: 4px; background: #6b4426; box-shadow: inset 0 4px 0 #8a5a34, 0 0 0 3px #4a2e18; }
.pb-zzz { position: absolute; left: 172px; top: 20px; display: flex; gap: 2px; font: 800 16px var(--display); color: #cfd8ff; }
.pb-zzz i { font-style: normal; opacity: 0; animation: pbZ 3s ease-in-out infinite; }
.pb-zzz i:nth-child(2) { font-size: 20px; animation-delay: .5s; translate: 0 -8px; } .pb-zzz i:nth-child(3) { font-size: 26px; animation-delay: 1s; translate: 0 -18px; }
@keyframes pbZ { 0% { opacity: 0; transform: translateY(6px); } 30%, 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pb-zzz i { animation: none; opacity: .85; } }
@media (max-width: 900px) { .pb-hero.is-asleep .pb-scene { min-height: 230px; } }

/* ═══ Avisos (panel.js → toast): pastilla crema arriba al centro, icono de línea en círculo de color ═══ */
.toasts { position: fixed; top: 78px; bottom: auto; left: 50%; right: auto; translate: -50% 0; z-index: 600; display: grid; justify-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: var(--cream); color: #12271A;
  font: 600 14px/1.3 var(--body); letter-spacing: -.005em; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  pointer-events: auto; cursor: pointer; animation: toastIn .42s cubic-bezier(.2,1.25,.4,1) both; }
.toast-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2F8F4E; color: #fff; }
.toast-ico svg { width: 15px; height: 15px; }
.toast.is-error .toast-ico { background: var(--flesh); }
.toast.is-star .toast-ico { background: var(--gold); color: #3a2604; }
.toast.is-star { background: #FFF3D6; }
.toast-msg { min-width: 0; }
.toast.is-out { animation: toastOut .26s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px) scale(.96); } }
@media (max-width: 640px) { .toasts { top: 70px; } .toast { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-out { animation-duration: .01ms; } }

/* ═══ Ahora mismo · el robot de noche: cargándose en la Comisaría (pueblo.js → chargeHTML) ═══ */
.pb-hero.is-charging .pb-scene { align-items: flex-end; padding-bottom: 26px; background: var(--bg) center 60% / cover no-repeat; position: relative; }
.pb-hero.is-charging .pb-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 40, .62), rgba(8, 14, 40, .45)); }
.pb-charge { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 0; }
.pb-charge-who { position: relative; display: block; }
.pb-charge-who img { height: 128px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 0 14px rgba(82, 199, 118, .35)) drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.pb-charge-batt { position: absolute; left: 50%; top: -34px; translate: -50% 0; width: 32px; height: 32px; color: #52C776; filter: drop-shadow(0 0 8px rgba(82, 199, 118, .6)); animation: chargePulse 1.6s ease-in-out infinite; }
.pb-charge-batt svg { width: 100%; height: 100%; display: block; }
.pb-charge-batt .batt-fill { transform-box: fill-box; transform-origin: left; animation: chargeFill 3.2s steps(6, end) infinite; }
.pb-charge-cable { width: 60px; height: 34px; margin: 0 -6px 4px; overflow: visible; }
.pb-charge-cable path { fill: none; stroke: #22202A; stroke-width: 3.5; stroke-linecap: round; }
.pb-charge-dock { position: relative; width: 30px; height: 72px; margin-bottom: 4px; background: #5E6874; border: 3px solid #22202A; border-radius: 4px 4px 2px 2px; box-shadow: inset -4px 0 0 rgba(0, 0, 0, .18), 0 6px 4px rgba(0, 0, 0, .35); }
.pb-charge-dock::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: -6px; height: 6px; background: #22202A; border-radius: 1px; }
.pb-charge-dock i { position: absolute; left: 4px; right: 4px; top: 6px; height: 18px; background: #0E2A18; border: 1px solid #22202A; overflow: hidden; }
.pb-charge-dock i::after { content: ''; position: absolute; inset: 0; background: #52C776; transform-origin: left; animation: chargeFill 3.2s steps(6, end) infinite; }
.pb-charge-dock b { position: absolute; left: 50%; top: 32px; translate: -50% 0; width: 8px; height: 8px; border-radius: 50%; background: #52C776; box-shadow: 0 0 8px #52C776; animation: chargePulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pb-charge-batt, .pb-charge-batt .batt-fill, .pb-charge-dock i::after, .pb-charge-dock b { animation: none; } }
@media (max-width: 900px) { .pb-charge-who img { height: 104px; } }

/* sobre (23-nov): al girar una carta, la etiqueta «Sandia Village» del reverso se veía en espejo encima de la cara
   (Safari y Chrome no respetan backface-visibility con la sombra y el drop-shadow de la etiqueta). Se esconde el reverso
   a mitad del giro, cuando ya no mira hacia nosotros */
.sb-card.is-flipped .sb-back { visibility: hidden; transition: visibility 0s linear .3s; }
.sb-card:not(.is-flipped) .sb-front { visibility: hidden; transition: visibility 0s linear .3s; }

/* cabecera del panel (23-nov, Luis): sin la última frase («Le dice a…»); tampoco sale en la tarjeta de «Ahora mismo» */
#hud-dialogue { display: none !important; }

/* «Ahora mismo» · la reflexión de la noche, plegada debajo del aviso corto (pueblo.js → .pb-refl) */
.pb-refl { margin: -4px 0 0; }
.pb-refl summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font: 600 14px var(--sans); color: var(--gold); }
.pb-refl summary::-webkit-details-marker { display: none; }
.pb-refl summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.pb-refl[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.pb-refl summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.pb-refl p { margin: 10px 0 0; max-height: 260px; overflow: auto; padding: 12px 14px; border-radius: 12px; background: rgba(183,166,232,.07); border: 1px solid rgba(183,166,232,.22); font-size: 14.5px; line-height: 1.6; color: var(--cream-dim); }

/* ===== «Susurrar», de día (dia.js, 23-nov): sala de espera con el sobre cerrado ===== */
.tonight.is-day > :not(.dia-view) { display: none !important; }
.tonight.is-day { position: relative; overflow: hidden; background: radial-gradient(520px 340px at 88% 22%, rgba(239,182,68,.09), transparent 70%), var(--card); }
.dia-view { --violet: #B7A6E8; }
.dv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; }
.dv-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); }
.dv-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(239,182,68,.18); }
.dv-h { margin: 0; font: 800 clamp(30px, 3.6vw, 48px)/1.02 var(--display); letter-spacing: -.03em; color: var(--cream); text-wrap: balance; }
.dv-h em { font-style: normal; color: var(--gold); }
.dv-sub { margin: 16px 0 0; max-width: 50ch; font-size: 16px; line-height: 1.55; color: var(--cream-dim); }
.dv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dv-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(244,237,222,.04); color: var(--cream); font: 600 14.5px var(--body); cursor: pointer; transition: transform .2s cubic-bezier(.16,1,.3,1), background .2s; }
.dv-btn svg { width: 17px; height: 17px; flex: none; }
.dv-btn:hover { transform: translateY(-1px); background: rgba(244,237,222,.08); }
.dv-btn.is-main { background: var(--cream); color: #12271A; border-color: transparent; }
.dv-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.dv-pack { position: relative; display: grid; place-items: center; height: 370px; }
.dv-pack .sb-pack { cursor: default; transform: rotate(4deg) scale(.88); }
.dv-pack .sb-pack::after { content: ''; position: absolute; inset: 0; background: rgba(11,31,18,.26); pointer-events: none; z-index: 5; }
.dv-lock { position: absolute; z-index: 6; left: 50%; bottom: 14px; translate: -50% 0; display: flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px; white-space: nowrap;
  background: #0B1F12; border: 2px solid var(--gold); box-shadow: 0 12px 26px rgba(0,0,0,.5); font: 700 15px var(--mono); color: var(--gold); }
.dv-lock span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,182,68,.16); }
.dv-lock svg { width: 15px; height: 15px; }
.dv-k { margin: 0 0 6px; font: 700 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); }
.dv-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.dv-ic svg { width: 19px; height: 19px; }
.dv-ic.is-violet { background: rgba(183,166,232,.16); color: var(--violet); }
.dv-ic.is-gold { background: rgba(239,182,68,.15); color: var(--gold); }
/* lo que le mandaste anoche */
.dv-last { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: rgba(11,31,18,.45); border: 1px solid var(--line); }
.dv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.dv-k + .dv-row { border-top: 0; padding-top: 6px; }
.dv-rk { display: flex; align-items: center; gap: 8px; align-self: start; padding-top: 4px; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); }
.dv-rk svg { width: 15px; height: 15px; flex: none; }
.dv-whisper { margin: 0; font: italic 400 22px/1.38 var(--serif); color: var(--cream); overflow-wrap: anywhere; }
.dv-card { margin: 0 0 10px; font: 700 18px/1.3 var(--display); color: var(--cream); }
.dv-plan { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--cream-dim); }
.dv-none { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cream-dim); }
.dv-meta { margin: 6px 0 0; font: 500 12px var(--mono); letter-spacing: .03em; color: var(--cream-faint); }
.dv-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: 999px; font: 600 13px/1.3 var(--body); }
.dv-pill svg { width: 15px; height: 15px; flex: none; }
.dv-pill.is-wait { background: rgba(111,182,217,.14); color: var(--sky); }
.dv-pill.is-ok { background: rgba(82,199,118,.14); color: var(--leaf); }
.dv-pill.is-no { background: rgba(255,83,72,.12); color: #FF8A80; }
.dv-last .dv-actions { margin-top: 10px; }
/* cómo va la noche: susurrar es lo principal; la carta va aparte */
.dv-how { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.dv-how > div { padding: 20px; border-radius: 18px; }
.dv-main { background: rgba(183,166,232,.08); border: 1px solid rgba(183,166,232,.35); }
.dv-extra { background: rgba(11,31,18,.45); border: 1.5px dashed rgba(239,182,68,.45); }
.dv-how .dv-ic { margin-bottom: 12px; }
.dv-how b { display: block; margin-bottom: 6px; font: 800 22px/1.15 var(--display); letter-spacing: -.015em; color: var(--cream); }
.dv-how p:not(.dv-k) { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cream-dim); }
.dv-how strong { color: var(--cream); font-weight: 600; } .dv-how em { font-style: normal; font-weight: 600; color: var(--gold); }
.dv-plus { align-self: center; font: 800 28px var(--display); color: var(--cream-faint); }
/* cuánto podrás escribir */
.dv-room { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 12px; padding: 18px 20px; border-radius: 18px; background: rgba(11,31,18,.45); border: 1px solid var(--line); }
.dv-room-h b { display: block; font: 700 16px/1.25 var(--display); color: var(--cream); }
.dv-room-h small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--cream-dim); }
.dv-bar { display: flex; height: 32px; border-radius: 10px; overflow: hidden; background: rgba(244,237,222,.05); }
.dv-bar span { display: flex; align-items: center; padding: 0 12px; font: 700 13px var(--mono); white-space: nowrap; overflow: hidden; }
.dv-bar .is-base { background: var(--leaf); color: #0B1F12; }
.dv-bar i { font-style: normal; margin-left: .5em; }
.dv-bar .is-card { border-left: 2px solid #0B1F12; color: var(--gold); background: repeating-linear-gradient(135deg, rgba(239,182,68,.28) 0 8px, rgba(239,182,68,.16) 8px 16px); }
.dv-legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font: 500 12px var(--mono); color: var(--cream-faint); }
.dv-legend b { color: var(--cream); }
.dv-score { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--cream-dim); }
.dv-score b { color: var(--cream); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .dv-pack .sb-pack { animation: none; } }
@media (max-width: 760px) {
  .dv-hero { grid-template-columns: 1fr; gap: 0; }
  .dv-pack { order: -1; height: 250px; margin: -8px 0 10px; }
  .dv-pack .sb-pack { position: absolute; left: 50%; top: 50%; margin: -190px 0 0 -118px; transform: rotate(4deg) scale(.58); }
  .dv-lock { bottom: 0; font-size: 13px; padding: 6px 13px 6px 8px; } .dv-lock span { width: 24px; height: 24px; }
  .dv-h { font-size: 30px; }
  .dv-sub { font-size: 15px; }
  .dv-last { padding: 16px; }
  .dv-row { grid-template-columns: 1fr; gap: 6px; }
  .dv-whisper { font-size: 20px; }
  .dv-how { grid-template-columns: 1fr; gap: 8px; }
  .dv-how > div { padding: 16px; }
  .dv-plus { justify-self: center; font-size: 22px; line-height: 1; }
  .dv-room { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .dv-btn { flex: 1 1 auto; justify-content: center; }
  .dv-score { align-items: flex-start; }
}

/* pie del sobre (23-nov): un botón grande y, debajo, una línea corta que va contando cada paso */
.sb-foot { flex-direction: column; gap: 12px; margin-top: 10px; }
.sb-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; font: 700 17px var(--display); letter-spacing: -.01em;
  box-shadow: 0 10px 28px rgba(255,83,72,.32), inset 0 -3px 0 rgba(0,0,0,.18); }
.sb-btn svg { width: 20px; height: 20px; flex: none; }
.sb-btn:hover { box-shadow: 0 14px 34px rgba(255,83,72,.42), inset 0 -3px 0 rgba(0,0,0,.18); }
.sb-btn.is-ghost { height: 56px; font-size: 16px; }
.sb-status { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); text-align: center; text-wrap: balance; }
@media (max-width: 640px) { .sb-btns { width: 100%; } .sb-btn { flex: 1 1 100%; } }
/* sin botón de abrir: si no hay ningún botón visible, el hueco no ocupa; la pista de rasgar, más visible */
.sb-btns:not(:has(> :not([hidden]))) { display: none; }
.sb-hint { font-size: 14px; font-weight: 500; color: var(--cream); }
.cartas-chosen b { display: block; font-weight: 600; margin-bottom: 2px; }
.cartas-chosen small { margin-top: 4px; }
/* «Esta noche, sin carta»: las cartas recogidas en una línea (23-nov) */
.cartas-skip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(183,166,232,.08); border: 1px solid rgba(183,166,232,.3); }
.cartas-skip .cs-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(183,166,232,.16); color: #B7A6E8; }
.cartas-skip .cs-ico svg { width: 18px; height: 18px; }
.cartas-skip > div { flex: 1; min-width: 0; }
.cartas-skip b { display: block; font: 700 16px/1.3 var(--display); color: var(--cream); }
.cartas-skip p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--cream-dim); }
.cartas-skip .cs-btn { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--cream); font: 600 14px var(--body); cursor: pointer; }
.cartas-skip .cs-btn:hover { border-color: var(--gold); }
@media (max-width: 620px) { .cartas-skip { flex-wrap: wrap; } .cartas-skip .cs-btn { flex: 1 1 100%; } }
/* «Susurros anteriores» vacío no aporta nada (ya están en «Noches anteriores») */
.wh-wrap:has(.wh-empty) { display: none; }
/* aviso junto al botón: al susurrar, todo queda fijado hasta mañana */
.w-final { margin: 14px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--cream-dim); }
.w-final::before { content: ''; display: inline-block; width: 14px; height: 14px; margin: 0 7px -2px 0; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
/* «Tu día en vídeo» · Próximamente (23-nov) */
.vd-soon { padding: 6px 2px; }
.vd-soon-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: rgba(183,166,232,.16); color: #B7A6E8; }
.vd-soon-ico svg { width: 22px; height: 22px; }
.vd-soon-k { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #12271A; background: #B7A6E8; }
.vd-soon .block-title { margin: 0 0 8px; }
.vd-soon p:last-child { margin: 0; max-width: 56ch; font-size: 15px; line-height: 1.55; color: var(--cream-dim); }
@media (max-width: 760px) { .dv-bar i { display: none; } }
/* aire entre el subtítulo y el sobre (y su pista de «Arrastra…») */
.sobre-stage { margin-top: 36px; }
@media (max-width: 640px) { .sobre-stage { margin-top: 44px; } }
/* el susurro de esta noche, como una cita (23-nov): sin franja lateral ni etiquetas */
.wh-wrap { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wh-title { margin: 0 0 10px; font: 600 14px var(--body); color: var(--cream-dim); }
.whisper-history:has(.wh-now) { max-height: none; overflow: visible; padding: 0; background: none; border: 0; }
.wh-now { margin: 0; }
.wh-now blockquote { margin: 0; font: italic 400 24px/1.38 var(--serif); color: var(--cream); overflow-wrap: anywhere; }
.wh-now figcaption { margin-top: 10px; font-size: 14px; color: var(--cream-dim); }
.wh-now figcaption span { margin-left: 6px; font: 500 12px var(--mono); color: var(--cream-faint); }
.wh-now.just-absorbed blockquote { animation: absorbPulse 2s var(--ease-out) both; }
@media (max-width: 640px) { .wh-now blockquote { font-size: 21px; } }
/* «Tu susurro de esta noche», como un susurro de verdad (23-nov): luz de luna, su cara dormida con sus «z»,
   las palabras apareciendo despacio y un brillo violeta que respira */
.wh-wrap { border-top: 0; padding-top: 0; }
.wh-title { display: flex; align-items: center; gap: 8px; color: #B7A6E8; }
.wh-title::before { content: ''; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.wh-now { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; align-items: center; padding: 26px 28px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(244,237,222,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 18%, rgba(244,237,222,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 90% 70%, rgba(244,237,222,.5), transparent 60%),
    radial-gradient(1px 1px at 40% 85%, rgba(244,237,222,.4), transparent 60%),
    radial-gradient(1px 1px at 62% 40%, rgba(244,237,222,.35), transparent 60%),
    radial-gradient(420px 220px at 18% 30%, rgba(183,166,232,.22), transparent 70%),
    linear-gradient(160deg, #1d1838, #13122a 60%, #0f1a1c);
  border: 1px solid rgba(183,166,232,.28); box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); }
.wh-now::after { content: ''; position: absolute; inset: -40%; pointer-events: none; background: radial-gradient(closest-side, rgba(183,166,232,.14), transparent); animation: whBreath 6s ease-in-out infinite; }
@keyframes whBreath { 50% { opacity: .35; transform: scale(1.08); } }
.wh-sleeper { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(183,166,232,.12); box-shadow: 0 0 0 1px rgba(183,166,232,.25), 0 0 30px rgba(183,166,232,.25); }
.wh-sleeper img { width: 52px; image-rendering: pixelated; filter: brightness(.82) saturate(.8); }
.wh-sleeper i { position: absolute; right: -2px; top: 6px; font: 700 13px var(--mono); font-style: normal; color: #CFC3F2; opacity: 0; animation: whZ 3.6s ease-in-out infinite; }
.wh-sleeper i:nth-child(3) { animation-delay: 1.2s; font-size: 11px; } .wh-sleeper i:nth-child(4) { animation-delay: 2.4s; font-size: 9px; }
@keyframes whZ { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -22px); } }
.wh-dream { position: relative; z-index: 1; min-width: 0; }
.wh-now blockquote { margin: 0; font: italic 400 25px/1.42 var(--serif); color: #ECE6FB; text-shadow: 0 0 22px rgba(183,166,232,.45); overflow-wrap: anywhere; }
.wh-now blockquote::before { content: '«'; } .wh-now blockquote::after { content: '»'; }
.wh-now blockquote span { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(4px); animation: whWord .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes whWord { to { opacity: 1; filter: blur(0); transform: none; } }
.wh-now figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 14px; color: rgba(228,221,248,.72); }
.wh-now figcaption span { margin: 0; font: 500 12px var(--mono); color: rgba(228,221,248,.5); }
@media (prefers-reduced-motion: reduce) { .wh-now::after, .wh-sleeper i { animation: none; } .wh-sleeper i { display: none; } .wh-now blockquote span { animation: none; opacity: 1; filter: none; transform: none; } }
@media (max-width: 640px) {
  .wh-now { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .wh-sleeper { width: 58px; height: 58px; } .wh-sleeper img { width: 40px; }
  .wh-now blockquote { font-size: 21px; }
}
/* móvil (23-nov, Luis): sin el enlace «Su estado»; la cabecera enseña siempre lo básico, compacto:
   cara, nombre, oficio, sitio y monedas, y debajo las dos barras en una fila */
@media (max-width: 640px) {
  .d-state-toggle { display: none !important; }
  .d-head .hud-main { flex-wrap: wrap !important; gap: 10px 12px; }
  .d-head .hud-id .mb-role, .d-head .mb-chips, .d-head .hud-vitals { display: revert !important; }
  .d-head .mb-chips { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
  .d-head .hud-id .mb-name { font-size: 20px; line-height: 1.1; }
  .d-head .hud-id .mb-role { margin: 2px 0 0; font-size: 13px; }
  .d-head .mb-chip { font-size: 12px; padding: 3px 9px; }
  .d-head .hud-vitals { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 16px; flex: 1 1 100% !important; max-width: none; margin: 2px 0 0; }
  .d-head .hud-main .mb-avatar { width: 56px; height: 56px; flex: none; }
  .d-head .hud-id { flex: 1 1 0 !important; min-width: 0; }
  .d-head:not(.is-open) .village-strip { display: none; }
}

/* «Noches anteriores» sin noches (23-nov): el diario en blanco, con las seis noches de la Beta 3 por llenar */
.ne { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 28px 40px; border-radius: 24px;
  border: 1px solid rgba(183,166,232,.22);
  background: radial-gradient(1.2px 1.2px at 14% 24%, rgba(244,237,222,.6), transparent 60%), radial-gradient(1px 1px at 82% 16%, rgba(244,237,222,.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 64%, rgba(244,237,222,.45), transparent 60%), radial-gradient(1px 1px at 24% 78%, rgba(244,237,222,.35), transparent 60%),
    radial-gradient(520px 260px at 50% 0%, rgba(183,166,232,.16), transparent 70%), var(--card); }
.ne[hidden] { display: none; }
.ne-moon { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: #CFC3F2;
  background: rgba(183,166,232,.14); box-shadow: 0 0 0 1px rgba(183,166,232,.3), 0 0 40px rgba(183,166,232,.3); }
.ne-moon svg { width: 32px; height: 32px; }
.ne-moon i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #F4EDDE; opacity: .7; animation: neTw 3s ease-in-out infinite; }
.ne-moon i:nth-of-type(1) { top: -6px; right: -10px; } .ne-moon i:nth-of-type(2) { bottom: 4px; left: -14px; animation-delay: 1s; width: 3px; height: 3px; } .ne-moon i:nth-of-type(3) { top: 14px; left: -22px; animation-delay: 2s; width: 2px; height: 2px; }
@keyframes neTw { 50% { opacity: .15; } }
.ne-title { margin: 0 0 8px; font: 800 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.02em; color: var(--cream); }
.ne-text { margin: 0 auto; max-width: 46ch; font-size: 15.5px; line-height: 1.55; color: var(--cream-dim); }
.ne-nights { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; margin: 28px 0 26px; padding: 0; list-style: none; }
.ne-nights li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 4px 12px; border-radius: 14px; border: 1.5px dashed rgba(244,237,222,.16); color: var(--cream-faint); }
.ne-nights b { font: 800 22px/1 var(--display); color: rgba(244,237,222,.35); }
.ne-nights span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ne-nights li.is-now { border: 1.5px solid var(--gold); background: rgba(239,182,68,.08); color: var(--gold); box-shadow: 0 0 24px rgba(239,182,68,.18); }
.ne-nights li.is-now b { color: var(--gold); }
.ne-nights em { position: absolute; top: -10px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #1A1206; font: 700 10px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ne-go svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) { .ne-moon i { animation: none; } }
@media (max-width: 640px) { .ne { padding: 36px 18px 30px; } .ne-nights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; } .ne-go { width: 100%; } }

/* ===== Logros · la vitrina (23-nov): medallas por familia, metal para las ganadas y grabado para las que faltan ===== */
.logros-card.lv { padding: 0; background: none; border: 0; box-shadow: none; }
.lv-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; align-items: center; padding: 30px 32px; border-radius: 24px;
  border: 1px solid rgba(239,182,68,.25);
  background: radial-gradient(1.2px 1.2px at 70% 20%, rgba(244,237,222,.6), transparent 60%), radial-gradient(1px 1px at 90% 70%, rgba(244,237,222,.45), transparent 60%),
    radial-gradient(420px 240px at 12% 50%, rgba(239,182,68,.16), transparent 70%), linear-gradient(160deg, #17301f, #10261a); }
.lv-ring { position: relative; width: 150px; height: 150px; }
.lv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-ring circle { fill: none; stroke-width: 9; stroke: rgba(244,237,222,.08); }
.lv-ring .lv-arc { stroke: url(#lv-g); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--o); animation: lvArc 1.6s cubic-bezier(.16,1,.3,1) both .2s; filter: drop-shadow(0 0 8px rgba(239,182,68,.5)); }
@keyframes lvArc { from { stroke-dashoffset: var(--c); } }
.lv-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lv-ring b { font: 800 46px/1 var(--display); letter-spacing: -.03em; color: var(--cream); }
.lv-ring small { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-faint); }
.lv-k { margin: 0 0 6px; font: 700 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lv-h { margin: 0; font: 800 clamp(26px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.025em; color: var(--cream); }
.lv-sub { margin: 10px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--cream-dim); }
.lv-next { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(11,31,18,.6); border: 1px solid color-mix(in srgb, var(--fam) 45%, transparent); font-size: 14px; color: var(--cream-dim); }
.lv-next-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--fam); background: color-mix(in srgb, var(--fam) 18%, transparent); animation: lvPulse 2.6s ease-in-out infinite; }
.lv-next-ico svg { width: 17px; height: 17px; }
@keyframes lvPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--fam) 14%, transparent); } }
.lv-next small { display: block; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fam); }
.lv-next b { color: var(--cream); font-weight: 600; }

.lv-shelf { margin-top: 18px; padding: 22px 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.lv-shelf > header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lv-shelf-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fam); background: color-mix(in srgb, var(--fam) 16%, transparent); }
.lv-shelf-ico svg { width: 18px; height: 18px; }
.lv-shelf h3 { margin: 0; font: 800 19px/1.15 var(--display); color: var(--cream); letter-spacing: -.01em; }
.lv-shelf header p { margin: 2px 0 0; font-size: 13px; color: var(--cream-faint); }
.lv-count { margin-left: auto; font: 700 12px var(--mono); color: var(--fam); padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--fam) 12%, transparent); }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* cada medalla */
.lm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 18px 12px 16px; border-radius: 18px; background: rgba(11,31,18,.35); border: 1px solid transparent;
  animation: lmIn .7s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 45ms); transition: border-color .25s, background .25s, transform .3s cubic-bezier(.16,1,.3,1); outline: none; }
@keyframes lmIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.lm:hover, .lm:focus-visible { border-color: color-mix(in srgb, var(--fam) 35%, transparent); background: rgba(11,31,18,.55); transform: translateY(-3px); }
.lm:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.lm-medal { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 12px; perspective: 400px; }
.lm-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lm-ring circle { fill: none; stroke-width: 3.5; stroke: rgba(244,237,222,.07); }
.lm-ring .lm-arc { stroke: var(--fam); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--o); animation: lvArc 1.4s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 45ms + .25s); }
.lm-coin { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; transition: transform .5s cubic-bezier(.16,1,.3,1);
  background: radial-gradient(circle at 35% 30%, #1d3a28, #0d2015 70%); color: color-mix(in srgb, var(--fam) 55%, #3a4a40);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(244,237,222,.06); }
.lm-coin svg { width: 32px; height: 32px; filter: drop-shadow(0 1px 0 rgba(255,255,255,.06)); }
.lm:hover .lm-coin { transform: rotateY(18deg); }
/* ganada: metal del nivel (o del color de su familia si es de un solo nivel) */
.lm.is-got .lm-coin { color: #1A1206; background: radial-gradient(circle at 32% 28%, var(--hi), var(--lo) 78%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), inset 0 -4px 8px rgba(0,0,0,.25), 0 8px 22px color-mix(in srgb, var(--hi) 35%, transparent), 0 0 0 1px rgba(0,0,0,.3); }
.lm.is-got .lm-coin svg { filter: drop-shadow(0 1px 0 rgba(255,255,255,.45)); }
.lm.is-got .lm-ring .lm-arc { stroke: var(--hi); filter: drop-shadow(0 0 4px var(--hi)); }
.lm-shine { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-120%); pointer-events: none; }
.lm.is-got .lm-shine { animation: lmShine 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * 300ms + 1.2s); }
@keyframes lmShine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.lm.is-got:hover .lm-coin { transform: rotateY(360deg); transition-duration: 1.1s; }
.lm-tier { position: absolute; bottom: -4px; left: 50%; translate: -50% 0; margin: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
/* oculto */
.lm.is-hidden .lm-coin { color: rgba(244,237,222,.3); background: repeating-linear-gradient(45deg, #11241a 0 6px, #0e1f16 6px 12px); }
.lm.is-hidden .lm-medal::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(244,237,222,.18); animation: lmSpin 24s linear infinite; }
@keyframes lmSpin { to { transform: rotate(360deg); } }
.lm-name { font: 700 15px/1.2 var(--display); color: var(--cream); letter-spacing: -.005em; }
.lm:not(.is-got):not(.is-hidden) .lm-name { color: rgba(244,237,222,.85); }
.lm-pips { display: inline-flex; gap: 4px; margin-top: 6px; }
.lm-pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--tier); }
.lm-pips i.is-on { background: var(--tier); box-shadow: 0 0 6px var(--tier); }
.lm-desc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--cream-faint); text-wrap: balance; }
.lm-prog { margin-top: 10px; font: 700 12px var(--mono); color: color-mix(in srgb, var(--fam) 75%, var(--cream)); }
.lm.is-got .lm-prog { color: var(--hi); }
.lm-meta { margin-top: 3px; font-size: 11.5px; color: var(--cream-faint); }
@media (prefers-reduced-motion: reduce) {
  .lm, .lv-ring .lv-arc, .lm-ring .lm-arc, .lv-next-ico, .lm.is-got .lm-shine, .lm.is-hidden .lm-medal::before { animation: none !important; }
  .lm:hover .lm-coin, .lm.is-got:hover .lm-coin { transform: none; }
}
@media (max-width: 640px) {
  .lv-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding: 26px 18px; }
  .lv-ring { width: 128px; height: 128px; } .lv-ring b { font-size: 40px; }
  .lv-next { text-align: left; }
  .lv-shelf { padding: 18px 12px 18px; }
  .lv-shelf header p { display: none; }
  .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lm { padding: 14px 8px 12px; }
  .lm-medal { width: 84px; height: 84px; } .lm-coin { width: 62px; height: 62px; } .lm-coin svg { width: 28px; height: 28px; }
  .lm-desc { font-size: 12px; }
}

/* «Tu día en vídeo» · Próximamente con adelanto (23-nov): texto a la izquierda y un móvil con el vídeo de ejemplo */
.vd-soon { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: center; padding: 10px 6px; }
.vs-h { margin: 4px 0 10px; font: 800 clamp(28px, 3.2vw, 40px)/1.02 var(--display); letter-spacing: -.03em; color: var(--cream); }
.vs-p { margin: 0; max-width: 48ch; font-size: 15.5px; line-height: 1.55; color: var(--cream-dim); }
.vs-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.vs-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--cream); }
.vs-list span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #B7A6E8; background: rgba(183,166,232,.14); }
.vs-list svg { width: 17px; height: 17px; }
.vs-phone { position: relative; width: 230px; aspect-ratio: 9 / 18.5; padding: 9px; border-radius: 36px; background: linear-gradient(160deg, #2a3b31, #101c15); box-shadow: 0 0 0 1px rgba(244,237,222,.12), 0 30px 60px rgba(0,0,0,.5), 0 0 60px rgba(183,166,232,.15); transform: rotate(3deg); animation: vsFloat 6s ease-in-out infinite; }
@keyframes vsFloat { 50% { transform: rotate(3deg) translateY(-8px); } }
.vs-screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0B1F12; }
.vs-map { position: absolute; inset: -40%; background-size: 900px 900px; background-position: 30% 40%; image-rendering: pixelated; animation: vsPan 18s ease-in-out infinite alternate; }
@keyframes vsPan { from { background-position: 22% 30%; transform: scale(1); } to { background-position: 70% 62%; transform: scale(1.12); } }
.vs-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,14,.75), transparent 30%, transparent 55%, rgba(9,22,14,.9)); }
.vs-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.vs-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.vs-bars i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; animation: vsBar 9s linear infinite; }
.vs-bars i:nth-child(2)::after { animation-delay: 3s; } .vs-bars i:nth-child(3)::after { animation-delay: 6s; }
@keyframes vsBar { 0% { transform: scaleX(0); } 33.3%, 100% { transform: scaleX(1); } }
.vs-kick { position: absolute; top: 26px; left: 0; right: 0; margin: 0; text-align: center; font: 700 8.5px var(--mono); letter-spacing: .24em; color: rgba(255,243,214,.8); }
.vs-title { position: absolute; top: 40px; left: 12px; right: 12px; margin: 0; text-align: center; font: 800 20px/1.05 var(--display); letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.vs-doll { position: absolute; left: 50%; top: 48%; width: 64px; translate: -50% -50%; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.4)); animation: vsWalk .6s steps(2) infinite, vsMove 9s ease-in-out infinite; }
@keyframes vsWalk { 50% { translate: -50% calc(-50% - 3px); } }
@keyframes vsMove { 0%, 100% { left: 38%; } 50% { left: 62%; } }
.vs-sub { position: absolute; bottom: 46px; left: 12px; right: 12px; margin: 0; height: 40px; text-align: center; }
.vs-sub span { position: absolute; inset: 0; display: grid; place-items: center; padding: 4px 8px; font: 600 12px/1.3 var(--body); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); opacity: 0; animation: vsSub 9s ease-in-out infinite; }
.vs-sub span:nth-child(2) { animation-delay: 4.5s; }
@keyframes vsSub { 0%, 4% { opacity: 0; transform: translateY(6px); } 10%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; } }
.vs-soon { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 4px 10px; border-radius: 999px; background: #B7A6E8; color: #12271A; font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .vs-phone, .vs-map, .vs-doll, .vs-bars i::after { animation: none; } .vs-sub span { animation: none; } .vs-sub span:first-child { opacity: 1; } }
@media (max-width: 760px) { .vd-soon { grid-template-columns: 1fr; gap: 28px; justify-items: center; } .vs-txt { justify-self: stretch; } .vs-phone { width: 200px; } }
/* «Tu día en vídeo»: el texto y el móvil, juntos y centrados, con aire a los lados (23-nov) */
@media (min-width: 761px) { .vd-soon { max-width: 820px; margin: 0 auto; padding: 28px 36px; gap: 56px; justify-content: center; } }

/* cargando un apartado (23-nov): su muñeco andando y tarjetas que brillan */
.d-skel { padding: 8px 0 0; }
.d-skel[hidden] { display: none; }
.sk-walk { position: relative; height: 72px; margin: 6px 0 6px; overflow: hidden; }
.sk-walk img { position: absolute; bottom: 4px; width: 52px; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); animation: skWalk 3.2s linear infinite, skStep .5s steps(2) infinite; }
@keyframes skWalk { from { left: -60px; } to { left: calc(100% + 10px); } }
@keyframes skStep { 50% { transform: translateY(-3px); } }
.sk-dots { position: absolute; right: 0; bottom: 10px; display: none; }
.sk-txt { margin: 0 0 18px; font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-faint); }
.sk-txt::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: skDots 1.2s steps(4) infinite; }
@keyframes skDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.sk-card { position: relative; overflow: hidden; height: 140px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.sk-card.is-big { height: 220px; margin-bottom: 14px; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sk-card::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(100deg, transparent 20%, rgba(244,237,222,.06) 50%, transparent 80%); animation: skShine 1.4s ease-in-out infinite; }
@keyframes skShine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk-walk img, .sk-card::after, .sk-txt::after { animation: none; } .sk-walk img { left: 0; } }
@media (max-width: 640px) { .sk-row { grid-template-columns: 1fr; } .sk-card.is-big { height: 180px; } }

/* la luna del «Noche N · prepara su día N+1» (23-nov): se mece despacio y le salen dos estrellitas */
.dv-moon { position: relative; flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--gold); }
.dv-moon svg { width: 18px; height: 18px; transform-origin: 50% 60%; animation: dvRock 4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(239,182,68,.55)); }
@keyframes dvRock { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } }
.dv-moon b { position: absolute; width: 4px; height: 4px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: dvTw 2.4s ease-in-out infinite; }
.dv-moon b:nth-of-type(1) { top: -2px; right: -3px; width: 6px; height: 6px; }
.dv-moon b:nth-of-type(2) { bottom: 1px; right: -5px; animation-delay: 1.2s; }
@keyframes dvTw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dv-moon svg, .dv-moon b { animation: none; } .dv-moon b { opacity: .7; } }

/* ===== Iconos del menú con movimiento (23-nov): al cargar se dibujan; cada uno tiene su gesto, que se repite
   suave en el apartado abierto y al pasar el ratón por encima. Con «reducir movimiento», quietos ===== */
.d-tab svg { overflow: visible; }
/* sin aparición (24-nov, Luis): los iconos ya están dibujados; solo hacen su gesto en el apartado abierto o con el ratón encima */
.d-tab svg :is(path, circle, rect) { transform-box: fill-box; }
@keyframes icDraw { to { stroke-dashoffset: 0; } }
#tab-pueblo { --ti: 0; } #tab-historia { --ti: 1; } #tab-noche { --ti: 2; } #tab-noches { --ti: 3; } #tab-logros { --ti: 4; } #tab-videos { --ti: 5; } #tab-ficha { --ti: 6; } #tab-cifras { --ti: 7; } #tab-fb { --ti: 8; } #tab-mas { --ti: 9; }
/* el gesto de cada uno: en el abierto, en bucle lento; con el ratón encima, también */
.d-tab:is(:hover, :focus-visible, [aria-selected="true"]) svg { animation: var(--ic-anim, none); }
/* casa: da un saltito y la puerta se abre */
#tab-pueblo { --ic-anim: icHop 2.6s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes icHop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-3px) scaleY(1.04); } 80% { transform: translateY(0) scaleY(.94); } 88% { transform: translateY(0) scaleY(1); } }
/* historia: las agujas dan una vuelta hacia atrás */
#tab-historia:is(:hover, :focus-visible, [aria-selected="true"]) svg path:nth-of-type(1) { animation: icRewind 3s cubic-bezier(.6,0,.3,1) infinite; transform-origin: 50% 50%; }
#tab-historia svg path:nth-of-type(1) { transform-origin: 50% 50%; }
@keyframes icRewind { 0%, 55% { transform: rotate(0); } 85%, 100% { transform: rotate(-360deg); } }
/* luna: se mece y brilla */
#tab-noche { --ic-anim: icRock 4s ease-in-out infinite; }
#tab-noche svg { transform-origin: 50% 60%; }
#tab-noche:is(:hover, :focus-visible, [aria-selected="true"]) svg { filter: drop-shadow(0 0 5px rgba(239,182,68,.6)); }
@keyframes icRock { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } }
/* diario: el libro se abre un poco, como si pasara una página */
#tab-noches { --ic-anim: icPage 3s ease-in-out infinite; }
#tab-noches svg { transform-origin: 20% 50%; }
@keyframes icPage { 0%, 50%, 100% { transform: perspective(60px) rotateY(0); } 70% { transform: perspective(60px) rotateY(-35deg); } }
/* logros: la medalla se balancea colgada de la cinta */
#tab-logros { --ic-anim: icSwing 2.8s ease-in-out infinite; }
#tab-logros svg { transform-origin: 50% 0; }
@keyframes icSwing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } }
/* vídeos: el objetivo «graba» (late) */
#tab-videos:is(:hover, :focus-visible, [aria-selected="true"]) svg path { animation: icRec 1.4s ease-in-out infinite; transform-origin: 0% 50%; }
@keyframes icRec { 50% { transform: scaleX(1.35) scaleY(.85); } }
/* su ficha: asiente */
#tab-ficha:is(:hover, :focus-visible, [aria-selected="true"]) svg circle { animation: icNod 2.4s ease-in-out infinite; }
@keyframes icNod { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(1.5px); } 80% { transform: translateY(-1px); } }
/* estadísticas: la línea se vuelve a dibujar */
#tab-cifras:is(:hover, :focus-visible, [aria-selected="true"]) svg path:nth-of-type(2) { animation: icRedraw 2.8s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes icRedraw { 0% { stroke-dasharray: 60; stroke-dashoffset: 60; } 45%, 100% { stroke-dasharray: 60; stroke-dashoffset: 0; } }
/* ¿algo no funciona?: el bocadillo tiembla */
#tab-fb { --ic-anim: icShake 3s ease-in-out infinite; }
@keyframes icShake { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-12deg); } 78% { transform: rotate(10deg); } 82% { transform: rotate(-6deg); } 86% { transform: rotate(3deg); } }
/* más: los puntos hacen la ola */
#tab-mas svg circle { animation: icWave 1.6s ease-in-out infinite; }
#tab-mas svg circle:nth-of-type(2) { animation-delay: .15s; } #tab-mas svg circle:nth-of-type(3) { animation-delay: .3s; }
@keyframes icWave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .d-tab svg, .d-tab svg :is(path, circle, rect) { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ===== Cabecera del personaje (23-nov): una tarjeta con su retrato que respira, sitio y monedas con icono,
   y la salud y la comida como dos medidores con nombre y barra por tramos que se llena al entrar ===== */
.d-head { padding: 18px 22px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 24px; border-bottom: 1px solid var(--line);
  background: radial-gradient(520px 200px at 0% 0%, rgba(239,182,68,.10), transparent 70%), radial-gradient(420px 220px at 100% 100%, rgba(82,199,118,.08), transparent 70%), var(--card); }
.d-head .hud-main { align-items: center; }
.d-head .hud-main .mb-avatar { position: relative; width: 68px; height: 68px; border-radius: 50%; overflow: visible; border: 0; background: radial-gradient(circle at 50% 35%, #24432f, #0f2417); }
.d-head .hud-main .mb-avatar::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--hr, 0deg), var(--gold), #52C776, var(--gold) 60%, rgba(239,182,68,.15), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hdRing 8s linear infinite; }
@property --hr { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hdRing { to { --hr: 360deg; } }
.d-head .hud-main .mb-avatar img { padding: 8px; animation: hdBreath 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes hdBreath { 50% { transform: translateY(-2px) scaleY(1.03); } }
.d-head .hud-id .mb-name { font-size: 28px; letter-spacing: -.02em; }
.d-head .mb-chips { gap: 8px; }
.d-head .mb-chip { display: inline-flex; align-items: center; gap: 6px; }
#hud-location::before { content: ''; width: 13px; height: 13px; background: #6FB6D9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.d-head #hud-coins .coin { width: 12px; height: 12px; margin: 0; animation: hdCoin 3.2s ease-in-out infinite; }
@keyframes hdCoin { 0%, 70%, 100% { transform: scaleX(1); } 80% { transform: scaleX(.15); } 90% { transform: scaleX(1); } }
/* los dos medidores */
.d-head .hud-vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 440px; flex: 0 1 440px; }
.d-head .mb-vital { grid-template-columns: 34px 1fr auto; grid-template-areas: "ico lab val" "ico bar bar"; gap: 4px 10px; padding: 10px 14px 12px 10px; border-radius: 16px; background: rgba(11,31,18,.55); border: 1px solid var(--line); }
.d-head .mb-vital::before { content: attr(aria-label); grid-area: lab; align-self: end; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); }
.d-head .mb-vital > .vital-ico { grid-area: ico; width: 30px; height: 30px; align-self: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); animation: hdBeat 2.4s ease-in-out infinite; }
.d-head .mb-vital.hunger > .vital-ico, .d-head .mb-vital.battery > .vital-ico { animation-name: hdWob; }
@keyframes hdBeat { 0%, 60%, 100% { transform: scale(1); } 66% { transform: scale(1.14); } 72% { transform: scale(.98); } 78% { transform: scale(1.08); } }
@keyframes hdWob { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } }
.d-head .mb-vital > b { grid-area: val; align-self: end; font: 700 15px var(--mono); }
.d-head .mb-vital .bar-track { grid-area: bar; height: 9px; border-radius: 3px; background: rgba(244,237,222,.07); overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 2px), transparent calc(10% - 2px) 10%); }
.d-head .mb-vital .bar-fill { position: relative; border-radius: 0; animation: hdFill 1.2s cubic-bezier(.16,1,.3,1) both .3s; transform-origin: left; overflow: hidden; }
.d-head .mb-vital .bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: hdShine 3s ease-in-out infinite 1.5s; }
@keyframes hdFill { from { transform: scaleX(0); } }
@keyframes hdShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .d-head .mb-avatar::before, .d-head .mb-avatar img, .d-head #hud-coins .coin, .d-head .mb-vital > .vital-ico, .d-head .mb-vital .bar-fill, .d-head .mb-vital .bar-fill::after { animation: none !important; } }
@media (max-width: 640px) {
  .d-head { padding: 14px 14px; border-radius: 20px; }
  .d-head .hud-main .mb-avatar { width: 58px; height: 58px; }
  .d-head .hud-vitals { gap: 8px; max-width: none; }
  .d-head .mb-vital { grid-template-columns: 26px 1fr auto; padding: 8px 10px 10px 8px; }
  .d-head .mb-vital > .vital-ico { width: 24px; height: 24px; }
  .d-head .mb-vital > b { font-size: 13px; }
}

/* los medidores, solo la primera vez (23-nov): después, quietos aunque se repinten */
.d-head.vit-done .mb-vital > .vital-ico, .d-head.vit-done .mb-vital .bar-fill, .d-head.vit-done .mb-vital .bar-fill::after { animation: none !important; }
.d-head .mb-vital > .vital-ico { animation-iteration-count: 1; }
.d-head .mb-vital .bar-fill::after { animation-iteration-count: 1; }
/* «Ahora mismo» (23-nov): etiqueta en vivo con su punto que late, el tiempo en píldoras y lo que hace, en grande */
.d-head .hud-now { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lab strip" "act act"; align-items: center; gap: 10px 16px; padding: 16px 18px; border-radius: 18px; background: rgba(11,31,18,.5); border: 1px solid var(--line); }
.d-head .hud-now-label { grid-area: lab; display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #B7A6E8; }
.d-head .hud-now-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FF5348; box-shadow: 0 0 0 0 rgba(255,83,72,.6); animation: hnPulse 2s ease-out infinite; }
@keyframes hnPulse { 0% { box-shadow: 0 0 0 0 rgba(255,83,72,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255,83,72,0); } }
.d-head .hud-activity { grid-area: act; margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--cream); }
.d-head .tl-say { grid-column: 1 / -1; }
.d-head .village-strip { grid-area: strip; display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; }
.vs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(244,237,222,.05); border: 1px solid var(--line); font: 500 12px var(--mono); letter-spacing: .02em; color: var(--cream-dim); white-space: nowrap; }
.vs-pill svg { width: 14px; height: 14px; flex: none; color: var(--gold); }
.vs-pill.is-awake svg { color: #52C776; } .vs-pill.is-sleep svg { color: #B7A6E8; } .vs-pill.is-weather svg { color: #6FB6D9; }
@media (prefers-reduced-motion: reduce) { .d-head .hud-now-label::before { animation: none; } }
@media (max-width: 640px) {
  .d-head .hud-now { grid-template-columns: 1fr; grid-template-areas: "lab" "act" "strip"; padding: 14px; }
  .d-head .village-strip { justify-content: flex-start; }
  .d-head .hud-activity { font-size: 15px; }
}

/* banda «está viviendo su día» arriba de la sala de espera (23-nov) */
.dv-band { position: relative; display: flex; align-items: center; gap: 12px; margin: -28px -28px 28px; padding: 14px 20px 14px 24px; border-radius: 24px 24px 0 0; border-bottom: 1px solid rgba(239,182,68,.2);
  background: linear-gradient(90deg, rgba(239,182,68,.16), rgba(239,182,68,.05) 60%, rgba(82,199,118,.06)); overflow: hidden; }
.dv-band-sun { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: rgba(239,182,68,.16); }
.dv-band-sun svg { width: 19px; height: 19px; animation: dvSun 14s linear infinite; }
@keyframes dvSun { to { transform: rotate(360deg); } }
.dv-band-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.dv-band-txt b { font: 700 16px/1.2 var(--display); color: var(--cream); }
.dv-band-txt small { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dv-band-lane { position: relative; flex: 1; align-self: stretch; min-width: 60px; }
.dv-band-lane img { position: absolute; bottom: -6px; width: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); animation: dvLane 9s ease-in-out infinite alternate, skStep .45s steps(2) infinite; }
@keyframes dvLane { from { left: 0; transform: scaleX(1); } 49.9% { transform: scaleX(1); } 50% { transform: scaleX(-1); } to { left: calc(100% - 30px); transform: scaleX(-1); } }
.dv-band-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--cream); color: #12271A; font: 600 14px var(--body); cursor: pointer; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.dv-band-go svg { width: 16px; height: 16px; transition: transform .2s; }
.dv-band-go:hover { transform: translateY(-1px); } .dv-band-go:hover svg { transform: translateX(3px); }
.dv-band-go:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dv-band-sun svg, .dv-band-lane img { animation: none; } }
@media (max-width: 640px) {
  .dv-band { margin: -20px -16px 18px; padding: 12px 14px; border-radius: 20px 20px 0 0; flex-wrap: wrap; }
  .dv-band-lane { display: none; }
  .dv-band-txt { flex: 1; }
  .dv-band-go { width: 100%; justify-content: center; }
}
/* títulos de grupo del menú (23-nov): en dorado, pequeños y espaciados, con una línea que llega hasta el borde */
@media (min-width: 641px) {
  .d-tabs .d-tab-group { display: flex; align-items: center; gap: 10px; margin: 26px 14px 8px; font: 700 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
  .d-tabs .d-tab-group::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(239,182,68,.35), transparent); }
  .d-tabs .d-tab-group:first-child { margin-top: 2px; }
}

/* «Ahora mismo» (23-nov): su muñeco respira con su sombra, etiquetas con icono, quien habla con él resaltado y escribiendo,
   y el día en píldoras */
.pb-doll.is-me { animation: pbBreath 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pbBreath { 50% { transform: translateY(-3px) scaleY(1.02); } }
.pb-scene::before { content: ''; position: absolute; left: 50%; bottom: 16px; width: 110px; height: 16px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); z-index: 1; }
.pb-hero.is-asleep .pb-scene::before, .pb-hero.is-charging .pb-scene::before { display: none; }
.pb-doing { font-size: 17px; line-height: 1.55; }
.pb-with > span:first-child { display: inline-flex; align-items: center; gap: 7px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-faint); }
.pb-with > span:first-child svg { width: 14px; height: 14px; }
.pb-talk > span:first-child { color: #6FB6D9; }
.pb-talk .pb-who { padding-right: 12px; background: rgba(111,182,217,.12); box-shadow: inset 0 0 0 1px rgba(111,182,217,.4); }
.pb-typing { display: inline-flex; gap: 3px; margin-left: 4px; }
.pb-typing b { width: 4px; height: 4px; border-radius: 50%; background: #6FB6D9; animation: pbType 1.2s ease-in-out infinite; }
.pb-typing b:nth-child(2) { animation-delay: .15s; } .pb-typing b:nth-child(3) { animation-delay: .3s; }
@keyframes pbType { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.pb-who { transition: background .2s; } .pb-who:hover { background: rgba(244,237,222,.1); }
.pb-pills { display: flex; flex-wrap: wrap; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .pb-doll.is-me, .pb-typing b { animation: none; } }

/* el muñeco de la banda (23-nov): va y vuelve sin saltos. La banda se repinta con cada actualización: el retraso negativo
   (según el reloj) hace que siga donde iba en vez de volver a empezar; el giro y el paso usan scale y translate, sin pisarse */
.dv-band-lane img { position: static; animation: none; }
.dv-walker { position: absolute; bottom: -6px; left: 0; width: 30px; animation: dvWalk 18s linear infinite; animation-delay: var(--d, 0s); }
.dv-walker img { display: block; width: 30px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); animation: dvFace 18s steps(1) infinite, dvStep .45s steps(2) infinite; animation-delay: var(--d, 0s), 0s; }
@keyframes dvWalk { 0% { left: 0; } 50% { left: calc(100% - 30px); } 100% { left: 0; } }
@keyframes dvFace { 0% { scale: 1 1; } 50% { scale: -1 1; } }
@keyframes dvStep { 50% { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { .dv-walker, .dv-walker img { animation: none; } }

/* ===== Su ficha (23-nov): carta de personaje ===== */
.d-who { display: grid; gap: 18px; }
.fi-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 28px; padding: 26px 30px; border-radius: 24px; border: 1px solid rgba(239,182,68,.22);
  background: radial-gradient(260px 220px at 120px 60%, rgba(239,182,68,.2), transparent 70%), linear-gradient(160deg, #1d3a28, #12271A); }
.fi-stage { position: relative; height: 200px; display: grid; place-items: end center; }
.fi-stage img { position: relative; z-index: 1; height: 170px; image-rendering: pixelated; filter: drop-shadow(0 10px 8px rgba(0,0,0,.45)); animation: pbBreath 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.fi-plinth { position: absolute; bottom: -6px; width: 170px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(239,182,68,.35), rgba(239,182,68,.08) 60%, transparent); }
.fi-k { margin: 0 0 8px; font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fi-name { margin: 0; font: 800 clamp(34px, 4.4vw, 54px)/1 var(--display); letter-spacing: -.03em; color: var(--cream); }
.fi-role { margin: 8px 0 0; font: 600 18px var(--display); color: var(--gold); }
.fi-loc { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(244,237,222,.06); border: 1px solid var(--line); font-size: 13.5px; color: var(--cream-dim); }
.fi-loc svg { width: 14px; height: 14px; color: #6FB6D9; }
.fi-about { padding: 24px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.fi-about .sheet-text { margin: 0; font: 400 19px/1.6 var(--serif); font-style: italic; color: var(--cream); max-width: 70ch; }
.d-who > .fi-k { margin: 8px 0 0; }
.fi-objs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fi-now { display: grid; gap: 14px; }
.fi-obj { display: flex; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.fi-obj-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.fi-obj-ico svg { width: 20px; height: 20px; }
.fi-obj.is-hoy { --c: #52C776; border-color: rgba(82,199,118,.3); }
.fi-obj.is-hoy .fi-obj-ico svg { animation: dvSun 14s linear infinite; }
.fi-obj.is-semana { --c: #EFB644; }
.fi-obj-k { display: flex; align-items: center; gap: 7px; margin: 2px 0 6px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c, #6FB6D9); }
.fi-obj-k b { color: #52C776; }
.fi-obj-t { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--cream); }
.fi-obj.is-done .fi-obj-t { color: var(--cream-dim); }
.fi-goals { padding: 18px 20px 20px; border-radius: 20px; background: var(--card); border: 1px solid rgba(111,182,217,.28); --c: #6FB6D9; }
.fi-goals .fi-obj-k svg { width: 15px; height: 15px; }
.fi-goals ol { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.fi-goals li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(11,31,18,.5); font-size: 15px; line-height: 1.4; color: var(--cream); }
.fi-goals li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 11.5px var(--mono); color: #6FB6D9; background: rgba(111,182,217,.14); }
.fi-goals li > span svg { width: 15px; height: 15px; }
.fi-goals li.is-done { color: var(--cream-dim); text-decoration: line-through; text-decoration-color: rgba(82,199,118,.5); }
.fi-goals li.is-done > span { color: #52C776; background: rgba(82,199,118,.14); }
@media (prefers-reduced-motion: reduce) { .fi-stage img, .fi-obj.is-hoy .fi-obj-ico svg { animation: none; } }
@media (max-width: 760px) {
  .fi-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 22px 18px; }
  .fi-stage { height: 150px; } .fi-stage img { height: 130px; } .fi-plinth { width: 130px; }
  .fi-about { padding: 20px 18px; } .fi-about .sheet-text { font-size: 17px; }
  .fi-objs { grid-template-columns: 1fr; }
}

.d-ficha { max-width: none; }
/* «Quién es», legible (24-nov): letra de lectura normal, sin cursiva */
.fi-about .sheet-text { font: 400 17px/1.7 var(--body); font-style: normal; color: rgba(244,237,222,.88); max-width: 72ch; }
@media (max-width: 760px) { .fi-about .sheet-text { font-size: 16px; } }

/* ===== Estadísticas (24-nov): icono y color por cifra, anillo del sitio favorito, semana en puntos y amigos con barras ===== */
.cf-card { position: relative; overflow: hidden; gap: 4px; padding: 20px; background: radial-gradient(240px 140px at 100% 0%, color-mix(in srgb, var(--c, #EFB644) 12%, transparent), transparent 70%), var(--card); }
.cf-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; color: var(--c, #EFB644); background: color-mix(in srgb, var(--c, #EFB644) 16%, transparent); }
.cf-ico svg { width: 19px; height: 19px; }
.cf-big { font-size: 44px; }
.cf-big small { color: var(--c, var(--cream-faint)); }
.cf-meter i { background: var(--c, var(--gold)); }
.cf-week { display: flex; gap: 5px; margin-top: 10px; }
.cf-week i { flex: 1; height: 6px; border-radius: 3px; background: rgba(244,237,222,.1); }
.cf-week i.is-on { background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.cf-fav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-donut { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.cf-donut circle { fill: none; stroke-width: 6; stroke: rgba(244,237,222,.1); }
.cf-donut .cf-arc { stroke: var(--c); stroke-linecap: round; stroke-dasharray: var(--c2); stroke-dashoffset: var(--o); }
.is-anim .cf-donut .cf-arc { animation: cfArc 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes cfArc { from { stroke-dashoffset: var(--c2); } }
.cf-friends { padding: 22px; }
.cf-ftitle { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 17px var(--display); color: var(--cream); --c: #6FB6D9; }
.cf-ftitle .cf-ico { margin: 0; width: 32px; height: 32px; } .cf-ftitle .cf-ico svg { width: 16px; height: 16px; }
.cf-friends ol { gap: 12px; margin-top: 14px; }
.cf-friends li { grid-template-columns: 28px 40px minmax(0, 1fr) auto; gap: 12px; }
.cf-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono); color: #12271A; background: rgba(244,237,222,.3); }
.cf-rank.r1 { background: #EFB644; } .cf-rank.r2 { background: #C9D1D9; } .cf-rank.r3 { background: #C98A4B; }
.cf-friends img { width: 40px; height: 40px; }
.cf-fbar { display: grid; gap: 6px; min-width: 0; }
.cf-fbar b { font: 600 16px var(--body); color: var(--cream); }
.cf-track { display: block; height: 8px; border-radius: 999px; background: rgba(244,237,222,.07); overflow: hidden; }
.cf-track i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6FB6D9, #9fd3ef); }
.is-anim .cf-track i { animation: cfGrow 1.1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 120ms + .2s); }
@keyframes cfGrow { from { width: 0; } }
.cf-times { font: 600 13px var(--mono); color: var(--cream-dim); }
.is-anim .cf-card { animation: lmIn .6s cubic-bezier(.16,1,.3,1) both; }
.is-anim .cf-grid .cf-card:nth-child(2) { animation-delay: .06s; } .is-anim .cf-grid .cf-card:nth-child(3) { animation-delay: .12s; } .is-anim .cf-grid .cf-card:nth-child(4) { animation-delay: .18s; }
@media (max-width: 640px) { .cf-big { font-size: 36px; } .cf-donut { width: 46px; height: 46px; } .cf-friends li { grid-template-columns: 26px 34px minmax(0, 1fr) auto; } }

/* menú de la cuenta (24-nov): los iconos ya están al abrirse; con el ratón encima, la casa salta y la flecha sale */
.nav-menu-item svg { overflow: visible; transition: transform .2s; }
.nav-menu-item[href]:is(:hover, :focus-visible) svg { animation: icHop 1.2s cubic-bezier(.3,1.6,.5,1) infinite; }
.nav-menu-item.is-danger svg path:nth-of-type(1), .nav-menu-item.is-danger svg path:nth-of-type(2) { transform-box: fill-box; }
.nav-menu-item.is-danger:is(:hover, :focus-visible) svg path:nth-of-type(1), .nav-menu-item.is-danger:is(:hover, :focus-visible) svg path:nth-of-type(2) { animation: icOut 1.1s ease-in-out infinite; }
@keyframes icOut { 0%, 100% { translate: 0 0; } 50% { translate: 3px 0; } }
.nav-user-avatar img { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.nav-user:hover .nav-user-avatar img { transform: translateY(-2px) rotate(-4deg); }
/* iconos de Estadísticas: se dibujan al entrar y hacen su gesto con el ratón encima */
.is-anim .cf-ico svg :is(path, circle, rect) { stroke-dasharray: 120; stroke-dashoffset: 120; animation: icDraw 1s cubic-bezier(.65,0,.35,1) forwards .2s; }
@media (prefers-reduced-motion: reduce) { .nav-menu-item svg, .nav-menu-item svg *, .cf-ico svg, .cf-ico svg * { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ===== ¿Algo no funciona? (24-nov): tipos como botones con icono, contador y la firma en pequeño ===== */
.fb-page { max-width: 760px; padding: 40px 36px 32px; background: radial-gradient(420px 220px at 0% 0%, rgba(239,182,68,.1), transparent 70%), var(--card); }
.fb-page .fb-head { align-items: center; gap: 18px; margin-bottom: 10px; }
.fb-page .fb-head .kicker { margin: 0; font: 700 11px var(--mono); letter-spacing: .16em; color: var(--gold); }
.fb-page .fb-title { margin: 4px 0 0; font: 800 clamp(26px, 3vw, 34px)/1.05 var(--display); letter-spacing: -.02em; }
.fb-page .fb-sub { margin: 6px 0 26px; font-size: 15px; }
.fb-page .field-label { display: block; margin: 0 0 10px; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-faint); }
.fb-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.fb-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11,31,18,.45); color: var(--cream-dim); font: 600 14.5px var(--body); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s cubic-bezier(.16,1,.3,1); }
.fb-chip:hover { transform: translateY(-1px); color: var(--cream); }
.fb-chip-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.fb-chip-ico svg { width: 17px; height: 17px; }
.fb-chip.is-on { color: var(--cream); border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 10%, rgba(11,31,18,.45)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.fb-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fb-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.fb-ta { position: relative; }
.fb-form .fb-ta textarea { width: 100%; min-height: 150px; padding-bottom: 30px; border-radius: 16px; }
.fb-count { position: absolute; right: 14px; bottom: 10px; font: 500 11.5px var(--mono); color: var(--cream-faint); pointer-events: none; }
.fb-page .fb-who { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 13px; color: var(--cream-faint); }
.fb-page .fb-who::before { content: ''; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.fb-page #fb-send { width: auto; min-width: 200px; padding: 0 36px; }
@media (max-width: 640px) { .fb-page { padding: 32px 18px 22px; } .fb-chips { grid-template-columns: 1fr; } .fb-page #fb-send { width: 100%; } }
.fb-page { max-width: none; }
.fb-ta { display: grid; }
.fb-form .fb-ta textarea { padding-bottom: 12px; margin-bottom: 0; }
.fb-count { position: static; justify-self: end; margin-top: 6px; }
.fb-page #fb-send { height: 52px; font-size: 16px; }

/* los iconos hacen su gesto UNA vez y se quedan quietos (24-nov, Luis): al abrir su apartado, al pasar el ratón
   o al entrar en la página; nada en bucle. Los muñecos siguen moviéndose: son personajes, no iconos */
.d-tab svg, .d-tab svg *, .nav-menu-item svg, .nav-menu-item svg *, .dv-moon svg, .dv-moon b, .dv-band-sun svg,
.fi-obj-ico svg, .lv-next-ico, .d-head #hud-coins .coin, .cf-ico svg, .cf-ico svg * { animation-iteration-count: 1 !important; }
.dv-moon b { animation-fill-mode: forwards; }

/* el gesto del icono (24-nov, Luis): con ratón, al ponerlo ENCIMA, una vez y en el momento; en el móvil (sin ratón),
   al tocarlo. Dura menos de un segundo y no se repite. «Más», al abrirlo */
.d-tab svg, .d-tab svg * { animation: none !important; }
@media (hover: hover) {
  .d-tab:hover svg { animation: var(--ic-anim) !important; }
  #tab-historia:hover svg path:nth-of-type(1) { animation: icRewind .8s cubic-bezier(.3,0,.2,1) !important; }
  #tab-videos:hover svg path { animation: icRec .7s ease-in-out !important; }
  #tab-ficha:hover svg circle { animation: icNod .8s ease-in-out !important; }
  #tab-cifras:hover svg path:nth-of-type(2) { animation: icRedraw .9s cubic-bezier(.65,0,.35,1) !important; }
}
@media (hover: none) {
  .d-tab[aria-selected="true"] svg { animation: var(--ic-anim) !important; }
  #tab-historia[aria-selected="true"] svg path:nth-of-type(1) { animation: icRewind .8s cubic-bezier(.3,0,.2,1) !important; }
  #tab-videos[aria-selected="true"] svg path { animation: icRec .7s ease-in-out !important; }
  #tab-ficha[aria-selected="true"] svg circle { animation: icNod .8s ease-in-out !important; }
  #tab-cifras[aria-selected="true"] svg path:nth-of-type(2) { animation: icRedraw .9s cubic-bezier(.65,0,.35,1) !important; }
}
#tab-pueblo { --ic-anim: icHop .8s cubic-bezier(.3,1.6,.5,1); }
#tab-noche { --ic-anim: icRock 1s ease-in-out; }
#tab-noches { --ic-anim: icPage .9s ease-in-out; }
#tab-logros { --ic-anim: icSwing 1.1s ease-out; }
#tab-fb { --ic-anim: icShake .8s ease-in-out; }
#tab-mas[aria-expanded="true"] svg circle { animation: icWave .6s ease-in-out !important; }
#tab-mas[aria-expanded="true"] svg circle:nth-of-type(2) { animation-delay: .08s !important; } #tab-mas[aria-expanded="true"] svg circle:nth-of-type(3) { animation-delay: .16s !important; }
@media (prefers-reduced-motion: reduce) { .d-tab svg, .d-tab svg * { animation: none !important; } }
@keyframes icHop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px) scaleY(1.05); } 55% { transform: translateY(0) scaleY(.92); } 75% { transform: scaleY(1.02); } }
@keyframes icRewind { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes icRock { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg); } 65% { transform: rotate(10deg); } }
@keyframes icPage { 0%, 100% { transform: perspective(60px) rotateY(0); } 40% { transform: perspective(60px) rotateY(-38deg); } }
@keyframes icSwing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 35% { transform: rotate(-10deg); } 55% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes icRec { 0%, 100% { transform: none; } 45% { transform: scaleX(1.35) scaleY(.85); } }
@keyframes icNod { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(1.5px); } 60% { transform: translateY(-1px); } }
@keyframes icShake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-12deg); } 35% { transform: rotate(10deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes icWave { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); } }

/* la moneda, quieta (24-nov, Luis) */
.d-head #hud-coins .coin { animation: none !important; }

/* móvil (24-nov): la barra de arriba no cabía (en vivo + espectadores + idioma + cuenta) y ensanchaba la página:
   todo salía descentrado y la barra de abajo quedaba debajo de la de Safari. En el panel, en el móvil, solo idioma y cuenta */
@media (max-width: 640px) {
  .nav #nav-town-link { display: none !important; }
  .nav-inner, .nav-right { min-width: 0; }
  /* en el html/body rompía la tira que tapa la hora y la batería en iOS (se veía la página por debajo al hacer scroll) */
  .dream-diary { overflow-x: clip; }
}

/* cabecera plegable (24-nov): plegada, una línea con su cara, su nombre y la salud y la comida en pequeño */
.d-head { position: relative; }
.hud-fold { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(11,31,18,.6); color: var(--cream-dim); cursor: pointer; transition: transform .25s, color .2s; }
.hud-fold svg { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.hud-fold:hover { color: var(--cream); }
.hud-fold:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.d-head.is-compact .hud-fold svg { transform: rotate(0); }
.d-head.is-compact { padding: 10px 56px 10px 12px; gap: 0; }
.d-head.is-compact .hud-now, .d-head.is-compact .village-strip, .d-head.is-compact .hud-id .mb-role, .d-head.is-compact .mb-chips { display: none !important; }
.d-head.is-compact .hud-main { flex-wrap: nowrap !important; align-items: center; gap: 12px; }
.d-head.is-compact .hud-main .mb-avatar { width: 40px; height: 40px; }
.d-head.is-compact .hud-main .mb-avatar img { padding: 4px; }
.d-head.is-compact .hud-id { flex: 1 1 auto !important; min-width: 0; }
.d-head.is-compact .hud-id .mb-name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-head.is-compact .hud-vitals { display: flex !important; gap: 6px; flex: 0 0 auto !important; max-width: none; margin: 0; }
.d-head.is-compact .mb-vital { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 6px; border-radius: 999px; }
.d-head.is-compact .mb-vital::before, .d-head.is-compact .mb-vital .bar-track { display: none; }
.d-head.is-compact .mb-vital > .vital-ico { width: 18px; height: 18px; }
.d-head.is-compact .mb-vital > b { font-size: 12px; min-width: 0; }
.d-head.is-compact .hud-fold { top: 50%; translate: 0 -50%; }
/* el botón de plegar, centrado en vertical a la derecha (24-nov) */
@media (min-width: 641px) {
  .hud-fold, .d-head.is-compact .hud-fold { position: static; translate: none; flex: none; align-self: center; margin-left: 4px; order: 99; }
  .d-head.is-compact { padding-right: 16px; }
}
/* nombres largos («Robot Chandalero») en la cabecera plegada (24-nov): el nombre se corta con «…» y nada se sale */
.d-head { grid-template-columns: minmax(0, 1fr); }
.d-head .hud-main { min-width: 0; }
.d-head.is-compact .hud-id { flex: 1 1 0 !important; min-width: 0; overflow: hidden; }
.d-head.is-compact .hud-id .mb-name { display: block; max-width: 100%; }
.d-head.is-compact .hud-vitals { flex: 0 0 auto !important; }
@media (max-width: 640px) {
  .d-head.is-compact { padding-right: 52px; }
  .d-head.is-compact .hud-main { gap: 8px; }
  .d-head.is-compact .hud-id .mb-name { font-size: 17px; }
  .d-head.is-compact .hud-vitals { gap: 4px; }
  .d-head.is-compact .mb-vital { padding: 3px 7px 3px 5px; }
  .d-head.is-compact .mb-vital > .vital-ico { width: 16px; height: 16px; }
  .d-head.is-compact .hud-fold { right: 10px; }
}

/* móvil (24-nov, Luis): la barra de apartados ARRIBA, justo debajo de la cabecera del personaje, y pegada al hacer
   scroll; abajo chocaba con la barra de Safari. «Más» se abre hacia abajo */
@media (max-width: 900px) {
  .d-body { padding-top: 14px; gap: 18px; }
  .d-side { position: sticky; top: var(--nav-h, 60px); bottom: auto; left: auto; right: auto; order: -1; z-index: 300; margin: 0 -16px;
    padding: 4px 8px; border-top: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(13,30,20,.96); }
  body:has(.dream-diary:not([hidden])) { padding-bottom: 0; }
  .d-tab.is-on::before, .d-tab-more.is-on::before { top: auto; bottom: -5px; border-radius: 3px 3px 0 0; }
  .d-tabs.is-more-open .d-tab.is-more { order: 2; }
  .d-tabs.is-more-open { padding-top: 0; padding-bottom: 8px; }
}

/* móvil (24-nov): vuelven el «en vivo» y los espectadores, en corto (solo icono y número), como en el directo */
@media (max-width: 640px) {
  .nav .source-chip .chip-short, .nav .source-chip .chip-txt, .nav .viewers-chip .chip-txt { display: none; }
  .nav .source-chip { padding: 0 9px; gap: 0; min-width: 32px; justify-content: center; height: 30px; }
  .nav .viewers-chip { padding: 0 9px; gap: 4px; height: 30px; }
  .nav .nav-right { gap: 6px; }
  .nav-user-chev { display: none; }
}

/* ===== Su historia, más sencilla (25-nov): sin etiquetas en mayúsculas ni filtros de más; cada suceso con su icono ===== */
.hist-label, .hist-order { display: none; }
.hist-row { margin: 0; }
.hist-tools { display: grid; gap: 10px; }
.hist-tools .hist-row + .hist-row { margin-top: 0; }
.tl-item { grid-template-columns: 52px 32px minmax(0, 1fr); align-items: start; }
.tl-dot { width: 30px; height: 30px; margin: 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(244,237,222,.07); }
.tl-dot::before { content: ''; width: 15px; height: 15px; background: var(--cream-dim); -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.tl-dot.dialogo { background: rgba(111,182,217,.14); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E"); } .tl-dot.dialogo::before { background: #6FB6D9; }
.tl-dot.viaje { background: rgba(239,182,68,.14); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16v-2.4C4 11.5 3 10.5 3 8c0-2.7 1.5-6 4.5-6C9.4 2 10 3.8 10 5.5c0 3.1-2 5.7-2 8.7V16a2 2 0 1 1-4 0ZM20 20v-2.4c0-2.1 1-3.1 1-5.6 0-2.7-1.5-6-4.5-6C14.6 6 14 7.8 14 9.5c0 3.1 2 5.7 2 8.7V20a2 2 0 1 0 4 0Z'/%3E%3C/svg%3E"); } .tl-dot.viaje::before { background: var(--gold); }
.tl-dot.plan { background: rgba(82,199,118,.14); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); } .tl-dot.plan::before { background: #52C776; }
.tl-dot.sueno { background: rgba(183,166,232,.14); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E"); } .tl-dot.sueno::before { background: #B7A6E8; }
.tl-dot.accion, .tl-dot:not(.dialogo):not(.viaje):not(.plan):not(.sueno) { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.5V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-5.9-2.4L3.3 16.8a2 2 0 0 1 2.8-2.8L7 15'/%3E%3C/svg%3E"); }
.tl-time { padding-top: 7px; font-size: 12px; }
.tl-text { margin-top: 4px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: auto auto minmax(0, 1fr); } .tl-dot { width: 26px; height: 26px; } .tl-dot::before { width: 13px; height: 13px; } .tl-time { padding-top: 0; } }

/* iPhone (25-nov): la zona de la hora y la batería mostraba el panel por debajo al hacer scroll. La barra de apartados
   (pegada, z-index 300) y la cabecera quedaban por encima de la barra de arriba (100) y de la tira que tapa la hora (99):
   ahora la barra de arriba y su tira van por encima de todo lo del panel, y la tira tapa más alto */
.nav { z-index: 1000; }
.status-cover { z-index: 1001; }
.status-cover::before { height: 240px; }
@media (max-width: 860px) { .nav::before { height: 240px; } }

/* iPhone (25-nov): con la barra de apartados «pegada» (sticky), Safari dejaba ver la página bajo la hora. Antes, con la barra
   fija, no pasaba: ahora va FIJA justo debajo de la barra de arriba, y el contenido deja su hueco */
@media (max-width: 900px) {
  .d-side { position: fixed; top: var(--nav-h, 60px); left: 0; right: 0; margin: 0; z-index: 900; }
  .d-body { padding-top: 14px; }
  .dream-diary { padding-top: calc(var(--nav-h, 60px) + 84px); }
}

/* iPhone con iOS 26 (25-nov): Safari pinta la zona de la hora con el COLOR DE FONDO del primer elemento fijo o pegado que
   toca el borde de arriba. Ese era la tira .status-cover (alto 0 y SIN fondo: transparente), así que se veía la página.
   Con su propio fondo, y la barra de arriba también con fondo opaco, la zona de la hora sale lisa */
.status-cover { background-color: var(--bg); height: 1px; margin-bottom: -1px; }
@media (max-width: 860px) { .nav { background-color: var(--bg); } }

/* iPhone (25-nov, 3.º intento): la cabecera del personaje tiene animaciones continuas (el anillo del retrato, el muñeco que
   respira), y Safari las pinta en su propia capa, que quedaba por encima de la tira que tapa la hora. La tira y la barra
   de arriba van ahora también en su propia capa (y por encima); y en el móvil, la cabecera no anima nada */
@media (max-width: 900px) {
  .d-head .hud-main .mb-avatar::before, .d-head .hud-main .mb-avatar img { animation: none !important; }
}

/* iPhone (25-nov): la página salía más ancha que la pantalla (descentrada, la derecha cortada) y, al estar desplazada,
   Safari tampoco tapaba bien la zona de la hora. Nada puede ser más ancho que la pantalla: la barra de arriba recorta
   su contenido y el nombre del proyecto se acorta si no cabe */
@media (max-width: 640px) {
  .nav, .nav-inner { max-width: 100vw; }
  .nav-inner { overflow: hidden; padding: 0 12px; gap: 8px; }
  .nav-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1 1 auto; }
  .nav-right { flex: 0 0 auto; }
  .dream-diary, .d-head, .d-body, .d-main { max-width: 100%; }
}

/* iPhone (25-nov, la buena): Safari decide cómo pinta la zona de la hora mirando las barras fijas de arriba. La barra
   de apartados llevaba fondo translúcido y desenfoque (backdrop-filter), heredados de cuando iba abajo, y con eso Safari
   pasa a «transparentar» la página bajo la hora. Fondo opaco y sin desenfoque, como la barra de arriba */
@media (max-width: 900px) {
  .d-side { background: var(--bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* iPhone (25-nov): comparado con el directo, que se ve bien, la única diferencia arriba era la barra de apartados FIJA
   justo debajo de la barra de Sandia Village. Con ella, el Safari del iPhone deja ver la página bajo la hora. Vuelve a ir
   en su sitio, debajo de la cabecera del personaje, y se desplaza con la página (como cualquier bloque); y la tira de
   arriba queda exactamente como en el directo */
@media (max-width: 900px) {
  .d-side { position: static !important; top: auto; margin: 0 -16px; z-index: auto; }
  .dream-diary { padding-top: 84px; }
}
.status-cover { background-color: transparent; height: 0; margin-bottom: 0; z-index: 99; }
.status-cover::before { height: 140px; }
.nav { z-index: 100; }

/* iPhone (25-nov, la causa de verdad): al entrar al panel sale el velo de entrada (.enter-fx), FIJO, a pantalla completa,
   POR ENCIMA de la barra de arriba y con degradado y desenfoque. El Safari del iPhone mira lo que hay fijo arriba del todo
   para decidir qué pinta bajo la hora: veía el velo (translúcido) y se quedaba con eso, así que dejaba ver la página
   bajo la hora todo el rato. El directo no tiene velo, por eso allí no pasaba. Ahora el velo empieza DEBAJO de la barra
   de arriba y va por debajo de ella: lo de arriba del todo es siempre la barra opaca */
.enter-fx { top: var(--nav-h, 60px); z-index: 99; }

/* iPhone con iOS 26 (25-nov): Safari pinta la zona de la hora con el color de fondo del elemento fijo que encuentra arriba
   del todo; si no le convence, deja ver la página. Esta tira fija de 11 px (el mínimo que Safari tiene en cuenta), por
   encima de todo, solo le da el color: no se ve (background-clip: text sin texto) y no recibe toques */
.ios-tint { display: none; }
@supports (-webkit-touch-callout: none) {
  .ios-tint { display: block; position: fixed; top: 0; left: 0; right: 0; height: 11px; z-index: 2147483647; pointer-events: none;
    background-color: #0B1F12; -webkit-background-clip: text; background-clip: text; color: transparent; }
}

/* ===== Su historia · barra de filtros (25-nov): el buscador y, en una sola línea, dos selectores tipo pestaña
   (los días y qué ver), con iconos como los de cada suceso ===== */
.hist-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 6px; }
.hist-searchbox { flex: 1 1 100%; }
.hist-search { height: 46px; border-radius: 14px; font-size: 15px; }
.hist-row { flex: 0 1 auto; min-width: 0; }
.hist-chips { gap: 2px; padding: 4px; border-radius: 999px; background: rgba(11,31,18,.55); border: 1px solid var(--line); }
.h-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0 !important; border-radius: 999px; background: transparent; color: var(--cream-dim); font-size: 14px; white-space: nowrap; }
.h-chip:hover { background: rgba(244,237,222,.06); }
.h-chip.is-on { background: var(--cream); color: #12271A; }
#hist-types .h-chip::before { content: ''; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
#hist-types .h-chip[data-type=""] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
#hist-types .h-chip[data-type="conv"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E"); }
#hist-types .h-chip[data-type="viaje"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16v-2.4C4 11.5 3 10.5 3 8c0-2.7 1.5-6 4.5-6C9.4 2 10 3.8 10 5.5c0 3.1-2 5.7-2 8.7V16a2 2 0 1 1-4 0ZM20 20v-2.4c0-2.1 1-3.1 1-5.6 0-2.7-1.5-6-4.5-6C14.6 6 14 7.8 14 9.5c0 3.1 2 5.7 2 8.7V20a2 2 0 1 0 4 0Z'/%3E%3C/svg%3E"); }
#hist-types .h-chip[data-type="sueno"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E"); }
#hist-types .h-chip:not(.is-on)[data-type="conv"]::before { background: #6FB6D9; }
#hist-types .h-chip:not(.is-on)[data-type="viaje"]::before { background: var(--gold); }
#hist-types .h-chip:not(.is-on)[data-type="sueno"]::before { background: #B7A6E8; }
.hist-meta { margin: 6px 0 4px; }
@media (max-width: 640px) {
  .hist-row { flex: 1 1 100%; }
  .hist-chips { width: 100%; }
  #hist-types { justify-content: space-between; }
  #hist-types .h-chip { padding: 0 10px; font-size: 13px; gap: 5px; }
  #hist-types .h-chip span { white-space: nowrap; }
}
@media (max-width: 640px) {
  .hist-chips .h-chip { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  #hist-types .h-chip i { display: none; }
  #hist-types .h-chip { font-size: 12.5px; gap: 4px; }
  #hist-types .h-chip::before { width: 13px; height: 13px; }
}
/* ===== «Ver en el directo» (25-nov): botón de directo discreto, con el punto rojo que late ===== */
.pb-live { height: 40px; padding: 0 16px 0 14px; gap: 10px; background: rgba(255,90,70,.10); border: 1px solid rgba(255,90,70,.45); color: var(--cream); font: 600 14px var(--sans); transition: background .2s, border-color .2s, transform .2s cubic-bezier(.16,1,.3,1); }
.pb-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FF5A46; box-shadow: 0 0 0 0 rgba(255,90,70,.6); animation: pbLive 1.8s ease-out infinite; flex: none; }
.pb-live:hover { background: rgba(255,90,70,.18); border-color: rgba(255,90,70,.7); transform: none; }
.pb-live svg { width: 14px; height: 14px; color: #FF8A7A; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.pb-live:hover svg { transform: translate(2px,-2px); }
@keyframes pbLive { 0% { box-shadow: 0 0 0 0 rgba(255,90,70,.6); } 70%,100% { box-shadow: 0 0 0 7px rgba(255,90,70,0); } }
@media (prefers-reduced-motion: reduce) { .pb-live::before { animation: none; } }

/* ===== Banda «está viviendo su día» (25-nov): ventanita al cielo en vez del sol de línea; quieta ===== */
.dv-band-sun { width: 38px; height: 38px; background: none; padding: 0; box-shadow: 0 0 0 1px rgba(239,182,68,.35), 0 4px 14px -6px rgba(239,182,68,.5); }
.dv-band-sun svg { width: 38px; height: 38px; animation: none !important; }
.dv-band-sun .sk-sky { fill: #6E8FB8; }
.dv-band-sun .sk-halo { fill: #FFE7A6; opacity: .35; }
.dv-band-sun .sk-sun { fill: #FFD25C; }
.dv-band-sun .sk-hill { fill: #2F5A35; }
.dv-band-sun .sk-line { fill: none; stroke: #4E8A4F; stroke-width: 1.2; }
.dv-band-sun.is-m .sk-sky { fill: #8FB4D9; }
.dv-band-sun.is-m .sk-sun { fill: #FFC94D; }
.dv-band-sun.is-t .sk-sky { fill: #E08A55; }
.dv-band-sun.is-t .sk-halo { fill: #FFB070; opacity: .45; }
.dv-band-sun.is-t .sk-sun { fill: #FFCB5C; }
.dv-band-sun.is-t .sk-hill { fill: #24452A; }
/* Vídeos · móvil de «Próximamente» (25-nov): el mapa más de cerca y el muñeco más pequeño, a la escala del pueblo */
.vs-map { background-size: 2100px 2100px; }
.vs-doll { width: 40px; top: 50%; }

/* ===== Banda (25-nov, opción C): icono de línea del momento del día dentro del anillo del día (9:00 → 21:00), quieto ===== */
.dv-band-sun.is-ring { position: relative; width: 38px; height: 38px; background: none; box-shadow: none; color: var(--gold); }
.dv-band-sun.is-ring .dv-ring { position: absolute; inset: 0; width: 38px; height: 38px; transform: rotate(-90deg); animation: none !important; }
.dv-band-sun.is-ring .r-bg { fill: rgba(239,182,68,.12); stroke: rgba(239,182,68,.2); stroke-width: 2.5; }
.dv-band-sun.is-ring .r-on { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.dv-band-sun.is-ring .dv-ico { position: relative; width: 16px; height: 16px; animation: none !important; }
/* «Su día, en directo» (25-nov): aire entre la entradilla y «Lo que planeó al despertar» */
.lv-sub { margin-bottom: 22px; }

/* ===== «Lo que planeó al despertar» (25-nov): icono del amanecer, título con la hora, avance de una línea y flecha ===== */
details.pb-plan { padding: 0; overflow: hidden; background: linear-gradient(180deg, rgba(183,166,232,.10), rgba(183,166,232,.04)); border-color: rgba(183,166,232,.28); transition: border-color .2s, background .2s; }
details.pb-plan:hover { border-color: rgba(183,166,232,.5); }
details.pb-plan summary.pb-k { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; color: var(--cream); }
details.pb-plan summary::after { content: none !important; }
details.pb-plan[open] summary { margin-bottom: 0; }
.pp-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #B7A6E8; background: rgba(183,166,232,.16); }
.pp-ico svg { width: 18px; height: 18px; }
.pp-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pp-t { display: flex; align-items: baseline; gap: 10px; font: 600 15px var(--sans); color: var(--cream); }
.pp-t i { font: 500 11.5px var(--mono); font-style: normal; letter-spacing: .06em; color: #B7A6E8; }
.pp-prev { font: 400 13.5px var(--sans); color: var(--cream-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.pb-plan[open] .pp-prev { display: none; }
.pp-chev { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #B7A6E8; background: rgba(183,166,232,.08); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.pp-chev svg { width: 16px; height: 16px; }
details.pb-plan[open] .pp-chev { transform: rotate(180deg); }
details.pb-plan > p { margin: 0 16px 16px 68px; padding: 2px 0 2px 14px; border-left: 2px solid rgba(183,166,232,.45); font-size: 15px; line-height: 1.6; color: var(--cream); }
@media (max-width: 640px) { details.pb-plan > p { margin-left: 16px; } .pp-ico { width: 34px; height: 34px; } }
.pp-t { flex-wrap: wrap; row-gap: 2px; }
.pp-t b { font-weight: 600; min-width: 0; }
@media (max-width: 640px) { .pp-t b { font-size: 14.5px; } details.pb-plan summary.pb-k { gap: 12px; padding: 12px 14px; } }
/* «Lo que planeó al despertar» abierto (25-nov, opción B): el plan en un bocadillo de pensamiento, con dos burbujas hacia el icono */
details.pb-plan > p { position: relative; border-left: 0; margin: 4px 16px 16px 68px; padding: 14px 18px; border-radius: 4px 18px 18px 18px; background: rgba(183,166,232,.12); }
details.pb-plan > p::before, details.pb-plan > p::after { content: ''; position: absolute; border-radius: 50%; }
details.pb-plan > p::before { left: -18px; top: -2px; width: 8px; height: 8px; background: rgba(183,166,232,.18); }
details.pb-plan > p::after { left: -9px; top: 6px; width: 11px; height: 11px; background: rgba(183,166,232,.15); }
@media (max-width: 640px) { details.pb-plan > p { margin: 2px 14px 14px 40px; } }

/* ===== «Su día · En directo» (25-nov): título corto con la pastilla roja que late, enlace con flecha y entradilla de una línea ===== */
.pb-today-head { align-items: center; }
.pt-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-l .d-h2 { margin: 0; }
.pt-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255,83,72,.12); border: 1px solid rgba(255,83,72,.4); color: #FF8A7A; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pt-live i { width: 8px; height: 8px; border-radius: 50%; background: #FF5348; animation: pbLive 1.8s ease-out infinite; }
.pb-more { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239,182,68,.35); text-decoration: none; font-weight: 500; transition: background .2s, border-color .2s; }
.pb-more:hover { background: rgba(239,182,68,.1); border-color: rgba(239,182,68,.6); }
.pb-more svg { width: 15px; height: 15px; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.pb-more:hover svg { transform: translateX(2px); }
.lv-sub { margin-top: 8px; font: 400 12.5px var(--mono); letter-spacing: .02em; color: var(--cream-faint, rgba(244,237,222,.5)); }
@media (prefers-reduced-motion: reduce) { .pt-live i { animation: none; } }
@media (max-width: 640px) { .pb-more { height: 32px; padding: 0 12px; font-size: 13px; } }
.lv-sub { max-width: none; }
@media (max-width: 640px) {
  .pb-today-head { flex-wrap: nowrap; }
  .pt-l { gap: 10px; }
  .pt-live { height: 24px; padding: 0 9px 0 8px; font-size: 10px; letter-spacing: .1em; }
  .pb-more { flex: none; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .pb-more svg { width: 16px; height: 16px; }
}

/* ===== Sala de espera · «se está yendo a dormir» (25-nov): la misma pantalla del día, en versión de noche ===== */
.tonight.is-day.is-bed { background: radial-gradient(560px 360px at 86% 24%, rgba(183,166,232,.16), transparent 70%), linear-gradient(180deg, #172238, var(--card) 70%); }
.dv-band.is-bed { background: linear-gradient(90deg, rgba(183,166,232,.16), rgba(183,166,232,.04)); border-bottom-color: rgba(183,166,232,.3); }
.dv-band-sun.is-moon { width: 38px; height: 38px; color: #B7A6E8; background: rgba(183,166,232,.16); box-shadow: 0 0 0 1px rgba(183,166,232,.35); }
.dv-band-sun.is-moon svg { width: 18px; height: 18px; animation: none !important; }
.dv-band.is-bed .dv-band-txt small { color: #B7A6E8; }
.is-bed .dv-h em { color: #B7A6E8; }
.is-bed .dv-pack .sb-pack { animation: dvBedGlow 2.4s ease-in-out infinite; }
@keyframes dvBedGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(183,166,232,0)); } 50% { filter: drop-shadow(0 0 22px rgba(183,166,232,.45)); } }
.dv-lock.is-soon { color: #12271A; background: #B7A6E8; border-color: #B7A6E8; }
.dv-lock.is-soon span { color: #12271A; }
@media (prefers-reduced-motion: reduce) { .is-bed .dv-pack .sb-pack { animation: none; } }

/* ═══ Ahora mismo · escribiendo el diario (25-nov): en casa, de noche, en el escritorio con la vela (pueblo.js → deskHTML) ═══ */
.pb-hero.is-diary .pb-scene { background: radial-gradient(60% 55% at 62% 62%, rgba(255,190,90,.18), transparent 70%), linear-gradient(180deg, #121a33, #0c1224 70%, #0a0f1d); }
.pb-desk { position: relative; width: 280px; height: 210px; image-rendering: pixelated; }
.pb-desk .pb-moon { left: 4px; top: 0; }
.pb-glow { position: absolute; right: 8px; top: 60px; width: 170px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,200,110,.35), transparent); animation: pbFlick 3.2s ease-in-out infinite; }
.pb-writer { position: absolute; left: 70px; top: 34px; width: 96px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.pb-table { position: absolute; left: 10px; right: 10px; top: 128px; height: 18px; border-radius: 4px; background: #8a5a34; box-shadow: inset 0 4px 0 #a8703f, inset 0 -3px 0 #5f3c20, 0 0 0 3px #4a2e18; }
.pb-table::before, .pb-table::after { content: ''; position: absolute; top: 18px; width: 14px; height: 60px; background: #6b4426; box-shadow: inset 3px 0 0 #8a5a34, 0 0 0 3px #4a2e18; }
.pb-table::before { left: 14px; } .pb-table::after { right: 14px; }
.pb-book { position: absolute; left: 92px; top: 114px; width: 84px; height: 18px; display: flex; gap: 2px; transform: skewX(-8deg); }
.pb-book i { flex: 1; border-radius: 2px; background: repeating-linear-gradient(180deg, #f4edde 0 3px, #c9bfa9 3px 4px); box-shadow: 0 0 0 2px #6b4426; }
.pb-pen { position: absolute; left: 150px; top: 98px; width: 4px; height: 24px; border-radius: 2px; background: #2b2b33; transform-origin: 50% 100%; rotate: 28deg; box-shadow: 0 0 0 1px #111; animation: pbWrite 1.4s ease-in-out infinite; }
.pb-pen::before { content: ''; position: absolute; left: 0; top: -6px; width: 4px; height: 8px; background: #efb644; border-radius: 2px 2px 0 0; }
.pb-candle { position: absolute; right: 36px; top: 98px; width: 14px; height: 30px; border-radius: 2px; background: #f4edde; box-shadow: inset -3px 0 0 #d9cfba, 0 0 0 2px #b9ad95; }
.pb-candle i { position: absolute; left: 50%; top: -14px; width: 10px; height: 14px; margin-left: -5px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff6c8, #ffc44d 55%, #ff8a3d); animation: pbFlame 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pbFlame { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.1,.92) rotate(3deg); } }
@keyframes pbFlick { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes pbWrite { 0%,100% { translate: 0 0; } 25% { translate: -6px 1px; } 50% { translate: -12px 0; } 75% { translate: -6px 1px; } }
@media (prefers-reduced-motion: reduce) { .pb-glow, .pb-candle i, .pb-pen { animation: none; } }
.pb-writer { clip-path: inset(0 0 calc(100% - 96px) 0); }
/* 25-nov: en móvil el menú de la cuenta quedaba recortado por el overflow:hidden de la barra: se recorta solo en horizontal */
@media (max-width: 760px) { .nav-inner { overflow: visible; overflow-x: clip; overflow-y: visible; } }

/* 25-nov (iPhone): el menú de la cuenta, fijo bajo la barra, para que ningún recorte ni repintado de la barra lo esconda */
@media (max-width: 760px) {
  .nav-menu { position: fixed; top: calc(var(--nav-h, 64px) + 6px); right: 12px; left: auto; z-index: 300; }
}
/* 25-nov (iPhone): el velo «Entrando en la mente de…» llega hasta abajo del todo, también por detrás de la barra de Safari */
.enter-fx { bottom: -140px; padding-bottom: 140px; }
@supports (height: 100lvh) { .enter-fx { bottom: auto; padding-bottom: 0; height: calc(100lvh - var(--nav-h, 60px) + 2px); } }
/* mientras sale el velo de entrada, el panel no se ve (en el iPhone asomaba por detrás de la barra de Safari) */
#dash-view { transition: opacity .4s ease; }
html.is-entering #dash-view { opacity: 0; }
/* se oculta de golpe al empezar el velo (el fundido, solo al volver) */
html.is-entering #dash-view { transition: none; }
html.is-entering #dash-view { visibility: hidden !important; opacity: 0 !important; }

/* «Así va a ser tu susurro» (25-nov): la vista previa, sin la animación de palabras y algo más discreta */
.wh-preview { margin: 18px 0 14px; }
.wh-preview .wh-title { margin-bottom: 10px; }
.wh-now.is-preview { opacity: .92; }
.wh-now.is-preview blockquote, .wh-now.is-preview blockquote * { animation: none !important; opacity: 1 !important; }

/* ===== Recibo de la noche (23-nov, recibo.js): cuando ya le has susurrado, solo esto ===== */
.tonight.is-sent > :not(#recibo):not(.vd-cta) { display: none !important; }
.tonight.is-sent { background: linear-gradient(180deg, #172238 0%, var(--card) 46%); }
.recibo { display: block; }
.rc-ok { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(82,199,118,.14); border: 1px solid rgba(82,199,118,.45); color: #8FE3A8; font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rc-ok i { width: 22px; height: 22px; border-radius: 50%; background: #52C776; display: grid; place-items: center; }
.rc-ok svg { width: 14px; height: 14px; color: #0B1F12; }
.rc-h { margin: 18px 0 8px; font: 800 clamp(32px, 4.6vw, 52px)/1.02 var(--display); letter-spacing: -.035em; color: var(--cream); }
.rc-sub { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cream-dim); max-width: 62ch; }
.rc-sub b { color: var(--cream); }
.rc-kick { margin: 32px 0 14px; font: 700 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint, rgba(244,237,222,.5)); }
.rc-pack { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.rc-pack.no-wh { grid-template-columns: 1fr; }
.rc-k { display: inline-flex; align-items: center; gap: 10px; font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rc-k svg { width: 18px; height: 18px; }
.rc-wh { padding: 26px 28px; border-radius: 22px; background: linear-gradient(160deg, rgba(59,46,110,.85), rgba(27,22,64,.9)); border: 1px solid rgba(183,166,232,.4); }
.rc-wh .rc-k { color: #B7A6E8; }
.rc-wh blockquote { margin: 16px 0 18px; font: 500 21px/1.5 var(--body, var(--sans)); letter-spacing: -.005em; color: #F3EEFF; text-wrap: pretty; overflow-wrap: anywhere; }
.rc-who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(232,228,255,.75); }
.rc-who img { width: 40px; height: 50px; image-rendering: pixelated; }
.rc-who small { margin-left: auto; font: 500 12px var(--mono); color: rgba(232,228,255,.55); }
.rc-cd { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 20px 22px; border-radius: 22px; background: rgba(239,182,68,.08); border: 1px solid rgba(239,182,68,.4); }
.rc-cd.is-none { grid-template-columns: 1fr; }
.rc-cd .rc-k { color: var(--gold); }
.rc-mini { display: block; width: 280px; zoom: .52; transform: rotate(-4deg); pointer-events: none; }
.rc-mini .ct { margin: 0; cursor: default; opacity: 1; box-shadow: 0 18px 36px rgba(0,0,0,.45); }
.rc-mini .ct-badge { display: none; }
.rc-mision { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--cream); }
.rc-pts { display: inline-flex; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(239,182,68,.16); color: var(--gold); font: 700 13px var(--mono); }
.rc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rc-st { padding: 18px 20px; border-radius: 18px; background: rgba(244,237,222,.04); border: 1px solid var(--line); }
.rc-sh { display: flex; align-items: center; gap: 10px; font: 700 15px var(--mono); color: var(--gold); }
.rc-sh i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,182,68,.15); }
.rc-sh svg { width: 16px; height: 16px; }
.rc-st b { display: block; margin-top: 10px; font: 700 17px var(--body, var(--sans)); color: var(--cream); }
.rc-st p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--cream-dim); }
.rc-lock { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; line-height: 1.45; color: var(--cream-faint, rgba(244,237,222,.55)); }
.rc-lock svg { width: 16px; height: 16px; color: #B7A6E8; flex: none; }
@media (max-width: 760px) {
  .rc-pack, .rc-steps { grid-template-columns: 1fr; }
  .rc-wh { padding: 22px 20px; }
  .rc-wh blockquote { font-size: 18.5px; }
  .rc-who { flex-wrap: wrap; }
  .rc-cd { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 24px 20px; }
  .rc-mini { zoom: .48; transform: rotate(-3deg); }
  .rc-steps { gap: 0; padding-left: 4px; }
  .rc-st { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 0 0 16px; border: 0; background: none; }
  .rc-st::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: rgba(239,182,68,.25); }
  .rc-st:last-child::before { display: none; }
  .rc-sh { grid-row: 1 / 3; align-self: start; font-size: 0; }
  .rc-sh i { width: 32px; height: 32px; }
  .rc-st b { margin-top: 4px; font-size: 16px; }
  .rc-st b::before { content: attr(data-t); display: block; font: 700 12px var(--mono); color: var(--gold); letter-spacing: .08em; margin-bottom: 2px; }
}
/* La letra de los susurros, en todas las cajas (23-nov, Luis: la cursiva fina se leía mal) */
.wh-now blockquote { font: 500 20px/1.5 var(--body, var(--sans)) !important; font-style: normal !important; letter-spacing: -.005em; color: #F3EEFF; text-shadow: none; }
@media (max-width: 640px) { .wh-now blockquote { font-size: 18px !important; } }
.rc-mini .ct-badge, .rc-mini .tc-chosen { display: none !important; }
.rc-pack { grid-template-columns: 1.15fr 1fr; }
.rc-pts { white-space: nowrap; }
.rc-mini { zoom: .56; }
@media (max-width: 760px) { .rc-pack { grid-template-columns: 1fr; } .rc-mini { zoom: .5; } }
/* 24-nov: con el sobre, título y frase centrados encima de él */
.tonight.is-sobre > .t-title, .tonight.is-sobre > .t-sub { text-align: center; margin-left: auto; margin-right: auto; }
.tonight.is-sobre > .t-title { max-width: 22ch; }

/* 24-nov: el recuadro cuando no elige carta: un hueco de carta vacío (borde discontinuo) y el texto centrado en vertical */
.rc-cd.is-none { grid-template-columns: auto 1fr; align-content: center; gap: 22px; background: rgba(244,237,222,.025); border: 1px dashed rgba(239,182,68,.38); }
.rc-slot { display: grid; place-items: center; width: 92px; aspect-ratio: 5 / 7; border-radius: 12px; border: 2px dashed rgba(239,182,68,.42);
  background: repeating-linear-gradient(135deg, rgba(239,182,68,.05) 0 8px, transparent 8px 16px); transform: rotate(-4deg); }
.rc-slot i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(239,182,68,.14); color: var(--gold); }
.rc-slot svg { width: 20px; height: 20px; }
.rc-none-t { margin: 8px 0 0; font: 800 24px/1.1 var(--display); letter-spacing: -.02em; color: var(--cream); }
.rc-cd.is-none .rc-mision { margin-top: 6px; font-size: 15px; color: var(--cream-dim, rgba(244,237,222,.72)); }
@media (max-width: 760px) { .rc-cd.is-none { grid-template-columns: 1fr; justify-items: center; text-align: center; } .rc-slot { width: 80px; } }

/* ═══ Ahora mismo · antes del diario (24-nov): haciendo la cena, cenando y viendo la tele (pueblo.js → kitchenHTML, dinnerHTML, tvHTML) ═══ */
/* cocina: el muñeco de pie junto al fogón, con la olla y el vapor */
.is-cena .pb-writer { left: 36px; }
.pb-stove { position: absolute; left: 150px; top: 112px; width: 110px; height: 86px; border-radius: 4px; background: #3a3f4a; box-shadow: inset 0 6px 0 #555c6a, inset 0 -4px 0 #262a33, 0 0 0 3px #1b1e25; }
.pb-stove b { position: absolute; top: 30px; width: 30px; height: 30px; border-radius: 4px; background: #1b1e25; box-shadow: inset 0 0 0 3px #5c6270; }
.pb-stove b:first-child { left: 16px; } .pb-stove b:last-child { right: 16px; box-shadow: inset 0 0 0 3px #5c6270, inset 0 0 10px rgba(255,140,60,.6); }
.pb-pot { position: absolute; left: 172px; top: 82px; width: 66px; height: 32px; border-radius: 3px 3px 8px 8px; background: #c25a3c; box-shadow: inset 0 5px 0 #e0795a, inset 0 -4px 0 #8f3c26, 0 0 0 3px #4a1e12; }
.pb-pot::before, .pb-pot::after { content: ''; position: absolute; top: 6px; width: 10px; height: 6px; background: #4a1e12; }
.pb-pot::before { left: -12px; } .pb-pot::after { right: -12px; }
.pb-steam { position: absolute; left: 180px; top: 30px; width: 50px; height: 50px; }
.pb-steam i { position: absolute; bottom: 0; width: 8px; height: 22px; border-radius: 8px; background: rgba(244,237,222,.35); animation: pbSteam 2.4s ease-in infinite; }
.pb-steam i:nth-child(1) { left: 4px; } .pb-steam i:nth-child(2) { left: 21px; animation-delay: .8s; } .pb-steam i:nth-child(3) { left: 38px; animation-delay: 1.6s; }
@keyframes pbSteam { 0% { transform: translateY(8px) scaleY(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-26px) scaleY(1.2); opacity: 0; } }
.is-cena .pb-glow { right: 0; top: 70px; background: radial-gradient(closest-side, rgba(255,150,80,.32), transparent); }
/* cenando: la mesa del diario, con el plato, el tenedor, el vaso y la vela */
.pb-plate { position: absolute; left: 92px; top: 116px; width: 70px; height: 16px; border-radius: 50%; background: #f4edde; box-shadow: inset 0 -3px 0 #c9bfa9, 0 0 0 2px #6b4426; }
.pb-plate i { position: absolute; left: 20px; top: 2px; width: 30px; height: 9px; border-radius: 50%; background: #d9823b; box-shadow: inset 0 3px 0 #f0a45a, 8px -2px 0 -2px #6cbf5a; }
.pb-fork { position: absolute; left: 168px; top: 110px; width: 4px; height: 20px; border-radius: 2px; background: #c9ced8; box-shadow: 0 0 0 1px #5c6270; }
.pb-glass { position: absolute; left: 186px; top: 102px; width: 16px; height: 26px; border-radius: 2px 2px 4px 4px; background: linear-gradient(180deg, rgba(200,230,255,.25) 0 35%, rgba(170,40,60,.85) 35%); box-shadow: 0 0 0 2px rgba(220,235,255,.6); }
.pb-glass + .pb-candle { right: 30px; }
/* tele: el sofá delante del muñeco y la tele a la izquierda, con su luz azul que parpadea */
.pb-hero.is-bed-tele .pb-scene { background: radial-gradient(55% 55% at 30% 60%, rgba(120,170,255,.2), transparent 70%), linear-gradient(180deg, #121a33, #0c1224 70%, #0a0f1d); }
.is-tele .pb-moon { left: 22px; top: 0; }
.is-tele .pb-writer { left: 150px; top: 46px; }
.pb-sofa { position: absolute; left: 120px; top: 116px; width: 156px; height: 70px; border-radius: 10px 10px 6px 6px; background: #6a4c8c; box-shadow: inset 0 8px 0 #8566a8, inset 0 -6px 0 #4b3466, 0 0 0 3px #2c1e3e; }
.pb-sofa::before, .pb-sofa::after { content: ''; position: absolute; top: -18px; width: 22px; height: 60px; border-radius: 8px; background: #7a5a9c; box-shadow: inset 0 6px 0 #9374b4, 0 0 0 3px #2c1e3e; }
.pb-sofa::before { left: -6px; } .pb-sofa::after { right: -6px; }
.pb-tv { position: absolute; left: 6px; top: 70px; width: 92px; height: 66px; border-radius: 6px; background: #1b1e25; box-shadow: 0 0 0 3px #0e1015, inset 0 0 0 5px #2b2f39; }
.pb-tv i { position: absolute; inset: 8px; border-radius: 3px; background: linear-gradient(135deg, #7fb2ff, #b7a6e8 50%, #6fd6a0); animation: pbTv 2.6s steps(4) infinite; }
.pb-tv::after { content: ''; position: absolute; left: 30px; bottom: -40px; width: 32px; height: 40px; background: #3a2a1c; box-shadow: 0 0 0 3px #1e140c; }
.pb-tvglow { position: absolute; left: 0; top: 40px; width: 200px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(130,180,255,.3), transparent); animation: pbTvGlow 2.6s steps(4) infinite; }
@keyframes pbTv { 0% { filter: hue-rotate(0deg) brightness(1); } 25% { filter: hue-rotate(60deg) brightness(.85); } 50% { filter: hue-rotate(-40deg) brightness(1.1); } 75% { filter: hue-rotate(20deg) brightness(.9); } }
@keyframes pbTvGlow { 0%, 50% { opacity: 1; } 25%, 75% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .pb-steam i, .pb-tv i, .pb-tvglow { animation: none; } }

/* 24-nov (Luis): más vida en las escenas de antes de dormir */
.pb-hero.is-diary .pb-writer { animation: pbBreath 3.4s ease-in-out infinite; }
@keyframes pbBreath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
/* cocina: remueve la olla (el cucharón gira y él se inclina), la olla borbotea y el fuego late */
.pb-hero.is-bed-cena .pb-writer { animation: pbStirBody 1.6s ease-in-out infinite; }
@keyframes pbStirBody { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(5px, 1px) rotate(2deg); } }
.pb-ladle { position: absolute; left: 196px; top: 56px; width: 6px; height: 46px; border-radius: 3px; background: #c9ced8; box-shadow: 0 0 0 2px #5c6270; transform-origin: 50% 100%; animation: pbStir 1.6s ease-in-out infinite; z-index: 1; }
.pb-ladle::before { content: ''; position: absolute; left: -5px; top: -6px; width: 16px; height: 8px; border-radius: 4px; background: #8a5a34; box-shadow: 0 0 0 2px #4a2e18; }
@keyframes pbStir { 0%, 100% { transform: rotate(-16deg) translateX(-6px); } 50% { transform: rotate(16deg) translateX(10px); } }
.pb-pot { z-index: 2; animation: pbBoil .5s steps(2) infinite; }
.pb-pot i { position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #f4b35a; box-shadow: 0 0 0 2px #8f3c26; animation: pbBubble 1.2s ease-out infinite; }
.pb-pot i:first-child { left: 14px; } .pb-pot i:last-child { left: 40px; animation-delay: .6s; }
@keyframes pbBoil { 0% { transform: translateY(0); } 100% { transform: translateY(-1px); } }
@keyframes pbBubble { 0% { transform: translateY(4px) scale(.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-10px) scale(1); opacity: 0; } }
.pb-stove b:last-child { animation: pbFire 1s ease-in-out infinite; }
@keyframes pbFire { 0%, 100% { box-shadow: inset 0 0 0 3px #5c6270, inset 0 0 8px rgba(255,140,60,.5); } 50% { box-shadow: inset 0 0 0 3px #5c6270, inset 0 0 16px rgba(255,120,40,.95); } }
.is-cena .pb-glow { animation: pbFlick 1.6s ease-in-out infinite; }
/* cenando: el tenedor sube del plato a la boca y mastica */
.pb-hero.is-bed-cenando .pb-writer { animation: pbChew 2.6s ease-in-out infinite; }
@keyframes pbChew { 0%, 40%, 80%, 100% { transform: translateY(0); } 48%, 64% { transform: translateY(2px); } 56%, 72% { transform: translateY(-1px); } }
.pb-fork { transform-origin: 50% 100%; animation: pbFork 2.6s ease-in-out infinite; z-index: 1; }
.pb-fork::before { content: ''; position: absolute; left: -3px; top: -4px; width: 10px; height: 6px; border-radius: 3px 3px 0 0; background: #d9823b; animation: pbBite 2.6s steps(1) infinite; }
@keyframes pbFork { 0%, 12% { transform: translate(0, 0) rotate(0); } 36%, 46% { transform: translate(-46px, -40px) rotate(-30deg); } 70%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbBite { 0%, 40% { opacity: 1; } 41%, 100% { opacity: 0; } }
/* tele: la pantalla cambia de plano con una franja que baja, la luz parpadea y de vez en cuando se ríe */
.pb-hero.is-bed-tele .pb-writer { animation: pbLaugh 5s ease-in-out infinite; }
@keyframes pbLaugh { 0%, 64%, 100% { transform: translateY(0); } 68%, 76%, 84% { transform: translateY(-3px); } 72%, 80%, 88% { transform: translateY(1px); } }
.pb-tv i { overflow: hidden; animation: pbTv 5s steps(1) infinite; }
.pb-tv i b { position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: rgba(255,255,255,.22); animation: pbScan 1.8s linear infinite; }
@keyframes pbTv { 0% { filter: hue-rotate(0deg) brightness(1); } 22% { filter: hue-rotate(70deg) brightness(.85); } 44% { filter: hue-rotate(-50deg) brightness(1.1); } 66% { filter: hue-rotate(140deg) brightness(1.15); } 84% { filter: hue-rotate(20deg) brightness(.9); } }
@keyframes pbScan { 0% { top: -20%; } 100% { top: 110%; } }
.pb-tvglow { animation: pbTvGlow 5s steps(1) infinite; }
@keyframes pbTvGlow { 0% { opacity: .9; } 22% { opacity: .6; } 44% { opacity: 1; } 66% { opacity: 1; } 84% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .pb-hero.is-diary .pb-writer, .pb-ladle, .pb-pot, .pb-pot i, .pb-stove b, .pb-fork, .pb-fork::before, .pb-tv i, .pb-tv i b, .pb-tvglow { animation: none !important; } }
/* en la cocina está de pie: el muñeco entero, con las piernas, y los pies a la altura del fogón */
/* (cambiado) detrás del fogón: el fogón y la olla delante, tapándole de cintura para abajo, y él asomando por encima */
.pb-desk.is-cena .pb-writer { left: 92px; top: 30px; clip-path: none; z-index: 1; }
.pb-desk.is-cena .pb-stove { left: 130px; top: 134px; width: 136px; height: 66px; z-index: 2; }
.pb-desk.is-cena .pb-stove b { top: 20px; width: 24px; height: 24px; }
.pb-desk.is-cena .pb-pot { left: 188px; top: 106px; z-index: 4; }
.pb-desk.is-cena .pb-ladle { left: 212px; top: 80px; z-index: 3; }
.pb-desk.is-cena .pb-steam { left: 200px; top: 52px; z-index: 5; }

/* cenando (24-nov, Luis): sentado en una silla, entero (con las piernas bajo la mesa); el tenedor llega a la boca y luego bebe agua */
.pb-chair { position: absolute; left: 74px; top: 98px; width: 112px; height: 108px; z-index: 0; }
.pb-chair::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 56px; border-radius: 6px 6px 0 0; background: #7a4e2c; box-shadow: inset 0 5px 0 #96633a, inset 0 0 0 8px #6b4426, 0 0 0 3px #3f2714; }
.pb-chair::after { content: ''; position: absolute; left: 4px; right: 4px; top: 56px; bottom: 0; background: linear-gradient(90deg, #6b4426 0 12px, transparent 12px calc(100% - 12px), #6b4426 calc(100% - 12px)); }
.pb-desk.is-cenando .pb-writer { left: 82px; top: 62px; clip-path: none; z-index: 1; }
.pb-desk.is-cenando .pb-table { z-index: 2; }
.pb-desk.is-cenando .pb-plate { left: 96px; top: 116px; z-index: 3; }
.pb-desk.is-cenando .pb-fork { left: 162px; top: 106px; z-index: 4; animation: pbFork2 6s ease-in-out infinite; }
.pb-desk.is-cenando .pb-fork::before { animation: pbBite2 6s steps(1) infinite; }
.pb-desk.is-cenando .pb-glass { left: 184px; top: 100px; z-index: 4; transform-origin: 50% 100%; animation: pbDrink 6s ease-in-out infinite;
  background: linear-gradient(180deg, rgba(200,230,255,.18) 0 30%, rgba(140,200,255,.7) 30%); box-shadow: 0 0 0 2px rgba(220,240,255,.75); }
.pb-hero.is-bed-cenando .pb-writer { animation: pbChew2 6s ease-in-out infinite; }
/* el tenedor: del plato a la boca (x≈130, y≈112), se come el trozo y vuelve */
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-22px, -20px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbBite2 { 0%, 25% { opacity: 1; } 26%, 99% { opacity: 0; } 100% { opacity: 1; } }
/* el vaso de agua: sube a la boca, se inclina y vuelve */
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-44px, -12px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }
/* mastica después del bocado y echa la cabeza un poco atrás al beber */
@keyframes pbChew2 { 0%, 26%, 44%, 58%, 80%, 100% { transform: translateY(0); } 30%, 38% { transform: translateY(2px); } 34%, 42% { transform: translateY(-1px); } 64%, 74% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .pb-desk.is-cenando .pb-glass { animation: none !important; } }

/* diario (24-nov, Luis): sentado en su silla, entero, con las piernas bajo la mesa (como en la cena) */
.pb-desk.is-diario .pb-writer { left: 82px; top: 62px; clip-path: none; z-index: 1; }
.pb-desk.is-diario .pb-table, .pb-desk.is-diario .pb-candle { z-index: 2; }
.pb-desk.is-diario .pb-book { left: 96px; top: 114px; z-index: 3; }
.pb-desk.is-diario .pb-pen { left: 156px; top: 98px; z-index: 4; }
/* tele (24-nov, Luis): la tele delante, de espaldas a nosotros, y él en el sofá mirándola; la luz de la pantalla le da en la cara */
.pb-desk.is-tele .pb-writer { left: 92px; top: 40px; z-index: 1; }
.pb-desk.is-tele .pb-sofa { left: 62px; top: 100px; width: 156px; height: 64px; z-index: 2; }
.pb-desk.is-tele .pb-tvglow { left: 50px; top: 20px; width: 180px; height: 150px; border-radius: 50% 50% 10% 10%; z-index: 3; mix-blend-mode: screen;
  background: radial-gradient(70% 60% at 50% 100%, rgba(130,180,255,.42), transparent 75%); animation: pbTvGlow2 5s steps(1) infinite; }
.pb-tv.is-back { left: 86px; top: 150px; width: 108px; height: 56px; z-index: 4; border-radius: 6px 6px 4px 4px; background: #2a2e38;
  box-shadow: 0 0 0 3px #0e1015, inset 0 4px 0 #3a3f4c, 0 -6px 18px rgba(130,180,255,.35); }
.pb-tv.is-back i { inset: 14px 26px 18px; border-radius: 2px; animation: none; background: repeating-linear-gradient(90deg, #171a21 0 4px, transparent 4px 8px); }
.pb-tv.is-back::after { display: none; }
@keyframes pbTvGlow2 { 0% { opacity: .9; filter: hue-rotate(0deg); } 22% { opacity: .6; filter: hue-rotate(70deg); } 44% { opacity: 1; filter: hue-rotate(-50deg); } 66% { opacity: 1; filter: hue-rotate(140deg); } 84% { opacity: .7; filter: hue-rotate(20deg); } }
/* 24-nov, ajuste: sentado más alto (se le ve el pecho por encima de la mesa y las piernas por debajo); la mesa baja un poco */
.pb-desk.is-cenando .pb-table, .pb-desk.is-diario .pb-table { top: 140px; }
.pb-desk.is-cenando .pb-writer, .pb-desk.is-diario .pb-writer { top: 48px; }
.pb-desk.is-cenando .pb-chair, .pb-desk.is-diario .pb-chair { top: 104px; }
.pb-desk.is-cenando .pb-plate { top: 128px; }
.pb-desk.is-cenando .pb-fork { top: 118px; }
.pb-desk.is-cenando .pb-glass { top: 112px; }
.pb-desk.is-cenando .pb-candle, .pb-desk.is-diario .pb-candle { top: 110px; }
.pb-desk.is-diario .pb-book { top: 126px; }
.pb-desk.is-diario .pb-pen { top: 110px; }
/* el tenedor y el vaso llegan a la boca (x≈130, y≈96) */
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-26px, -22px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-46px, -16px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }
/* la cocina: el fogón tapa al muñeco entero de cintura para abajo */
.pb-desk.is-cena .pb-stove { left: 86px; width: 180px; }
.pb-desk.is-cena .pb-stove b:first-child { left: 24px; }
/* la tele: un poco más alto en el sofá */
.pb-desk.is-tele .pb-writer { top: 30px; }
/* 24-nov, ajuste 2 (Luis: «la mesa está demasiado alta»): mesa más baja y más fina; se le ve más el cuerpo y las piernas debajo */
.pb-desk.is-cenando .pb-table, .pb-desk.is-diario .pb-table { top: 152px; height: 12px; box-shadow: inset 0 3px 0 #a8703f, inset 0 -2px 0 #5f3c20, 0 0 0 3px #4a2e18; }
.pb-desk.is-cenando .pb-table::before, .pb-desk.is-cenando .pb-table::after, .pb-desk.is-diario .pb-table::before, .pb-desk.is-diario .pb-table::after { top: 12px; height: 46px; }
.pb-desk.is-cenando .pb-writer, .pb-desk.is-diario .pb-writer { top: 58px; }
.pb-desk.is-cenando .pb-chair, .pb-desk.is-diario .pb-chair { top: 114px; height: 96px; }
.pb-desk.is-cenando .pb-plate { top: 140px; }
.pb-desk.is-cenando .pb-fork { top: 130px; }
.pb-desk.is-cenando .pb-glass { top: 124px; }
.pb-desk.is-cenando .pb-candle, .pb-desk.is-diario .pb-candle { top: 122px; }
.pb-desk.is-diario .pb-book { top: 138px; }
.pb-desk.is-diario .pb-pen { top: 122px; }
/* boca en y≈106 */
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-26px, -24px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-46px, -18px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }
/* 24-nov, ajuste 3: la mesa a la altura de la cintura (el muñeco tiene la cabeza grande: con la mesa más arriba no se ven las piernas) */
.pb-desk.is-cenando .pb-table, .pb-desk.is-diario .pb-table { top: 144px; }
.pb-desk.is-cenando .pb-plate { top: 132px; }
.pb-desk.is-cenando .pb-fork { top: 122px; }
.pb-desk.is-cenando .pb-glass { top: 116px; }
.pb-desk.is-cenando .pb-candle, .pb-desk.is-diario .pb-candle { top: 114px; }
.pb-desk.is-diario .pb-book { top: 130px; }
.pb-desk.is-diario .pb-pen { top: 114px; }
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-26px, -16px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-46px, -10px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }
/* la tele: sentado EN el sofá, con las piernas por delante del asiento; la tele, de espaldas, en la esquina de abajo a la izquierda */
.pb-desk.is-tele .pb-writer { left: 96px; top: 44px; z-index: 3; }
.pb-desk.is-tele .pb-sofa { left: 66px; top: 92px; width: 156px; height: 64px; z-index: 2; }
.pb-desk.is-tele .pb-tvglow { left: -10px; top: 30px; width: 240px; height: 180px; z-index: 4; background: radial-gradient(60% 60% at 25% 95%, rgba(130,180,255,.45), transparent 75%); }
.pb-tv.is-back { left: 6px; top: 158px; width: 92px; height: 50px; z-index: 5; }
.pb-tv.is-back i { inset: 12px 20px 16px; }
.pb-desk.is-tele .pb-moon { left: auto; right: 10px; top: 0; }
.pb-desk.is-tele .pb-writer { clip-path: none; }
/* 24-nov, ajuste 4: medido en el navegador, la boca está en (130, 111) de la escena: el trozo del tenedor y el borde del vaso llegan justo ahí */
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-19px, -12px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-40px, -6px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbFork2 { 0%, 8% { transform: translate(0, 0) rotate(0); } 20%, 28% { transform: translate(-22px, -15px) rotate(-38deg); } 40%, 100% { transform: translate(0, 0) rotate(0); } }
@keyframes pbDrink { 0%, 50% { transform: translate(0, 0) rotate(0); } 62%, 74% { transform: translate(-42px, -13px) rotate(-34deg); } 86%, 100% { transform: translate(0, 0) rotate(0); } }

/* ═══ «Tu día en vídeo» (24-nov, guía de Gabri): pedirlo, el progreso, el reproductor y descargar o compartir (video-dia.js) ═══ */
.video-dia { --vd-v: #B7A6E8; }
.vd-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.vd-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,182,68,.14); color: var(--gold); }
.vd-ico svg { width: 22px; height: 22px; }
.vd-k { margin: 2px 0 4px; font: 700 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vd-h { margin: 0; font: 800 clamp(26px, 3.4vw, 36px)/1.05 var(--display); letter-spacing: -.025em; color: var(--cream); }
.vd-sub { margin: 8px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.5; color: var(--cream-dim); }
.vd-q { margin: 0 0 12px; font: 700 16px var(--display); color: var(--cream); }
.vd-fine { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cream-faint, rgba(244,237,222,.55)); }
.vd-msg { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(244,237,222,.04); border: 1px solid rgba(244,237,222,.1); font-size: 14.5px; color: var(--cream-dim); }
.vd-msg svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.vd-msg.is-error { background: rgba(255,107,94,.08); border-color: rgba(255,107,94,.35); color: #FFB3AA; }
.vd-msg.is-error svg { color: #FF6B5E; }
/* pedirlo */
.vd-ask { padding: 22px; border-radius: 20px; background: rgba(239,182,68,.06); border: 1px solid rgba(239,182,68,.3); }
.vd-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(244,237,222,.1); margin-bottom: 16px; }
.vd-seg button { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--cream-dim); font: 600 14px var(--sans, inherit); cursor: pointer; }
.vd-seg button.is-on { background: var(--cream); color: #12271A; }
.vd-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 340px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: rgba(244,237,222,.08); color: var(--cream); font: 700 16px var(--display); cursor: pointer; transition: transform .15s, background .15s; }
.vd-btn svg { width: 18px; height: 18px; }
.vd-btn.is-main { background: var(--gold); color: #1F1503; }
.vd-btn.is-main:hover:not(:disabled) { transform: translateY(-1px); background: #F6C55E; }
.vd-btn:disabled { opacity: .55; cursor: default; }
.vd-btn.is-ready { background: #52C776; color: #0B1F12; }
/* el progreso */
.vd-make-steps { padding: 22px; border-radius: 20px; background: rgba(183,166,232,.06); border: 1px solid rgba(183,166,232,.3); }
.vd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vd-steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--cream-faint, rgba(244,237,222,.5)); }
.vd-steps li b { font-weight: 600; }
.vd-steps li small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--vd-v); }
.vd-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(244,237,222,.18); }
.vd-dot svg { width: 14px; height: 14px; }
.vd-steps .is-done { color: var(--cream-dim); } .vd-steps .is-done .vd-dot { background: #52C776; border-color: #52C776; color: #0B1F12; }
.vd-steps .is-running { color: var(--cream); } .vd-steps .is-running .vd-dot { border-color: rgba(183,166,232,.25); border-top-color: var(--vd-v); animation: vdSpin .9s linear infinite; }
.vd-steps .is-error .vd-dot { background: #FF6B5E; border-color: #FF6B5E; color: #2a0b08; }
.vd-steps .is-skipped .vd-dot { color: var(--cream-faint); }
@keyframes vdSpin { to { transform: rotate(360deg); } }
/* el reproductor: un móvil con el vídeo y, al lado, los mandos y el botón */
.vd-player { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.vd-phone { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 30px; padding: 8px; background: #0b0f0c; box-shadow: 0 0 0 2px rgba(244,237,222,.12), 0 24px 50px rgba(0,0,0,.45); }
.vd-phone canvas { display: block; width: 100%; height: 100%; border-radius: 22px; background: #0B1F12; cursor: pointer; }
.vd-big { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(239,182,68,.92); color: #1F1503; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .15s; }
.vd-big:hover { transform: scale(1.06); }
.vd-big svg { width: 30px; height: 30px; margin-left: 4px; }
.vd-big[hidden] { display: none; }
.vd-loading { position: absolute; inset: 8px; border-radius: 22px; display: grid; place-items: center; padding: 24px; text-align: center; background: #0B1F12; font-size: 14px; color: var(--cream-dim); }
.vd-loading.is-error { color: #FFB3AA; }
.vd-loading[hidden] { display: none; }
.vd-title { margin: 0 0 18px; font: 800 24px/1.15 var(--display); letter-spacing: -.02em; color: var(--cream); text-wrap: balance; }
.vd-ctrl { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.vd-pp { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(244,237,222,.18); background: rgba(244,237,222,.06); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.vd-pp svg { width: 16px; height: 16px; }
.vd-ctrl input[type=range] { flex: 1; min-width: 0; height: 4px; border-radius: 4px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(244,237,222,.15) var(--p, 0%)); }
.vd-ctrl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); }
.vd-ctrl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--cream); }
.vd-time { flex: none; font: 500 12.5px var(--mono); color: var(--cream-faint, rgba(244,237,222,.55)); }
.vd-making { margin-top: 14px; max-width: 340px; }
.vd-making[hidden] { display: none; }
.vd-bar { height: 6px; border-radius: 6px; background: rgba(244,237,222,.1); overflow: hidden; }
.vd-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.vd-making p { margin: 8px 0 0; font-size: 13.5px; color: var(--cream-dim); }
/* otros días */
.vd-past-k { margin: 30px 0 12px; font: 700 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint, rgba(244,237,222,.5)); }
.video-dia .vd-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.video-dia .vd-past li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(244,237,222,.04); border: 1px solid rgba(244,237,222,.08); font-size: 14px; color: var(--cream); }
.vd-past-d { flex: none; font: 700 12px var(--mono); color: var(--gold); }
.vd-past-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-past-l { flex: none; font: 500 11px var(--mono); color: var(--cream-faint, rgba(244,237,222,.5)); }
.vd-past-b { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(239,182,68,.4); background: none; color: var(--gold); font: 600 13px var(--sans, inherit); cursor: pointer; }
.vd-past-b svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .vd-player { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .vd-phone { width: min(300px, 82vw); }
  .vd-side { width: 100%; }
  .vd-title { text-align: center; }
  .vd-btn { max-width: none; }
  .vd-making { max-width: none; }
  .vd-head { gap: 12px; } .vd-ico { width: 40px; height: 40px; }
  .vd-past-t { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vd-steps .is-running .vd-dot { animation: none; } }
.vd-past-b { margin-left: auto; }

/* «En pruebas» (24-nov, Luis): la función se está afinando en la Beta 3 */
.vd-beta { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; background: rgba(183,166,232,.16); border: 1px solid rgba(183,166,232,.45); color: #B7A6E8; font: 700 10.5px var(--mono); letter-spacing: .1em; }
.vd-test { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; max-width: 60ch; font-size: 13.5px; line-height: 1.5; color: rgba(214,205,245,.85); }
.vd-test svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #B7A6E8; }

/* pedirlo, rehecho (24-nov): tarjetas de idioma, tres datos y el botón a todo el ancho */
.vd-ask { padding: 24px; }
.vd-ask .vd-q { font-size: 17px; margin-bottom: 14px; }
.vd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vd-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; text-align: left; cursor: pointer;
  background: rgba(0,0,0,.18); border: 1.5px solid rgba(244,237,222,.12); color: var(--cream); transition: border-color .15s, background .15s; }
.vd-opt:hover { border-color: rgba(239,182,68,.45); }
.vd-opt.is-on { background: rgba(239,182,68,.12); border-color: var(--gold); }
.vd-opt-code { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,237,222,.08); font: 700 14px var(--mono); letter-spacing: .06em; color: var(--cream-dim); }
.vd-opt.is-on .vd-opt-code { background: var(--gold); color: #1F1503; }
.vd-opt-txt b { display: block; font: 700 17px var(--display); }
.vd-opt-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--cream-dim); }
.vd-opt-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1F1503; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.vd-opt-check svg { width: 12px; height: 12px; }
.vd-opt.is-on .vd-opt-check { opacity: 1; transform: none; }
.vd-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 20px; padding: 0; }
.vd-facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cream-dim); }
.vd-facts li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,182,68,.12); color: var(--gold); }
.vd-facts li svg { width: 15px; height: 15px; }
.vd-btn.is-wide { max-width: none; padding: 16px 20px; font-size: 17px; }
.vd-fine.is-center { text-align: center; }
@media (max-width: 520px) { .vd-opts { grid-template-columns: 1fr; } .vd-facts { flex-direction: column; } }
.vd-ask .vd-q { color: var(--cream); } .vd-ask .vd-fine { margin: 12px 0 0; }

/* compartir en cada red (24-nov): una fila de botones con el logo y el nombre */
.vd-nets-k { margin: 4px 0 10px; font: 700 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint, rgba(244,237,222,.55)); }
.vd-nets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.vd-net { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(244,237,222,.12); background: rgba(244,237,222,.05);
  color: var(--cream); font: 600 14px var(--sans, inherit); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.vd-net span { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.vd-net span svg { width: 17px; height: 17px; }
.vd-net.is-instagram span { background: linear-gradient(45deg, #F9A23C, #E1306C 50%, #8A3AB9); }
.vd-net.is-tiktok span { background: #111; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.vd-net.is-whatsapp span { background: #25D366; }
.vd-net.is-youtube span { background: #FF0033; }
.vd-net.is-x span { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.vd-net.is-descargar span { background: var(--gold); color: #1F1503; }
.vd-net:hover:not(:disabled) { border-color: rgba(239,182,68,.5); background: rgba(244,237,222,.08); transform: translateY(-1px); }
.vd-net:disabled { opacity: .5; cursor: default; }
.vd-net.is-busy { opacity: 1; border-color: var(--gold); }
.vd-net.is-busy span { animation: vdPulse 1s ease-in-out infinite; }
@keyframes vdPulse { 50% { transform: scale(.88); } }
@media (max-width: 760px) { .vd-nets { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .vd-net.is-busy span { animation: none; } }
.vd-nets { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-width: 470px; }
.vd-net b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .vd-nets { grid-template-columns: 1fr 1fr; } }

/* ═══ reproductor del vídeo del día, rehecho (24-nov): escenario centrado y algo de movimiento ═══ */
.vd-stage { position: relative; isolation: isolate; grid-template-columns: auto minmax(0, 420px); justify-content: center; gap: 56px; padding: 40px 32px; border-radius: 26px;
  background: radial-gradient(70% 90% at 22% 50%, rgba(239,182,68,.10), transparent 70%), linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.22));
  border: 1px solid rgba(244,237,222,.08); overflow: hidden; animation: vdIn .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vdIn { from { opacity: 0; transform: translateY(14px); } }
.vd-glow { position: absolute; z-index: -1; left: calc(50% - 310px); top: 50%; width: 340px; height: 340px; margin-top: -170px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239,182,68,.32), rgba(183,166,232,.14) 55%, transparent); filter: blur(18px); animation: vdGlow 6s ease-in-out infinite; }
@keyframes vdGlow { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
.vd-stage .vd-phone { width: 290px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.vd-stage.is-paused.is-loaded .vd-phone { animation: vdFloat 5.5s ease-in-out infinite; }
@keyframes vdFloat { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }
.vd-stage.is-playing .vd-phone { transform: scale(1.02); }
/* el botón grande late con un anillo */
.vd-big i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(239,182,68,.8); animation: vdRing 2s ease-out infinite; }
@keyframes vdRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.vd-loading { gap: 12px; align-content: center; }
.vd-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(244,237,222,.15); border-top-color: var(--gold); animation: vdSpin .9s linear infinite; }
/* la ficha */
.vd-stage .vd-side { animation: vdIn .6s .12s cubic-bezier(.2,.8,.2,1) both; }
.vd-ready-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8FE3A8; }
.vd-ready-k span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #52C776; color: #0B1F12; }
.vd-ready-k svg { width: 12px; height: 12px; }
.vd-stage .vd-title { margin-bottom: 14px; font-size: clamp(24px, 2.6vw, 30px); }
.vd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.vd-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(244,237,222,.06); border: 1px solid rgba(244,237,222,.1); font: 500 13px var(--mono); color: var(--cream-dim); }
.vd-chips svg { width: 14px; height: 14px; color: var(--gold); }
/* ecualizador mientras suena */
.vd-eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.vd-eq i { flex: 1; height: 30%; border-radius: 1px; background: var(--gold); opacity: .35; }
.vd-stage.is-playing .vd-eq i { opacity: 1; animation: vdEq .8s ease-in-out infinite; }
.vd-stage.is-playing .vd-eq i:nth-child(2) { animation-delay: -.3s; } .vd-stage.is-playing .vd-eq i:nth-child(3) { animation-delay: -.55s; } .vd-stage.is-playing .vd-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes vdEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
/* el botón de descargar con un brillo que lo cruza */
.vd-stage .vd-btn.is-main { position: relative; overflow: hidden; max-width: none; }
.vd-stage .vd-btn.is-main::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: vdShine 4.5s ease-in-out 1.2s infinite; }
@keyframes vdShine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.vd-stage .vd-nets { max-width: none; }
@media (max-width: 900px) { .vd-stage { gap: 36px; padding: 32px 24px; } .vd-stage .vd-phone { width: 250px; } .vd-glow { left: calc(50% - 280px); } }
@media (max-width: 760px) {
  .vd-stage { grid-template-columns: 1fr; justify-items: center; gap: 26px; padding: 28px 18px 22px; }
  .vd-glow { left: 50%; top: 40px; margin: 0 0 0 -170px; }
  .vd-stage .vd-phone { width: min(280px, 76vw); }
  .vd-stage .vd-side { text-align: center; }
  .vd-chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .vd-stage, .vd-stage .vd-side, .vd-glow, .vd-stage .vd-phone, .vd-big i, .vd-eq i, .vd-stage .vd-btn.is-main::after { animation: none !important; } }

.vd-phone-wrap { position: relative; }
.vd-glow { left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; }
@media (max-width: 900px) { .vd-glow { left: 50%; } }
@media (max-width: 760px) { .vd-glow { left: 50%; top: 50%; margin: -210px 0 0 -210px; } }
.vd-stage .vd-big { top: 74%; } /* que no tape el título de la portada */

/* ═══ Diario de sueños, rehecho (24-nov): cada noche como una página, susurro y carta lado a lado y lo que hizo al despertar ═══ */
.nights-list { gap: 12px; }
.night { border-radius: 20px; background: rgba(244,237,222,.03); border: 1px solid rgba(244,237,222,.09); transition: background .2s, border-color .2s; }
.night[open] { background: linear-gradient(180deg, rgba(183,166,232,.07), rgba(244,237,222,.02) 140px), var(--card); border-color: rgba(183,166,232,.28); }
.night summary { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; padding: 16px 20px; }
.n-when { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.n-moon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(183,166,232,.14); color: #B7A6E8; }
.n-moon svg { width: 18px; height: 18px; }
.n-when b { display: block; font: 700 16px var(--display); color: var(--cream); }
.n-when small { display: block; margin-top: 1px; font-size: 13px; color: var(--cream-dim); }
.n-nocard { color: #CFC5EE; font-style: normal; }
.n-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 12.5px var(--sans); white-space: nowrap; background: rgba(244,237,222,.06); color: var(--cream-dim); }
.n-pill svg { width: 12px; height: 12px; }
.n-pill.is-ok { background: rgba(82,199,118,.16); color: #8FE3A8; }
.n-pill.is-no { background: rgba(255,138,128,.12); color: #FFB3AA; }
.n-pill.is-wait { background: rgba(239,182,68,.14); color: var(--gold); }
.n-chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--cream-faint); transition: transform .2s; }
.n-chev svg { width: 16px; height: 16px; }
.night[open] .n-chev { transform: rotate(180deg); }
.night[open] summary .n-card, .night[open] summary .n-pill { visibility: hidden; }
.n-body { gap: 14px; padding: 0 20px 20px; animation: nOpen .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes nOpen { from { opacity: 0; transform: translateY(-4px); } }
.n-body .n-k { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; font: 700 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 0; }
.n-body .n-k svg { width: 14px; height: 14px; }
.n-pack { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.n-pack.is-one { grid-template-columns: 1fr; }
.n-wh { padding: 18px 20px; border-radius: 16px; background: linear-gradient(160deg, rgba(59,46,110,.75), rgba(27,22,64,.8)); border: 1px solid rgba(183,166,232,.35); }
.n-wh .n-k { color: #B7A6E8; }
.n-wh .n-dream { margin: 0; font: 500 17px/1.5 var(--sans); color: #F3EEFF !important; text-wrap: pretty; }
.n-cd { padding: 18px 20px; border-radius: 16px; background: rgba(239,182,68,.07); border: 1px solid rgba(239,182,68,.32); }
.n-cd .n-k { color: var(--gold); }
.n-cd.is-ok { background: rgba(82,199,118,.07); border-color: rgba(82,199,118,.38); }
.n-cd.is-none { background: rgba(244,237,222,.03); border: 1px dashed rgba(239,182,68,.3); }
.n-mision { margin: 0 0 14px; font: 600 15.5px/1.45 var(--sans); color: var(--cream); }
.n-mision.is-dim { margin: 0; font-weight: 500; color: var(--cream-dim); }
.n-cd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.n-lvl { display: inline-flex; align-items: center; gap: 3px; }
.n-lvl i { width: 7px; height: 14px; border-radius: 2px; background: rgba(244,237,222,.14); }
.n-lvl i.on { background: var(--gold); }
.n-lvl b { margin-left: 6px; font: 500 13px var(--sans); color: var(--cream-dim); }
.n-pts { font: 700 13px var(--mono); color: var(--gold); }
.n-cd .n-quote { margin: 12px 0 0 !important; }
.n-did { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(244,237,222,.035); border: 1px solid rgba(244,237,222,.08); }
.n-face { flex: none; width: 44px; height: 55px; image-rendering: pixelated; }
.n-did .n-k { color: var(--cream-faint); }
.n-did .n-plan { margin: 0; font-size: 15px; line-height: 1.55; color: var(--cream-dim) !important; }
.n-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(239,182,68,.4); text-decoration: none; font: 600 14px var(--sans); transition: background .15s, transform .15s; }
.n-link svg { width: 15px; height: 15px; transition: transform .15s; }
.n-link:hover { background: rgba(239,182,68,.1); }
.n-link:hover svg { transform: translateX(3px); }
/* el álbum: un botón que se despliega */
.album-box .ca { margin-top: 18px; }
.album-box .ca summary { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; list-style: none; background: rgba(244,237,222,.05); border: 1px solid rgba(244,237,222,.12); font: 600 14px var(--sans); color: var(--cream); }
.album-box .ca summary::-webkit-details-marker { display: none; }
.album-box .ca summary::before { content: ''; width: 16px; height: 16px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M17 6l3 1.2a1 1 0 0 1 .6 1.3L16 20'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='12' height='16' rx='2'/%3E%3Cpath d='M17 6l3 1.2a1 1 0 0 1 .6 1.3L16 20'/%3E%3C/svg%3E") center/contain no-repeat; }
.album-box .ca summary:hover { border-color: rgba(239,182,68,.45); }
@media (max-width: 900px) {
  .night summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .night summary .n-card { grid-column: 1 / -1; grid-row: 2; }
  .night summary .n-pill { grid-column: 2; grid-row: 1; justify-self: end; }
  .night[open] summary .n-card { display: none; }
  .n-pack { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .n-body { animation: none; } }
.n-pack { align-items: start; }

/* Diario de sueños, ajuste (24-nov, Luis): las dos cajas a la misma altura, con su pie abajo, y movimiento al abrir la noche */
.n-pack { align-items: stretch; }
.n-wh, .n-cd { display: flex; flex-direction: column; min-height: 100%; }
.n-wh .n-dream { flex: 1; }
.n-cd .n-mision { flex: 1; }
.n-cd-meta { margin-top: auto; }
.n-wh-foot { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(183,166,232,.22); font-size: 13.5px; color: rgba(232,228,255,.75); }
.n-wh-foot img { width: 30px; height: 38px; image-rendering: pixelated; }
.n-zz { margin-left: auto; display: inline-flex; gap: 2px; font: 700 12px var(--mono); color: #B7A6E8; }
.n-zz i { font-style: normal; animation: nZz 2.4s ease-in-out infinite; }
.n-zz i:nth-child(2) { animation-delay: .3s; font-size: 14px; } .n-zz i:nth-child(3) { animation-delay: .6s; font-size: 17px; }
@keyframes nZz { 0%, 100% { opacity: .25; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
/* del susurro y la carta, al día siguiente */
.n-next { display: flex; align-items: center; gap: 10px; margin: -2px 0; color: var(--gold); }
.n-next span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,182,68,.4), transparent); }
.n-next svg { width: 18px; height: 18px; animation: nSun 8s linear infinite; }
@keyframes nSun { to { transform: rotate(360deg); } }
/* al abrir: el susurro entra por la izquierda, la carta por la derecha girando un poco, y luego el día siguiente */
.n-body { animation: none; }
.night[open] .n-wh { animation: nInL .55s cubic-bezier(.2,.8,.2,1) both; }
.night[open] .n-cd { animation: nInR .55s .08s cubic-bezier(.2,.8,.2,1) both; }
.night[open] .n-next { animation: nUp .5s .2s both; }
.night[open] .n-did { animation: nUp .55s .26s cubic-bezier(.2,.8,.2,1) both; }
.night[open] .n-link { animation: nUp .5s .34s both; }
@keyframes nInL { from { opacity: 0; transform: translateX(-18px); } }
@keyframes nInR { from { opacity: 0; transform: translateX(18px) rotate(1.5deg); } }
@keyframes nUp { from { opacity: 0; transform: translateY(10px); } }
/* las cajas se levantan un poco al pasar por encima */
.n-wh, .n-cd, .n-did { transition: transform .2s, box-shadow .2s; }
.n-wh:hover, .n-cd:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
/* la cumplida brilla una vez */
.n-cd.is-ok .n-pill { position: relative; overflow: hidden; }
.night[open] .n-cd.is-ok .n-pill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.4), transparent 70%); transform: translateX(-120%); animation: nShine 1.2s .7s ease-out both; }
@keyframes nShine { to { transform: translateX(120%); } }
@media (max-width: 900px) { .night[open] .n-cd { animation-name: nUp; } .night[open] .n-wh { animation-name: nUp; } }
@media (prefers-reduced-motion: reduce) { .night[open] .n-wh, .night[open] .n-cd, .night[open] .n-next, .night[open] .n-did, .night[open] .n-link, .n-zz i, .n-next svg, .night[open] .n-cd.is-ok .n-pill::after { animation: none !important; } }

/* «Lo soñó mientras dormía» (24-nov, Luis): su muñeco tumbado en una cama pequeña */
.n-bed { position: relative; flex: none; width: 64px; height: 34px; }
.n-bed-head { position: absolute; left: 0; bottom: 4px; width: 7px; height: 26px; border-radius: 3px 3px 0 0; background: #8a5a34; box-shadow: inset -2px 0 0 #6b4426; }
.n-bed-pillow { position: absolute; left: 7px; bottom: 9px; width: 15px; height: 10px; border-radius: 4px; background: #f4edde; box-shadow: inset 0 -2px 0 #cfc5ae; }
.n-bed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 2px; background: #6b4426; box-shadow: inset 0 2px 0 #8a5a34; }
.n-bed img { position: absolute; left: 6px; bottom: 6px; width: 26px !important; height: 32px !important; transform-origin: 0 100%; transform: translateY(26px) rotate(-90deg); image-rendering: pixelated; animation: nBreathe 3.2s ease-in-out infinite; }
.n-bed-blanket { position: absolute; left: 20px; right: 2px; bottom: 6px; height: 13px; border-radius: 4px 6px 2px 2px; z-index: 1;
  background: repeating-linear-gradient(90deg, #6a4c8c 0 6px, #7a5a9c 6px 12px); box-shadow: inset 0 3px 0 rgba(255,255,255,.18); animation: nBlanket 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nBreathe { 0%, 100% { transform: translateY(26px) rotate(-90deg); } 50% { transform: translateY(25px) rotate(-90deg); } }
@keyframes nBlanket { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.1); } }
@media (prefers-reduced-motion: reduce) { .n-bed img, .n-bed-blanket { animation: none; } }
.n-bed img { left: 11px; top: 1px; bottom: auto; transform-origin: 50% 50%; transform: rotate(-90deg); animation-name: nBreathe2; }
@keyframes nBreathe2 { 0%, 100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(1px); } }

/* la carta del diario con su mini carta coleccionable, como en el directo (village.css .wsp-mini): marco = dificultad, círculo = tipo */
.n-cd:not(.is-none) { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; align-items: stretch; --rim: #3fae68; --rim-hi: #9be3b1; --el: #b4861a; }
.n-cd-body { display: flex; flex-direction: column; min-width: 0; }
.nc-r2 { --rim: #e0604f; --rim-hi: #ffc0b3; } .nc-r3 { --rim: #d9a11f; --rim-hi: #fff0b0; }
.nl-elecciones { --el: #2f8a55; } .nl-culebron { --el: #8a45ad; } .nl-corazon { --el: #c94468; } .nl-contrapelo { --el: #c4721f; } .nl-evento { --el: #b4861a; }
.n-mini { position: relative; align-self: start; width: 70px; height: 98px; margin-top: 4px; padding: 4px; border-radius: 9px; transform: rotate(-6deg);
  background: linear-gradient(150deg, var(--rim-hi), var(--rim) 40%, var(--rim) 60%, var(--rim-hi));
  box-shadow: 0 8px 16px rgba(0,0,0,.4), 0 0 18px color-mix(in srgb, var(--rim) 35%, transparent); overflow: hidden; transition: transform .25s ease; }
.n-cd:hover .n-mini { transform: rotate(-2deg) translateY(-2px); }
.n-mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 48%, transparent 60%); transform: translateX(-120%); animation: nmShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes nmShine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.nm-in { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; padding: 6px 6px 7px; border-radius: 6px;
  box-shadow: inset 0 0 0 2px #2F8F4E, inset 0 0 0 3.5px #7FD18A, inset 0 0 0 4.5px #CFEBC0, inset 0 0 0 5.5px #F4EDDE, inset 0 0 14px 4px rgba(120,10,20,.35);
  background:
    radial-gradient(ellipse 1.6px 2.8px at 8px 7px, #1a1210 70%, transparent 75%) 0 0/18px 21px,
    radial-gradient(ellipse 1.6px 2.8px at 17px 17px, #1a1210 70%, transparent 75%) 0 0/18px 21px,
    radial-gradient(130% 80% at 50% 40%, #FF6A5E 0%, #FF5348 45%, #D93A40 100%); }
.nm-pts { justify-self: end; padding: 1px 4px; border-radius: 5px; background: #F4EDDE; font: 800 11px/1 var(--display); color: #12271A; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.nm-pts small { margin-right: 2px; font: 700 6.5px var(--mono); letter-spacing: .06em; opacity: .8; }
.nm-el { align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--el); color: #fff; box-shadow: 0 0 0 2px #fff8e8, 0 2px 6px rgba(0,0,0,.4); }
.nm-el svg { width: 17px; height: 17px; }
.nm-pips { display: flex; gap: 3px; }
.nm-pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,248,232,.35); }
.nm-pips i.on { background: #F4EDDE; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 5px rgba(255,248,232,.8); }
.n-cd .n-cd-body .n-mision { flex: 1; }
@media (prefers-reduced-motion: reduce) { .n-mini::after { animation: none; } .n-mini { transition: none; } }

/* 24-nov: noche sin susurro ni carta */
.n-empty { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 22px; align-items: center; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(31,27,62,.55), rgba(18,22,30,.35)); border: 1px dashed rgba(183,166,232,.3); }
.ne-sky { position: relative; height: 118px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, rgba(90,78,160,.55), transparent 60%), linear-gradient(180deg, #171433, #0f1220); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.ne-sky > i { position: absolute; width: 3px; height: 3px; border-radius: 1px; background: #F3EEFF; opacity: .3; animation: neTw 3.4s ease-in-out infinite; }
.ne-sky > i:nth-child(1) { left: 12%; top: 18%; } .ne-sky > i:nth-child(2) { left: 34%; top: 32%; animation-delay: .8s; } .ne-sky > i:nth-child(3) { left: 56%; top: 14%; animation-delay: 1.6s; } .ne-sky > i:nth-child(4) { left: 22%; top: 56%; animation-delay: 2.2s; width: 2px; height: 2px; } .ne-sky > i:nth-child(5) { left: 66%; top: 42%; animation-delay: 1.1s; width: 2px; height: 2px; }
.ne-moon { position: absolute; right: 16px; top: 12px; color: #E9DFB8; filter: drop-shadow(0 0 8px rgba(233,223,184,.55)); }
.ne-moon svg { width: 22px; height: 22px; fill: currentColor; }
.ne-sky .ne-bed { transform: scale(1.55); transform-origin: 50% 100%; }
.ne-sky .n-zz { position: absolute; left: calc(50% + 18px); top: 30px; color: #B7A6E8; }
.ne-txt .n-k { color: #B7A6E8; }
.ne-t { margin: 2px 0 4px; font: 600 19px/1.25 var(--display, var(--sans)); color: var(--cream, #F4EDDE); }
.ne-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(244,237,222,.72); text-wrap: pretty; }
.ne-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ne-tags span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; font: 500 12px/1 var(--mono, monospace); letter-spacing: .02em; color: rgba(244,237,222,.6); background: rgba(244,237,222,.05); border: 1px solid rgba(244,237,222,.12); }
.ne-tags svg { width: 12px; height: 12px; }
@keyframes neTw { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
.night[open] .n-empty { animation: nUp .5s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 640px) { .n-empty { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .ne-sky > i, .night[open] .n-empty { animation: none !important; } }
/* 24-nov (Luis): la manta tapa todo el cuerpo, solo asoma la cabeza */
.n-bed-blanket { left: 21px; right: 1px; height: 25px; border-radius: 9px 10px 2px 2px; }
@keyframes nBlanket { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.05); } }

/* 24-nov (Luis): las zzz junto a la cabeza, no a los pies de la cama */
.n-bed .n-zz { position: absolute; left: 10px; top: -15px; margin: 0; z-index: 2; gap: 1px; font-size: 9px; color: #B7A6E8; pointer-events: none; }
.n-bed .n-zz i:nth-child(2) { font-size: 11px; } .n-bed .n-zz i:nth-child(3) { font-size: 13px; }
.n-bed .n-zz i:nth-child(1) { transform: translateY(6px); } .n-bed .n-zz i:nth-child(2) { transform: translateY(2px); }
.ne-sky .n-zz { left: 10px; top: -15px; }
.n-wh-foot .n-bed { margin-top: 10px; }
/* 24-nov (Luis, vídeo del iPhone): al girar una carta del sobre se veía el dorso al revés un instante. Safari no siempre
   respeta backface-visibility, y el cambio de cara iba con 0,3 s de retraso, pero con la curva del giro la carta pasa de
   los 90° a los 0,08 s. Ahora las caras se cambian justo ahí, y backface-visibility va también en lo de dentro de cada cara. */
.sb-card.is-flipped .sb-back { visibility: hidden; transition: visibility 0s linear .08s; }
.sb-card.is-flipped .sb-front { visibility: visible; transition: visibility 0s linear .08s; }
.sb-card:not(.is-flipped) .sb-front { visibility: hidden; transition: none; }
.sb-face, .sb-face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* 25-nov (Luis): en el susurro, el muñeco durmiendo en su cama (la de las noches), dentro del halo */
.wh-now:has(.has-bed) { grid-template-columns: 124px minmax(0, 1fr); }
.wh-sleeper.has-bed { width: 124px; height: 88px; border-radius: 44px; }
.wh-sleeper.has-bed > .n-bed { display: block; z-index: 1; transform: scale(1.5); transform-origin: 50% 55%; }
.wh-sleeper.has-bed img { width: 26px !important; filter: none; }
@media (max-width: 760px) { .wh-now:has(.has-bed) { grid-template-columns: 88px minmax(0, 1fr); } .wh-sleeper.has-bed { width: 88px; height: 64px; } .wh-sleeper.has-bed > .n-bed { transform: scale(1.1); } }
/* 25-nov (Luis): en el recibo («Lo que le has dejado»), también en la cama */
.rc-who .n-bed { display: block; flex: none; margin: 8px 18px 0 6px; transform: scale(1.25); transform-origin: 0 80%; }
/* 25-nov (Luis, «mejora esto»): el álbum con las cartas de verdad en pequeño y el resultado debajo */
.album-box .ca summary { gap: 12px; padding: 10px 18px 10px 14px; }
.album-box .ca .ca-t { font-weight: 700; }
.album-box .ca .ca-n { font: 500 13px var(--mono); color: var(--cream-dim); }
.album-box .ca .ca-p { padding: 3px 10px; border-radius: 999px; background: rgba(239,182,68,.16); color: var(--gold); font: 700 12px var(--mono); }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 22px 18px; margin-top: 18px; }
.cb { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cb-card { display: block; width: 280px; zoom: .6; pointer-events: none; }
.cb-card .ct { display: block; width: 100%; margin: 0; opacity: 1 !important; box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.cb-card .ct-badge { display: none; }
.cb.is-no .cb-card, .cb.is-wait .cb-card { filter: grayscale(1) brightness(.75); }
.cb figcaption { width: 100%; max-width: 190px; display: grid; gap: 4px; text-align: left; }
.cb-day { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-faint, rgba(244,237,222,.5)); }
.cb-res { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--body, var(--sans)); color: #8FE3A8; }
.cb-res span { padding: 2px 8px; border-radius: 999px; background: rgba(239,182,68,.16); color: var(--gold); font: 700 12px var(--mono); }
.cb.is-no .cb-res { color: var(--cream-dim); } .cb.is-wait .cb-res { color: #B7A6E8; }
.cb-mision { font-size: 13.5px; line-height: 1.4; color: var(--cream-dim); }
.cb-q { margin-top: 4px; padding-left: 10px; border-left: 2px solid rgba(82,199,118,.5); font: italic 400 14px/1.4 var(--serif); color: var(--cream); quotes: '«' '»'; }
@media (max-width: 620px) { .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .cb-card { zoom: .5; } }
.album-box .ca .ca-t, .album-box .ca .ca-n, .album-box .ca .ca-p { white-space: nowrap; }
@media (max-width: 620px) { .album-box .ca summary { flex-wrap: wrap; row-gap: 8px; border-radius: 18px; } }
.cartas-sp.is-sobre { margin: -14px auto 36px; }   /* aire debajo para que no se pegue al sobre (Luis, móvil) */
.is-sealed .cartas-sp:not(.is-sobre) { display: none; }   /* con el sobre cerrado, el aviso solo arriba */
/* 25-nov (Luis): en el móvil, el muñeco durmiendo va debajo del susurro para que el texto tenga todo el ancho */
@media (max-width: 760px) {
  .wh-now, .wh-now:has(.has-bed) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wh-now .wh-sleeper { order: 2; justify-self: center; }
}
/* 25-nov (Luis): en el móvil, «197 caracteres» va antes de «X lo oirá así mientras duerme» */
@media (max-width: 760px) { .wh-now figcaption span { order: -1; flex-basis: 100%; } }
/* 25-nov (Luis, «sale cortado» en el iPhone): Safari amplía la página al tocar un campo con letra de menos de 16 px
   (el susurro, el acceso…) y se queda así después de enviar. Con 16 px en el móvil no amplía */
@media (max-width: 760px), (pointer: coarse) { input:not([type=hidden]), textarea, select { font-size: 16px !important; } }
.rc-sh i { flex: none; aspect-ratio: 1; }   /* 25-nov (Luis): en el móvil el círculo se encogía y salía ovalado */
@media (max-width: 760px) { .rc-who small { order: -1; flex-basis: 100%; margin: -6px 0 22px; } }   /* 25-nov (Luis): en el móvil, los caracteres justo debajo del susurro y luego el muñeco con «Lo oirá…» */
