* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* ── Colores principales ── */
  --c-primary: #ed1c24;
  --c-primary-hover: #ff2a32;
  --c-primary-dark: #c8151c;
  --c-success: #2ecc71;
  --c-danger: #e74c3c;
  --c-gold: #ffd700;

  /* ── Fondos ── */
  --bg-body: #111;
  --bg-surface: #1a1a1a;
  --bg-elevated: #222;
  --bg-card: #333;
  --bg-dark: #000;
  --bg-overlay: rgba(0, 0, 0, 0.8);

  /* ── Texto ── */
  --t-primary: #fff;
  --t-secondary: #ddd;
  --t-muted: #aaa;
  --t-dimmed: #999;
  --t-subtle: #888;
  --t-faint: #777;
  --t-ghost: #444;

  /* ── Bordes y separadores (blanco con opacidad) ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-visible: rgba(255, 255, 255, 0.15);

  /* ── Primary con opacidad ── */
  --c-primary-005: rgba(237, 28, 36, 0.05);
  --c-primary-008: rgba(237, 28, 36, 0.08);
  --c-primary-01: rgba(237, 28, 36, 0.1);
  --c-primary-015: rgba(237, 28, 36, 0.15);
  --c-primary-02: rgba(237, 28, 36, 0.2);
  --c-primary-03: rgba(237, 28, 36, 0.3);
  --c-primary-04: rgba(237, 28, 36, 0.4);
  --c-primary-05: rgba(237, 28, 36, 0.5);

  /* ── Blanco con opacidad ── */
  --w-002: rgba(255, 255, 255, 0.02);
  --w-003: rgba(255, 255, 255, 0.03);
  --w-004: rgba(255, 255, 255, 0.04);
  --w-005: rgba(255, 255, 255, 0.05);
  --w-01: rgba(255, 255, 255, 0.1);
  --w-012: rgba(255, 255, 255, 0.12);
  --w-02: rgba(255, 255, 255, 0.2);
  --w-03: rgba(255, 255, 255, 0.3);

  /* ── Tipografía ── */
  --font-display: "Bebas Neue", sans-serif;
  --font-tech: "Orbitron", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-graffiti: "Sedgwick Ave Display", cursive;
  --font-marker: "Permanent Marker", cursive;

  /* ── Accent / decorativo ── */
  --c-museum-accent: #b0a080;
}

html,
body {
  overflow: hidden;
  background: #111;
  font-family: "Space Mono", monospace;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  height: 100%;
  height: 100dvh;
}
/* Three.js renderer canvas — NOT particle-canvas */
body > canvas:not(#particle-canvas) {
  display: block;
  touch-action: none;
  contain: strict;
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s;
  gap: clamp(4px, 1vh, 10px);
}
#loading.h {
  opacity: 0;
  pointer-events: none;
}
#loading h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 10vw, 6rem);
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  line-height: 1;
}
#loading .sub {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1rem, 4vw, 2rem);
  color: var(--c-museum-accent);
  letter-spacing: 0.3em;
  margin-top: 0;
}
#loading p {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--t-dimmed);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: clamp(4px, 1vh, 10px);
}
#loading button {
  margin-top: clamp(1rem, 3vh, 2rem);
  padding: clamp(10px, 2vh, 14px) clamp(30px, 6vw, 50px);
  background: none;
  border: 1px solid #444;
  color: #999;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
#loading button:hover {
  border-color: var(--t-muted);
  color: #eee;
}

/* ══════════════════════════════════════════════════════════════════
     PANTALLAS DE ENTRADA — EUPB MUSEO
     Mobile-first · Paleta: rojo (var(--c-primary)) + blanco + negro
     ══════════════════════════════════════════════════════════════════ */

/* ── SHARED: CRT overlay mixin (scanlines + grain) ── */
.crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 10;
}
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10;
  opacity: 0.4;
}

/* ── SHARED: Animations ── */
@keyframes glitch1 {
  0%,
  92% {
    transform: none;
  }
  93% {
    transform: translate(-3px, -1px);
  }
  94% {
    transform: translate(3px, 1px);
  }
  95% {
    transform: translate(-2px, 0);
  }
  96%,
  100% {
    transform: none;
  }
}
@keyframes glitch2 {
  0%,
  94% {
    transform: none;
  }
  95% {
    transform: translate(3px, 1px);
  }
  96% {
    transform: translate(-3px, -1px);
  }
  97% {
    transform: translate(2px, 0);
  }
  98%,
  100% {
    transform: none;
  }
}
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes revealScale {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes divGrow {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: clamp(100px, 35vw, 240px);
  }
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  30% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}
@keyframes btnGlow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 42, 50, 0.25),
      0 0 30px rgba(237, 28, 36, 0.08);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 42, 50, 0.35),
      0 0 50px rgba(237, 28, 36, 0.15);
  }
}
@keyframes coinSpin {
  0%,
  100% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(180deg);
  }
}
@keyframes blink {
  0%,
  100% {
    visibility: visible;
  }
  50% {
    visibility: hidden;
  }
}
@keyframes eqBounce {
  0% {
    height: var(--min-h);
  }
  100% {
    height: var(--max-h);
  }
}

/* ── Flash de arranque ── */
#welcome-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  animation: flashBoom 0.7s 0.1s ease-out forwards;
  pointer-events: none;
}
@keyframes flashBoom {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* ── Canvas partículas ── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1999;
  pointer-events: none;
  background: transparent;
}
/* Safety: hide welcome elements when museum is active */
body.museum-active #particle-canvas,
body.museum-active #welcome-flash,
body.museum-active .hud-deco {
  display: none !important;
}

/* ── HUD decorations ── */
.side-accent {
  position: fixed;
  top: 0;
  width: 1px;
  height: 100%;
  z-index: 2001;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 15%,
    var(--c-primary) 50%,
    transparent 85%
  );
  opacity: 0;
  animation: sideIn 1.5s 0.5s ease forwards;
}
.side-accent--left {
  left: clamp(10px, 2.5vw, 30px);
}
.side-accent--right {
  right: clamp(10px, 2.5vw, 30px);
}
@keyframes sideIn {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: 100%;
    opacity: 0.12;
  }
}

