/* ============================================================
   APP MOR — REDISEÑO PREMIUM (v3)
   Capa de re-skin cargada DESPUÉS de styles.css.
   Negro dominante · neón rosa + morado · liquid glass · fluidez.
   Por ahora cubre: sistema global (tokens, glass, botones, motion),
   pantalla de INICIO y CANDADO. Resto de pantallas: en camino.
   ============================================================ */

:root {
  /* ── Paleta neón ── */
  --ink:          #050308;   /* negro base, leve tinte violeta */
  --ink-2:        #0b0610;
  --magenta:      #ff2da0;
  --magenta-hot:  #ff4fb2;
  --pink:         #ff7bc0;
  --pink-soft:    #ffb4dd;
  --purple:       #b14dff;
  --purple-hot:   #c46bff;
  --violet:       #8b5cf6;
  --text:         #ffe3f2;
  --text-dim:     rgba(255, 210, 235, 0.62);
  --text-faint:   rgba(255, 200, 230, 0.34);

  /* Glow multipliers (respetan los tweaks existentes) */
  --glow: 1.55;
  --buttonGlow: 1.5;
}

/* ============================================================
   FONDO GLOBAL — negro profundo con auras neón sutiles
   ============================================================ */
html, body { background: var(--ink); }
body { color: var(--text); }

/* Capa de auras de fondo (detrás de todo) — respira lentamente */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 26% 14%, rgba(255, 45, 160, 0.16), transparent 70%),
    radial-gradient(52% 44% at 80% 30%, rgba(177, 77, 255, 0.14), transparent 72%),
    radial-gradient(60% 50% at 50% 108%, rgba(139, 92, 246, 0.12), transparent 70%);
  animation: bgAuraDrift 22s ease-in-out infinite alternate;
}
@keyframes bgAuraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  100% { transform: translate3d(0,-2.2%,0) scale(1.06); opacity: 1; }
}

/* ============================================================
   TRANSICIÓN ENTRE PANTALLAS — cross-fade fluido
   NOTE: No filter:blur on inactive screens — applying blur to all
   10+ screens simultaneously creates GPU compositor layers that
   crash iOS Safari standalone (PWA) mode with OOM errors.
   ============================================================ */
.screen {
  transition:
    opacity 0.9s cubic-bezier(.22,1,.36,1),
    transform 0.9s cubic-bezier(.16,1,.3,1);
  transform: scale(1.03);
}
.screen.active {
  transform: scale(1);
}

/* ============================================================
   LIQUID GLASS — sistema global mejorado (rosa → morado)
   ============================================================ */
.glass .glass-filter {
  -webkit-backdrop-filter: blur(11px) saturate(165%) brightness(1.05);
  backdrop-filter: blur(11px) saturate(165%) brightness(1.05);
}

/* Tinte bicolor: rosa cálido arriba-izq, morado abajo-der */
.glass .glass-tint {
  background:
    radial-gradient(120% 90% at 26% 10%, rgba(255, 130, 200, 0.30), transparent 62%),
    radial-gradient(120% 90% at 84% 96%, rgba(177, 77, 255, 0.26), transparent 64%),
    linear-gradient(165deg, rgba(255, 70, 165, 0.12), rgba(120, 50, 200, 0.10));
  mix-blend-mode: screen;
}

/* Borde de cristal: rim claro arriba, neón rosa→morado abajo */
.glass .glass-edge {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(255, 70, 165, 0.30),
    inset 0 -14px 26px -10px rgba(177, 77, 255, 0.38),
    inset 0 14px 24px -14px rgba(255, 150, 215, 0.22);
}

/* ============================================================
   BOTÓN LIQUID GLASS — más premium, doble glow rosa/morado
   ============================================================ */
