/* ===== Colores y medidas (de la familia del álbum) ===== */
:root {
  --tinta: #10153A;
  --tinta-2: #1B2466;
  --tinta-3: #283380;
  --papel: #FFFDF4;
  --lima: #D6E85A;
  --coral: #E85B4A;
  --aqua: #8FD6D3;
  --rosa: #FF8FC8;
  --texto-suave: #B9C0EA;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radio: 18px;
  --display: 'Anybody', 'Onest', system-ui, sans-serif;
  --texto: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
::selection { background: var(--lima); color: var(--tinta); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 10px; }
svg { width: 1.2em; height: 1.2em; flex: none; }

/* Fondo: semitono lima que se desplaza muy despacio */
.fondo {
  position: fixed; inset: -40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 85% 8%, rgba(232, 91, 74, 0.22), transparent 40%),
    radial-gradient(circle at 10% 95%, rgba(143, 214, 211, 0.16), transparent 45%),
    radial-gradient(rgba(214, 232, 90, 0.13) 1.4px, transparent 1.8px) 0 0 / 18px 18px,
    var(--tinta);
  animation: deriva 60s linear infinite;
}
@keyframes deriva { to { background-position: 0 0, 0 0, 180px 180px, 0 0; } }

.vista {
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 20px) 16px max(16px, env(safe-area-inset-bottom));
}
.titulo {
  font-family: var(--display); font-weight: 900; font-stretch: 100%;
  font-size: clamp(28px, 8.5vw, 40px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 12px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.lead { color: var(--texto-suave); margin: 0 0 20px; max-width: 36ch; }
.suave { color: var(--texto-suave); font-weight: 500; }

/* ===== Botones ===== */
.btn {
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700;
  transition: transform 140ms var(--ease), filter 140ms ease, opacity 140ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; box-shadow: none; }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-coral { background: var(--coral); color: var(--papel); }
.btn-fantasma { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.35); }
.btn-grande { width: 100%; padding: 18px; font-size: 18px; }
.btn-chico { padding: 10px 14px; font-size: 15px; }
.enlace { background: none; border: 0; color: var(--texto-suave); text-decoration: underline; text-underline-offset: 3px; padding: 14px; margin-top: 4px; width: 100%; }
.icono-btn {
  border: 0; background: rgba(255, 253, 244, 0.08); border-radius: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; transition: transform 140ms var(--ease);
}
.icono-btn svg { width: 22px; height: 22px; }
.icono-btn:active { transform: scale(0.94); }

/* ===== Instalar ===== */
.instalar, .quien { max-width: 460px; margin: 0 auto; padding-top: 12px; }
.instalar-icono { border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transform: rotate(-4deg); margin-bottom: 16px; }
.pasos { display: grid; gap: 10px; margin-bottom: 18px; counter-reset: paso; }
.paso {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--tinta-2); border-radius: var(--radio); padding: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.1);
}
.paso::before {
  counter-increment: paso; content: counter(paso);
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lima); color: var(--tinta); font-weight: 800; font-family: var(--display);
}
.paso b { color: var(--lima); font-weight: 700; }
.paso svg { vertical-align: -4px; color: var(--aqua); }
.paso-nota { font-size: 14px; color: var(--texto-suave); margin: 0 0 18px; }

/* ===== ¿Quién eres? (cromos) ===== */
.cromos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 84px; gap: 12px; margin: 8px 0 22px; }
.cromo {
  border: 4px solid var(--papel); border-radius: var(--radio); padding: 10px 12px; text-align: left;
  background: var(--c, var(--aqua)); min-width: 0;
  color: var(--tinta); display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 160ms var(--ease), box-shadow 160ms ease;
}
.cromo:active { transform: scale(0.97); }
.cromo-nombre { font-family: var(--display); font-weight: 900; font-stretch: 100%; font-size: clamp(17px, 5vw, 21px); line-height: 1.05; overflow-wrap: anywhere; }
.cromo-rol { font-size: 13px; font-weight: 600; opacity: 0.75; }
.cromo[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--lima), 0 10px 22px rgba(0, 0, 0, 0.45); }
.cromos-chicos { grid-auto-rows: 62px; }
.cromos-chicos .cromo { padding: 8px 10px; border-width: 3px; }
.cromos-chicos .cromo-nombre { font-size: 16px; }