.corner-deco {
  position: fixed;
  width: clamp(20px, 4vw, 40px);
  height: clamp(20px, 4vw, 40px);
  z-index: 2001;
  pointer-events: none;
  opacity: 0;
  animation: cornerIn 0.6s 1.6s ease forwards;
}
@keyframes cornerIn {
  to {
    opacity: 0.18;
  }
}
.corner-deco--tl {
  top: clamp(10px, 2.5vw, 24px);
  left: clamp(10px, 2.5vw, 24px);
  border-top: 1px solid var(--c-primary);
  border-left: 1px solid var(--c-primary);
}
.corner-deco--tr {
  top: clamp(10px, 2.5vw, 24px);
  right: clamp(10px, 2.5vw, 24px);
  border-top: 1px solid var(--c-primary);
  border-right: 1px solid var(--c-primary);
}
.corner-deco--bl {
  bottom: clamp(10px, 2.5vw, 24px);
  left: clamp(10px, 2.5vw, 24px);
  border-bottom: 1px solid var(--c-primary);
  border-left: 1px solid var(--c-primary);
}
.corner-deco--br {
  bottom: clamp(10px, 2.5vw, 24px);
  right: clamp(10px, 2.5vw, 24px);
  border-bottom: 1px solid var(--c-primary);
  border-right: 1px solid var(--c-primary);
}

/* ── Equalizer bars ── */
.eq-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
  opacity: 0;
  animation: revealUp 0.4s 1.8s ease forwards;
}
.eq-bars--top {
  align-items: flex-start;
  animation-delay: 1.6s;
}
.eq-bar {
  width: 3px;
  background: var(--c-primary);
  opacity: 0.35;
  animation: eqBounce var(--dur) ease-in-out infinite alternate;
}

/* ── Insert coin / press start ── */
.insert-coin {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.6vw, 0.78rem);
  color: var(--t-subtle);
  letter-spacing: 0.5em;
  margin-top: clamp(4px, 1vh, 10px);
  opacity: 0;
  animation: blink 1.2s 2s step-end infinite, revealUp 0.4s 2s ease forwards;
}
.insert-coin--tut {
  animation: blink 1.2s 1s step-end infinite, revealUp 0.4s 1s ease forwards;
  opacity: 0;
}

/* ── Neon divider ── */
.neon-divider {
  width: clamp(100px, 35vw, 240px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-primary),
    transparent
  );
  margin: clamp(6px, 1.5vh, 14px) 0;
  position: relative;
  animation: divGrow 0.8s 0.7s ease forwards;
  opacity: 0;
}
.neon-divider::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 42, 50, 0.3),
    transparent
  );
  filter: blur(4px);
}
.neon-divider--tut {
  margin: clamp(4px, 1vh, 10px) auto;
  animation-delay: 0.3s;
}

/* ══════════════════════════════════════════════════════
     PANTALLA 1: WELCOME
     ══════════════════════════════════════════════════════ */

#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.5vw, 36px);
  background: radial-gradient(
    ellipse at 50% 30%,
    #1a0a0c 0%,
    #080808 55%,
    #000 100%
  );
  opacity: 1;
}
#welcome-screen.h {
  opacity: 0;
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Logo + glow */
.logo-container {
  position: relative;
  margin-bottom: clamp(2px, 0.6vh, 8px);
}
.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 220%;
  background: radial-gradient(
    ellipse,
    rgba(237, 28, 36, 0.28) 0%,
    transparent 70%
  );
  filter: blur(35px);
  animation: auraPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.title-main {
  font-family: "Orbitron", "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 13vw, 6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 0.95;
  position: relative;
  text-shadow: 0 0 8px rgba(255, 42, 50, 0.3), 0 0 30px rgba(237, 28, 36, 0.15);
  animation: titleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes titleIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.title-main::before,
.title-main::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}
.title-main::before {
  color: #ff6666;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  opacity: 0.55;
  animation: glitch1 4s infinite linear alternate-reverse;
}
.title-main::after {
  color: var(--c-primary);
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
  opacity: 0.55;
  animation: glitch2 4s infinite linear alternate-reverse;
}

/* Subtítulo welcome */
.welcome-subtitle {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  color: var(--t-subtle);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-top: clamp(2px, 0.5vh, 6px);
  animation: revealUp 0.6s 0.5s ease forwards;
  opacity: 0;
}

/* Precio */
.price-tag {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 4.5vw, 1.8rem);
  color: var(--c-primary);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(255, 42, 50, 0.25);
  animation: revealScale 0.5s 0.9s ease forwards;
  opacity: 0;
}
.coin-icon {
  display: inline-block;
  animation: coinSpin 2s 2s ease-in-out infinite;
}

/* Includes row (una línea) */
.includes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2vw, 10px);
  flex-wrap: wrap;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  color: var(--t-dimmed);
  letter-spacing: 0.03em;
  margin: clamp(4px, 1vh, 10px) 0;
  animation: revealUp 0.4s 1s ease forwards;
  opacity: 0;
}
.dot-sep {
  color: #333;
  font-size: 0.8em;
}

/* Input nombre */
.welcome-input-wrap {
  width: 100%;
  max-width: clamp(260px, 70vw, 360px);
  position: relative;
  margin: clamp(6px, 1.2vh, 12px) 0;
  animation: revealUp 0.4s 1.1s ease forwards;
  opacity: 0;
}
.welcome-input-wrap input {
  width: 100%;
  padding: clamp(10px, 2.2vh, 16px) clamp(12px, 3vw, 18px);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  letter-spacing: 0.18em;
  outline: none;
  transition: all 0.35s;
  caret-color: var(--c-primary);
  border-radius: 0;
  -webkit-appearance: none;
}
.welcome-input-wrap input::placeholder {
  color: #3a3a3a;
  letter-spacing: 0.25em;
  font-weight: 400;
}
.welcome-input-wrap input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 16px rgba(237, 28, 36, 0.12),
    inset 0 0 16px rgba(237, 28, 36, 0.04);
  background: rgba(237, 28, 36, 0.02);
}
/* Corner accents */
.welcome-input-wrap::before,
.welcome-input-wrap::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--c-primary);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.welcome-input-wrap::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.welcome-input-wrap::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.welcome-input-wrap:focus-within::before,
.welcome-input-wrap:focus-within::after {
  opacity: 1;
}