.glass-btn {
  padding: 21px 50px;
  box-shadow:
    0 30px 70px -22px rgba(255, 45, 160, calc(0.50 * var(--buttonGlow))),
    0 10px 34px -6px rgba(177, 77, 255, calc(0.38 * var(--buttonGlow))),
    0 0 90px rgba(255, 60, 150, calc(0.20 * var(--buttonGlow)));
  animation: btnPulseV3 4.2s ease-in-out infinite;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s ease,
    filter 0.3s ease;
}
@keyframes btnPulseV3 {
  0%, 100% {
    box-shadow:
      0 30px 70px -22px rgba(255, 45, 160, calc(0.50 * var(--buttonGlow))),
      0 10px 34px -6px rgba(177, 77, 255, calc(0.38 * var(--buttonGlow))),
      0 0 90px rgba(255, 60, 150, calc(0.20 * var(--buttonGlow)));
  }
  50% {
    box-shadow:
      0 38px 84px -22px rgba(255, 45, 160, calc(0.70 * var(--buttonGlow))),
      0 14px 46px -6px rgba(177, 77, 255, calc(0.58 * var(--buttonGlow))),
      0 0 150px rgba(196, 107, 255, calc(0.42 * var(--buttonGlow)));
  }
}
.glass-btn:hover { transform: scale(1.055) translateY(-3px); filter: brightness(1.12) saturate(1.08); }
.glass-btn:active { transform: scale(0.955) translateY(1px); filter: brightness(1.3) saturate(1.2); }

.glass-btn .glass-content {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-shadow:
    0 0 18px rgba(255, 150, 215, 0.8),
    0 0 40px rgba(196, 107, 255, 0.45),
    0 1px 2px rgba(0,0,0,0.45);
}

/* ============================================================
   PANTALLA DE INICIO
   ============================================================ */
#screen-landing {
  background:
    radial-gradient(60% 42% at 50% 30%, rgba(255, 45, 160, 0.10), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(139, 92, 246, 0.12), transparent 72%);
}
.landing-content {
  gap: 50px;
  animation: landingRise 1.4s cubic-bezier(.16,1,.3,1) both;
}
@keyframes landingRise {
  0%   { opacity: 0; transform: translateY(26px); filter: blur(12px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Aura que respira detrás del nombre cristal */
.landing-content::before {
  content: "";
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(640px, 86vw);
  height: min(640px, 86vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 45, 160, 0.22) 0%, rgba(177, 77, 255, 0.12) 38%, transparent 66%);
  filter: blur(18px);
  animation: auraBreathe 5.5s ease-in-out infinite;
}
@keyframes auraBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.75; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Nombre cristal — gradiente rosa→morado, glow doble, mejor encaje */
.ari-crystal {
  max-width: 92vw;
  letter-spacing: 0.02em;
  filter:
    drop-shadow(0 0 34px rgba(255, 45, 160, 0.6))
    drop-shadow(0 0 70px rgba(177, 77, 255, 0.42));
}
.ari-crystal:hover {
  filter:
    drop-shadow(0 0 46px rgba(255, 70, 175, 0.85))
    drop-shadow(0 0 96px rgba(196, 107, 255, 0.58));
}
.ari-crystal .ari-fill,
.ari-crystal .ari-spec {
  background-image: linear-gradient(177deg,
    rgba(255, 244, 250, 1) 0%,
    rgba(255, 184, 224, 1) 20%,
    rgba(255, 96, 178, 1) 46%,
    rgba(214, 64, 196, 1) 74%,
    rgba(150, 70, 240, 1) 100%);
  text-shadow:
    0 0 2px rgba(255, 244, 250, 0.55),
    0 0 20px rgba(255, 110, 195, 0.85),
    0 0 46px rgba(177, 77, 255, 0.5);
}

/* Botón de entrada — un poco más grande y aireado */
#btn-landing { padding: 22px 56px; }

/* ============================================================
   CANDADO — corazón de cristal premium
   ============================================================ */
#screen-lock {
  background:
    radial-gradient(54% 40% at 50% 36%, rgba(255, 45, 160, 0.10), transparent 70%),
    radial-gradient(60% 46% at 50% 100%, rgba(139, 92, 246, 0.10), transparent 72%);
}
.lock-scene {
  width: min(350px, 94vw);
  animation: lockRise 1.1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes lockRise {
  0%   { opacity: 0; transform: translateY(22px) scale(0.96); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

/* Aura que respira detrás del corazón */
.lock-scene::before {
  content: "";
  position: absolute;
  inset: -16% -8% 4% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 45, 160, 0.2) 0%, rgba(177, 77, 255, 0.1) 42%, transparent 68%);
  filter: blur(16px);
  animation: auraBreathe 5s ease-in-out infinite;
}
.lock-visual {
  filter: drop-shadow(0 14px 40px rgba(177, 77, 255, 0.28));
}

/* PISTA — pill refinada de cristal */
.lock-pista-tag {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,120,200,0.18), rgba(177,77,255,0.12));
  border: 1px solid rgba(255, 130, 200, 0.4);
  box-shadow: 0 0 16px rgba(255, 60, 160, 0.28), inset 0 1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 0 10px rgba(255, 120, 200, 0.7);
  margin-bottom: 3px;
}

