/* Adivina la canción: la versión de un jugador de Track Attack (sus colores y su letra).
   Las playlists son fundas de disco con su portada real; al acertar se ve la carátula de la canción. */
.banda-juego { --bg:#141233; --bg2:#1d1a47; --bg3:#2a2660; --cream:#fff6e6; --muted:#a29fcf; --red:#e2322b; --gold:#ffc93c; --green:#2bc275;
  background: var(--bg); color: var(--cream); font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.banda-juego h1 { font: 800 clamp(34px, 9vw, 56px)/.95 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.03em; color: var(--cream); }
.banda-juego .sub { font: 400 17px/1.35 'Bricolage Grotesque', system-ui, sans-serif; color: var(--muted); }
body.jugando .banda-juego { padding-top: 14px; }

#juego.can { color: var(--cream); font: 400 17px/1.3 'Bricolage Grotesque', system-ui, sans-serif; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.can button { font: 800 19px/1.15 'Bricolage Grotesque', system-ui, sans-serif; border: 0; border-radius: 10px; padding: 14px 16px; cursor: pointer; background: var(--cream); color: var(--bg); text-align: left; }
.can button:active { transform: translateY(2px); }
.can button.rojo { background: var(--red); color: var(--cream); text-align: center; font-size: 24px; padding: 16px; }
.can button.borde { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,246,230,.35); text-align: center; }

/* fundas de disco */
.can .fundas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.can .funda { padding: 0; background: none; color: var(--cream); text-align: left; border-radius: 0; }
.can .funda .disco { position: relative; display: block; aspect-ratio: 1; background: var(--bg3) center/cover no-repeat; box-shadow: 0 3px 0 rgba(0,0,0,.45); border-radius: 3px; overflow: hidden; }
.can .funda b { display: block; font: 800 16px/1.1 'Bricolage Grotesque', sans-serif; margin-top: 7px; }
.can .dia { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; background: var(--bg2); border-radius: 10px; padding: 10px 12px; color: var(--cream); width: 100%; }
.can .dia .num { font: 800 30px/1 'Bricolage Grotesque', sans-serif; color: var(--gold); }