/* Botones */
.welcome-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.8vw, 14px);
  width: 100%;
  max-width: clamp(260px, 70vw, 360px);
  animation: revealUp 0.4s 1.3s ease forwards;
  opacity: 0;
}
.welcome-buttons button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(12px, 2.5vh, 17px) 16px;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 42, 50, 0.25), 0 0 30px rgba(237, 28, 36, 0.08);
  animation: btnGlow 2s 2.2s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 42, 50, 0.35), 0 0 50px rgba(237, 28, 36, 0.15);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: shimmer 3s 2.5s infinite;
}
.btn-secondary {
  background: transparent;
  color: var(--t-faint);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  padding: clamp(10px, 2vh, 14px) 16px;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #999;
  transform: translateY(-1px);
}

/* ═ AUTH: Google button + divider ═ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: clamp(260px, 70vw, 360px);
  margin-top: clamp(4px, 1vh, 8px);
  animation: revealUp 0.4s 1.5s ease forwards;
  opacity: 0;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.auth-divider-text {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.55rem, 1.4vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.15);
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: clamp(260px, 70vw, 360px);
  padding: clamp(10px, 2vh, 14px) 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
  animation: revealUp 0.4s 1.6s ease forwards;
  opacity: 0;
}
.btn-google:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
.btn-google:active {
  transform: translateY(0) scale(0.98);
}
.auth-status {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
  min-height: 18px;
  animation: revealUp 0.4s 1.7s ease forwards;
  opacity: 0;
}

/* ═ PAUSE FOOTER: auth info ═ */
.pause-logout-btn {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.pause-logout-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
#pause-auth-info {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}

/* ═ PERFIL TAB ═ */
.perfil-header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(14px, 2.5vh, 20px);
  background: linear-gradient(
    135deg,
    rgba(237, 28, 36, 0.08),
    rgba(237, 28, 36, 0.02)
  );
  border: 1px solid rgba(237, 28, 36, 0.2);
  border-radius: 6px;
  margin-bottom: clamp(14px, 2.5vh, 20px);
}
.perfil-avatar-img {
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-primary);
  box-shadow: 0 0 15px rgba(237, 28, 36, 0.3);
}
.perfil-avatar-default {
  width: clamp(50px, 10vw, 70px);
  height: clamp(50px, 10vw, 70px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.perfil-info {
  flex: 1;
  min-width: 0;
}
.perfil-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.2;
}
.perfil-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.perfil-sync,
.perfil-nosync,
.perfil-badge-entry {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
}
.perfil-sync {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: var(--c-success);
}
.perfil-nosync {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
}
.perfil-badge-entry {
  background: rgba(237, 28, 36, 0.1);
  border: 1px solid rgba(237, 28, 36, 0.3);
  color: var(--c-primary);
}

.perfil-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: clamp(14px, 2.5vh, 20px);
}
.perfil-stat {
  text-align: center;
  padding: clamp(10px, 1.5vh, 14px) 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.perfil-stat-n {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--c-primary);
  line-height: 1;
}
.perfil-stat-l {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.48rem, 1vw, 0.55rem);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.perfil-section-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.perfil-votos-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}
.perfil-voto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  cursor: default;
}
.perfil-voto-cover {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}
.perfil-voto-info {
  flex: 1;
  min-width: 0;
}
.perfil-voto-a {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perfil-voto-t {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.45rem, 1vw, 0.55rem);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perfil-voto-tipo {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.perfil-cta {
  margin-top: clamp(14px, 2.5vh, 20px);
  padding: clamp(14px, 2vh, 18px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  text-align: center;
}
.perfil-cta-text {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  margin-bottom: 12px;
}
.perfil-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.6rem, 1.3vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}
.perfil-google-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
     PANTALLA 2: TUTORIAL
     ══════════════════════════════════════════════════════ */

#tutorial-screen {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: radial-gradient(
    ellipse at 50% 25%,
    #1a0a0c 0%,
    #080808 55%,
    #000 100%
  );
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s;
  padding: clamp(12px, 3vw, 28px);
  overflow: hidden;
}
#tutorial-screen.show {
  display: flex;
  opacity: 1;
}
#tutorial-screen.h {
  opacity: 0;
  pointer-events: none;
}

.tutorial-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.4vh, 14px);
  text-align: center;
}

/* Tutorial header */
.tutorial-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.4vh, 4px);
}
.tutorial-title {
  font-family: "Orbitron", "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 1;
  position: relative;
  text-shadow: 0 0 8px rgba(255, 42, 50, 0.2), 0 0 24px rgba(237, 28, 36, 0.08);
  animation: titleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.tutorial-title::before,
.tutorial-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
}
.tutorial-title::before {
  color: #ff6666;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  opacity: 0.45;
  animation: glitch1 5s infinite linear alternate-reverse;
}
.tutorial-title::after {
  color: var(--c-primary);
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
  opacity: 0.45;
  animation: glitch2 5s infinite linear alternate-reverse;
}

.tutorial-sub {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: var(--t-subtle);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: revealUp 0.5s 0.2s ease forwards;
  opacity: 0;
}

/* ── Tutorial cards (qué hacer) ── */
.tut-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.2vw, 10px);
  width: 100%;
  animation: revealUp 0.5s 0.4s ease forwards;
  opacity: 0;
}
.tut-card {
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(8px, 1.5vh, 12px) clamp(8px, 2vw, 12px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  text-align: left;
  transition: border-color 0.3s;
}
.tut-card:hover {
  border-color: rgba(237, 28, 36, 0.2);
}
.tut-card-icon {
  font-size: clamp(1rem, 3vw, 1.3rem);
  flex-shrink: 0;
  line-height: 1.2;
}
.tut-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tut-card-text strong {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.15em;
}
.tut-card-text span {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  color: #999;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* ── Controls section ── */
.tut-controls-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: clamp(8px, 1.5vh, 14px) clamp(8px, 2vw, 14px);
  animation: revealUp 0.5s 0.6s ease forwards;
  opacity: 0;
}
.tut-controls-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.25em;
  text-shadow: 0 0 12px rgba(237, 28, 36, 0.15);
  margin-bottom: clamp(6px, 1vh, 10px);
}
.tut-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(4px, 1vw, 10px);
}
/* Show only relevant controls */
.tut-controls--mob {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .tut-controls--pc {
    display: none;
  }
  .tut-controls--mob {
    display: grid;
  }
}