/* Texto de pista — serif elegante para que respire */
.lock-hint-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 110, 195, 0.4);
}

.lock-sep {
  background: linear-gradient(90deg, transparent, rgba(196, 107, 255, 0.5), transparent);
  width: 60%;
}

/* Campo de entrada — cristal premium */
.lock-input {
  background: rgba(10, 4, 18, 0.6);
  border: 1.5px solid rgba(196, 107, 255, 0.3);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 10px 12px 10px 30px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.4);
}
.lock-input::placeholder { color: var(--text-faint); }
.lock-input:focus {
  border-color: rgba(255, 70, 175, 0.7);
  box-shadow: 0 0 20px rgba(255, 60, 160, 0.25), inset 0 1px 6px rgba(0,0,0,0.4);
}

/* Botón hackear — contenido más legible */
#lock-submit .glass-content {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   TOAST — refinado para el resto de la app
   ============================================================ */
.app-toast {
  font-family: "Inter Tight", sans-serif;
  background: linear-gradient(165deg, rgba(28, 10, 36, 0.94), rgba(12, 5, 18, 0.96)) !important;
  border: 1px solid rgba(255, 110, 200, 0.34) !important;
  box-shadow: 0 18px 50px -16px rgba(0,0,0,0.8), 0 0 40px rgba(177,77,255,0.18) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--text) !important;
}

/* ════════════════════════════════════════════════════════════
   RE-SKIN GLOBAL PREMIUM — paneles, modales, botones, inputs,
   tarjetas, FAB, menús, overlays y juego. Negro + neón rosa/morado,
   liquid glass, bordes finos luminosos. Cubre toda la app.
   ════════════════════════════════════════════════════════════ */