/* ronda */
.can .marcador { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 10px; color: var(--muted); font-weight: 600; }
.can .marcador b { color: var(--cream); font-size: 26px; font-weight: 800; }
.can .reloj { height: 10px; background: var(--bg2); border-radius: 5px; overflow: hidden; }
.can .reloj i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.can .escucha { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 150px; }
.can .escucha .ondas { display: flex; gap: 6px; align-items: flex-end; height: 70px; }
.can .escucha .ondas span { width: 10px; background: var(--red); border-radius: 3px; height: 30%; }
.can .sonando .ondas span { animation: onda .9s ease-in-out infinite alternate; }
.can .sonando .ondas span:nth-child(2) { animation-delay: -.3s; } .can .sonando .ondas span:nth-child(3) { animation-delay: -.6s; }
.can .sonando .ondas span:nth-child(4) { animation-delay: -.15s; } .can .sonando .ondas span:nth-child(5) { animation-delay: -.45s; }
@keyframes onda { to { height: 100%; } }
.can .escucha p { margin: 12px 0 0; color: var(--muted); }
.can .carat { width: min(60vw, 230px); aspect-ratio: 1; background: var(--bg3) center/cover; border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.can .acierto { font: 800 34px/1 'Bricolage Grotesque', sans-serif; margin: 12px 0 2px; }
.can .acierto.si { color: var(--green); } .can .acierto.no { color: var(--red); }
.can .opciones { display: flex; flex-direction: column; gap: 9px; }
.can .opciones button small { display: block; font-weight: 400; font-size: 15px; opacity: .75; margin-top: 2px; }
.can .opciones button.bien { background: var(--green); color: var(--bg); }
.can .opciones button.mal { background: var(--red); color: var(--cream); }
.can .opciones button:disabled { opacity: 1; }
.can .opciones button:disabled:not(.bien):not(.mal) { opacity: .4; }

/* final */
.can .total { font: 800 76px/.9 'Bricolage Grotesque', sans-serif; letter-spacing: -.04em; margin: 8px 0 0; }
.can .total small { display: block; font-size: 19px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-top: 6px; }
.can .record { color: var(--gold); font-weight: 800; margin: 8px 0 0; }
.can .lista { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.can .lista li { aspect-ratio: 1; background: var(--bg3) center/cover; border-radius: 2px; position: relative; }
.can .lista li.no { opacity: .35; filter: grayscale(1); }
.can .lista li::after { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; font: 800 14px/22px 'Bricolage Grotesque', sans-serif; text-align: center; }
.can .lista li:not(.no)::after { content: '✓'; background: var(--green); color: var(--bg); }
.can .cargando { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.can .error { color: #ffb4b0; }

/* invitación a la tele (comun.js) */
.can .tdh-invitacion { border-top: 1px solid rgba(255,246,230,.18); padding-top: 10px; }
.can .tdh-gancho { margin: 0 0 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.can .tdh-invitacion > .tdh-boton { width: 100%; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,246,230,.35); text-align: center; }
.can .tdh-panel { position: absolute; inset: 0; z-index: 5; background: var(--bg); padding: 10px 0 0; display: flex; flex-direction: column; }
.can .tdh-titulo { font: 800 32px/1 'Bricolage Grotesque', sans-serif; margin: 6px 0 10px; }
.can .tdh-texto { margin: 0 0 12px; color: var(--muted); }
.can .tdh-corto { font: 800 clamp(20px, 7vw, 28px) 'Bricolage Grotesque', sans-serif; overflow-wrap: anywhere; color: var(--gold); margin: 0 0 14px; }
.can .tdh-panel .tdh-acciones { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.can .tdh-panel .tdh-boton { display: block; text-align: center; text-decoration: none; font: 800 19px 'Bricolage Grotesque', sans-serif; border-radius: 10px; padding: 14px; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,246,230,.35); border: 0; }
.can .tdh-panel .tdh-boton.negro { background: var(--red); box-shadow: none; }

@media (max-height: 720px) {
  .banda-juego h1 { font-size: 32px; } .banda-juego .sub { font-size: 15px; margin-bottom: 14px; }
  .can .fundas { gap: 10px 8px; } .can .funda b { font-size: 14px; }
  .can .opciones button { padding: 11px 14px; font-size: 17px; }
  .can .total { font-size: 60px; }
}

/* Arranque directo con una lista (artículos del blog y quizzes): la funda grande, y todo es el botón */
.can .directo { display: grid; grid-template-columns: minmax(100px, 34%) 1fr; gap: 14px; align-items: center; width: 100%; padding: 0; background: none; color: var(--cream); }
.can .directo .disco { display: block; aspect-ratio: 1; background: var(--bg3) center/cover no-repeat; border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
.can .directo .txt { display: flex; flex-direction: column; gap: 6px; }
.can .directo b { font: 800 clamp(26px, 6vw, 34px)/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; }
.can .directo small { font: 400 16px/1.3 'Bricolage Grotesque', sans-serif; color: var(--muted); }
.can .directo .play { align-self: flex-start; margin-top: 8px; background: var(--red); color: var(--cream); font: 800 21px/1 'Bricolage Grotesque', sans-serif; padding: 14px 18px; border-radius: 10px; white-space: nowrap; }
.can .enlace { background: none; color: var(--muted); font: 600 15px 'Bricolage Grotesque', sans-serif; text-decoration: underline; text-underline-offset: 3px; padding: 14px 0 0; text-align: left; }

/* Metido en un artículo: banda baja hasta que se empieza a jugar */
.banda-juego.mini { min-height: 0; padding: 22px 6px 24px; margin: 18px 0 8px; border-radius: 18px; }
.banda-juego.mini .wrap { flex: none; }
.banda-juego.mini .sub { margin: 0 0 14px; }
body.jugando .banda-juego.mini { padding: 14px 0; }
body.jugando .banda-juego.mini .wrap { flex: 1; }
/* «Jugar con gente» al final de la ronda: en el ordenador es un enlace a Track Attack; en el móvil, un botón */
.can .abajo .tdh-boton { display: block; text-align: center; text-decoration: none; font: 800 19px/1.15 'Bricolage Grotesque', sans-serif; border: 0; border-radius: 10px; padding: 14px 16px; cursor: pointer; background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px rgba(255,201,60,.55); }