.tut-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, 0.6vh, 6px);
}
.tut-key {
  background: var(--c-primary);
  color: #fff;
  padding: clamp(4px, 0.7vh, 7px) clamp(6px, 1.2vw, 10px);
  border-radius: 3px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(237, 28, 36, 0.2), 0 2px 0 #b8151b;
}
.tut-key-icon {
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}
.tut-ctrl-label {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.3vw, 0.72rem);
  color: var(--t-dimmed);
  letter-spacing: 0.04em;
}

/* ── Tutorial CTA ── */
.tutorial-button {
  flex-shrink: 0;
  width: 100%;
  max-width: clamp(240px, 65vw, 340px);
  animation: revealUp 0.5s 0.8s ease forwards;
  opacity: 0;
}
.tutorial-button button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(12px, 2.5vh, 17px) 16px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(255, 42, 50, 0.25), 0 0 30px rgba(237, 28, 36, 0.08);
  animation: btnGlow 2s 1.5s ease-in-out infinite;
}
.tutorial-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 42, 50, 0.35), 0 0 50px rgba(237, 28, 36, 0.15);
}
.tutorial-button button:active {
  transform: translateY(0) scale(0.98);
}
.tutorial-button button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3.5s 2s infinite;
}

/* ══════════════════════════════════════════════════════
     RESPONSIVE — MOBILE SPECIFIC
     ══════════════════════════════════════════════════════ */

/* Pantallas muy pequeñas (iPhone SE, etc) */
@media (max-height: 640px) {
  .title-main {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }
  .tutorial-title {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
  .eq-bars--top {
    display: none;
  }
  .neon-divider {
    margin: clamp(4px, 1vh, 8px) 0;
  }
  .tut-cards {
    gap: 4px;
  }
  .tut-card {
    padding: 6px 8px;
  }
}

@media (max-width: 380px) {
  .title-main {
    letter-spacing: 0.06em;
  }
  .welcome-subtitle {
    letter-spacing: 0.3em;
    font-size: clamp(0.42rem, 2vw, 0.55rem);
  }
  .includes-row {
    font-size: clamp(0.42rem, 1.5vw, 0.55rem);
  }
  .tut-cards {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Desktop wide */
@media (min-width: 768px) {
  .welcome-content,
  .tutorial-content {
    max-width: 560px;
  }
  .tut-cards {
    gap: 12px;
  }
  .welcome-buttons {
    flex-direction: row;
    max-width: 480px;
  }
  .welcome-buttons button {
    width: auto;
    padding-left: clamp(28px, 4vw, 44px);
    padding-right: clamp(28px, 4vw, 44px);
  }
}
#ui-logo {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 100;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: rgba(220, 215, 205, 0.8);
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.8s;
  white-space: nowrap;
}

/* Barra de usuario con puntos - reorganizada para evitar solapamiento */
#user-bar {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.8s;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 22vw;
}
#user-bar.vis {
  opacity: 1;
}
#user-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
#user-points {
  font-family: "Space Mono", monospace;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--c-primary);
  letter-spacing: 0.1em;
  font-weight: bold;
}
#user-rank {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  color: var(--t-dimmed);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#ui-room {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: #998;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s;
  text-align: center;
  line-height: 1.3;
}
.vis {
  opacity: 1 !important;
}
#cross {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cross.vis {
  opacity: 0.3;
}
#cross::before,
#cross::after {
  content: "";
  position: absolute;
  background: #fff;
}
#cross::before {
  width: 1px;
  height: 12px;
  left: 50%;
  transform: translateX(-50%);
}
#cross::after {
  width: 12px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
}

/* Badge contextual (desktop y móvil) */
#context-badge {
  position: fixed;
  top: calc(50% + 18px);
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
#context-badge.show {
  opacity: 1;
}
#context-badge .emoji {
  font-size: 1.3rem;
  line-height: 1;
}
#context-badge .label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

#hud {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#panel {
  position: fixed;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s;
  pointer-events: none;
}
#panel.v {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 769px) {
  #panel {
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 290px;
  }
}
@media (max-width: 768px) {
  #panel {
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 30vh;
    overflow-y: auto;
  }
}
.pn {
  background: rgba(12, 12, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(14px, 3vw, 24px);
  position: relative;
}
.pn .x {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--t-faint);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}
.pa {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--t-secondary);
  letter-spacing: 0.04em;
  padding-right: 24px;
}
.pt {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: var(--c-museum-accent);
  margin-bottom: 10px;
  font-style: italic;
}
.pm {
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 2;
}
.pm span {
  color: var(--t-muted);
}
.pd {
  width: 24px;
  height: 1px;
  background: #444;
  margin: 8px 0;
}
.pk {
  font-size: 0.72rem;
  color: var(--t-dimmed);
  line-height: 1.8;
  max-height: 130px;
  overflow-y: auto;
}
.pk::-webkit-scrollbar {
  width: 2px;
}
.pk::-webkit-scrollbar-thumb {
  background: #333;
}
#mob {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}
#mob > * {
  pointer-events: auto;
}
#jb {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.015);
}
#jt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ml {
  position: absolute;
  bottom: 30px;
  right: 18px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

/* Selector de colores para graffiti */
.color-selector {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}
.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.color-option:hover {
  transform: scale(1.15);
}
.color-option.selected {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.color-option.selected::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Botón flotante para pintar graffiti en móvil */
#btn-graffiti-mobile {
  position: fixed;
  bottom: 140px;
  right: 20px;
  z-index: 170;
  width: 60px;
  height: 60px;
  background: var(--c-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
  backdrop-filter: blur(10px);
}
#btn-graffiti-mobile.v {
  display: flex;
}
#btn-graffiti-mobile:active {
  transform: scale(0.95);
  background: var(--c-primary-hover);
}

@media (max-width: 768px) {
  #mob {
    display: block;
  }
  #hud {
    display: none;
  }
  #cross {
    display: block;
  }
  #context-badge {
    display: flex;
    top: calc(50% - 50px);
    transform: translate(-50%, -50%);
  }

  /* Ajustes específicos para móvil - evitar solapamiento */
  #ui-logo {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    top: 12px;
    left: 12px;
  }
  #user-bar {
    max-width: 30vw;
    top: 12px;
    right: 12px;
  }
  #user-name {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  }
  #user-points {
    font-size: clamp(1rem, 2.8vw, 1.4rem);
  }
  #ui-room {
    font-size: clamp(0.7rem, 2.2vw, 0.95rem);
    top: 32px;
  }
}