/* ── PANELES / MODALES / CAJAS — cristal oscuro premium ── */
.modal-box,
.thought-box,
.wish-box,
.sl-box,
.sl-form-box,
.capsule-box,
.games-modal,
.cp-main,
.cp-pw-box,
.custom-confirm-box,
.filter-panel,
.tweaks-panel {
  background: linear-gradient(168deg, rgba(24, 9, 32, 0.93), rgba(10, 4, 17, 0.96)) !important;
  border: 1px solid rgba(255, 100, 196, 0.26) !important;
  box-shadow:
    0 36px 90px -22px rgba(0,0,0,0.82),
    0 0 70px rgba(177, 77, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -22px 50px -28px rgba(177, 77, 255, 0.30) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

/* Hairline neón superior en cabeceras de paneles */
.modal-box, .thought-box, .wish-box, .sl-box, .capsule-box,
.games-modal, .cp-main { position: relative; }
.thought-header, .wish-header, .sl-header, .capsule-header,
.games-modal-header, .cp-header {
  border-bottom: 1px solid rgba(255, 110, 200, 0.16) !important;
}

/* ── BOTONES SECUNDARIOS → CRISTAL ── */
.modal-btn,
.thought-save,
.wish-add-btn,
.sl-add-btn,
.sl-save-btn,
.sl-tab-new,
.capsule-save-btn,
.s-btn-primary,
.cap-save,
.cp-btn-primary,
.lock-btn,
.bb-newbtn {
  background: linear-gradient(180deg, rgba(255, 92, 184, 0.30), rgba(150, 60, 214, 0.24)) !important;
  border: 1px solid rgba(255, 124, 206, 0.5) !important;
  color: #fff !important;
  box-shadow:
    0 10px 26px -10px rgba(255, 60, 165, 0.55),
    0 0 22px rgba(177, 77, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 18px -10px rgba(177, 77, 255, 0.45) !important;
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  text-shadow: 0 1px 8px rgba(255, 120, 200, 0.5);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s ease, box-shadow 0.3s ease !important;
}
.modal-btn:hover,
.thought-save:hover,
.wish-add-btn:hover,
.sl-add-btn:hover,
.sl-save-btn:hover,
.capsule-save-btn:hover,
.s-btn-primary:hover,
.cp-btn-primary:hover {
  filter: brightness(1.12) saturate(1.08);
  transform: translateY(-1.5px);
}
.modal-btn:active,
.thought-save:active,
.wish-add-btn:active,
.sl-add-btn:active,
.sl-save-btn:active,
.capsule-save-btn:active,
.s-btn-primary:active,
.cp-btn-primary:active { transform: scale(0.96); }

/* Botones "fantasma"/cancelar — cristal tenue */
.modal-btn.cancel,
.s-btn-ghost,
.cp-btn-secondary,
.confirm-no,
.modal-btn#confirm-no {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(255, 130, 200, 0.22) !important;
  color: var(--text-dim) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12) !important;
  text-shadow: none;
}
/* Botón borrar — rojo neón de cristal */
.modal-btn.delete,
.confirm-yes,
.modal-btn#confirm-yes {
  background: linear-gradient(180deg, rgba(255, 70, 110, 0.28), rgba(180, 30, 70, 0.22)) !important;
  border: 1px solid rgba(255, 90, 130, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px -10px rgba(255, 50, 90, 0.6), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}

/* ── INPUTS / TEXTAREAS — cristal unificado ── */
.modal-box textarea,
.modal-box input[type="text"],
#mem-text, #mem-date,
.thought-note,
.wish-input,
.sl-input,
.cap-input, .cap-textarea, .cap-date-input,
.cp-input,
.cp-pw-input {
  background: rgba(10, 4, 18, 0.6) !important;
  border: 1.5px solid rgba(196, 107, 255, 0.28) !important;
  color: var(--text) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.4) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.modal-box textarea:focus,
.modal-box input[type="text"]:focus,
#mem-text:focus, #mem-date:focus,
.thought-note:focus,
.wish-input:focus,
.sl-input:focus,
.cap-input:focus, .cap-textarea:focus,
.cp-input:focus, .cp-pw-input:focus {
  border-color: rgba(255, 70, 175, 0.7) !important;
  box-shadow: 0 0 20px rgba(255, 60, 160, 0.22), inset 0 1px 6px rgba(0,0,0,0.4) !important;
}

/* ── TÍTULOS DE PANELES — serif elegante ── */
.modal-box h3,
#modal-add-title,
.games-title,
.wish-title,
.sl-title,
.cp-header-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-style: italic;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: var(--text) !important;
  text-shadow: 0 0 18px rgba(255, 110, 195, 0.4);
}

/* ── TARJETAS DE MEMORIA — refinado de cristal ── */
.memory-node { border-radius: 18px !important; }
.memory-node .mn-info {
  background: linear-gradient(180deg, rgba(40, 10, 32, 0.55), rgba(10, 3, 8, 0.82)) !important;
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}
/* Brillo de cristal en la parte superior de la tarjeta */
.memory-node::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 18%, transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

