/* ===== Super QQuiz · Sistema de diseño (claro · violeta) ===== */
:root {
  --bg1: #f4f2fe; --bg2: #eaf1ff;
  --surface: #ffffff;
  --ink: #272343; --ink-soft: #4b4869; --muted: #8f8caa;
  --primary: #6c5ce7; --primary-2: #8b7cf6; --primary-deep: #5a47d6;
  --accent: #22c3e6; --accent-2: #ff9f43;
  --ok: #22b07d; --bad: #ff5c7c; --warn: #ffb020;
  --a1: #ff5c7c; --a2: #4c6ef5; --a3: #ffb020; --a4: #22b07d;
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 12px 30px rgba(108,92,231,.12);
  --shadow-lg: 0 22px 55px rgba(108,92,231,.20);
  --ring: 0 0 0 4px rgba(108,92,231,.18);
  --font: 'Lato', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --display: 'Raleway', 'Lato', system-ui, sans-serif;
  font-family: var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; color: var(--ink);
  background:
    radial-gradient(900px 600px at 8% -8%, rgba(139,124,246,.22), transparent 60%),
    radial-gradient(800px 600px at 108% 6%, rgba(34,195,230,.18), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(255,159,67,.12), transparent 60%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 100%);
  background-attachment: fixed;
}
#bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px; position: relative; }
.center { min-height: 100vh; display: grid; place-items: center; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.4px; }
h1 { margin: 0 0 6px; font-size: 1.9rem; font-weight: 800; }
h2 { margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 18px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.3px; }
.brand .logo { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.tag { color: var(--muted); font-size: .95rem; font-weight: 600; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid rgba(108,92,231,.06); }
.card.glass { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
section.card:not(.hidden) { animation: rise .45s cubic-bezier(.2,.8,.2,1); }

label { display: block; font-weight: 700; font-size: .85rem; margin: 14px 0 6px; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-family: var(--font);
  border: 2px solid #ece9f6; border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s, box-shadow .15s, transform .1s; background: #fbfaff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: var(--ring); background: #fff; }
.pin-input { text-align: center; font-size: 2.2rem; letter-spacing: .45rem; font-weight: 800; font-family: var(--display); }

button, .btn {
  cursor: pointer; border: none; border-radius: var(--radius-sm); font-weight: 800; font-size: 1rem; font-family: var(--font);
  padding: 14px 22px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .18s, filter .18s; box-shadow: 0 8px 20px rgba(108,92,231,.30); position: relative;
}
button:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(108,92,231,.38); filter: brightness(1.04); }
button:active { transform: translateY(0) scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: rgba(108,92,231,.08); color: var(--primary); box-shadow: none; }
.btn-light { background: #f1eefc; color: var(--primary-deep); box-shadow: none; }
.btn-light:hover { background: #e8e3fb; box-shadow: 0 6px 14px rgba(108,92,231,.16); }
.btn-ok { background: linear-gradient(135deg, #16a34a, var(--ok)); box-shadow: 0 8px 20px rgba(34,176,125,.32); }
.btn-ok:hover { box-shadow: 0 14px 28px rgba(34,176,125,.40); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-weight: 700; margin-top: 10px; min-height: 20px; }
.hidden { display: none !important; }
.spacer { height: 16px; }

/* Chips de jugadores en el lobby */
.players { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { background: #f1eefc; color: var(--primary-deep); padding: 9px 16px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2,1.2,.3,1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(4deg); } }

/* PIN gigante en proyector */
.big-pin { font-family: var(--display); font-size: 4.8rem; font-weight: 800; letter-spacing: .4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join-url { color: var(--primary-deep); font-size: 1.1rem; font-weight: 700; }

/* Tablero de respuestas (alumno) */
.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.ans {
  border: none; color: #fff; font-size: 1.15rem; font-weight: 800; min-height: 100px;
  border-radius: var(--radius-sm); display: flex; align-items: center; gap: 12px; padding: 18px; text-align: left;
  box-shadow: 0 10px 22px rgba(39,35,67,.14); transition: transform .12s, box-shadow .18s, filter .18s;
}
.ans:nth-child(1){ background: linear-gradient(135deg, #ff7a93, var(--a1)); }
.ans:nth-child(2){ background: linear-gradient(135deg, #6f8bff, var(--a2)); }
.ans:nth-child(3){ background: linear-gradient(135deg, #ffc555, var(--a3)); }
.ans:nth-child(4){ background: linear-gradient(135deg, #4fd1a0, var(--a4)); }
.ans:hover { transform: translateY(-3px) scale(1.01); filter: brightness(1.05); box-shadow: 0 16px 30px rgba(39,35,67,.20); }
.ans:active { transform: scale(.98); }
.ans .shape { font-size: 1.4rem; }
.ans.dim { opacity: .35; }
.ans.sel { outline: 5px solid var(--primary); outline-offset: 2px; transform: scale(1.02); }

/* Tiempo / pregunta */
.timer { font-family: var(--display); font-size: 2.1rem; font-weight: 800; color: var(--primary); }
.qtext { font-family: var(--display); color: var(--ink); font-size: 1.8rem; font-weight: 800; text-align: center; margin: 10px 0 4px; }
.qmeta { color: var(--muted); text-align: center; }

/* Resultado */
.result-banner { font-family: var(--display); font-size: 2.1rem; font-weight: 800; text-align: center; padding: 26px; border-radius: var(--radius); color: #fff; animation: pop .4s cubic-bezier(.2,1.1,.3,1); }
.result-banner.ok { background: linear-gradient(135deg,#16a34a,#34d399); box-shadow: 0 16px 36px rgba(34,176,125,.32); }
.result-banner.bad { background: linear-gradient(135deg,#ef4444,#fb7185); box-shadow: 0 16px 36px rgba(255,92,124,.30); }

/* Ranking */
.lb { list-style: none; padding: 0; margin: 16px 0 0; }
.lb li { display: flex; justify-content: space-between; align-items: center; background: #fff; margin-bottom: 9px; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow); animation: rise .4s both; }
.lb li:nth-child(2){ animation-delay: .05s; } .lb li:nth-child(3){ animation-delay: .1s; } .lb li:nth-child(4){ animation-delay: .15s; }
.lb .pos { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff; display: grid; place-items: center; margin-right: 10px; font-weight: 800; }
.lb li:nth-child(1) .pos { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.lb li:nth-child(2) .pos { background: linear-gradient(135deg,#cbd5e1,#94a3b8); }
.lb li:nth-child(3) .pos { background: linear-gradient(135deg,#f59e0b,#b45309); }

/* Tablas / panel docente */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #f0eef9; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .4px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #fff; border: 1px solid #f0eef9; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: 0 4px 14px rgba(108,92,231,.06); transition: transform .12s, box-shadow .18s; }
.list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.badge { background: #f1eefc; color: var(--primary-deep); padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow); width: fit-content; }
.tabs button { background: transparent; color: var(--ink-soft); box-shadow: none; border-radius: 999px; }
.tabs button:hover { background: #f4f2fe; transform: none; }
.tabs button.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 18px rgba(108,92,231,.30); }

.bar { height: 28px; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: 8px; min-width: 4px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.dist-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; color: var(--ink); }
.dist-row .lbl { width: 140px; font-weight: 700; }

/* Control deslizante */
.slider-val { font-family: var(--display); text-align: center; font-size: 2.8rem; font-weight: 800; color: var(--primary); margin: 6px 0 4px; }
input[type="range"] { width: 100%; height: 14px; -webkit-appearance: none; appearance: none; border: none; padding: 0;
  border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 5px solid var(--primary); box-shadow: var(--shadow); cursor: pointer; transition: transform .1s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: pointer; }

/* Respuesta con pin */
.pin-wrap { position: relative; display: inline-block; width: 100%; line-height: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: crosshair; box-shadow: var(--shadow); }
.pin-wrap img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); background: #ece9f6; min-height: 80px; }
.pin-marker { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255,92,124,.9); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: none; animation: pop .3s; }
.pin-marker.pin-target { background: rgba(34,176,125,.55); border-color: var(--ok); width: 42px; height: 42px; }
.pin-edit { max-width: 520px; }

/* Puzzle */
.puzzle { list-style: none; counter-reset: pz; padding: 0; margin: 8px 0 0; }
.puzzle-item { counter-increment: pz; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 8px; font-weight: 700; box-shadow: var(--shadow); transition: transform .12s; }
.puzzle-item::before { content: counter(pz); display: inline-grid; place-items: center; width: 28px; height: 28px;
  margin-right: 10px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff; font-size: .85rem; font-weight: 800; flex: 0 0 auto; }
.puzzle-item > span:first-child { flex: 1; }
.puzzle-btns { display: flex; gap: 6px; }
.puzzle-btns button { padding: 6px 10px; }

/* Escala (Likert) */
.scale-row { background: #fff; border-radius: var(--radius-sm); padding: 14px; margin-top: 10px; box-shadow: var(--shadow); }
.scale-stmt { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.scale-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.scale-dot { flex: 1; min-width: 44px; background: #f4f2fe; color: var(--ink-soft); box-shadow: none; padding: 12px 0; }
.scale-dot:hover { background: #e9e4fb; transform: translateY(-1px); }
.scale-dot.sel { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 16px rgba(108,92,231,.28); }

/* NPS */
.nps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 6px; }
.nps-dot { background: #f4f2fe; color: var(--ink-soft); box-shadow: none; padding: 14px 0; font-weight: 800; }
.nps-dot:hover { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.nps-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; margin-top: 12px; }
.nps-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; color: var(--ink); }
.nps-bar-fill { width: 100%; border-radius: 6px 6px 0 0; min-height: 2px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.nps-bar span { margin-top: 4px; font-size: .8rem; font-weight: 700; }
.nps-score { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }

/* Nube de palabras */
.wordcloud { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; justify-content: center; padding: 20px; line-height: 1.25; }
.wordcloud span { font-family: var(--display); font-weight: 800; color: var(--primary); animation: pop .3s; }
.wordcloud span:nth-child(3n) { color: var(--accent); }
.wordcloud span:nth-child(3n+1) { color: var(--primary-2); }
.wordcloud span:nth-child(3n+2) { color: var(--accent-2); }

/* Respuestas abiertas / lluvia de ideas */
.responses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.resp-card { background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2,1.1,.3,1); }
#live-agg { margin-top: 16px; }

/* Avatares */
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 6px; }
.avatar { background: #f4f2fe; box-shadow: none; padding: 6px 0; font-size: 1.4rem; border-radius: 12px; transition: transform .12s; }
.avatar:hover { transform: translateY(-2px) scale(1.05); background: #ece7fb; }
.avatar.sel { background: linear-gradient(135deg, var(--primary), var(--primary-2)); outline: 3px solid var(--accent); transform: scale(1.1); }
.chip-av, .lb-av { font-size: 1.15rem; }

/* Botón de sonido flotante */
.sfx-toggle { position: fixed; top: 14px; right: 14px; z-index: 50; background: rgba(255,255,255,.7); color: var(--primary-deep);
  box-shadow: var(--shadow); padding: 9px 13px; font-size: 1.1rem; border-radius: 999px; backdrop-filter: blur(6px); }
.sfx-toggle:hover { background: #fff; }

/* Racha */
.streak-badge { font-family: var(--display); text-align: center; font-size: 1.3rem; font-weight: 800; color: #b45309;
  background: linear-gradient(135deg, #fde68a, #fca5a5); border-radius: 999px; padding: 9px 18px;
  display: inline-block; margin: 12px auto 0; animation: pop .35s cubic-bezier(.2,1.2,.3,1); box-shadow: 0 10px 22px rgba(252,165,165,.4); }
#result-streak { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.lb-streak { color: #b45309; font-size: .85rem; font-weight: 800; }

/* Tiles de estadística (resultado/perfil) */
.stat-tile { border-radius: var(--radius-sm); padding: 16px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.stat-tile .v { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.stat-tile .k { font-size: .8rem; opacity: .9; }
.stat-flame { background: linear-gradient(160deg,#ff9f43,#ff5c7c); }
.stat-violet { background: linear-gradient(160deg,#8b7cf6,#6c5ce7); }
.stat-cyan { background: linear-gradient(160deg,#22c3e6,#4c6ef5); }
.stat-green { background: linear-gradient(160deg,#34d399,#16a34a); }

/* Podio animado (3D) */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin: 18px 0 24px; min-height: 250px; perspective: 800px; }
.podium-col { display: flex; flex-direction: column; align-items: center; width: 116px; }
.podium-av { font-size: 2.8rem; animation: bounceIn .6s cubic-bezier(.2,1.3,.3,1); }
.podium-name { font-weight: 800; color: var(--ink); margin: 2px 0; text-align: center; font-size: .95rem; }
.podium-medal { font-size: 1.7rem; }
.podium-bar { width: 100%; height: 0; border-radius: 14px 14px 0 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 4px; padding-top: 12px; color: #fff;
  transition: height .9s cubic-bezier(.2,.9,.25,1); overflow: hidden;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.12), 0 14px 28px rgba(39,35,67,.18); transform: rotateX(6deg); transform-origin: bottom; }
.podium-rank { font-family: var(--display); font-size: 1.9rem; font-weight: 800; }
.podium-score { font-size: .85rem; font-weight: 700; }
.rank-1 .podium-bar { background: linear-gradient(180deg, #fbbf24, #d97706); }
.rank-2 .podium-bar { background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.rank-3 .podium-bar { background: linear-gradient(180deg, #f59e0b, #b45309); }
.rank-1 .podium-bar.grow { height: 180px; }
.rank-2 .podium-bar.grow { height: 125px; }
.rank-3 .podium-bar.grow { height: 90px; }
@keyframes bounceIn { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }

/* Dashboard docente: resumen */
.dash-stats { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.dash-stat { flex: 1; min-width: 110px; background: linear-gradient(160deg, #faf9ff, #f1eefc); border: 1px solid #ece9f6; border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.dash-stat .n { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.dash-stat .l { color: var(--muted); font-size: .82rem; font-weight: 700; }
.badge-sch-open { background: #dcfce7; color: #15803d; }
.badge-sch-pending { background: #fef3c7; color: #b45309; }
.badge-sch-closed { background: #fee2e2; color: #b91c1c; }

/* Lobby: PIN + QR + opciones */
.lobby-top { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box img { width: 152px; height: 152px; border-radius: 16px; box-shadow: var(--shadow); background: #fff; padding: 6px; }
.opts { margin-top: 18px; text-align: left; background: #faf9ff; border: 1px solid #ece9f6; border-radius: var(--radius-sm); padding: 4px 18px; }
.opts summary { cursor: pointer; font-weight: 800; color: var(--primary-deep); padding: 12px 0; font-family: var(--display); list-style: none; }
.opts summary::-webkit-details-marker { display: none; }
.opts summary::before { content: '▸ '; }
.opts[open] summary::before { content: '▾ '; }
.opts[open] { padding-bottom: 16px; }

/* ===== Tarjetas de cuestionario (dashboard mejorado) ===== */
.quiz-card {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 16px 18px; background: #fff; border: 1px solid #f0eef9; border-left: 5px solid var(--primary);
  border-radius: var(--radius-sm); margin-bottom: 12px; box-shadow: 0 4px 14px rgba(108,92,231,.07);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-left-color: var(--accent); }
.quiz-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.quiz-ico {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(108,92,231,.14), rgba(34,195,230,.14)); box-shadow: inset 0 0 0 1px rgba(108,92,231,.08);
}
.quiz-meta { min-width: 0; }
.quiz-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quiz-title-row .t { font-family: var(--display); font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.quiz-desc { font-size: .85rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.quiz-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 12px; background: #f4f2fe; color: var(--primary-deep);
  display: grid; place-items: center; font-size: 1.05rem; box-shadow: none;
}
.icon-btn:hover { background: #e8e3fb; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(108,92,231,.18); }
.icon-btn.danger { background: #fdeef0; color: var(--bad); }
.icon-btn.danger:hover { background: #fbdfe4; box-shadow: 0 6px 14px rgba(255,92,124,.22); }
.btn-play { padding: 11px 20px; }
.btn-play::before { content: '▶'; margin-right: 7px; font-size: .8em; }
@media (max-width: 620px) {
  .quiz-card { flex-direction: column; align-items: stretch; }
  .quiz-actions { justify-content: flex-end; }
  .btn-play { flex: 1; }
}

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state .ico { font-size: 3rem; opacity: .5; }
.empty-state p { color: var(--muted); margin: 10px 0 16px; }

/* ===== Panel "Mi cuenta" ===== */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.acc-block { background: #faf9ff; border: 1px solid #ece9f6; border-radius: var(--radius-sm); padding: 20px 22px; }
.acc-block h3 { margin: 0 0 4px; font-size: 1.1rem; }
.acc-block .hint { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.acc-msg { font-weight: 700; min-height: 18px; font-size: .88rem; margin-top: 8px; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; background: #eafaf3; color: #15803d; font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.pill-tag.off { background: #f3f0f8; color: var(--muted); }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row input { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #bg3d { display: none; }
}