/* ── FLOATING POINTS ANIMATION ── */
.pts-floater {
  position: fixed;
  z-index: 9999;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  color: var(--c-primary);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px rgba(237, 28, 36, 0.5), 0 0 30px rgba(237, 28, 36, 0.2);
  pointer-events: none;
  transform: translate(-50%, 0);
  animation: ptsFloat 1.2s ease-out forwards;
}
@keyframes ptsFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50px) scale(0.8);
  }
}
.pts-bump {
  animation: ptsBump 0.4s ease !important;
}
@keyframes ptsBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ── ACHIEVEMENT NOTIFICATION — Arcade ── */
#achievement-notification {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(237, 28, 36, 0.25);
  border-radius: 4px;
  padding: clamp(14px, 3vh, 22px) clamp(16px, 4vw, 28px);
  min-width: 340px;
  max-width: 90vw;
  box-shadow: 0 0 30px rgba(237, 28, 36, 0.1), 0 8px 32px rgba(0, 0, 0, 0.8);
  transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
  pointer-events: none;
}
#achievement-notification.show {
  top: 80px;
  opacity: 1;
}
.achievement-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  margin-bottom: clamp(10px, 2vh, 14px);
}
.achievement-icon {
  width: clamp(42px, 10vw, 54px);
  height: clamp(42px, 10vw, 54px);
  background: var(--c-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
  animation: achieveGlow 1.5s ease-in-out infinite;
}
@keyframes achieveGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(237, 28, 36, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(237, 28, 36, 0.6);
  }
}
.achievement-title {
  flex: 1;
}
.achievement-title h3 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  margin: 0;
  line-height: 1;
}
.achievement-title p {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  color: #777;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 3px;
}
.achievement-body {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  padding: clamp(10px, 2vh, 14px);
  border-left: 2px solid var(--c-primary);
}
.achievement-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 700;
  color: #eee;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.achievement-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.68rem, 1.3vw, 0.78rem);
  color: #999;
  line-height: 1.5;
  margin-bottom: 8px;
}
.achievement-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.achievement-points {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(237, 28, 36, 0.3);
}
.achievement-points span {
  font-size: 0.65em;
  color: var(--t-faint);
  margin-left: 3px;
}
.achievement-bronze {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
}
.achievement-silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
}
.achievement-gold {
  background: linear-gradient(135deg, var(--c-gold), #ffaa00);
}
.achievement-platinum {
  background: linear-gradient(135deg, #e5e4e2, #a8a8a8);
}
@media (max-width: 768px) {
  #achievement-notification {
    min-width: auto;
    width: calc(100vw - 28px);
    padding: 12px 16px;
  }
  #achievement-notification.show {
    top: 14px;
  }
}

/* ── SISTEMA DE MISIONES — Arcade ── */
#mission-panel {
  position: fixed;
  left: 20px;
  bottom: -180px;
  z-index: 900;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(237, 28, 36, 0.3);
  border-left: 2px solid var(--c-primary);
  border-radius: 4px;
  padding: clamp(10px, 2vh, 14px) clamp(12px, 2.5vw, 16px);
  min-width: 240px;
  max-width: 280px;
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(237, 28, 36, 0.08), 0 6px 24px rgba(0, 0, 0, 0.6);
}
#mission-panel.show {
  bottom: 20px;
}
#mission-panel.complete {
  border-color: rgba(46, 204, 113, 0.4);
  border-left-color: var(--c-success);
}
.mission-tag {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-primary);
  background: rgba(237, 28, 36, 0.1);
  padding: 2px 7px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 6px;
}
#mission-panel.complete .mission-tag {
  color: var(--c-success);
  background: rgba(46, 204, 113, 0.1);
}
.mission-new-badge {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.6rem, 1.1vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--c-primary);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 5px;
  animation: missionPulse 1.2s ease-in-out infinite;
  display: inline-block;
}
@keyframes missionPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.mission-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.mission-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.mission-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 3px;
}
.mission-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  color: var(--t-muted);
  line-height: 1.4;
}
.mission-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 4px;
}
.mission-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary), #ff6644);
  border-radius: 1px;
  transition: width 0.5s ease;
}
#mission-panel.complete .mission-progress-fill {
  width: 100% !important;
  background: linear-gradient(90deg, var(--c-success), #00ff88);
}
.mission-reward {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  font-weight: 700;
  color: #777;
  letter-spacing: 0.1em;
  text-align: right;
}
.mission-reward.earned {
  color: var(--c-success);
}
@media (max-width: 768px) {
  #mission-panel {
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    top: -220px;
    min-width: 260px;
    max-width: calc(100vw - 28px);
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0s;
  }
  #mission-panel.show {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    bottom: auto;
  }
  #mission-panel.complete {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
}
/* NUEVO: Modal para añadir enlace al graffiti */
#graffiti-link-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#graffiti-link-modal.show {
  display: flex;
}
.graffiti-link-content {
  background: rgba(20, 20, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}
.graffiti-link-content h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.graffiti-link-content .subtitle {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: var(--t-dimmed);
  margin-bottom: 24px;
  line-height: 1.6;
}
.graffiti-link-content .price-info {
  background: rgba(237, 28, 36, 0.08);
  border-left: 3px solid var(--c-primary);
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}
.graffiti-link-content .price-info p {
  font-size: 0.7rem;
  color: var(--t-muted);
  line-height: 1.8;
  margin: 4px 0;
}
.graffiti-link-content .price-info strong {
  color: var(--c-primary);
}
.graffiti-link-content input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--t-secondary);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  margin-bottom: 8px;
  transition: all 0.3s;
}
.graffiti-link-content input[type="url"]:focus {
  outline: none;
  border-color: var(--c-primary);
  background: rgba(255, 255, 255, 0.08);
}
.graffiti-link-content input[type="url"]::placeholder {
  color: var(--t-subtle);
}
.graffiti-link-content .input-note {
  font-size: 0.65rem;
  color: var(--t-subtle);
  margin-bottom: 24px;
}
.graffiti-link-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.graffiti-link-buttons button {
  padding: 12px 28px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  border-radius: 4px;
}
.btn-skip-link {
  background: rgba(255, 255, 255, 0.05);
  color: var(--t-dimmed);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.btn-skip-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--t-muted);
}
.btn-add-link {
  background: var(--c-primary);
  color: #fff;
}
.btn-add-link:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
}
.btn-add-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-add-link:disabled:hover {
  transform: none;
}