/* ── TAGS / CHIPS ── */
.mn-tag, .tag-chip, .filter-tag {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ── FAB — pastillas y botón corazón de cristal ── */
.fab-pill {
  background: linear-gradient(168deg, rgba(28, 10, 38, 0.86), rgba(12, 5, 20, 0.92)) !important;
  border: 1px solid rgba(255, 110, 200, 0.3) !important;
  box-shadow:
    0 10px 28px -12px rgba(0,0,0,0.7),
    0 0 22px rgba(177, 77, 255, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--text) !important;
}
.fab-pill:hover { filter: brightness(1.12); }
.fab-heart-btn {
  background: radial-gradient(circle at 35% 28%, rgba(255, 120, 200, 0.95), rgba(196, 30, 140, 0.92) 55%, rgba(120, 20, 110, 0.95)) !important;
  box-shadow:
    0 14px 36px -10px rgba(255, 50, 160, 0.6),
    0 0 50px rgba(177, 77, 255, 0.35),
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -10px 20px -8px rgba(120, 10, 90, 0.7) !important;
}

/* ── HACK PANELS — un punto más de pulido (ya eran lo mejor) ── */
.hack-panel {
  background: linear-gradient(180deg, rgba(34, 10, 26, 0.66), rgba(12, 4, 12, 0.76)) !important;
  border: 1px solid rgba(255, 120, 200, 0.3) !important;
  box-shadow:
    0 0 0 1px rgba(177, 77, 255, 0.08) inset,
    0 0 28px rgba(177, 77, 255, 0.16),
    0 10px 34px rgba(0,0,0,0.55) !important;
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  backdrop-filter: blur(9px) saturate(140%);
}

/* ════════════════════════════════════════════════════════════
   BLOCK BLAST + CUARTO + MASCOTA + TIENDA
   Sus estilos se inyectan por JS DESPUÉS de este archivo, así que
   se anulan con #screen-blockblast … !important (mayor especificidad).
   Solo tocamos lo visual; nunca el layout ni el color de las gemas.
   ════════════════════════════════════════════════════════════ */

/* Tablero — cristal negro profundo */
#screen-blockblast .bb-board {
  background: radial-gradient(120% 120% at 50% 0%, rgba(20, 6, 28, 1), rgba(3, 0, 7, 1)) !important;
  border: 1px solid rgba(255, 100, 196, 0.34) !important;
  box-shadow:
    0 0 50px rgba(177, 77, 255, 0.2),
    0 22px 60px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
#screen-blockblast .bb-cell { border-radius: 8px !important; }

/* GEMAS 3D — bisel de cristal glossy (mantiene el color base de cada gema) */
#screen-blockblast .bb-cell.bb-filled {
  border-width: 1px !important;
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.6),
    inset 0 -5px 9px rgba(0,0,0,0.42),
    inset 0 0 14px rgba(255,255,255,0.14),
    0 3px 8px rgba(0,0,0,0.5) !important;
}
#screen-blockblast .bb-cell.bb-filled::after {
  border-radius: 7px !important;
  background:
    linear-gradient(155deg,
      rgba(255,255,255,0.6) 0%,
      rgba(255,255,255,0.14) 24%,
      rgba(255,255,255,0) 48%,
      rgba(0,0,0,0.16) 74%,
      rgba(0,0,0,0.32) 100%) !important;
}
/* Mismo brillo de gema en las piezas de la bandeja */
#screen-blockblast .bb-piece .bb-pc::after {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.12) 26%, transparent 50%, rgba(0,0,0,0.22) 100%) !important;
}
#screen-blockblast .bb-piece .bb-pc {
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.4) !important;
}