.campo { display: block; margin-bottom: 14px; }
.campo-etiqueta { display: block; font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--texto-suave); }
.campo input, .campo textarea {
  width: 100%; border: 0; border-radius: 14px; padding: 14px; font: inherit; font-size: 17px;
  background: var(--papel); color: var(--tinta); caret-color: var(--coral);
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input::placeholder, .campo textarea::placeholder { color: #6B6F8F; }
.aviso-form { background: rgba(232, 91, 74, 0.18); color: #FFD3CC; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-size: 15px; }

/* ===== App ===== */
#v-app { display: flex; flex-direction: column; padding-bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.cabecera { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cabecera-nombre { flex: 1; min-width: 0; font-family: var(--display); font-weight: 900; font-stretch: 100%; font-size: clamp(22px, 7vw, 28px); line-height: 1.1; overflow-wrap: anywhere; }

.estado-envio {
  border: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 224, 138, 0.16); color: #FFE08A; border-radius: 99px; padding: 7px 11px;
}
.estado-envio svg { width: 18px; height: 18px; }
.estado-envio.error { background: rgba(232, 91, 74, 0.25); color: #FFC4BA; }

.paneles { flex: 1; }
.panel-pregunta { font-family: var(--display); font-weight: 900; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.15; text-align: center; margin: 6px 0 14px; text-wrap: balance; }
.panel-ayuda { text-align: center; color: var(--texto-suave); font-size: 14px; margin: -8px 0 12px; }
#p-razon .panel-pregunta { margin-bottom: 10px; }

/* Reloj y teclado */
.reloj {
  display: flex; justify-content: center; align-items: baseline; gap: 4px;
  font-family: var(--display); font-weight: 800; font-stretch: 100%; font-variant-numeric: tabular-nums;
  background: var(--papel); color: var(--tinta); border-radius: 22px; padding: 10px 0 6px;
  font-size: clamp(64px, 20vw, 88px); line-height: 1; height: 1.35em; align-items: center; padding: 0;
  box-shadow: inset 0 0 0 4px var(--papel), inset 0 0 0 7px var(--tinta-2), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.cifra { display: inline-block; width: 0.62em; text-align: center; }
.cifra.vacio { color: #D3D6E6; }
.reloj-sep { color: var(--coral); transform: translateY(-0.06em); }
.reloj.mal { animation: sacudir 260ms var(--ease); }
@keyframes sacudir { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.reloj-ayuda { text-align: center; color: var(--texto-suave); font-size: 14px; margin: 8px 0 12px; min-height: 1.4em; }
.reloj-ayuda.mal { color: #FFB3A8; font-weight: 600; }

.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.teclado button {
  border: 0; border-radius: 16px; height: var(--tecla, clamp(58px, 9.5dvh, 74px));
  background: var(--tinta-2); color: var(--papel);
  font-family: var(--display); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 0 rgba(255, 253, 244, 0.06);
  display: grid; place-items: center;
  transition: transform 100ms var(--ease), background-color 120ms ease;
}
.teclado button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.teclado button:active:not(:disabled) { transform: translateY(3px) scale(0.96); background: #3A46A8; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45); transition-duration: 40ms; }
.teclado button[data-accion="borrar"]:active:not(:disabled) { background: var(--coral); color: var(--papel); }
.teclado .tecla-ok:active:not(:disabled) { background: #B9CC3C; }
.teclado button svg { width: 30px; height: 30px; }
.teclado .tecla-ok { background: var(--lima); color: var(--tinta); }
.teclado .tecla-ok:disabled { background: var(--tinta-2); color: rgba(255, 253, 244, 0.25); }

/* Selector de partida */
.partidas { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.partidas-etiqueta { font-weight: 700; color: var(--texto-suave); font-size: 15px; }
.segmentos { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: rgba(255, 253, 244, 0.07); border-radius: 14px; padding: 4px; }
.segmento {
  border: 0; border-radius: 10px; height: 40px; background: transparent; color: var(--texto-suave);
  font-family: var(--display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease);
}
.segmento:active { transform: scale(0.94); }
.segmento[aria-checked="true"] { background: var(--lima); color: var(--tinta); }
.partida-elegida { font-weight: 700; color: var(--lima); font-size: 15px; }

/* Razones */
.razon-cabecera { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.minuto-elegido {
  border: 0; border-radius: 12px; background: var(--papel); color: var(--tinta);
  font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums;
  padding: 6px 12px 6px 6px; display: flex; align-items: center; gap: 2px;
}
.minuto-elegido svg { width: 22px; height: 22px; }
.interruptores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.interruptor {
  border: 0; border-radius: 14px; padding: 10px; font-size: 14px; font-weight: 700; line-height: 1.15; text-align: left;
  background: var(--tinta-2); color: var(--papel);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.28), 0 3px 0 rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; gap: 7px; min-height: 50px;
  transition: transform 120ms var(--ease), background-color 140ms ease, color 140ms ease;
}
.interruptor:active { filter: brightness(0.85); transform: translateY(3px); box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.28); }
.interruptor > svg { width: 18px; height: 18px; color: var(--lima); }
.casilla { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.5); display: grid; place-items: center; }
.casilla svg { width: 16px; height: 16px; opacity: 0; }
.interruptor[aria-pressed="true"] { background: var(--lima); color: var(--tinta); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.interruptor[aria-pressed="true"] > svg { color: var(--tinta); }
.interruptor[aria-pressed="true"] .casilla { background: var(--tinta); box-shadow: none; }
.interruptor[aria-pressed="true"] .casilla svg { opacity: 1; color: var(--lima); }

.razones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: var(--fila, 62px); gap: 8px; }
.razon {
  border: 3px solid var(--papel); border-radius: 16px; padding: 5px 10px; text-align: left; overflow: hidden;
  background: var(--c); color: var(--tinta);
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 120ms var(--ease);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.razon { -webkit-tap-highlight-color: transparent; }
.razon:active { transform: translateY(3px) scale(0.96); filter: brightness(0.82); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3); transition-duration: 40ms; }
.razon:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.razon-nombre { font-weight: 800; font-size: 15px; line-height: 1.1; }
.razon-ayuda { font-size: 12.5px; font-weight: 500; line-height: 1.15; opacity: 0.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.razon[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--lima), 0 4px 12px rgba(0, 0, 0, 0.3); border-color: var(--tinta); }
.razones-chicas { }
.razones-chicas .razon { padding: 4px 9px; }
.razones-chicas .razon-ayuda { display: none; }
.razones-chicas .razon-nombre { font-size: 14px; }
.regla { font-size: 13px; color: var(--texto-suave); margin: 10px 0 0; text-align: center; }

/* Lista */
.lista-titulo { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 24px; margin: 4px 0 12px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.muerte {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--tinta-2); border-radius: 16px; padding: 12px; width: 100%; border: 0; text-align: left;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.08);
  transition: transform 120ms var(--ease);
}
.muerte:active { transform: scale(0.98); }
.muerte-min { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; grid-row: span 2; }
.muerte-razon { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.muerte-razon::before { content: ''; width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.muerte-detalle { font-size: 13px; color: var(--texto-suave); grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muerte-detalle svg { width: 14px; height: 14px; vertical-align: -2px; }
.estado { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 9px; grid-row: span 2; white-space: nowrap; }
.estado.enviada { background: rgba(183, 228, 160, 0.18); color: #B7E4A0; }
.estado.pendiente { background: rgba(255, 224, 138, 0.16); color: #FFE08A; }
.estado.error { background: rgba(232, 91, 74, 0.22); color: #FFB3A8; }
.muerte-error { grid-column: 1 / -1; font-size: 13px; color: #FFB3A8; }
.dias { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 4px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex: none; border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 14px; background: rgba(255, 253, 244, 0.08); color: var(--texto-suave); }
.dia[aria-selected="true"] { background: var(--lima); color: var(--tinta); }
.dia-mes { box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.25); background: none; }
.buscar-mes { background: var(--tinta-2); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.buscar-mes-fila { display: flex; gap: 8px; }
.buscar-mes input { flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; background: var(--papel); color: var(--tinta); }
.lista-aviso { color: var(--texto-suave); font-size: 14px; margin: 0 0 10px; }
.lista-aviso.error { color: #FFB3A8; font-weight: 600; }
.separador-dia { font-family: var(--display); font-weight: 900; font-size: 18px; margin: 14px 2px 0; }
.muerte.solo-ver { cursor: default; }
.separador-partida { font-size: 13px; font-weight: 800; color: var(--lima); margin: 8px 2px 0; letter-spacing: 0.02em; }
.vacio { color: var(--texto-suave); text-align: center; padding: 30px 0; }

/* Pestañas */
.pestanas {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 16px max(8px, env(safe-area-inset-bottom));
  background: rgba(16, 21, 58, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 253, 244, 0.1);
}
.pestana {
  border: 0; background: none; padding: 12px 4px 10px; font-weight: 700; font-size: 14px;
  color: var(--texto-suave); position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; white-space: nowrap;
}
.pestana > svg { width: 24px; height: 24px; }
.pestana[aria-current="page"] { color: var(--lima); }
.pestana[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--lima); }
.pestana .contador { position: absolute; top: 6px; left: calc(50% + 10px); }
.contador { background: var(--coral); color: var(--papel); border-radius: 99px; font-size: 12px; padding: 1px 7px; }
.contador:empty { display: none; }

/* Diálogos */
.dialogo {
  border: 0; border-radius: 22px; padding: 20px; width: min(440px, calc(100vw - 32px));
  background: var(--tinta-2); color: var(--papel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 253, 244, 0.12);
}
.dialogo-alto { max-height: calc(100dvh - 32px); overflow: auto; }
.dialogo::backdrop { background: rgba(6, 8, 28, 0.7); backdrop-filter: blur(3px); }
.dialogo[open] { animation: aparecer 200ms var(--ease); }
@keyframes aparecer { from { opacity: 0; transform: scale(0.96); } }
.dialogo h2 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: 24px; line-height: 1.1; margin: 0 0 10px; }
.dialogo p { margin: 0 0 14px; }
.dialogo-botones { display: grid; gap: 8px; margin-top: 16px; }
.dialogo .interruptores { margin-bottom: 14px; }
#ed-razones { margin-bottom: 16px; }

/* Aviso abajo (toast) */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 8px; overflow: hidden;
  background: var(--papel); color: var(--tinta); border-radius: 16px; padding: 12px 8px 14px 16px;
  font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 200ms ease, transform 200ms var(--ease);
}
@starting-style { .toast { opacity: 0; transform: translate(-50%, 12px); } }
.toast-texto { flex: 1; min-width: 0; }
.toast-btn { border: 0; background: var(--tinta); color: var(--lima); border-radius: 10px; padding: 9px 14px; font-weight: 800; }
.toast-cerrar { border: 0; background: none; color: var(--tinta); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toast-cerrar svg { width: 20px; height: 20px; }
.toast-barra { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--coral); transform-origin: left; }
@keyframes vaciar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Ordenador: más aire */
@media (min-width: 700px) {
  #v-app { padding-top: 28px; }
  .razon-ayuda { font-size: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .razon:hover, .cromo:hover { transform: translateY(-2px) rotate(-0.6deg); }
  .teclado button:hover:not(:disabled):not(:active) { background: var(--tinta-3); }
}
@media (prefers-reduced-motion: reduce) {
  .fondo { animation: none; }
  *:not(.toast-barra), *::before { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Móviles bajos: que las 11 razones quepan sin hacer scroll */
@media (max-height: 900px) { .regla { display: none; } }
@media (max-height: 780px) {
  .razon-ayuda { font-size: 12px; -webkit-line-clamp: 1; }
  .razon-nombre { font-size: 14px; }
  .interruptor { min-height: 44px; padding: 7px 9px; font-size: 13px; }
  .partidas { margin-top: 12px; }
  .panel-pregunta { margin: 2px 0 8px; }
  .regla { display: none; }
}

/* ===== Mis muertes: bloques de partida, deslizar y arrastrar ===== */
.grupo { list-style: none; border-radius: 16px; transition: background-color 140ms ease, outline-color 140ms ease; }
.grupo .separador-partida { margin: 12px 2px 8px; }
.grupo:first-child .separador-partida { margin-top: 4px; }
.sublista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fila { position: relative; list-style: none; border-radius: 16px; overflow: hidden; touch-action: pan-y; }
.fila .muerte {
  position: relative; z-index: 1; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.acciones {
  position: absolute; top: 0; right: 0; bottom: 0; width: 222px; display: flex;
  visibility: hidden; transition: visibility 0s linear 260ms;
}
.fila.deslizando .acciones, .fila.abierta .acciones { visibility: visible; transition-delay: 0s; }
.acc {
  flex: 1; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-weight: 800; font-size: 13px;
}
.acc svg { width: 24px; height: 24px; }
.acc:active { filter: brightness(0.9); }
.acc-editar { background: var(--lima); color: var(--tinta); }
.acc-mover { background: var(--aqua); color: var(--tinta); }
.acc-borrar { background: var(--coral); color: var(--papel); }

.fila.origen .muerte { opacity: 0.25; }
.muerte.fantasma {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; transition: none;
  transform: rotate(-2deg) scale(1.03); background: var(--tinta-3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 2px var(--lima);
}
body.arrastrando { -webkit-user-select: none; user-select: none; }
.grupo.objetivo { outline: 3px dashed var(--lima); outline-offset: 4px; background: rgba(214, 232, 90, 0.08); }

/* Bandeja que aparece al arrastrar: 6 casillas, una por partida */
.bandeja {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(520px, 100%); z-index: 40; padding: 10px 16px 12px;
  background: rgba(16, 21, 58, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 2px solid var(--lima);
}
.bandeja-titulo { margin: 0 0 8px; text-align: center; font-weight: 700; font-size: 14px; color: var(--lima); }
.bandeja-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.chip-partida {
  border: 0; border-radius: 14px; height: 58px; background: var(--tinta-2); color: var(--papel);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit;
  transition: transform 120ms var(--ease), background-color 120ms ease;
}
.chip-partida b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.chip-partida small { font-size: 11px; font-weight: 700; color: var(--texto-suave); min-height: 13px; }
.chip-partida.actual, .chip-partida:disabled { opacity: 0.4; }
.chip-partida.objetivo { background: var(--lima); color: var(--tinta); box-shadow: none; transform: scale(1.08); }
.chip-partida.objetivo small { color: var(--tinta); }
.chip-partida:not(:disabled):active { transform: scale(0.95); }
.opciones-partida { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opciones-partida .chip-partida { height: 70px; }

/* Editar: partida y borrar */
.segmentos-dialogo { margin-bottom: 14px; }
.btn-peligro {
  background: transparent; color: #FFB3A8; box-shadow: inset 0 0 0 2px rgba(232, 91, 74, 0.6);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-peligro svg { width: 20px; height: 20px; }

/* Campeón de la partida y «Terminar partida» (debajo del selector de partida) */
.partida-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; min-height: 36px; }
.campeon-actual {
  border: 0; background: rgba(255, 253, 244, 0.07); color: var(--papel); border-radius: 99px;
  padding: 7px 12px 7px 14px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
  max-width: 60%; -webkit-tap-highlight-color: transparent; transition: transform 100ms var(--ease), background-color 120ms ease;
}
.campeon-actual span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campeon-actual svg { flex: none; width: 15px; height: 15px; opacity: 0.6; }
.campeon-actual.sin-campeon { color: var(--lima); box-shadow: inset 0 0 0 1.5px rgba(214, 232, 90, 0.5); background: none; }
.campeon-actual:active { transform: translateY(2px); background: rgba(255, 253, 244, 0.14); }
.enlace-discreto {
  border: 0; background: none; color: var(--texto-suave); font-size: 14px; font-weight: 600; padding: 8px 2px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 253, 244, 0.25); margin-left: auto;
}
.enlace-discreto:active { color: var(--papel); }
.partida-terminada { color: var(--texto-suave); font-size: 14px; font-weight: 600; }
.segmento.terminada { background: transparent; color: var(--lima); box-shadow: inset 0 0 0 2px var(--lima); }

/* Diálogo de campeón + resumen */
.resumen { border-bottom: 1px dashed rgba(255, 253, 244, 0.2); padding-bottom: 14px; margin-bottom: 16px; }
.resumen-titulo { font-weight: 700; color: var(--texto-suave); font-size: 15px; margin: 0 0 2px !important; }
.resumen-cifra { font-family: var(--display); font-weight: 900; font-size: 22px; margin: 0 0 8px !important; }
.resumen-cifra b { font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.resumen-objetivo { margin: 0 !important; font-weight: 600; }
.resumen-veredicto { margin: 2px 0 0 !important; font-weight: 800; }
.resumen-veredicto.bien { color: var(--lima); }
.resumen-veredicto.mal { color: #FFB3A8; }
.resumen-nota { font-size: 12.5px; color: var(--texto-suave); margin: 10px 0 0 !important; line-height: 1.35; }
.campeones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-campeon {
  border: 0; border-radius: 14px; min-height: 52px; padding: 8px 10px; font-weight: 800; font-size: 16px;
  background: var(--papel); color: var(--tinta); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent; transition: transform 100ms var(--ease), filter 120ms ease;
}
.chip-campeon:active { transform: translateY(3px); box-shadow: none; filter: brightness(0.85); }
.chip-campeon[aria-pressed="true"] { background: var(--lima); }
.chip-otro { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 2px rgba(255, 253, 244, 0.35); }
.campeon-otro { display: flex; gap: 8px; margin-top: 10px; }
.campeon-otro .entrada { flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; background: var(--papel); color: var(--tinta); }
.campeon-otro .btn { width: auto; padding-inline: 16px; }

/* Campeón en la cabecera de cada partida (Mis muertes) y en el editor */
.grupo .separador-partida { display: flex; align-items: center; gap: 8px; }
.campeon-grupo {
  border: 0; background: rgba(255, 253, 244, 0.08); color: var(--papel); border-radius: 99px;
  padding: 4px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; display: inline-flex; align-items: center; gap: 5px;
  -webkit-tap-highlight-color: transparent; transition: transform 100ms var(--ease), background-color 120ms ease;
}
.campeon-grupo svg { width: 13px; height: 13px; opacity: 0.6; }
.campeon-grupo.sin-campeon { background: none; color: var(--lima); box-shadow: inset 0 0 0 1.5px rgba(214, 232, 90, 0.5); }
.campeon-grupo:active { transform: translateY(2px); background: rgba(255, 253, 244, 0.16); }
.campeon-grupo.solo-ver { background: none; padding-inline: 0; color: var(--texto-suave); }
.campeon-edicion { margin-bottom: 14px; max-width: 100%; }
.campo-nota { font-weight: 500; color: var(--texto-suave); }
.interruptor-ancho { grid-column: 1 / -1; }