/* NUEVO: Modal de info de graffiti */
#graffiti-info-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#graffiti-info-modal.show {
  display: flex;
}
.graffiti-info-content {
  background: rgba(20, 20, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 28px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  position: relative;
}
.graffiti-info-content .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--t-subtle);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
}
.graffiti-info-content .close-btn:hover {
  color: var(--t-secondary);
}
.graffiti-info-content h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--c-primary);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding-right: 30px;
}
.graffiti-info-field {
  margin-bottom: 16px;
}
.graffiti-info-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--t-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.graffiti-info-field .value {
  font-size: 0.9rem;
  color: var(--t-secondary);
  font-family: "Space Mono", monospace;
  word-break: break-word;
}
.graffiti-info-field a {
  color: var(--c-primary);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.3s;
}
.graffiti-info-field a:hover {
  color: var(--c-primary-hover);
  text-decoration: underline;
}
.graffiti-info-timestamp {
  font-size: 0.72rem;
  color: #777;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* NUEVO: Modal de multimedia (video + info + enlaces) */
#media-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#media-modal.show {
  display: flex;
}
.media-content {
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0;
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
  position: relative;
}
.media-content::-webkit-scrollbar {
  width: 8px;
}
.media-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.media-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.media-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.media-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.media-close {
  background: none;
  border: none;
  color: var(--t-dimmed);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 50%;
}
.media-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}
.media-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.media-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.media-body {
  padding: 32px;
}
.media-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.media-artist {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--c-primary);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.media-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.media-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-info-label {
  font-size: 0.78rem;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: "Space Mono", monospace;
}
.media-info-value {
  font-size: 0.9rem;
  color: var(--t-secondary);
  font-family: "Space Mono", monospace;
}
.media-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}
.media-tracklist-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.media-tracklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.media-track {
  font-size: 0.8rem;
  color: #999;
  font-family: "Space Mono", monospace;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  transition: all 0.2s;
}
.media-track:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--t-secondary);
}
.media-track-number {
  color: var(--c-primary);
  margin-right: 12px;
  font-weight: bold;
}
.media-links-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.media-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  transition: all 0.3s;
}
.media-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}
.media-link-icon {
  font-size: 1.3rem;
}
.media-description {
  font-size: 0.85rem;
  color: var(--t-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-family: "Space Mono", monospace;
}
/* ── COMENTARIOS ── */
.comments-section {
  margin-top: 0;
}
.comments-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--t-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.comment-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.comment-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.comment-textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.5;
  height: 60px;
  -webkit-user-select: text;
  user-select: text;
}
.comment-textarea::placeholder {
  color: var(--t-faint);
}
.comment-textarea:focus {
  border-color: rgba(237, 28, 36, 0.5);
}
.comment-textarea.over-limit {
  border-color: var(--c-danger);
}
.comment-send-btn {
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.4);
  color: var(--c-primary);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 0 18px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.comment-send-btn:hover {
  background: rgba(237, 28, 36, 0.3);
  border-color: var(--c-primary);
}
.comment-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.comment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-char-count {
  font-size: 0.72rem;
  color: #777;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.comment-char-count.warning {
  color: #e67e22;
}
.comment-char-count.over {
  color: var(--c-danger);
}
.comment-no-entrada {
  font-size: 0.78rem;
  color: #777;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.comment-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: commentIn 0.3s ease;
}
@keyframes commentIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.comment-author {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  color: var(--c-primary);
  letter-spacing: 0.1em;
}
.comment-text {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #ccc;
  line-height: 1.6;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
}
.comment-time {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--t-subtle);
  letter-spacing: 0.08em;
}
.comments-empty {
  font-size: 0.78rem;
  color: var(--t-subtle);
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px 0;
}
.comments-load-more {
  width: 100%;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #777;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.comments-load-more:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--t-muted);
}
.comments-loading {
  font-size: 0.75rem;
  color: #777;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px 0;
}
@media (max-width: 768px) {
  .media-content {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .media-body {
    padding: 24px 20px;
  }
  .media-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
     HUB MENU - Pantalla exterior del museo
     ═══════════════════════════════════════════════════════ */
#hub-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#hub-menu.show {
  display: block;
  animation: hubFadeIn 0.5s ease;
}
@keyframes hubFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hub-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.hub-header {
  text-align: center;
  margin-bottom: 40px;
}
.hub-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #fff;
  letter-spacing: 0.25em;
  margin: 0;
  line-height: 1;
}
.hub-subtitle {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 8px 0 0;
}
.hub-divider {
  width: 60px;
  height: 3px;
  background: var(--c-primary);
  margin: 20px auto 0;
}

.hub-section {
  margin-bottom: 36px;
}
.hub-section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--c-primary);
  letter-spacing: 0.2em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(237, 28, 36, 0.2);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.hub-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.hub-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.15);
}
.hub-card:hover::before {
  transform: scaleX(1);
}
.hub-card:active {
  transform: scale(0.97);
}

.hub-card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.hub-card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.15em;
  line-height: 1.1;
}
.hub-card-desc {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}
.hub-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
}

/* Locked cards */
.hub-card-locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.hub-card-locked:hover {
  transform: none;
  border-color: #222;
  box-shadow: none;
}

/* Room cards with entry */
.hub-card-room {
  border-color: var(--bg-surface);
}
.hub-card-room .hub-card-icon {
  font-size: 1.5rem;
}
.hub-card-room .hub-card-title {
  font-size: 1.8rem;
  color: var(--c-primary);
}

/* No entry state */
.hub-card-noentry {
  opacity: 0.5;
}
.hub-card-noentry .hub-card-desc {
  color: var(--c-primary);
}

/* Back button */
.hub-back-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 30px auto 0;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid #333;
  color: var(--t-dimmed);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}
.hub-back-btn:hover {
  border-color: var(--c-primary);
  color: #fff;
  background: rgba(237, 28, 36, 0.08);
}