/* Barras / nav / bandeja / paneles → cristal premium */
#screen-blockblast .bb-header,
#screen-blockblast .bb-topbar,
#screen-blockblast .bb-nav,
#screen-blockblast .bb-tray,
#screen-blockblast .bb-vs-row,
#screen-blockblast .bb-panel,
#screen-blockblast .bb-mission-panel,
#screen-blockblast .bb-room-card,
#screen-blockblast .bb-shop-card,
#screen-blockblast .bb-stat-card,
#screen-blockblast .bb-ps {
  background: linear-gradient(168deg, rgba(24, 9, 32, 0.92), rgba(9, 3, 16, 0.96)) !important;
  border: 1px solid rgba(255, 100, 196, 0.24) !important;
  box-shadow:
    0 0 30px rgba(177, 77, 255, 0.13),
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

/* Pastillas / badges / pestañas / selects → cristal */
#screen-blockblast .bb-badge,
#screen-blockblast .bb-room-tab,
#screen-blockblast .bb-size-btn,
#screen-blockblast .bb-ps-btn,
#screen-blockblast .bb-pw-btn,
#screen-blockblast .bb-ptoggle {
  background: linear-gradient(168deg, rgba(30, 11, 40, 0.8), rgba(12, 5, 20, 0.9)) !important;
  border: 1px solid rgba(255, 110, 200, 0.26) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
}
#screen-blockblast .bb-room-tab.active,
#screen-blockblast .bb-size-btn.sel,
#screen-blockblast .bb-pw-btn.ready,
#screen-blockblast .bb-ptoggle.on {
  border-color: rgba(255, 90, 200, 0.7) !important;
  box-shadow: 0 0 20px rgba(255, 70, 180, 0.4), 0 0 12px rgba(177, 77, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* Power-ups circulares — botón gema */
#screen-blockblast .bb-pw-btn {
  border-radius: 18px !important;
}

/* NAV INFERIOR — pestaña activa con realce neón (como el mockup) */
#screen-blockblast .bb-nav-tab.active {
  color: #ff8fd2 !important;
  background: linear-gradient(180deg, rgba(255, 90, 200, 0.26) 0%, rgba(177, 77, 255, 0.08) 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255, 90, 200, 0.85), inset 0 0 16px rgba(255, 90, 200, 0.14) !important;
}

/* Botones de acción principales → cristal rosa/morado */
#screen-blockblast .bb-newbtn,
#screen-blockblast .bb-go-btn,
#screen-blockblast .bb-shop-buy,
#screen-blockblast .bb-decor-back {
  background: linear-gradient(180deg, rgba(255, 92, 184, 0.32), rgba(150, 60, 214, 0.26)) !important;
  border: 1px solid rgba(255, 124, 206, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px -10px rgba(255, 60, 165, 0.55), inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* Número de puntuación — degradado rosa→morado luminoso */
#screen-blockblast .bb-snum {
  background: linear-gradient(135deg, #ffd0ec 0%, #ff79c6 45%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(255, 90, 200, 0.6)) !important;
}

/* Barras de stats (felicidad / energía) si existen como progress fills */
#screen-blockblast .bb-bar-fill,
#screen-blockblast .bb-pet-bar > span,
#screen-blockblast [class*="bar-fill"] {
  background: linear-gradient(90deg, #ff5cac, #c084fc) !important;
  box-shadow: 0 0 10px rgba(255, 90, 200, 0.5) !important;
}

/* ============================================================
   ANDROID / TOUCH — performance overrides
   Devices with no hover (= touchscreen) skip the expensive
   blur on off-screen elements without changing visual quality
   on the active screen.
   ============================================================ */
@media (hover: none) {
  /* Don't blur/scale hidden screens — saves GPU on Android */
  .screen:not(.active) {
    filter: none !important;
    transform: scale(1.0) !important;
    transition: opacity 0.5s ease !important;
  }
  /* Pause background aura animation to save battery */
  body::before { animation-play-state: paused; }
  /* Slightly reduce glow multipliers for touch devices */
  :root { --glow: 1.2; --buttonGlow: 1.2; }
}

/* Android: no blur on screen transitions (GPU blur very expensive) */
.android-perf .screen {
  filter: none !important;
  transition: opacity 0.5s ease, transform 0.5s ease !important;
}
/* Android: pause background aura drift animation */
.android-perf body::before { animation-play-state: paused; }
/* Android: disable backdrop-filter on blockblast elements (too expensive) */
.android-perf .bb-trophy-card,
.android-perf .bb-mission-card,
.android-perf .bb-header,
.android-perf .bb-nav,
.android-perf .bb-daily-pop,
.android-perf .bb-overlay,
.android-perf .bb-store2-item,
.android-perf .bb-store2-preview {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Android-specific: further reduce heavy effects */
.android-perf .memory-node::after { display: none; }
/* Promote neural cards to GPU layers early (avoids layer-creation flash on first frame) */
.memory-node { will-change: transform; }
/* Android: simpler card shadows — 3-layer → 2-layer, smaller blur radii */
.android-perf .memory-node {
  box-shadow:
    0 0 12px 3px var(--ngs, rgba(255,80,172,0.55)),
    0 0 28px 7px var(--ng,  rgba(255,80,172,0.28)) !important;
}
/* Stop animating box-shadow (too expensive on Android) */
.android-perf .glass-btn { animation: none !important; }
.android-perf .glass .glass-filter {
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}
.android-perf .fab-pill,
.android-perf .modal-box,
.android-perf .thought-box,
.android-perf .wish-box {
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}

/* ── SVG icon polish in Block Blast panels ── */
.bb-trophy-ico svg { color: currentColor; }
.bb-trophy-card.common .bb-trophy-ico { color: #ff79c6; }
.bb-trophy-card.rare   .bb-trophy-ico { color: #38bdf8; }
.bb-trophy-card.epic   .bb-trophy-ico { color: #c084fc; }
.bb-trophy-card.legendary .bb-trophy-ico { color: #fbbf24; }
.bb-trophy-card.locked .bb-trophy-ico { color: rgba(255,200,220,.25); }

/* Trophy card hover elevation */
#screen-blockblast .bb-trophy-card:not(.locked):hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 32px rgba(255,80,172,.3), 0 8px 24px rgba(0,0,0,.5) !important;
}

/* Mission icon — tint by weekly vs daily */
.bb-weekly .bb-mission-ico { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); color: #fbbf24; }
.bb-mission-ico { color: #ff79c6; }

/* Completed mission card glow */
.bb-mission-card.done {
  background: linear-gradient(135deg, rgba(4,18,12,.85), rgba(6,22,14,.88)) !important;
  border-color: rgba(52,211,153,.35) !important;
}

/* Trophy panel title SVG */
.bb-panel-title .bb-title-ico svg { color: currentColor; }
.bb-panel-title { display: flex; align-items: center; }

/* Profile avatar glow ring */
.bb-profile-avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 28px rgba(255,80,172,.4) !important;
  transition: box-shadow .3s ease;
}
.bb-ps-btn.ale .bb-profile-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 28px rgba(255,80,172,.5) !important; }
.bb-ps-btn.ari .bb-profile-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 28px rgba(168,85,247,.5) !important; }

/* Stat card icon tint by position */
#screen-blockblast .bb-stat-card .bb-stat-ico { opacity: .75; transition: opacity .2s; }
#screen-blockblast .bb-stat-card:hover .bb-stat-ico { opacity: 1; }

/* Reward coin tint */
.bb-mission-reward .bb-reward-coin svg { color: #fbbf24; }
.bb-mission-reward { font-size: 11px; font-weight: 700; color: rgba(251,191,36,.9); }
.bb-mission-card.done .bb-mission-reward { opacity: .55; }

/* Trophy progress bar gradient animation */
.bb-trophy-prog-bar {
  background: linear-gradient(90deg, #ff50ac, #c084fc 50%, #fbbf24) !important;
  background-size: 200% 100% !important;
  animation: bb-prog-shimmer 3s linear infinite !important;
}
@keyframes bb-prog-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Skin section label alignment */
.bb-skin-section-lbl { display: flex; align-items: center; }
.bb-skin-section-lbl .bb-title-ico { color: #ff79c6; }

/* Daily reward popup crystal borders */
#screen-blockblast .bb-daily-pop {
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

/* Score aura on new record */
#screen-blockblast .bb-overlay h2 {
  background: linear-gradient(135deg, #ffd0ec, #ff79c6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(255,80,172,.6));
}

/* Nav tab label — slightly larger for readability */
#screen-blockblast .bb-nav-tab { font-size: 8px !important; }

/* Room panel improvements */
#screen-blockblast .bb-room2 {
  box-shadow: 0 0 0 1px rgba(168,85,247,.2), 0 8px 40px rgba(0,0,0,.8), 0 0 60px rgba(168,85,247,.1) !important;
  border: 1.5px solid rgba(168,85,247,.35) !important;
}

/* Locked trophy skeleton shimmer */
@keyframes bb-skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.bb-trophy-card.locked {
  background: linear-gradient(
    90deg,
    rgba(255,80,172,.035) 0%,
    rgba(255,80,172,.07) 25%,
    rgba(255,80,172,.035) 50%,
    rgba(255,80,172,.02) 75%,
    rgba(255,80,172,.035) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: bb-skeleton-shimmer 3s ease-in-out infinite !important;
}

/* Stagger stat card entrance */
@keyframes bb-card-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bb-stats-grid .bb-stat-card { animation: bb-card-up .3s ease both; }
.bb-stats-grid .bb-stat-card:nth-child(1) { animation-delay: .05s; }
.bb-stats-grid .bb-stat-card:nth-child(2) { animation-delay: .10s; }
.bb-stats-grid .bb-stat-card:nth-child(3) { animation-delay: .15s; }
.bb-stats-grid .bb-stat-card:nth-child(4) { animation-delay: .20s; }
.bb-stats-grid .bb-stat-card:nth-child(5) { animation-delay: .25s; }
.bb-stats-grid .bb-stat-card:nth-child(6) { animation-delay: .30s; }
.bb-stats-grid .bb-stat-card:nth-child(7) { animation-delay: .35s; }
.bb-stats-grid .bb-stat-card:nth-child(8) { animation-delay: .40s; }

/* Mission card stagger entrance */
.bb-mission-card { animation: bb-card-up .3s ease both; }
.bb-mission-card:nth-child(1) { animation-delay: .05s; }
.bb-mission-card:nth-child(2) { animation-delay: .12s; }
.bb-mission-card:nth-child(3) { animation-delay: .19s; }
.bb-mission-card:nth-child(4) { animation-delay: .26s; }
.bb-mission-card:nth-child(5) { animation-delay: .33s; }

/* Stagger trophy card entrance — base animation required; locked cards override with shimmer */
#screen-blockblast .bb-trophy-card { animation: bb-card-up .3s ease both; }
.bb-trophy-grid .bb-trophy-card:nth-child(1)  { animation-delay: .03s; }
.bb-trophy-grid .bb-trophy-card:nth-child(2)  { animation-delay: .06s; }
.bb-trophy-grid .bb-trophy-card:nth-child(3)  { animation-delay: .09s; }
.bb-trophy-grid .bb-trophy-card:nth-child(4)  { animation-delay: .12s; }
.bb-trophy-grid .bb-trophy-card:nth-child(5)  { animation-delay: .15s; }
.bb-trophy-grid .bb-trophy-card:nth-child(6)  { animation-delay: .18s; }
.bb-trophy-grid .bb-trophy-card:nth-child(7)  { animation-delay: .21s; }
.bb-trophy-grid .bb-trophy-card:nth-child(8)  { animation-delay: .24s; }
.bb-trophy-grid .bb-trophy-card:nth-child(9)  { animation-delay: .27s; }
.bb-trophy-grid .bb-trophy-card:nth-child(10) { animation-delay: .30s; }