/* Responsive */
@media (max-width: 600px) {
  .hub-container {
    padding: 28px 16px 40px;
  }
  .hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }
  .hub-card {
    padding: 14px 8px;
  }
  .hub-card-icon {
    font-size: 1.5rem;
  }
  .hub-card-title {
    font-size: 1.2rem;
  }
  .hub-card-room .hub-card-title {
    font-size: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════
     MENU BUTTON - Botón ☰ encima del indicador de sala
     ═══════════════════════════════════════════════════════ */
#menu-btn {
  position: fixed;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  width: clamp(26px, 4.5vw, 34px);
  height: clamp(22px, 3.5vw, 28px);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  padding: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
#menu-btn.vis {
  opacity: 1;
  pointer-events: auto;
}
#menu-btn:hover {
  background: rgba(237, 28, 36, 0.35);
  border-color: var(--c-primary);
  color: #fff;
}
@media (max-width: 768px) {
  #menu-btn {
    top: 2px;
    width: 30px;
    height: 24px;
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════════════════
     PAUSE MENU - Menú tipo videojuego
     ═══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
     PAUSE MENU — Arcade style
     ══════════════════════════════════════════════════════ */
#pause-menu {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#pause-menu.show {
  display: block;
  animation: pauseIn 0.3s ease;
}
@keyframes pauseIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pause-container {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 32px) clamp(14px, 3vw, 24px) 50px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.pause-header {
  text-align: center;
  margin-bottom: clamp(14px, 3vh, 22px);
  position: relative;
}
.pause-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: #fff;
  letter-spacing: 0.18em;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 42, 50, 0.2);
}
.pause-subtitle {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin: 5px 0 0;
}
.pause-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--t-subtle);
  width: 34px;
  height: 34px;
  border-radius: 3px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.pause-close:hover {
  border-color: var(--c-primary);
  color: #fff;
}

/* Tabs */
.pause-tabs {
  display: flex;
  gap: 0;
  margin-bottom: clamp(14px, 3vh, 20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pause-tab {
  flex: 1;
  padding: clamp(8px, 1.5vh, 12px) 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.pause-tab:hover {
  color: rgba(255, 255, 255, 0.55);
}
.pause-tab.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

.pause-panel {
  display: none;
  flex: 1;
}
.pause-panel.active {
  display: block;
  animation: panelSlide 0.25s ease;
}
@keyframes panelSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CATÁLOGO PANEL */
.pause-catalogo-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vh, 20px);
}
.pause-cat-hero {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(14px, 2.5vh, 20px);
  background: linear-gradient(
    135deg,
    rgba(237, 28, 36, 0.08),
    rgba(237, 28, 36, 0.02)
  );
  border: 1px solid rgba(237, 28, 36, 0.2);
  border-radius: 6px;
}
.pause-cat-icon {
  font-size: clamp(2rem, 5vw, 2.8rem);
  flex-shrink: 0;
}
.pause-cat-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  letter-spacing: 0.08em;
  color: #fff;
}
.pause-cat-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.pause-cat-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pause-cat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 2vh, 16px) 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.pause-cat-btn:hover {
  border-color: rgba(237, 28, 36, 0.4);
  color: #fff;
  background: rgba(237, 28, 36, 0.06);
}
.pause-cat-btn-main {
  background: rgba(237, 28, 36, 0.1);
  border-color: rgba(237, 28, 36, 0.3);
  color: var(--c-primary);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
}
.pause-cat-btn-main:hover {
  background: rgba(237, 28, 36, 0.18);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(237, 28, 36, 0.2);
}
.pause-cat-tip {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  letter-spacing: 0.06em;
  font-style: italic;
}

/* SALAS */
.pause-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.pause-room-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  padding: clamp(12px, 2vh, 16px) 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.pause-room-card:hover {
  border-color: rgba(237, 28, 36, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.12);
}
.pause-room-card:active {
  transform: scale(0.97);
}
.pause-room-card .room-icon {
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.pause-room-card .room-year {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: 0.08em;
  line-height: 1;
}
.pause-room-card .room-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}
.pause-room-card .room-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.75rem;
}
.pause-room-card.current {
  border-color: rgba(237, 28, 36, 0.5);
  background: rgba(237, 28, 36, 0.06);
}
.pause-room-card.locked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* MÚSICA */
.pause-music-wrap {
  max-width: 380px;
  margin: 0 auto;
}
.pause-music-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pause-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.pause-music-info {
  flex: 1;
  min-width: 0;
}
.pause-track-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pause-track-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.pause-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  transition: all 0.3s;
}
.pause-status-dot.playing {
  background: var(--c-success);
  box-shadow: 0 0 8px var(--c-success);
}
.pause-track-status span {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: #777;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pause-music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pause-ctrl-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pause-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.pause-play-btn {
  background: var(--c-primary) !important;
  border: none !important;
  color: #fff !important;
  width: 50px !important;
  height: 50px !important;
  font-size: 1.2rem !important;
  box-shadow: 0 0 18px rgba(237, 28, 36, 0.4);
}
.pause-play-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(237, 28, 36, 0.6) !important;
}
.pause-vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pause-vol-wrap span {
  font-size: 0.8rem;
}
#pause-vol {
  flex: 1;
  -webkit-appearance: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
#pause-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-primary);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(237, 28, 36, 0.5);
}

/* LOGROS */
.pause-logros-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.logro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.8vh, 14px) clamp(10px, 2vw, 14px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  transition: border-color 0.2s;
}
.logro-item.unlocked {
  border-color: rgba(237, 28, 36, 0.2);
  background: rgba(237, 28, 36, 0.03);
}
.logro-item.locked {
  opacity: 0.35;
}
.logro-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.logro-info {
  flex: 1;
  min-width: 0;
}
.logro-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.logro-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  color: var(--t-dimmed);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.logro-pts {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.logro-pts.earned {
  color: var(--c-success);
}
.pause-logros-summary {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  color: var(--t-subtle);
  letter-spacing: 0.12em;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* MISIONES */
.pause-misiones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mision-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.8vh, 14px) clamp(10px, 2vw, 14px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}
.mision-item.done {
  border-color: rgba(46, 204, 113, 0.2);
  background: rgba(46, 204, 113, 0.03);
}
.mision-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.mision-info {
  flex: 1;
  min-width: 0;
}
.mision-name {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 0.88rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.mision-desc {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.63rem, 1.2vw, 0.73rem);
  color: var(--t-dimmed);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.mision-status {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.68rem, 1.4vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.mision-status.done {
  color: var(--c-success);
}
.mision-status.pending {
  color: var(--c-primary);
}

/* Footer */
.pause-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#pause-user-info {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  color: var(--t-subtle);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 500px) {
  .pause-container {
    padding: 16px 12px 36px;
  }
  .pause-rooms-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
  }
  .pause-room-card {
    padding: 10px 5px;
  }
  .pause-tab {
    font-size: clamp(0.52rem, 2.8vw, 0.72rem);
    letter-spacing: 0.04em;
    padding: clamp(7px, 1.2vh, 10px) 2px;
  }
}

/* Logro categories */
.logro-category {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  margin: 14px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logro-category:first-child {
  margin-top: 0;
}
.logro-progress {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: var(--c-primary);
  letter-spacing: 0.06em;
  margin-top: 2px;
  opacity: 0.8;
}
.mision-progress-info {
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: var(--c-primary);
  letter-spacing: 0.06em;
  margin-top: 2px;
  opacity: 0.8;
}
.pause-misiones-summary {
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.65rem, 1.3vw, 0.75rem);
  color: var(--t-subtle);
  letter-spacing: 0.12em;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* User rank mobile */
@media (max-width: 768px) {
  #user-rank {
    font-size: clamp(0.58rem, 1.5vw, 0.68rem);
  }
}

/* ══════════════════════════════════════════════════════════════════
     ESTILOS MIGRADOS DESDE INLINE — EUPB MUSEO
     ══════════════════════════════════════════════════════════════════ */

/* ── Botones primarios rojos (museo) ── */
.btn-museo-primary {
  width: 100%;
  padding: 12px;
  background: var(--c-primary);
  border: none;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 6px;
}
.btn-museo-primary:hover {
  background: var(--c-primary-dark);
}

.btn-museo-primary--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  white-space: nowrap;
  width: auto;
  margin-bottom: 0;
}

/* ── Inputs del museo ── */
.input-museo {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}
.input-museo:focus {
  border-color: var(--t-faint);
}
.input-museo--mb8 {
  margin-bottom: 8px;
}
.input-museo--mb12 {
  margin-bottom: 12px;
}

/* ── Sugerencias ── */
#sug-artista {
  margin-bottom: 8px;
}
#sug-disco {
  margin-bottom: 12px;
}
#sug-btn {
  width: 100%;
  padding: 12px;
  background: var(--c-primary);
  border: none;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
#sug-btn:hover {
  background: var(--c-primary-dark);
}

/* ── Graffiti ── */
#btn-comprar-graffiti {
  width: 100%;
  padding: 12px;
  background: var(--c-primary);
  border: none;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 6px;
}
#btn-pago {
  padding: 8px 14px;
  background: var(--c-primary);
  border: none;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Opciones de tamaño graffiti ── */
.size-option {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid #444;
  color: var(--t-secondary);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.size-option.active,
.size-option:hover {
  background: #2a2a2a;
  border-color: var(--t-dimmed);
  color: #fff;
}

/* ── Botones de voto (like/dislike) ── */
#btn-like,
#btn-dislike {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}
#btn-like:hover {
  background: rgba(100, 200, 100, 0.15);
  border-color: #4a4;
  color: #8f8;
}
#btn-dislike:hover {
  background: rgba(200, 80, 80, 0.15);
  border-color: #a44;
  color: #f88;
}

.voto-count {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

/* ── Jukebox ── */
#jukebox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--t-faint);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
#jukebox-close:hover {
  color: #fff;
}

#jukebox-vinyl {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
  border: 1px solid #222;
  flex-shrink: 0;
}

#jukebox-track-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jukebox-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  transition: all 0.3s;
}

#jukebox-status-txt {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: #777;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#jukebox-pbar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

#jukebox-pfill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary), #ff5555);
  border-radius: 2px;
  pointer-events: none;
}

#jukebox-tcur,
#jukebox-ttot {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--t-subtle);
}

#jukebox-prev,
#jukebox-next {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#jukebox-prev:hover,
#jukebox-next:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

#jukebox-play {
  background: var(--c-primary);
  border: none;
  color: #fff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(237, 28, 36, 0.5);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#jukebox-play:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(237, 28, 36, 0.7) !important;
}

#jukebox-vol {
  flex: 1;
  -webkit-appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

/* ── Modal portada placeholder ── */
.modal-cover-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  letter-spacing: 0.2em;
}

.modal-cover-img {
  width: 100%;
  display: block;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

/* ── Iframe video ── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── SoundCloud hidden player ── */
.sc-hidden-player {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  border: none;
}

/* ── Jukebox layout ── */
#jukebox-cover-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
  border: 1px solid #222;
}
#jukebox-vinyl {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.55) 26%,
    transparent 27%
  );
  animation: vinylSpin 3s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
#jukebox-track-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.07em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jukebox-info-row {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.jukebox-cover-wrap {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
}
.jukebox-meta {
  flex: 1;
  min-width: 0;
}
.jukebox-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
.jukebox-pbar-wrap {
  padding: 14px 24px 0;
}
.jukebox-times {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}
.jukebox-controls {
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.jukebox-vol-row {
  padding: 14px 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jukebox-vol-icon {
  font-size: 0.85rem;
}

/* ── Botones de voto ── */
.voto-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
}
.btn-voto {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.btn-voto--like-active {
  background: rgba(46, 204, 113, 0.2);
  border-color: var(--c-success);
}
.btn-voto--dislike-active {
  background: rgba(231, 76, 60, 0.2);
  border-color: var(--c-danger);
}
.btn-voto--dimmed {
  opacity: 0.4;
}
.btn-voto:hover:not(.btn-voto--dimmed) {
  filter: brightness(1.2);
}

.voto-msg {
  text-align: center;
  font-size: 0.78rem;
  color: var(--t-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.voto-msg--done {
  color: var(--t-subtle);
}

/* ── Buzón de sugerencias ── */
.buzon-header {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #2a2a2a 100%);
  padding: 40px 20px;
  text-align: center;
}
.buzon-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}
.buzon-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.2em;
}
.sug-form-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
}
.sug-form-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  color: #bbb;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.buzon-subtitle {
  font-size: 0.75rem;
  color: var(--t-dimmed);
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.sug-count-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.8rem;
  color: var(--t-dimmed);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.sug-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sug-item-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
}
.sug-item-autor {
  color: var(--t-subtle);
  font-size: 0.65rem;
  margin-top: 2px;
}
.sug-empty {
  text-align: center;
  color: var(--t-faint);
  padding: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.sug-ya-sugirio {
  text-align: center;
  padding: 16px;
  color: var(--t-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 20px;
}
