/* Gestión de Banda — estilos. Diseño de la web estrelladejaen.cloud: morado, rojo y oro; Oswald (títulos, en
   mayúsculas) y Open Sans (texto). Los colores de marca llegan desde Configuración › Identidad como variables. */
@font-face { font-family: "Open Sans"; font-weight: 300 800; font-style: normal; font-display: swap; src: url(fonts/open-sans.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 200 700; font-style: normal; font-display: swap; src: url(fonts/oswald.woff2) format("woff2"); }
@font-face { font-family: Cinzel; font-weight: 400 900; font-style: normal; font-display: swap; src: url(fonts/cinzel.woff2) format("woff2"); }
@font-face { font-family: "Alex Brush"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/alex-brush.woff2) format("woff2"); }
/* v191: lo marcado como oculto (atributo hidden) no se ve nunca. Sin esto, el «display: inline-flex» de los botones
   ganaba y el modo solo lectura de los roles «Lector» no ocultaba los botones de crear, asignar o editar. */
[hidden] { display: none !important; }
:root {
  --pri: #C32720; --on-pri: #FFFFFF;
  --acc: #E6C97A; --on-acc: #1F052C;
  --bg: #2B0B3B; --on-bg: #FFFFFF;
  --hdr: #1F052C; --on-hdr: #FFFFFF;
  --ink: #081A24; --muted: #6B5C76; --line: #E4DCE9; --soft: #F6F5F7; --card: #FFFFFF;
  --ok-bg: #E7F3EE; --ok: #1D5A41; --bad-bg: #FBE9E8; --bad: #8F1B16; --wait-bg: #FBF3DD; --wait: #6B4A0E; --info-bg: #EFE7F4; --info: #3B1452;
  --oro: #E6C97A; --rojo-oscuro: #8F1B16; --malva: #9A8AA3; --suave: #C2B3CC;
  --radius: 14px;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: Oswald, "Arial Narrow", "Segoe UI", sans-serif;
  /* Estrella de seis puntas de la web (separadores). */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c32720' d='M12 0l3.46 6h6.93l-3.46 6 3.46 6h-6.93L12 24l-3.46-6H1.61l3.46-6-3.46-6h6.93z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
/* Fondo como el de la web: morado con un halo malva arriba y un brillo rojo abajo. */
body { background-color: var(--bg); color: var(--on-bg); font: 15px/1.55 var(--font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse 70% 55% at 50% 110%, color-mix(in srgb, var(--pri) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 50% at 60% 0%, rgba(120, 60, 150, .28), transparent 70%),
    linear-gradient(180deg, var(--hdr) 0%, var(--bg) 100%);
  background-attachment: fixed; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 400; text-transform: uppercase; }
h1 { font-size: 32px; letter-spacing: 1.5px; }
h2 { font-size: 20px; letter-spacing: 1px; }
h3 { font-size: 16px; letter-spacing: .8px; }
.card h2, .card h3, dialog h2, dialog h3 { color: var(--ink); }
.boot { min-height: 100vh; display: grid; place-items: center; color: #fff; }
.muted { opacity: .8; }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Botones y formularios ---------- */
/* Botones como los de la web: redondeados, Oswald en mayúsculas con espaciado. */
.btn, .btn2, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: var(--display); font-weight: 400; font-size: 14px;
  letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn { background: var(--pri); color: var(--on-pri); border: 1px solid var(--pri); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--pri) 70%, transparent); }
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--pri) 82%, #000); border-color: color-mix(in srgb, var(--pri) 82%, #000); }
.btn2 { background: #fff; color: var(--ink); border: 1px solid #D6CADF; }
.btn2:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .9; }
.btn-ghost:hover { background: var(--pri); border-color: var(--pri); color: #fff; opacity: 1; }
.btn-danger { background: #fff; color: var(--rojo-oscuro); border: 1px solid #E9B9B6; }
.btn-danger:hover { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 12.5px; letter-spacing: 1px; }
.btn:disabled, .btn2:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .btn2:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
.inp {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid #CDBFD6; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.inp:focus { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 18%, transparent); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; font-weight: 600; color: var(--ink); }
.check input { width: 20px; height: 20px; }
.hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarjetas, etiquetas, tablas ---------- */
.card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .75); }
.card + .card { margin-top: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.wait { background: var(--wait-bg); color: var(--wait); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.grey { background: #EEF1F5; color: var(--muted); }
/* Hora «Sin confirmar» de un evento: píldora ámbar con borde discontinuo (como lo pendiente en el calendario) y reloj. */
.tbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border: 1px dashed currentColor; border-radius: 999px;
  background: var(--wait-bg); color: var(--wait); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.tbd svg { flex-shrink: 0; }

/* ---------- Tablas ---------- */
/* Contenedor: panel claro con esquinas amplias y sombra difusa. Cada fila es una «tarjeta» blanca separada,
   que se eleva al pasar por encima; las filas entran con una animación corta. En el móvil, cada fila se
   convierte en una tarjeta con sus datos etiquetados (sin desplazarse de lado). */
.tw { overflow-x: auto; color: var(--ink); border-radius: 20px; padding: 4px 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,242,250,.98)); border: 1px solid rgba(228,215,236,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -22px rgba(31,5,44,.45); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.t th { text-align: left; font-family: var(--display); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.6px; color: #8A7896;
  padding: 12px 14px 8px; white-space: nowrap; background: none; }
.t th.num { text-align: right; }
.t td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid #F0EBF3; }
.t td b { font-weight: 700; color: var(--ink); }
.t td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Filas tarjeta (tablas de la app). */
table.t.cards { border-spacing: 0 6px; margin-top: -2px; }
.t.cards td { background: #fff; border-top: 1px solid #EEE6F3; border-bottom: 1px solid #EEE6F3; transition: background .18s, border-color .18s; }
.t.cards td:first-child { border-left: 1px solid #EEE6F3; border-radius: 12px 0 0 12px; }
.t.cards td:last-child { border-right: 1px solid #EEE6F3; border-radius: 0 12px 12px 0; }
.t.cards td:only-child { border-radius: 12px; }
.t.cards tbody tr { animation: rowIn .32s cubic-bezier(.2,.8,.2,1) both; transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s; }
.t.cards tbody tr:nth-child(2) { animation-delay: .02s; } .t.cards tbody tr:nth-child(3) { animation-delay: .04s; } .t.cards tbody tr:nth-child(4) { animation-delay: .06s; }
.t.cards tbody tr:nth-child(5) { animation-delay: .08s; } .t.cards tbody tr:nth-child(6) { animation-delay: .1s; } .t.cards tbody tr:nth-child(n+7) { animation-delay: .12s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .t.cards tbody tr, .ev-mitem { animation: none; transition: none; } }
.t tr.click { cursor: pointer; }
.t.cards tr.click:hover, .t.cards tr.click:focus-visible { transform: translateY(-2px); filter: drop-shadow(0 10px 14px rgba(31,5,44,.12)); }
.t.cards tr.click:hover td, .t.cards tr.click:focus-visible td { border-color: #E3D3EC; }
/* Barra roja a la izquierda en la fila señalada, como el menú lateral. */
.t.cards tr.click:hover td:first-child, .t.cards tr.click:focus-visible td:first-child { box-shadow: inset 4px 0 0 var(--pri); }
.t tr.click:focus-visible { outline: none; }
.t .btn2.btn-sm, .t .btn.btn-sm, .t .btn-danger.btn-sm { min-height: 30px; padding: 0 12px; }
/* Botones de una fila, en línea (no uno debajo de otro). */
.t td .toolbar { flex-wrap: nowrap; gap: 6px; }
/* Etiquetas largas («Firmante, Propietario y Administrador») pasan de línea en vez de ensanchar la tabla. */
.t .tag { white-space: normal; line-height: 1.3; max-width: 220px; }
/* Cabecera de grupo (p. ej. la obra encima de sus partituras): título con línea, fuera de las tarjetas. */
.t tr.tgroup td { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--info); font-family: var(--display); font-weight: 500;
  font-size: 15px; letter-spacing: .8px; text-transform: uppercase; padding: 16px 6px 2px; }
.t tr.tgroup td::before { content: ''; display: inline-block; width: 4px; height: 15px; margin-right: 8px; border-radius: 2px; background: var(--pri); vertical-align: -2px; }
.t.cards tbody tr.tgroup { animation: none; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .tw { border-radius: 16px; padding: 4px 8px 8px; }
  table.t { font-size: 13.5px; }
  .t th, .t td { padding: 10px 11px; }
  /* Filas tarjeta: cada fila, una tarjeta con sus datos etiquetados en dos columnas. */
  .tw:has(> table.t.cards) { overflow: visible; background: none; border: 0; box-shadow: none; padding: 0; }
  table.t.cards, .t.cards tbody { display: block; }
  .t.cards thead { display: none; }
  .t.cards tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; margin-bottom: 8px; padding: 12px 14px;
    background: #fff; border: 1px solid #EEE6F3; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(31,5,44,.3); }
  .t.cards td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: none; overflow-wrap: anywhere; }
  .t.cards td::before { content: attr(data-label); font-family: var(--display); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #8A7896; }
  .t.cards td:first-child { grid-column: 1 / -1; font-size: 15px; }
  .t.cards td.nolabel { grid-column: 1 / -1; }
  .t.cards td.nolabel::before, .t.cards td:first-child::before { display: none; }
  .t.cards td.blank { display: none; }
  .t.cards td.num { text-align: left; }
  .t.cards td .toolbar { flex-wrap: wrap; }
  .t.cards tr.click:hover td:first-child { box-shadow: none; }
  .t.cards tr.click:hover { transform: none; filter: none; border-color: #E3D3EC; }
  .t.cards tr.tgroup { display: block; background: none; border: 0; box-shadow: none; padding: 10px 2px 0; margin: 0; }
  .t.cards tr.tgroup td { display: block; padding: 0; color: #fff; }
  .card .t.cards tr.tgroup td { color: var(--info); }
}

/* ---------- Enlaces de texto: rojo de la banda, subrayado fino que se marca al pasar ---------- */
.t a:not([class]), .card a:not([class]), .alert a:not([class]), .content p a:not([class]), .modal a:not([class]), .list-item a:not([class]) {
  color: var(--pri); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pri) 35%, transparent);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.t a:not([class]):hover, .card a:not([class]):hover, .alert a:not([class]):hover, .content p a:not([class]):hover, .modal a:not([class]):hover, .list-item a:not([class]):hover {
  text-decoration-color: var(--pri); color: var(--rojo-oscuro, #8F1B16); }
/* Enlaces a sitios de fuera (Drive, mapas…): flecha pequeña detrás. */
.t a[target=_blank]:not([class])::after, .card a[target=_blank]:not([class])::after, .content p a[target=_blank]:not([class])::after, .modal a[target=_blank]:not([class])::after {
  content: '↗'; display: inline-block; margin-left: 3px; font-size: .8em; text-decoration: none; opacity: .75; }

/* ---------- Estructura ---------- */
.shell { display: flex; min-height: 100vh; }
/* env(safe-area-inset-*): deja libre la zona de la hora/notch del iPhone cuando la app está instalada. */
.side { width: 256px; flex-shrink: 0; background: var(--hdr); color: var(--on-hdr); padding: calc(18px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side { border-right: 1px solid rgba(255,255,255,.07); background-image: radial-gradient(at 15% 0%, color-mix(in srgb, var(--pri) 16%, transparent), transparent 55%); }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 8px 22px; margin-bottom: 10px; text-align: center; text-decoration: none; position: relative; }
/* Separador con la estrella roja, como en la web. */
.brand::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 150px; height: 14px; transform: translateX(-50%);
  background: var(--star) center/14px 14px no-repeat, linear-gradient(var(--pri), var(--pri)) left center/58px 1px no-repeat, linear-gradient(var(--pri), var(--pri)) right center/58px 1px no-repeat; }
.brand-crest { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 55%, rgba(255,255,255,0) 72%); }
.brand img { width: 88px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
/* Nombre de la banda: una sola tipografía (Oswald, la de los títulos), en mayúsculas, dorada y con sombra suave. */
.bn { font-family: var(--display); font-weight: 500; font-size: 16.5px; line-height: 1.25; letter-spacing: 1px; text-transform: uppercase; text-wrap: balance; color: var(--oro);
  background: linear-gradient(180deg, #F6E7B4 0%, var(--oro) 55%, #C9A55A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--on-hdr); transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.07); color: var(--oro); }
.nav a.on { background: var(--pri); color: var(--on-pri); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--pri) 80%, transparent); }
.nav .sep { margin: 16px 14px 6px; font-family: var(--display); font-size: 11.5px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--suave); opacity: .85; }
.nav svg, .bottom svg { width: 20px; height: 20px; flex-shrink: 0; }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Cabecera morada con la línea roja de la web en el borde superior. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 12px 28px; background: var(--hdr); color: var(--on-hdr); border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; position: relative; }
.top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--pri) 20%, var(--pri) 80%, transparent); }
/* v136: misma cabecera que el modo oscuro también en el claro: fija arriba al desplazarse, de cristal morado translúcido
   con desenfoque y línea superior roja-oro-roja. oscuro.css solo ajusta el tono. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(31, 5, 44, .78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(255,255,255,.07); }
.top::before { height: 2px; background: linear-gradient(90deg, transparent, var(--pri) 25%, var(--oro) 50%, var(--pri) 75%, transparent); }
.top .btn2 { background: rgba(255,255,255,.11); color: #fff; border-color: rgba(255,255,255,.2); font-weight: 500; }
.top .btn2:hover:not(:disabled) { border-color: var(--oro); color: var(--oro); }
.top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-brand, .top .avatar { display: none; }
.top .who { display: flex; flex-direction: column; }
.top .who b { font-size: 15px; }
.top .who span { font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--oro); }
.top .actions { display: flex; gap: 8px; align-items: center; }
/* Foto de perfil (o avatar con el traje de gala) en la cabecera y en «Mi perfil». */
.who-photo { display: block; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px color-mix(in srgb, var(--oro) 55%, transparent); }
.who-photo img, .top .avatar img, .pp-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.pp-img { width: 112px; height: 112px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro) 60%, transparent), 0 6px 18px rgba(0,0,0,.25); }
/* Foto de perfil con sus botones justo debajo. */
.pp-side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.pp-btns { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 140px; }
.pp-btns .btn, .pp-btns .btn2 { justify-content: center; }
/* Texto de una tarjeta con su botón a la derecha (Notificaciones en este dispositivo). */
.desc-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.desc-row p { margin: 0; flex: 1; min-width: 0; color: var(--muted); }
.desc-row .toolbar { flex-shrink: 0; flex-wrap: nowrap; gap: 6px; }
/* Título de tarjeta con un botón al lado, en la misma fila también en el móvil (Mis dispositivos). */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.head-row h2 { margin: 0; min-width: 0; }
.head-row > button, .head-row > a { flex-shrink: 0; white-space: nowrap; }
.lbl-short { display: none; }
@media (max-width: 640px) {
  /* Mis datos: foto y botones a la izquierda, texto a la derecha (no debajo). */
  .profile-photo { flex-wrap: nowrap; align-items: flex-start; gap: 14px; }
  .pp-img { width: 88px; height: 88px; }
  .pp-btns { width: 112px; }
  .pp-btns .btn-sm, .pp-btns .btn2.btn-sm { padding: 0 8px; font-size: 11.5px; letter-spacing: .4px; }
  .profile-photo .pp-txt { flex: 1 1 0; gap: 4px; font-size: 13px; }
  /* Mi perfil: «Actualizar mis datos» y «Cambiar contraseña» uno al lado del otro. */
  .toolbar.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .toolbar.btn-pair > * { width: 100%; min-width: 0; justify-content: center; padding-left: 8px; padding-right: 8px; font-size: 12px; letter-spacing: .4px; white-space: normal; line-height: 1.2; }
  .toolbar.btn-pair > :only-child { grid-column: 1 / -1; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .head-row { gap: 8px; }
  .head-row h2 { font-size: 19px; white-space: nowrap; }
  .head-row > .btn-sm { padding: 0 10px; letter-spacing: .4px; }
  .desc-row { gap: 10px; }
  .desc-row .toolbar { flex-direction: column; align-items: stretch; }
}
.pp-txt { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.top .menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; color: var(--on-bg); display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; opacity: .85; color: var(--texto, #E3DAE8); }
.page-head h1 { text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.row > .grow { flex: 1 1 320px; min-width: 0; }
/* Contabilidad: Caja / Banco / Total en una sola fila; cada botón enseña su saldo y elige los movimientos. */
.acc-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.acc-switch button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 56px; padding: 6px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--on-bg); cursor: pointer; }
.acc-switch button .l { font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.acc-switch button .n { font-family: var(--display); font-size: 20px; white-space: nowrap; }
.acc-switch button.on { background: #fff; color: var(--pri); }
.acc-switch button.on .l { color: var(--muted); opacity: 1; }
.acc-tools { align-items: center; }
.acc-tools .inp { width: auto; }
.acc-exp { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat .n { font-family: var(--display); font-size: 38px; font-weight: 400; color: var(--pri); }
.stat .l { font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
/* Cofrades: resumen en una tarjeta (Cofrades / No cofrades, barra de cuotas y cifras que filtran). */
.cof-sum { display: flex; flex-direction: column; gap: 14px; }
.cof-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cof-big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; transition: border-color .15s, box-shadow .15s; }
.cof-big:hover { border-color: var(--acc); }
.cof-big.on { border-color: var(--pri); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pri) 25%, transparent); background: #fff; }
.cof-big .l { font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.cof-big .n { font-family: var(--display); font-size: 34px; line-height: 1.05; color: var(--pri); }
.cof-big .s { font-size: 12px; color: var(--muted); }
.cof-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--soft); gap: 2px; }
.cof-bar .seg { flex-basis: 0; min-width: 6px; }
.cof-bar .seg.ok { background: #2E8B62; } .cof-bar .seg.info { background: #6B3A8C; } .cof-bar .seg.bad { background: var(--pri); }
.cof-bar .seg.empty { flex-grow: 1; background: transparent; }
.cof-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cof-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.cof-chip b { font-family: var(--display); font-size: 16px; font-weight: 500; }
.cof-chip .dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.cof-chip.ok .dot { background: #2E8B62; } .cof-chip.info .dot { background: #6B3A8C; } .cof-chip.bad .dot { background: var(--pri); }
.cof-chip.alert b { color: var(--pri); }
.cof-chip .short { display: none; }
.cof-chip:hover { border-color: var(--acc); }
.cof-chip.on { border-color: var(--pri); background: color-mix(in srgb, var(--pri) 8%, #fff); }
/* Resumen de temporada (Agenda y Asistencia y Gestión › Asistencia): mismas piezas que Cofrades, sin pulsar. */
.cof-top.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cof-big.static, .cof-chip.static { cursor: default; }
.cof-big.static:hover, .cof-chip.static:hover { border-color: var(--line); }
.cof-chip .pc { font-size: 12px; font-weight: 600; color: var(--muted); }
.cof-chip.warn .dot { background: var(--wait); }
.cof-chip.warn b { color: var(--wait); }
.season-sum .cof-big { min-width: 0; }
@media (max-width: 760px) { .cof-top.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cof-chip .pc { display: none; }
  .cof-sum { gap: 10px; padding: 12px; }
  .cof-big { padding: 8px 10px; }
  .cof-big .n { font-size: 28px; }
  .cof-chips { gap: 6px; }
  .cof-chip { flex: 1 1 0; justify-content: center; padding: 6px 8px; font-size: 12px; gap: 5px; min-width: 0; }
  .cof-chip .full { display: none; }
  .cof-chip .short { display: inline; }
}
.list-item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #F0EBF3; }
.list-item:first-of-type { border-top: 0; }
.list-item > .toolbar { margin-left: auto; }
@media (max-width: 640px) {
  .list-item { flex-wrap: wrap; }
  .list-item > .toolbar { width: 100%; padding-left: 66px; margin-left: 0; }
}
.date-box { width: 52px; text-align: center; flex-shrink: 0; }
.date-box b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; color: var(--pri); }
.date-box span { font-family: var(--display); font-size: 11px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--radius); color: var(--on-pri);
  background: radial-gradient(at 85% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, var(--pri), color-mix(in srgb, var(--pri) 70%, #000)); }
.seg { display: inline-flex; flex-wrap: wrap; background: #fff; border-radius: 999px; padding: 3px; border: 1px solid #D6CADF; }
button.card { font: inherit; }
.seg button { border: 0; background: transparent; color: var(--ink); min-height: 38px; padding: 0 16px; border-radius: 999px; font-family: var(--display); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.seg button.on { background: var(--pri); color: var(--on-pri); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--on-bg); font-family: var(--display); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.tabs button:hover { border-color: var(--pri); }
.tabs button.on { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.kv div span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.kv div b { font-weight: 600; white-space: pre-line; }

/* ---------- Barra de desplazamiento del menú (fina y del color de la cabecera) ---------- */
.side { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--on-hdr) 28%, transparent) transparent; }
.side::-webkit-scrollbar { width: 8px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--on-hdr) 22%, transparent); border-radius: 8px; border: 2px solid var(--hdr); }
.side::-webkit-scrollbar-thumb:hover { background: var(--acc); }

/* ---------- Textos legales, firma ---------- */
.legal-box { white-space: pre-line; background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; max-height: 260px; overflow-y: auto; font-size: 14px; line-height: 1.55; }
.sigpad-wrap { position: relative; width: 100%; max-width: 640px; border: 2px dashed #8A96AA; border-radius: 12px; background: #fff; overflow: hidden; }
.sigpad-wrap.signed { border-style: solid; border-color: var(--pri); }
.sigpad { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sigpad-hint { position: absolute; left: 16px; bottom: 12px; font-size: 13px; color: #8A96AA; pointer-events: none; }
.sigpad-wrap.signed .sigpad-hint { display: none; }

/* ---------- Menú de funcionalidades en tarjetas (sustituye a las pestañas) ---------- */
.cardmenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
/* Colores configurables en Configuración › Identidad › Apariencia. El recuadro es discreto: destaca el icono. */
.cm-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 14px 8px;
  background: var(--cm-bg, #3A1450); color: var(--cm-text, #fff); border: 0; border-radius: 16px; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: 13.5px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.25; cursor: pointer; transition: transform .2s, background .2s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px -30px rgba(0,0,0,.8); }
.cm-card:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--cm-bg, #3A1450) 85%, var(--cm-icon, #E6C97A)); }
.cm-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--cm-icon, #E6C97A);
  background: color-mix(in srgb, var(--cm-icon, #E6C97A) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cm-icon, #E6C97A) 45%, transparent); }
.cm-card.on { box-shadow: inset 0 0 0 2px var(--cm-icon, #E6C97A); }
.cm-card.on .cm-ico { background: var(--cm-icon, #E6C97A); color: var(--cm-bg, #3A1450); }
.cm-badge { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-size: 12px; display: grid; place-items: center; }
.cardmenu.compact { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.cardmenu.compact .cm-card { min-height: 92px; padding: 12px 8px; font-size: 13px; gap: 8px; }
.cardmenu.compact .cm-ico { width: 44px; height: 44px; }

/* ---------- Mi perfil y Mi asistencia: datos en tarjetas pequeñas ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; }
.tile .t-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pri) 12%, #fff); color: var(--pri); }
.tile .t-txt { min-width: 0; display: flex; flex-direction: column; }
.tile .t-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
/* El valor se lee entero: si no cabe, pasa a la línea siguiente (correos largos incluidos). */
.tile .t-val { font-weight: 600; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.tile .t-act { margin-left: auto; flex-shrink: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile.long { grid-column: span 2; }
.att { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.att .pct { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--pri); }
.att .bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.att .bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tiles.list { grid-template-columns: minmax(0, 1fr); }
  .tile { gap: 8px; padding: 9px 10px; border-radius: 12px; }
  .tile .t-ico { width: 30px; height: 30px; }
  .tile .t-ico svg { width: 16px; height: 16px; }
  .tile .t-lbl { font-size: 10px; }
  .tile .t-val { font-size: 14px; }
  .tile.long { grid-column: 1 / -1; }
}

/* ---------- Próxima actuación (Inicio): datos a la izquierda, imagen a la derecha ---------- */
.gigs { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gig { display: flex; align-items: stretch; gap: 14px; padding: 12px; border-radius: 14px; background: var(--soft); color: var(--ink); text-decoration: none; min-height: 110px; }
.gig:hover { background: color-mix(in srgb, var(--pri) 8%, var(--soft)); }
.gig-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.gig-info span { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.gig-info span svg { flex-shrink: 0; color: var(--pri); }
.gig-title { font-family: var(--display); font-size: 18px; line-height: 1.2; }
/* La imagen se muestra completa, con sus proporciones originales (nunca se recorta): se reduce hasta caber. */
img.gig-img { display: block; width: auto; height: auto; max-width: 40%; max-height: 260px; object-fit: contain; align-self: center; border-radius: 10px; flex-shrink: 1; min-width: 0; }
.gig-noimg { width: 34%; max-width: 220px; aspect-ratio: 4 / 3; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--pri) 45%, #fff); background: color-mix(in srgb, var(--pri) 8%, #fff); }
.gig.first { padding: 14px; }
/* Actuación de hoy: mismo resaltado que «Hoy» en Agenda › Lista (borde y degradado del color principal). */
.gig.today { background: linear-gradient(90deg, color-mix(in srgb, var(--pri) 12%, var(--soft)), var(--soft) 75%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pri) 55%, transparent); }
.gig-info .today-badge { display: inline-flex; color: #fff; font-size: 11px; }
.gig-status { margin-top: 4px; display: flex; }
.gig-status .tag { display: inline-block; font-size: 12px; white-space: normal; line-height: 1.3; max-width: 100%; }
.gig.first .gig-title { font-size: 21px; }
/* v168: «Horario sin confirmar» en su propia línea bajo la fecha: píldora ámbar discontinua con la letra de las etiquetas (.tag). */
.gig-info .gig-tbd { display: flex; }
.gig-info .gig-tbd .tbd { display: inline-flex; gap: 5px; color: var(--wait); font-size: 12px; letter-spacing: normal; text-transform: none; line-height: 1.3; padding: 3px 10px 3px 8px; white-space: normal; max-width: 100%; }
.gig-info .gig-tbd .tbd svg { color: currentColor; }
@media (max-width: 640px) {
  .gig { gap: 10px; padding: 10px; }
  .gig-title, .gig.first .gig-title { font-size: 16px; }
  .gig-info span { font-size: 13px; }
  img.gig-img { max-width: 42%; max-height: 200px; }
  .gig-noimg { width: 38%; }
}

/* ---------- Ficha del evento: datos a la izquierda, imagen completa a la derecha (misma caja) ---------- */
/* Izquierda: lo esencial · centro: información adicional · derecha: imagen completa (sin recortar). */
.ev-top { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.ev-top.has-img { grid-template-columns: minmax(0, 1fr) auto; }
.ev-top.has-extra { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr); }
.ev-top.has-extra.has-img { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr) auto; }
.ev-key { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev-key-title { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.ev-key-date { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--pri); }
.ev-key-date svg { flex-shrink: 0; }
.ev-key-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.ev-key-times span, .ev-extra > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ev-key-times b { font-weight: 600; }
.ev-key-times b .tbd { display: inline-flex; margin-top: 2px; font-size: 11px; color: var(--wait); }
.ev-extra { background: var(--soft); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.ev-extra p { margin: 6px 0 0; white-space: pre-line; line-height: 1.5; }
.ev-info-img { display: block; max-width: 300px; justify-self: end; }
.ev-info-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; object-fit: contain; border-radius: 10px; }
@media (max-width: 900px) {
  /* Tableta y móvil: esencial e imagen arriba, información adicional debajo a todo el ancho. */
  .ev-top.has-extra.has-img { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-top.has-extra:not(.has-img) { grid-template-columns: minmax(0, 1fr); }
  .ev-top .ev-extra { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .ev-top { gap: 12px; }
  .ev-key-title { font-size: 19px; }
  .ev-key-date { font-size: 15px; }
  .ev-key-times { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ev-info-img { max-width: 40vw; }
  .ev-info-img img { max-height: 240px; }
}

/* ---------- Desplegables: flecha propia en todos (formularios y filtros) ---------- */
select.inp {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B5C76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
select.inp:hover { border-color: #B9A6C6; }
select.inp::-ms-expand { display: none; }

/* ---------- Buscadores: lupa y aspa para borrar ---------- */
input.inp[type=search] {
  -webkit-appearance: none; appearance: none; padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B5C76' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; background-size: 18px 18px;
}
input.inp[type=search]::placeholder { color: #8E7F99; }
input.inp[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none; height: 20px; width: 20px; margin-left: 6px; cursor: pointer; border-radius: 999px;
  background: #EDE6F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%233B1452' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
input.inp[type=search]:not(:placeholder-shown) { border-color: var(--pri); }

/* ---------- Filtros y buscador en la misma fila (en el móvil, en dos filas para que se lea todo) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; align-items: center; padding: 8px; margin-bottom: 4px;
  background: color-mix(in srgb, #fff 92%, var(--info-bg)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(31,5,44,.05); }
.filters > * { flex: 1 1 150px; width: auto; min-width: 0; }
.filters > input[type=search] { flex: 1.6 1 220px; max-width: none !important; }
.filters .inp { min-height: 42px; border-radius: 999px; border-color: #DCD0E4; font-size: 14.5px; }
.filters select.inp { font-weight: 600; color: var(--ink); background-color: #fff; padding-left: 16px; }
/* Filtro con un valor elegido (distinto del primero): resaltado. */
.filters select.inp:not(:has(option:first-child:checked)) {
  border-color: var(--pri); color: var(--pri); background-color: color-mix(in srgb, var(--pri) 7%, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C32720' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Donde el navegador lo permite, cada desplegable mide lo que su texto (no se corta) y el buscador ocupa el resto. */
@supports (field-sizing: content) {
  .filters > select { flex: 0 1 auto; field-sizing: content; min-width: 110px; max-width: 100%; }
}
@media (max-width: 640px) {
  .filters { gap: 6px; padding: 6px; border-radius: 14px; }
  .filters > select { field-sizing: fixed; }
  /* El buscador ocupa su propia fila arriba y los desplegables se reparten debajo a lo ancho, sin cortar el texto. */
  .filters > input[type=search] { flex: 1 1 100%; order: -1; }
  .filters > select { flex: 1 1 calc(50% - 3px); }
  .filters .inp { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
  .filters select.inp { padding-left: 12px; padding-right: 30px; background-position: right 11px center; }
}

/* ---------- Partituras (Consultar): botones siempre a la derecha, también en el móvil ---------- */
.list-item.score-item { flex-wrap: wrap; align-items: center; }
.score-info { flex: 1 1 0; min-width: 0; }
.score-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; margin-left: auto; }
.score-audio { width: 100%; }
@media (max-width: 640px) {
  .list-item.score-item { flex-wrap: wrap; }
  .score-actions { width: auto; padding-left: 0; flex-direction: column; align-items: stretch; }
}

/* ---------- Botón «Atrás» junto al título del módulo ---------- */
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 14px 0 8px; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--on-bg) 10%, transparent); color: var(--on-bg); border: 1px solid color-mix(in srgb, var(--on-bg) 28%, transparent);
  font: inherit; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.back-btn:hover { background: color-mix(in srgb, var(--on-bg) 18%, transparent); }

/* ---------- Columnas visibles de las tablas (Propietario y Administrador) ---------- */
.tblock { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tblock-tools { display: flex; justify-content: flex-end; }

/* ---------- Configuración: ruta Administración › Configuración › apartado ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; margin-bottom: -12px; opacity: .9; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- Menú del perfil (icono de la cabecera) ---------- */
.usermenu { position: fixed; z-index: 60; top: calc(60px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); min-width: 220px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35); padding: 6px; display: flex; flex-direction: column; }
.usermenu .um-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.usermenu .um-head b { display: block; }
.usermenu .um-head span { font-size: 12px; color: var(--muted); }
.usermenu a, .usermenu button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.usermenu a:hover, .usermenu button:hover { background: var(--soft); }
.usermenu .danger { color: #9B1C1C; }
/* Roles por módulo (v140): roles en filas (primera columna fija al desplazar) y módulos en columnas. */
.rm-help { margin: 8px 0 12px; color: var(--muted); }
.rm-wrap { overflow-x: auto; }
table.t.rm { border-collapse: separate; border-spacing: 0; min-width: max-content; }
.t.rm th, .t.rm td { vertical-align: top; border-bottom: 1px solid var(--line); }
.t.rm thead th.rm-mod { text-align: center; white-space: normal; min-width: 150px; max-width: 170px; line-height: 1.25; }
.t.rm .rm-role { position: sticky; left: 0; z-index: 2; min-width: 170px; max-width: 200px; text-align: left; white-space: normal; background: var(--card, #fff); box-shadow: 1px 0 0 var(--line); }
.t.rm thead .rm-role { z-index: 3; }
.t.rm tbody .rm-role b { display: block; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.t.rm tbody .rm-role .small { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.rm-btns { gap: 4px; margin-top: 6px; flex-wrap: nowrap; }
.rm-btns .btn-sm { min-height: 30px; padding: 0 9px; }
.rm-cell { min-width: 150px; }
.rm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rm-extra { display: grid; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.rm-ck { display: flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 6px; border-radius: 8px; font-size: 12px; line-height: 1.2; cursor: pointer; color: var(--muted); background: var(--soft); text-transform: none; letter-spacing: 0; }
.rm-ck input { width: 16px; height: 16px; flex-shrink: 0; margin: 0; accent-color: var(--pri); }
.rm-ck.on { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--pri) 10%, transparent); }
.rm-ck.fixed { cursor: default; opacity: .75; }
.rm-ck.none { cursor: default; opacity: .4; }
.rm-ck.none i { width: 16px; text-align: center; font-style: normal; }
/* Tablas que se ordenan pulsando el título de la columna (Contabilidad): flecha ▼/▲ en la activa y ⇅ tenue en las demás. */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; text-align: center !important; }
.th-sort { justify-content: center; }
/* Desplegable «Ordenar» de Contabilidad: solo en el móvil, donde la tabla va en tarjetas sin títulos. */
.filters .acc-sort { display: none; }
@media (max-width: 640px) { .filters .acc-sort { display: block; } }
th.sortable:hover .th-sort, th.sortable:focus-visible .th-sort { color: var(--pri); }
.th-sort { display: inline-flex; align-items: center; gap: 5px; }
.th-sort i { font-style: normal; font-size: 11px; opacity: .45; }
.th-sort.on i { opacity: 1; color: var(--pri); }
/* Interruptor Claro/Oscuro: sol a la izquierda, luna a la derecha; la bolita se coloca sobre el modo activo. */
.usermenu .um-theme { justify-content: space-between; }
.um-theme-track { position: relative; width: 66px; height: 32px; flex-shrink: 0; border-radius: 99px; background: #F3E3B0; box-shadow: inset 0 0 0 1px rgba(31,5,44,.12);
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px; transition: background-color .25s; }
.um-theme-track .sun, .um-theme-track .moon { position: relative; z-index: 1; font-size: 15px; line-height: 1; transition: color .25s, opacity .25s; }
.um-theme-track .sun { color: #B45309; }
.um-theme-track .moon { color: #6B5A78; opacity: .7; }
.um-theme-track .knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.um-theme.dark .um-theme-track { background: #2A0E3B; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.um-theme.dark .um-theme-track .knob { transform: translateX(34px); background: #E6C97A; }
.um-theme.dark .um-theme-track .sun { color: #9A8AA3; opacity: .7; }
.um-theme.dark .um-theme-track .moon { color: #1F052C; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .um-theme-track, .um-theme-track .knob { transition: none; } }
.usermenu-scrim { position: fixed; inset: 0; z-index: 55; }
.top .avatar { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hub-group + .hub-group { margin-top: 8px; }
.hub-group h2 { margin: 0 0 12px; }
@media (max-width: 640px) {
  .cardmenu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cardmenu.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-card { min-height: 98px; padding: 12px 6px; font-size: 12.5px; }
  .cm-ico { width: 44px; height: 44px; }
}
@media (max-width: 360px) { .cardmenu, .cardmenu.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Semana actual (Inicio) ---------- */
.week-head { align-items: center; }
.week-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.week-range { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--soft); color: var(--muted); font-family: var(--display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.week-range svg { color: var(--pri); flex-shrink: 0; }
a.week-range { text-decoration: none; white-space: nowrap; margin-left: auto; }
.week-more { gap: 4px; text-decoration: none; white-space: nowrap; }
.week-del { margin-right: -2px; }
@media (max-width: 480px) {
  .week-title { gap: 8px; }
  .week-range { gap: 4px; padding: 2px 8px; font-size: 10.5px; letter-spacing: .5px; }
  .week-range svg { width: 12px; height: 12px; }
  .week-del { display: none; }
}
.week-more svg { margin-right: -4px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.week .wday { background: var(--soft); border-radius: 10px; padding: 8px 6px; min-height: 92px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.week .wday.today { background: color-mix(in srgb, var(--pri) 10%, #fff); outline: 2px solid var(--pri); }
.week .wday.past { opacity: .6; }
.week .whead { display: flex; flex-direction: column; align-items: center; line-height: 1.1; margin-bottom: 2px; }
.week .whead span { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.week .whead b { font-size: 18px; font-family: var(--display); }
.week .ev { white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 640px) {
  .week { gap: 3px; }
  .week .wday { padding: 5px 2px; min-height: 70px; border-radius: 8px; }
  .week .whead b { font-size: 15px; }
  .week .whead span { font-size: 9.5px; }
  .week .ev { font-size: 9.5px; padding: 2px 3px; }
  .week .ev .ev-time { display: none; }
}

/* ---------- Pasos (alta de componente) ---------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 4px; padding: 0; list-style: none; }
.steps li { flex: 1 1 0; min-width: 70px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.steps li.done { color: var(--ok); border-color: var(--ok); }
.steps li.on { color: var(--pri); border-color: var(--pri); }

/* ---------- Pestañas dentro de módulos ---------- */
.page-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid rgba(255,255,255,.18); }
.page-tabs button { border: 0; background: transparent; color: var(--on-bg); opacity: .8; min-height: 44px; padding: 0 14px; font-family: var(--display); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.page-tabs button.on { opacity: 1; border-bottom-color: var(--pri); }
.page-tabs button:hover { opacity: 1; }

/* ---------- Nota de asistencia ---------- */
/* Cofrades: el desplegable de la cuota lleva el color de su estado (como las etiquetas). */
select.inp.cuota-sel { width: auto; min-height: 34px; padding: 4px 34px 4px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background-position: right 12px center; }
select.inp.cuota-sel.ok { background-color: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
select.inp.cuota-sel.info { background-color: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
select.inp.cuota-sel.bad { background-color: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
select.inp.cuota-sel.grey { background-color: #EEF1F5; color: var(--muted); border-color: #DDE2E8; }
.note-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* Interruptor del pase de lista: rojo = no asistió (por defecto), verde = asistió. */
.sw { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #C32720; cursor: pointer; transition: background .15s; vertical-align: middle; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.sw.on { background: #2E9E5B; }
.sw.on::after { transform: translateX(20px); }
.sw:focus-visible { outline: 2px solid var(--accent, #E6C97A); outline-offset: 2px; }
.sw:disabled { opacity: .6; cursor: wait; }
.note-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; font-size: 13px; color: var(--muted); }
/* v198: Cofrades en el móvil: todo con la misma letra (los desplegables van a 16 px para que el iPhone no amplíe la
   página, así que el resto también) y el botón «Cambiar»/«Editar» debajo del texto, sin salirse de la tarjeta. */
@media (max-width: 640px) {
  .cof-list .t.cards td, .cof-list .t.cards td:first-child, .cof-list .note-cell span { font-size: 16px; }
  .cof-list select.inp.cuota-sel { font-size: 16px !important; font-weight: 600; min-height: 36px; }
  /* v200 (iPhone): los desplegables no se salen de su tarjeta: ocupan el ancho de su celda y la cuota, la renta y la
     nota van en una fila entera (en dos columnas «Pendiente de pago» no cabía a 16 px). */
  .cof-list select.inp.cuota-sel { width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box; padding: 4px 30px 4px 12px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; background-position: right 10px center; }
  .cof-list .t.cards td:nth-child(n+5) { grid-column: 1 / -1; }
  .cof-list .t.cards td { min-width: 0; max-width: 100%; }
  .cof-list .note-cell { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .cof-list .note-cell span { white-space: normal; max-width: none; }
}

/* ---------- Audio, contabilidad, voces ---------- */
audio.player { width: 100%; max-width: 360px; height: 40px; }
.amount-in { color: #1D5A41; font-weight: 700; }
.amount-out { color: #9B1C1C; font-weight: 700; }

/* Panel de contabilidad: entradas = azul, salidas = naranja (paleta categórica validada para daltonismo). */
.viz-dash { --viz-in: #2a78d6; --viz-out: #eb6834; --viz-line: #6250d6; --viz-grid: #e1e0d9; --viz-base: #c3c2b7; --viz-muted: #6f6c75;
  display: flex; flex-direction: column; gap: 14px; }
.viz-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.viz-stat { padding: 14px 16px; min-width: 0; }
.viz-stat .n { font-family: var(--font); font-weight: 700; font-size: 26px; color: var(--ink); white-space: nowrap; }
/* Cifras que se ajustan a su caja (fitNum() en admin.js reduce la letra si no caben). */
.fit-n { display: block; max-width: 100%; overflow: hidden; }
.viz-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* v135: cifras del panel en verde si suman y en rojo si restan (mismos colores que Entrada/Salida de la tabla). */
.viz-stat .n.pos { color: #1D5A41; } .viz-stat .n.neg { color: #9B1C1C; } .viz-stat .n.cero { color: var(--ink); }
/* «En qué se gasta» en HTML: el concepto pasa de línea y nunca se sale de la tarjeta. */
.viz-spend { display: grid; gap: 10px; margin-top: 4px; }
.vs-row { display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-width: 0; }
.vs-name { min-width: 0; font-size: 12.5px; line-height: 1.3; text-align: right; overflow-wrap: anywhere; color: var(--ink); }
.vs-bar { display: block; min-width: 0; height: 18px; }
.vs-bar i { display: block; height: 100%; border-radius: 0 5px 5px 0; background: var(--viz-out); }
.vs-val { font-size: 12px; color: var(--viz-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: minmax(0, 1fr) auto; }
  .vs-name { grid-column: 1 / -1; text-align: left; font-weight: 600; }
}
.viz-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.viz { position: relative; padding: 14px 16px; }
.viz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.viz-head h3 { margin: 0; font-size: 15px; }
.viz-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.viz-plot { width: 100%; min-width: 0; }
.viz-plot svg { display: block; overflow: visible; }
.viz-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.viz-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.viz-key i, .viz-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
i.viz-in { background: var(--viz-in); } i.viz-out { background: var(--viz-out); }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-base { stroke: var(--viz-base); stroke-width: 1; }
.viz-axis { fill: var(--viz-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz-label { fill: var(--ink); font-size: 12px; }
.viz-value { fill: var(--viz-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz-line { fill: none; stroke: var(--viz-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-area { fill: var(--viz-line); opacity: .1; }
.viz-dot { fill: var(--viz-line); stroke: var(--card); stroke-width: 2; }
.viz-cross { stroke: var(--viz-base); stroke-width: 1; }
path.viz-in { fill: var(--viz-in); } path.viz-out { fill: var(--viz-out); }
.viz-col:hover path { opacity: .85; }
.viz-tip { display: none; position: absolute; z-index: 5; transform: translate(-50%, -100%); pointer-events: none;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  font-size: 12px; white-space: nowrap; flex-direction: column; }
.viz-tip b, .viz-tip span { display: flex; align-items: center; gap: 6px; }
.voice-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.voice-group h3 { margin-bottom: 4px; }
.voice-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.voice-row select { width: auto; min-height: 36px; font-size: 14px; }

/* ---------- Calendario ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 700px; }
.cal .wd { background: var(--soft); padding: 8px 10px; font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.cal .day { background: #fff; color: var(--ink); min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal .day.out { background: #FBFAFC; color: #B4A8BC; }
.cal .day .n { font-size: 13px; font-weight: 700; }
.cal .day.today .n { color: #fff; background: var(--pri); border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; }
.ev { display: block; font-size: 12px; font-weight: 600; padding: 3px 6px; border-radius: 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.ensayo { background: var(--info-bg); color: var(--info); }
.ev.actuacion { background: var(--wait-bg); color: var(--wait); }
.ev.otro { background: var(--ok-bg); color: var(--ok); }
.ev.pendiente { opacity: .65; font-style: italic; outline: 1px dashed currentColor; }
/* Agenda en modo «Lista»: un evento por fila, con el borde del color de su tipo. */
.ev-mlist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ev-mlist .ml-head { font-family: var(--display); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin: 10px 4px 0; }
.ev-mlist.on-dark .ml-head { color: rgba(255,255,255,.78); }
.ev-mitem { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  border-left: 5px solid var(--info); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(31,5,44,.06);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; animation: rowIn .35s ease both; }
.ev-mitem:hover, .ev-mitem:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(31,5,44,.35); }
.ev-mitem.actuacion { border-left-color: #C9A227; } .ev-mitem.otro { border-left-color: var(--ok); }
.ev-mitem.pendiente { border-style: dashed; border-left-style: solid; opacity: .85; }
.ev-mitem.cancelado { opacity: .7; } .ev-mitem.cancelado .mt b { text-decoration: line-through; }
.ev-mitem .md { flex-shrink: 0; width: 48px; text-align: center; line-height: 1; padding: 6px 0; border-radius: 10px; background: var(--soft); }
.ev-mitem .md b { display: block; font-family: var(--display); font-size: 24px; color: var(--pri); }
.ev-mitem .md small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.ev-mitem .mt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ev-mitem .mt b { font-weight: 700; font-size: 15.5px; line-height: 1.25; overflow-wrap: anywhere; }
.ev-mitem .mt small { font-size: 13px; color: var(--muted); }
.ev-mitem .mtags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
.ev-mitem .mgo { color: var(--muted); flex-shrink: 0; display: grid; }
/* Evento de hoy (Asistencia): tarjeta resaltada en rojo de la banda con una etiqueta «Hoy» que late. */
.ev-mitem.today { background: linear-gradient(90deg, color-mix(in srgb, var(--pri) 10%, #fff), #fff 70%); border-color: color-mix(in srgb, var(--pri) 45%, transparent);
  border-left: 6px solid var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 14%, transparent), 0 14px 28px -16px color-mix(in srgb, var(--pri) 60%, transparent); }
.ev-mitem.today .md { background: var(--pri); }
.ev-mitem.today .md b, .ev-mitem.today .md small { color: #fff; }
.ev-mitem.today .mgo { color: var(--pri); }
.today-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--pri); color: #fff;
  font-family: var(--display); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.today-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: todayPulse 1.6s ease-in-out infinite; }
@keyframes todayPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .today-badge i { animation: none; } }
/* Avisos: «Leído» (y «Eliminar») a la derecha de cada aviso; al marcarlo, se desvanece y se quita de la lista. */
.notice-item { align-items: flex-start; transition: opacity .25s ease, transform .25s ease; }
.notice-item.leaving { opacity: 0; transform: translateX(16px); }
.notice-btns { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex-shrink: 0; }
.notice-btns .btn-sm { justify-content: center; gap: 4px; }
@media (max-width: 480px) {
  .notice-item { flex-wrap: wrap; }
  .notice-btns { flex-direction: row; width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .notice-item { transition: none; } }
/* Control de autobuses: una lista por autobús; con varios, cada uno en su bloque con su nombre y contador. */
.bus-roll { margin-top: 12px; }
.bus-roll.multi { padding: 12px 14px 4px; border: 1px solid var(--line); border-left: 4px solid var(--pri); border-radius: 14px; background: var(--soft); }
.bus-roll-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bus-roll-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); }
.bus-roll-head h3 svg { color: var(--pri); }
.bus-roll-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  /* v132: en el móvil, igual que en escritorio: fecha | título | estado a la derecha, en la misma fila (sin bajar el estado). */
  .ev-mitem { gap: 10px; padding: 9px 10px 9px 8px; }
  .ev-mitem .mt b { font-size: 15px; }
  .ev-mitem .mtags { flex-direction: column; align-items: flex-end; gap: 4px; max-width: 42%; }
  /* v209: una etiqueta larga («Pendiente de pase de lista») se parte en dos líneas en vez de salirse de la tarjeta. */
  .ev-mitem .mtags { min-width: 0; }
  .ev-mitem .mtags .tag { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; }
  /* v211: en las tarjetas «… de hoy» de Inicio (la única .ev-mlist sin .on-dark), las etiquetas bajan debajo del título
     (alineadas con él): «Insignia +x» en una fila y el estado de la lista en la de abajo, cada una en una línea. */
  .ev-mlist:not(.on-dark) .ev-mitem { flex-wrap: wrap; row-gap: 8px; }
  .ev-mlist:not(.on-dark) .ev-mitem .mt { flex: 1 1 0; }
  .ev-mlist:not(.on-dark) .ev-mitem .mtags { order: 5; flex: 0 0 100%; max-width: none; align-items: flex-start; padding-left: 58px; }
  /* v213: «Insignia +x» y el estado de la asistencia en la misma fila, que empieza en el borde izquierdo de la tarjeta
     (debajo de la fecha) para que quepan juntas en todos los móviles (si aun así no cabe, el estado baja). */
  .ev-mlist:not(.on-dark) .ev-mitem .mtags { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px; padding-left: 0; }
  /* v214: esa fila, centrada en la tarjeta. */
  .ev-mlist:not(.on-dark) .ev-mitem .mtags { justify-content: center; }
  .ev-mlist:not(.on-dark) .ev-mitem .mtags .tag { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; text-align: left; }
  .ev-mitem .mtags:empty { display: none; }
  .ev-mitem .mgo { display: none; }
}
/* v215: en los móviles estrechos la letra de la etiqueta baja un poco para que «Insignia +x» y «Pendiente de pase de
   lista» quepan juntas (10,5 px por debajo de 375 px, p. ej. Android de 360; 9,5 px por debajo de 340 px). */
@media (max-width: 374px) { .ev-mlist:not(.on-dark) .ev-mitem .mtags .tag { font-size: 10.5px; padding-left: 8px; padding-right: 8px; } }
@media (max-width: 339px) { .ev-mlist:not(.on-dark) .ev-mitem .mtags .tag { font-size: 9.5px; padding-left: 7px; padding-right: 7px; } .ev-mlist:not(.on-dark) .ev-mitem .mtags { gap: 4px; } }
/* v132: el número y el día/mes de cada fecha siempre centrados, a lo ancho y a lo alto de su columna
   (tarjetas de evento de Inicio, Agenda › Lista, Asistencia, Autobuses y la fecha de «Próxima actuación»). */
.ev-mitem .md, .date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; text-align: center; gap: 3px; }
.ev-mitem .md b, .date-box b { display: block; width: 100%; text-align: center; }
.ev-mitem .md small, .date-box span { display: block; width: 100%; text-align: center; line-height: 1; }
/* Leyenda de colores de los calendarios (Agenda e «Esta semana»). */
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cal-legend.boxed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-top: 8px; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.cal-legend .lg-sw.ev { padding: 0; width: 16px; height: 16px; border: 2px solid currentColor; }
.cal-legend .lg-sw.ev.pendiente { background: var(--info-bg); color: var(--info); }
.cal-legend .lg-sw.ev.cancelado { background: var(--soft); text-decoration: none; position: relative; }
.cal-legend .lg-sw.ev.cancelado::after { content: ''; position: absolute; left: 1px; right: 1px; top: 6px; height: 2px; background: var(--muted); }
.cal-legend .lg-sw.hoy { border-radius: 999px; background: var(--pri); }
@media (max-width: 600px) { .cal-legend { font-size: 11.5px; gap: 4px 10px; } }
.ev.cancelado { text-decoration: line-through; opacity: .6; }
/* Agenda: cada evento en dos filas (hora y título), centrado y repartiendo el alto del día entre los eventos que tenga. */
.cal .ev { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  text-align: center; white-space: normal; line-height: 1.2; padding: 4px 6px; }
.cal .ev .ev-time { display: block; font-weight: 800; font-size: .92em; opacity: .85; }
.cal .ev .ev-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.cal-wrap { width: 100%; }
.cal-list { display: none; }

/* Calendario en el móvil: 7 columnas que caben en la pantalla, sin desbordar ni hacer zoom. */
@media (max-width: 700px) {
  .cal { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 10px; }
  .cal .wd { padding: 6px 2px; font-size: 10px; text-align: center; letter-spacing: 0; }
  .cal .day { min-height: 58px; padding: 3px 2px; gap: 2px; align-items: stretch; }
  .cal .day .n { font-size: 12px; align-self: center; }
  .cal .day.today .n { width: 22px; height: 22px; }
  .ev { font-size: 9.5px; padding: 2px 3px; border-radius: 4px; line-height: 1.2; }
  .ev .ev-time { display: none; }
  .cal .ev { padding: 2px; border-radius: 4px; }
  .cal-list { display: block; }
}

/* ---------- Autobús ---------- */
.bus { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; justify-content: center; }
.seat { width: 46px; height: 46px; border-radius: 8px; border: 1px solid #B8C2D1; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; overflow: hidden; padding: 2px; line-height: 1.1; }
.seat.taken { background: #5B6B86; border-color: #5B6B86; color: #fff; }
.seat.mine { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.aisle { width: 46px; height: 46px; }

/* ---------- Modal y avisos ---------- */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--ink); }
dialog.modal { box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
dialog.modal::backdrop { background: rgba(20, 3, 30, .7); }
.modal-head { border-top: 3px solid var(--pri); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: #1F052C; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: 360px; border-left: 4px solid var(--oro); }
.toast.err { background: #8F1B16; border-left-color: #fff; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.alert.err { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--info-bg); color: var(--info); }

/* ---------- Acceso ---------- */
/* Basado en la página «En construcción» de la web: degradado morado con brillo rojo, línea roja arriba,
   escudos de marca de agua a ambos lados, logotipo, antetítulo rojo, título en Oswald, estrella y lema dorado. */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; position: relative; overflow: hidden; isolation: isolate;
  color: #E3DAE8; text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 110%, rgba(195, 39, 32, .32), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 40%, rgba(120, 60, 150, .35), transparent 70%),
    linear-gradient(180deg, #1F052C 0%, #2B0B3B 100%); }
.login::before, .login::after { content: ""; position: absolute; top: 50%; z-index: -1; width: min(44vw, 520px); aspect-ratio: 1;
  background: url(img/escudo-blanco.png) center/contain no-repeat; opacity: .05; pointer-events: none; }
.login::before { left: -12vw; transform: translateY(-50%) rotate(-10deg); }
.login::after { right: -12vw; transform: translateY(-50%) rotate(10deg); }
.login .hero { flex: 1 1 420px; max-width: 640px; padding: calc(56px + env(safe-area-inset-top)) 32px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.login .hero::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, transparent, #C32720 20%, #C32720 80%, transparent); }
.login .hero .logo { display: flex; justify-content: center; }
.login .hero img.logo-wide { display: block; width: 300px; max-width: 100%; height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.45)); }
.login .hero-txt { display: flex; flex-direction: column; align-items: center; }
.login .kicker { color: #C32720; font: 400 13px/1.4 Oswald, sans-serif; letter-spacing: 7px; text-indent: 7px; text-transform: uppercase; margin-bottom: 14px; }
.login .hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.15; letter-spacing: 2px; white-space: pre-line; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.login .divider { display: block; width: 150px; height: 14px; margin: 22px auto 22px;
  background: var(--star) center/14px 14px no-repeat, linear-gradient(#C32720, #C32720) left center/58px 1px no-repeat, linear-gradient(#C32720, #C32720) right center/58px 1px no-repeat; }
.login .hero p { font-size: 16px; line-height: 1.8; white-space: pre-line; max-width: 520px; }
.login .hero p.small { font-size: 12px; line-height: 1.6; color: #9A8AA3; }
.login .hashtag { margin-top: 18px; color: #E6C97A; font: 400 32px/1 "Alex Brush", cursive; }
.login .side-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); text-align: left; }
.login form { width: 100%; max-width: 440px; background: #fff; color: var(--ink); padding: 32px; border-radius: 18px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.12); border-top: 4px solid #C32720; }
.login form h2 { letter-spacing: 1.5px; }
.login form .btn { letter-spacing: 2px; }
/* «He olvidado mi contraseña»: enlace de texto, sin fondo ni borde, que pasa de línea si no cabe. */
.login .login-forgot { align-self: flex-start; max-width: 100%; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; text-align: left; white-space: normal;
  color: var(--pri); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.login .login-forgot:hover { text-decoration-color: currentColor; }
/* Privacidad · Condiciones de uso · Cookies: mismos enlaces de texto, centrados y que pasan de línea si no caben. */
.legal-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 6px; font-size: 13px; color: var(--muted); }
.legal-links button { min-height: 36px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--pri);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.legal-links button:hover { text-decoration-color: currentColor; }
/* Descargar la app: tarjeta de instalación con un toque (o los 2 pasos en iPhone/iPad) */
.app-install { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; box-shadow: inset 0 0 0 2px var(--acc), var(--shadow, 0 6px 20px rgba(0,0,0,.08)); }
.app-install img { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; flex-shrink: 0; }
.app-install h2 { margin: 0 0 4px; }
.app-install p { margin: 0; }
.app-install .btn { flex-shrink: 0; }
.app-steps { margin: 8px 0 10px; padding-left: 22px; display: grid; gap: 8px; }
.app-share { display: inline-block; vertical-align: -5px; color: #0A84FF; }
@media (max-width: 640px) { .app-install .btn { width: 100%; } }
.login :focus-visible { outline: 2px solid #C32720; outline-offset: 3px; }

/* ---------- Móvil ---------- */
.bottom { display: none; }
@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .side.open { transform: none; }
  /* Cabecera del móvil: escudo y nombre de la banda (siempre visibles) | perfil. Sin menú hamburguesa:
     todo se navega con la barra inferior (Gestión agrupa los módulos de gestión). Respeta la zona de la hora del iPhone. */
  .top { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20;
    padding: calc(6px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(14px + env(safe-area-inset-left)); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
  .top .top-left { display: none; }
  .top .menu-btn { display: none; }
  .side, .scrim { display: none !important; }
  .top-brand { justify-content: flex-start !important; }
  .top .who { display: none; }
  .top .hide-sm { display: none; }
  .top-brand { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; color: var(--on-hdr); text-decoration: none; }
  .top-brand img { height: 50px; width: auto; max-width: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
  .top-brand > .bn { font-size: 15px; letter-spacing: 1px; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .top .actions { justify-content: flex-end; }
  .top .avatar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; overflow: hidden; border-radius: 50%; background: var(--pri); color: var(--on-pri); font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 1px; text-decoration: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--oro) 55%, transparent); }
  .content { padding: 16px 16px 96px; }
  h1 { font-size: 26px; }
  .login .hero { padding: calc(36px + env(safe-area-inset-top)) 20px 8px; gap: 20px; }
  .login .hero img.logo-wide { width: 240px; }
  .login .hero h1 { font-size: 30px; }
  .login .kicker { letter-spacing: 5px; text-indent: 5px; font-size: 12px; }
  .login .hashtag { font-size: 28px; }
  .login .hero > p.small { display: none; }
  .login::before, .login::after { width: 70vw; opacity: .04; }
  .login .side-form { padding-top: 16px; }
  .login form { padding: 24px 20px; }
  /* Barra inferior morada, como la cabecera y el pie de la web. */
  .bottom { display: grid; grid-template-columns: repeat(var(--nb, 5), minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--hdr); border-top: 1px solid rgba(255,255,255,.08); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.3); }
  .bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--suave); text-decoration: none; position: relative; }
  .bottom.many { padding-left: 2px; padding-right: 2px; }
  .bottom.many a { font-size: 9px; letter-spacing: 0; }
  @media (max-width: 380px) { .bottom.many a { font-size: 8.4px; } }
  .bottom a.on { color: #fff; }
  .bottom a.on svg { color: var(--pri); }
  .bottom a.on::before { content: ""; position: absolute; top: -4px; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pri); }
  .bottom .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 99px; background: var(--pri); }
  /* v132: misma barra flotante que el modo oscuro (pastilla separada de los bordes, opción activa en una píldora),
     con los colores del modo claro: cristal blanco, texto morado y la opción activa en rojo de la banda.
     oscuro.css cambia solo los colores. */
  .bottom { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); border-radius: 24px; padding: 5px 4px; border: 1px solid rgba(31,5,44,.1);
    background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 16px 36px -12px rgba(31,5,44,.45); }
  .bottom a { border-radius: 18px; min-height: 52px; color: #6B5A78; transition: background-color .2s, color .2s; }
  .bottom a.on { color: var(--hdr); background: color-mix(in srgb, var(--pri) 11%, #fff); }
  .bottom a.on svg { color: var(--pri); }
  .bottom a.on::before { display: none; }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
}
@media (max-width: 360px) {
  .top-brand img { height: 42px; }
  .top-brand > .bn { font-size: 13.5px; }
}
/* iPhone amplía la página al escribir en un campo con letra de menos de 16 px y la deja desencuadrada:
   en pantallas táctiles todos los campos van a 16 px. */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .inp, .filters .inp, .voice-row select { font-size: 16px !important; }
}
@media print {
  .side, .top, .bottom, .toolbar, .btn, .btn2 { display: none !important; }
  body { background: #fff; color: #000; }
  .content { color: #000; padding: 0; }
}

/* ===================================================================== Logros (beta) */
.lg-badge { display: inline-flex; flex-shrink: 0; line-height: 0; }
.lg-badge svg { display: block; }
.lg-level-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-level-name { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--pri); }
.lg-points { text-align: right; color: var(--ink); }
.lg-points b { font-family: var(--display); font-size: 30px; color: var(--pri); }
.lg-points .small { display: block; color: var(--muted); }
.lg-bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.lg-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--pri)); }
.lg-season { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 18px; }
.lg-srow { display: flex; gap: 10px; align-items: center; }
.lg-srow .small { color: var(--muted); }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lg-grid.small-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.lg-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; font: inherit; }
.lg-item:hover, .lg-item:focus-visible { border-color: var(--acc); }
.lg-item.on { background: #fff; box-shadow: 0 10px 24px -18px rgba(43, 11, 59, .7); }
.lg-item b { font-size: 14px; line-height: 1.2; }
.lg-item .small { color: var(--muted); line-height: 1.3; }
.lg-detail { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.lg-detail > div { flex: 1 1 240px; }
.lg-hist { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.lg-places { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.lg-places .small { color: var(--muted); }
.lg-home-link { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.lg-home-main { flex: 1; min-width: 0; }
.lg-home .lg-level-name { font-size: 24px; }
.lg-home-next { display: flex; align-items: center; gap: 8px; max-width: 46%; }
.lg-results { display: grid; gap: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.lg-res { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); cursor: pointer; font: inherit; }
.lg-res:hover, .lg-res:focus-visible { border-color: var(--acc); }
.lg-res .small { color: var(--muted); }
/* Móvil: el logro al alcance pasa debajo del nivel (la flecha sigue a la derecha). */
@media (max-width: 560px) {
  .lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-home-link { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'main go' 'next next'; gap: 10px 12px; }
  .lg-home-main { grid-area: main; }
  .lg-home-link > svg { grid-area: go; }
  .lg-home-next { grid-area: next; max-width: none; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* Animación al conseguir un logro (pantalla completa, unos 2,5 s). */
.lg-ov { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
  background: radial-gradient(circle at 50% 38%, rgba(91,31,122,.94), rgba(31,5,44,.98) 70%); animation: lgOvIn .3s ease-out both; }
.lg-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 380px; width: 100%; }
@keyframes lgOvIn { from { opacity: 0; } to { opacity: 1; } }
.lg-count { font-family: var(--display); letter-spacing: 3px; font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; margin-bottom: 4px; animation: lgUp .4s .2s both; }
.lg-stage { position: relative; width: 300px; height: 300px; max-width: 86vw; display: grid; place-items: center; }
.lg-rays { position: absolute; inset: -40px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(230,201,122,.28) 0 7deg, transparent 7deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%);
  animation: lgRays .6s 1.25s both, lgSpin 14s 1.25s linear infinite; pointer-events: none; }
@keyframes lgRays { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes lgSpin { to { rotate: 360deg; } }
.lg-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(230,201,122,.55), transparent 65%); animation: lgGlow 1s 1.2s both; }
@keyframes lgGlow { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.25); } 100% { opacity: .65; transform: scale(1); } }
.lg-pop { animation: lgPop .45s .15s cubic-bezier(.2,1.4,.4,1) both, lgShake .35s .6s ease-in-out both; }
@keyframes lgPop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
@keyframes lgShake { 0%,100% { rotate: 0deg; } 20% { rotate: -6deg; } 40% { rotate: 6deg; } 60% { rotate: -4deg; } 80% { rotate: 3deg; } }
.lg-flip { position: relative; width: 200px; height: 220px; transform-style: preserve-3d; animation: lgFlip .7s .95s cubic-bezier(.45,.05,.3,1) both; }
@keyframes lgFlip { 0% { transform: rotateY(0deg) scale(1); } 50% { transform: rotateY(90deg) scale(1.12); } 100% { transform: rotateY(180deg) scale(1); } }
.lg-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.lg-back { transform: rotateY(180deg); }
.lg-face > svg { width: 200px; height: 220px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.45)); }
.lg-lock { position: absolute; left: 132px; top: 118px; width: 44px; height: 44px; border-radius: 50%; background: #8E8399; border: 3px solid #fff; display: grid; place-items: center; animation: lgLock .45s .7s ease-in both; }
@keyframes lgLock { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-8px) scale(1.25); opacity: 1; } 100% { transform: translate(26px,-60px) rotate(40deg) scale(.6); opacity: 0; } }
.lg-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: radial-gradient(circle 78px at 100px 97px, #000 98%, transparent 100%); mask: radial-gradient(circle 78px at 100px 97px, #000 98%, transparent 100%); }
.lg-shine::after { content: ''; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: lgShine .75s 1.75s ease-out both; }
@keyframes lgShine { from { left: -60%; } to { left: 130%; } }
.lg-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.lg-burst i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); background: var(--c);
  clip-path: polygon(50% 0, 64.4% 25%, 93.3% 25%, 78.9% 50%, 93.3% 75%, 64.4% 75%, 50% 100%, 35.6% 75%, 6.7% 75%, 21.1% 50%, 6.7% 25%, 35.6% 25%);
  animation: lgBurst 1.1s calc(1.3s + var(--d)) cubic-bezier(.15,.8,.3,1) both; }
@keyframes lgBurst { 0% { transform: translate(0,0) scale(.2) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1) rotate(160deg); opacity: 0; } }
.lg-kicker { margin-top: 6px; font-family: var(--display); color: var(--acc); letter-spacing: 4px; font-size: 13px; text-transform: uppercase; animation: lgUp .45s 1.55s both; }
.lg-name { margin: 6px 0 0; font-family: var(--display); font-weight: 600; color: #fff; font-size: 32px; line-height: 1.1; text-align: center; animation: lgUp .45s 1.68s both; }
.lg-tier { margin-top: 10px; padding: 3px 14px; border-radius: 999px; font-family: var(--display); letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
  background: linear-gradient(135deg, #FFF2C2, #E6C97A 45%, #A67C1E); color: #1F052C; animation: lgUp .45s 1.8s both; }
.lg-desc { margin: 12px 0 0; color: rgba(255,255,255,.88); font-size: 15px; text-align: center; max-width: 320px; line-height: 1.45; animation: lgUp .45s 1.92s both; }
.lg-pts { margin-top: 10px; color: var(--acc); font-family: var(--display); font-size: 18px; letter-spacing: 1px; text-align: center; animation: lgUp .45s 2.04s both, lgPulse .5s 2.5s ease-in-out both; }
@keyframes lgPulse { 50% { transform: scale(1.18); } }
.lg-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; animation: lgUp .45s 2.3s both; }
.lg-btn { font-family: var(--display); letter-spacing: 1.5px; text-transform: uppercase; font-size: 15px; border-radius: 999px; padding: 12px 22px; min-height: 44px; border: 0; cursor: pointer; }
.lg-btn.p { background: var(--acc); color: #1F052C; }
.lg-btn.s { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.lg-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes lgUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* «Reducir movimiento»: solo un fundido, sin giros ni estallidos. */
@media (prefers-reduced-motion: reduce) {
  .lg-rays, .lg-burst, .lg-shine, .lg-lock, .lg-front { display: none; }
  .lg-pop, .lg-flip { animation: none; } .lg-back { transform: none; }
  .lg-ov * { animation-duration: .01s !important; animation-delay: 0s !important; }
}
/* Inicio › Mi asistencia: ensayos y actuaciones en una sola tarjeta, lado a lado (en el móvil, uno debajo del otro). */
.att-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.att-part + .att-part { border-left: 1px solid var(--line); padding-left: 28px; }
.att-title { font-size: 15px; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
/* Móvil: siguen en una sola fila; el porcentaje, más pequeño y encima de la barra. */
@media (max-width: 640px) {
  .att-split { gap: 12px 14px; }
  .att-part + .att-part { padding-left: 14px; }
  .att-split .att { grid-template-columns: 1fr; gap: 6px; }
  .att-split .att .pct { font-size: 28px; }
  .att-title { font-size: 13px; margin-bottom: 6px; }
}

/* Logros de temporada: una medalla por cada temporada conseguida (detalle). */
.lg-seasons { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 8px; }
.lg-seasons figure { margin: 0; text-align: center; }
.lg-seasons figcaption { color: var(--muted); }

/* Mis logros: pestañas en una fila (se desliza de lado si no caben) y contenido compacto, sin desplazar la página. */
.lg-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: -4px; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; min-height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--on-bg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lg-tabs button.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.lg-tabs button:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.lg-grid.tight { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.lg-grid.tight .lg-item { padding: 8px 6px 10px; gap: 2px; }
.lg-grid.tight .lg-item b { font-size: 13px; }
.lg-grid.tight .lg-item .small { font-size: 12px; }
button.lg-srow { text-align: left; background: none; border: 0; padding: 4px; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; }
button.lg-srow:hover, button.lg-srow:focus-visible { background: var(--soft); }
.lg-season .small { line-height: 1.3; }
.lg-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lg-near-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lg-near-item:hover, .lg-near-item:focus-visible { border-color: var(--acc); }
.lg-near-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lg-near-txt b { font-size: 14px; }
.lg-near-txt .lg-bar { height: 7px; }
.lg-near-txt .small { color: var(--muted); }
@media (max-width: 560px) {
  .lg-grid.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lg-grid.tight .lg-item b { font-size: 12px; }
  .lg-season { grid-template-columns: 1fr; gap: 4px; }
  .lg-season .small { font-size: 12px; }
}/* Móvil: «Logros al alcance» en una sola fila de tres y la tarjeta del nivel más baja. */
@media (max-width: 560px) {
  .lg-near { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lg-near-item { flex-direction: column; text-align: center; gap: 4px; padding: 8px 6px; }
  .lg-near-txt { width: 100%; justify-items: center; gap: 3px; }
  .lg-near-txt b { font-size: 12px; line-height: 1.2; }
  .lg-near-txt .lg-bar { width: 100%; height: 5px; }
  .lg-near-txt .small { font-size: 11px; }
  .lg-level .lg-level-row { margin-bottom: 8px; }
  .lg-level .lg-level-name, .lg-level .lg-points b { font-size: 24px; }
}.lg-tabs { position: relative; }
.lg-near { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Mis logros › Logros conseguidos: fila que se desliza de lado. */
.lg-got { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.lg-got-item { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.lg-got-item:hover, .lg-got-item:focus-visible { border-color: var(--acc); }
.lg-got-item b { font-size: 12px; line-height: 1.2; }
.lg-got-item .small { font-size: 11px; color: var(--muted); }
/* ===================================================================== Juegos (beta) */
/* --gc: color del juego. */
.jg-code-inp { max-width: 130px; text-transform: uppercase; letter-spacing: 6px; font-family: var(--display); font-size: 22px !important; text-align: center; }
.jg-room { display: grid; gap: 16px; }
.jg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.jg-code { font-family: var(--display); font-size: 40px; letter-spacing: 8px; color: var(--pri); line-height: 1; }
.jg-center { text-align: center; display: grid; justify-items: center; gap: 8px; }
/* Tarjetas de juego (catálogo, selección, cuenta atrás) */
.jg-cat { margin: 14px 0 8px; font-size: 14px; letter-spacing: 1.5px; color: var(--muted); }
.jg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.jg-tile-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; text-align: center; border-radius: 18px; }
.jg-tile-btn:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.jg-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--gc) 92%, #fff) 0%, var(--gc) 45%, color-mix(in srgb, var(--gc) 55%, #000) 100%);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--gc) 45%, #000), 0 12px 22px -12px rgba(0,0,0,.6); transition: transform .12s, box-shadow .12s; }
.jg-tile::after { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent); pointer-events: none; }
.jg-tile-btn:hover .jg-tile { transform: translateY(-2px); }
.jg-tile-btn:active .jg-tile { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--gc) 45%, #000); }
.jg-tile-ico { font-size: 38px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.jg-tile b { font-family: var(--display); font-weight: 500; letter-spacing: .5px; font-size: 15px; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.jg-tile-best { font-size: 11px; font-weight: 700; background: rgba(0,0,0,.28); border-radius: 99px; padding: 2px 8px; }
.jg-tile.big { width: 160px; padding: 18px 10px; }
.jg-tile.big .jg-tile-ico { font-size: 56px; }
.jg-tile.big b { font-size: 20px; }
.jg-picks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; }
.jg-pick { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--soft); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .7; }
.jg-pick.on { border-color: var(--pri); background: #fff; color: var(--ink); opacity: 1; }
.jg-pick span { font-size: 16px; }
.jg-intro { display: grid; justify-items: center; text-align: center; gap: 6px; }
.jg-intro-ico { font-size: 54px; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(150deg, color-mix(in srgb, var(--gc) 85%, #fff), color-mix(in srgb, var(--gc) 60%, #000)); box-shadow: 0 6px 0 color-mix(in srgb, var(--gc) 45%, #000); }
.jg-intro .small { color: var(--muted); }
.jg-ready { background: linear-gradient(170deg, #fff 55%, color-mix(in srgb, var(--gc) 18%, #fff)); }
.jg-count { font-family: var(--display); font-size: 96px; line-height: 1; color: var(--gc, var(--pri)); }
.jg-count.tick { animation: jgTick .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes jgTick { from { transform: scale(1.6); opacity: .3; } to { transform: none; opacity: 1; } }
/* Clasificación y podio */
.jg-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.jg-rank li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.jg-rank li.me { outline: 2px solid var(--acc); background: #fff; }
.jg-pos { font-weight: 700; color: var(--muted); text-align: center; }
.jg-round { color: var(--ok); font-weight: 700; font-size: 13px; }
.jg-total { font-family: var(--display); font-size: 18px; color: var(--pri); min-width: 56px; text-align: right; }
.jg-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 4px 0 14px; text-align: center; }
.jg-podium > div { display: grid; justify-items: center; gap: 2px; }
.jg-podium b { font-size: 13px; line-height: 1.2; }
.jg-podium span { font-family: var(--display); color: var(--pri); }
.jg-podium i { display: block; width: 100%; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #F4D27A, #C79A2E); }
.jg-podium .p1 i { height: 70px; } .jg-podium .p2 i { height: 48px; background: linear-gradient(180deg, #E5E7EB, #9CA3AF); } .jg-podium .p3 i { height: 32px; background: linear-gradient(180deg, #F0B27A, #A0602A); }
.jg-podium-m { font-size: 32px; animation: jgTick .6s .2s both; }
/* Pantalla de juego */
.jg-play { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--gc) 70%, #2B0B3B) 0%, color-mix(in srgb, var(--gc) 25%, #160320) 55%, #0E0216 100%);
  padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.jg-play::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, #fff 1.5px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 1px, transparent 1.5px), radial-gradient(circle at 40% 80%, #fff 1.2px, transparent 1.8px);
  background-size: 120px 120px, 90px 90px, 150px 150px; }
.jg-play.good { animation: jgGood .35s; } .jg-play.bad { animation: jgBad .35s; }
@keyframes jgGood { 0% { box-shadow: inset 0 0 0 0 rgba(74,222,128,0); } 30% { box-shadow: inset 0 0 0 8px rgba(74,222,128,.75); } 100% { box-shadow: inset 0 0 0 0 rgba(74,222,128,0); } }
@keyframes jgBad { 0%, 100% { transform: none; box-shadow: inset 0 0 0 0 rgba(248,113,113,0); } 25% { transform: translateX(-6px); box-shadow: inset 0 0 0 8px rgba(248,113,113,.8); } 60% { transform: translateX(5px); } }
.jg-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jg-top-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; font-size: 16px; }
.jg-top-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.14); }
.jg-score { background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.jg-score b { font-family: var(--display); font-size: 20px; color: var(--acc); }
.jg-score.bump { animation: jgBump .3s; }
@keyframes jgBump { 50% { transform: scale(1.15); } }
.jg-time { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; margin: 10px 0 12px; }
.jg-time span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), #fff6d6); }
.jg-time.low span { background: linear-gradient(90deg, #F87171, #FCA5A5); animation: jgLow .5s infinite alternate; }
@keyframes jgLow { to { opacity: .55; } }
.jg-quit { position: absolute; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; cursor: pointer; z-index: 2; }
.jg-area { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
.jg-info { margin: 0; min-height: 22px; opacity: .9; text-align: center; font-weight: 600; }
.jg-pop { position: fixed; z-index: 3; transform: translate(-50%, -50%); font-family: var(--display); font-size: 26px; pointer-events: none; text-shadow: 0 2px 6px rgba(0,0,0,.5); animation: jgPop .9s ease-out forwards; }
.jg-pop.up { color: #86EFAC; } .jg-pop.down { color: #FCA5A5; }
@keyframes jgPop { from { opacity: 1; transform: translate(-50%, -50%) scale(.8); } 20% { transform: translate(-50%, -70%) scale(1.2); } to { opacity: 0; transform: translate(-50%, -160%) scale(1); } }
.jg-end { display: grid; justify-items: center; gap: 4px; text-align: center; animation: jgIn .4s; }
.jg-end-ico { font-size: 64px; animation: jgTick .6s; }
.jg-end-t { font-family: var(--display); letter-spacing: 3px; text-transform: uppercase; color: var(--acc); }
.jg-big { font-family: var(--display); font-size: 76px; color: #fff; line-height: 1; text-shadow: 0 4px 18px color-mix(in srgb, var(--gc) 60%, transparent); }
.jg-end-btns { display: flex; gap: 10px; margin-top: 12px; }
@keyframes jgIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
/* Botones de juego, grandes y con relieve */
.jg-btn, .jg-opt { border: 0; border-radius: 18px; cursor: pointer; font-family: var(--display); color: #2B0B3B; background: #fff;
  box-shadow: 0 5px 0 rgba(0,0,0,.28), 0 10px 18px -10px rgba(0,0,0,.6); transition: transform .06s, box-shadow .06s; }
.jg-btn:active, .jg-opt:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }
.jg-btn { padding: 14px 26px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; background: var(--acc); }
.jg-btn.alt { background: rgba(255,255,255,.9); }
.jg-btn.wide { min-width: 220px; min-height: 64px; font-size: 22px; }
.jg-stage { min-height: 120px; display: grid; place-items: center; }
.jg-stage.in > * { animation: jgIn .2s; }
.jg-q { font-family: var(--display); font-size: 50px; letter-spacing: 1px; text-align: center; text-shadow: 0 3px 10px rgba(0,0,0,.35); }
.jg-q.sm { font-size: 30px; } .jg-q.huge { font-size: 92px; } .jg-q.emo { font-size: 64px; }
.jg-opts { display: grid; gap: 12px; width: min(88vw, 440px); }
.jg-opts.c2 { grid-template-columns: repeat(2, 1fr); } .jg-opts.c3 { grid-template-columns: repeat(3, 1fr); } .jg-opts.c4 { grid-template-columns: repeat(4, 1fr); }
.jg-opt { min-height: 74px; font-size: 28px; padding: 6px; }
.jg-opt.tall { min-height: 96px; font-size: 30px; }
.jg-opt.word { font-family: inherit; font-weight: 800; font-size: 24px; text-transform: none; }
.jg-opt.wide { grid-column: 1 / -1; }
.jg-opt.sel { background: var(--acc); transform: translateY(3px); }
.jg-opt.swatch { color: #fff; font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.jg-opt.arr { font-size: 40px; min-height: 80px; }
/* Reflejos */
.jg-pad { width: min(86vw, 420px); height: min(52vh, 420px); border-radius: 32px; border: 0; font-family: var(--display); font-size: 38px; letter-spacing: 2px; color: #fff; cursor: pointer; box-shadow: 0 8px 0 rgba(0,0,0,.3); transition: background .1s; }
.jg-pad.wait { background: radial-gradient(circle, #B91C1C, #7F1D1D); }
.jg-pad.go { background: radial-gradient(circle, #4ADE80, #15803D); animation: jgIn .15s; }
.jg-pad.ok { background: radial-gradient(circle, #6D28D9, #3B0764); }
.jg-pad.bad { background: radial-gradient(circle, #7F1D1D, #450A0A); font-size: 24px; }
.jg-dots { display: flex; gap: 8px; }
.jg-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.2); }
.jg-dots i.ok { background: #4ADE80; } .jg-dots i.bad { background: #F87171; }
/* Diana, topos y globos */
.jg-field { position: relative; width: 100%; flex: 1; min-height: 300px; border-radius: 22px; background: rgba(255,255,255,.05); overflow: hidden; }
.jg-field.sky { background: linear-gradient(180deg, rgba(125,211,252,.18), rgba(255,255,255,.03)); }
.jg-target { position: absolute; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle, #fff 0 14%, #EF4444 15% 32%, #fff 33% 50%, #EF4444 51% 68%, #fff 69% 100%); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.jg-target.in { animation: jgIn .15s; }
.jg-holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(88vw, 380px); }
.jg-hole { aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at 50% 70%, #1c0b02 0 45%, #5b3410 46% 60%, #7c4a1a 61%); box-shadow: inset 0 -6px 0 rgba(0,0,0,.35); }
.jg-hole span { position: absolute; left: 50%; bottom: -60%; transform: translateX(-50%); font-size: 46px; transition: bottom .12s; }
.jg-hole.up span { bottom: 18%; }
.jg-balloon { position: absolute; bottom: -15%; transform: translateX(-50%); border: 0; background: none; font-size: 48px; cursor: pointer; padding: 6px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.jg-balloon.star { font-size: 44px; }
.jg-balloon.pop { animation: jgBoom .2s forwards; }
@keyframes jgBoom { to { transform: translateX(-50%) scale(1.8); opacity: 0; } }
.jg-clock { font-family: var(--display); font-size: 84px; line-height: 1; min-width: 4ch; text-align: center; }
.jg-clock.ok { color: #86EFAC; } .jg-clock.bad { color: #FCA5A5; }
/* Memoria */
.jg-simon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: min(80vw, 380px); aspect-ratio: 1; }
.jg-simon { border: 0; border-radius: 26px; opacity: .45; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.3); transition: opacity .08s, transform .08s; }
.jg-simon.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 34px rgba(255,255,255,.6), 0 6px 0 rgba(0,0,0,.3); }
.jg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(90vw, 420px); }
.jg-card { aspect-ratio: 1; border: 0; border-radius: 16px; cursor: pointer; font-size: 34px; position: relative; padding: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--gc) 80%, #fff), color-mix(in srgb, var(--gc) 60%, #000)); box-shadow: 0 5px 0 rgba(0,0,0,.3); transition: transform .25s; }
.jg-card .back { color: rgba(255,255,255,.65); font-family: var(--display); font-size: 28px; }
.jg-card .front { display: none; }
.jg-card.up, .jg-card.done { background: #fff; transform: rotateY(180deg); }
.jg-card.up .front, .jg-card.done .front { display: inline; transform: rotateY(180deg); }
.jg-card.up .back, .jg-card.done .back { display: none; }
.jg-card.done { opacity: .5; }
.jg-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(84vw, 380px); }
.jg-cell { aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.14); box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: background .12s; }
.jg-cell.lit { background: var(--acc); box-shadow: 0 0 18px rgba(230,201,122,.8); }
.jg-cell.ok { background: #4ADE80; } .jg-cell.bad { background: #F87171; }
.jg-lives { font-size: 20px; letter-spacing: 3px; }
.jg-shape { font-size: 120px; line-height: 1; text-shadow: 0 6px 18px rgba(0,0,0,.4); }
/* Atención */
.jg-word { font-family: var(--display); font-size: 54px; background: #fff; border-radius: 20px; padding: 10px 28px; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.jg-arrow { width: 150px; height: 150px; border-radius: 30px; display: grid; place-items: center; font-size: 96px; line-height: 1; color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.jg-arrow.green { background: linear-gradient(150deg, #4ADE80, #15803D); } .jg-arrow.red { background: linear-gradient(150deg, #F87171, #B91C1C); }
.jg-dotbox { position: relative; width: 210px; height: 210px; border-radius: 22px; background: rgba(255,255,255,.95); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.jg-dotbox i { position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: color-mix(in srgb, var(--gc) 85%, #000); }
.jg-intr { display: grid; gap: 8px; width: min(88vw, 420px); }
.jg-emo, .jg-num { aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.92); box-shadow: 0 4px 0 rgba(0,0,0,.25); font-size: clamp(20px, 7vw, 34px); padding: 0; }
.jg-num { font-family: var(--display); color: #2B0B3B; font-size: clamp(18px, 6vw, 28px); }
.jg-num.done { background: rgba(255,255,255,.18); color: rgba(255,255,255,.5); box-shadow: none; }
.jg-emo:active, .jg-num:active, .jg-cell:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .jg-play *, .jg-play { animation-duration: .01s !important; } }/* Juegos: formulario de nueva partida y marcador por equipos */
.jg-form { display: grid; gap: 8px; }
.jg-form > label { font-weight: 700; font-size: 13px; margin-top: 6px; }
.jg-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.jg-seg button { padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.jg-seg button.on { border-color: var(--pri); background: var(--pri); color: #fff; }
.jg-people { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.jg-title { font-family: var(--display); font-size: 22px; font-weight: 500; }
.jg-roundbox { display: grid; justify-items: center; min-width: 86px; padding: 6px 10px; border-radius: 14px; background: var(--soft); font-family: var(--display); font-size: 26px; line-height: 1.1; }
.jg-roundbox b { color: var(--pri); }
.jg-roundbox small { font-family: inherit; font-size: 12px; color: var(--muted); }
.jg-teams { display: grid; gap: 12px; }
.jg-team { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.jg-team.me { outline: 2px solid var(--acc); background: #fff; }
.jg-team-head { display: flex; justify-content: space-between; gap: 8px; }
.jg-team-head span { font-family: var(--display); color: var(--pri); font-size: 18px; }
.jg-team-bar { height: 14px; border-radius: 99px; background: rgba(0,0,0,.07); overflow: hidden; }
.jg-team-bar span { display: block; height: 100%; border-radius: 99px; transition: width .6s; }
.jg-name small { display: block; font-size: 11px; color: var(--muted); }
/* Juegos nuevos */
.jg-opt.emo { font-size: 40px; min-height: 84px; }
.jg-shadow { width: 170px; height: 170px; border-radius: 28px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.jg-shadow span { font-size: 110px; line-height: 1; filter: brightness(0); }
.jg-ppt { display: grid; justify-items: center; gap: 8px; }
.jg-ppt-hand { font-size: 96px; line-height: 1; transform: scaleX(-1); }
.jg-ppt-goal { font-family: var(--display); font-size: 30px; letter-spacing: 3px; padding: 4px 18px; border-radius: 99px; color: #fff; }
.jg-ppt-goal.gana { background: #16A34A; } .jg-ppt-goal.pierde { background: #DC2626; } .jg-ppt-goal.empata { background: #2563EB; }
.jg-track { position: relative; width: min(88vw, 440px); height: 46px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.jg-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #22C55E, #86EFAC, #22C55E); }
.jg-needle { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff; }
.jg-turbo { width: min(60vw, 230px); aspect-ratio: 1; border-radius: 50%; border: 0; font-size: 80px; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FDBA74, #EA580C 60%, #9A3412); box-shadow: 0 10px 0 #7C2D12, 0 0 40px rgba(249,115,22,.5); }
.jg-turbo.hit { animation: jgHit .12s; }
@keyframes jgHit { 50% { transform: translateY(6px) scale(.96); box-shadow: 0 4px 0 #7C2D12, 0 0 60px rgba(249,115,22,.8); } }
.jg-mult { font-family: var(--display); font-size: 40px; color: var(--acc); }
.jg-meter { width: min(70vw, 300px); height: 12px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.jg-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FACC15, #EF4444); transition: width .1s; }
.jg-dot { position: absolute; border: 0; border-radius: 50%; cursor: pointer; animation: jgIn .15s; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.jg-dot.g { background: radial-gradient(circle at 35% 30%, #BBF7D0, #16A34A); } .jg-dot.r { background: radial-gradient(circle at 35% 30%, #FECACA, #DC2626); }
.jg-dot.pop { animation: jgBoom2 .18s forwards; } .jg-dot.fade { transition: opacity .2s; opacity: 0; }
@keyframes jgBoom2 { to { transform: scale(1.6); opacity: 0; } }
.jg-field.cut { touch-action: none; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.15)); }
.jg-trail { position: absolute; inset: 0; pointer-events: none; }
.jg-fruit { position: absolute; font-size: 50px; transform: translate(-50%, 50%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.jg-fruit.cut { animation: jgCut .3s forwards; } .jg-fruit.boom { animation: jgBoom2 .3s forwards; }
@keyframes jgCut { to { transform: translate(-50%, 50%) rotate(40deg) scale(1.3); opacity: 0; } }
.jg-field.space { touch-action: none; background: radial-gradient(ellipse at 50% 120%, rgba(99,102,241,.35), rgba(0,0,0,.25)); }
.jg-ship { position: absolute; bottom: 24px; transform: translateX(-50%) rotate(-45deg); font-size: 46px; pointer-events: none; }
.jg-ship.hit { animation: jgBad .5s; }
.jg-rock { position: absolute; transform: translate(-50%, -50%); font-size: 38px; pointer-events: none; }
.jg-field.run { background: linear-gradient(180deg, rgba(186,230,253,.18), rgba(132,204,22,.12)); }
.jg-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: repeating-linear-gradient(90deg, #4D7C0F 0 20px, #3F6212 20px 40px); }
.jg-hero { position: absolute; left: 28px; bottom: 40px; font-size: 46px; line-height: 1; transform: scaleX(-1); pointer-events: none; }
.jg-obs { position: absolute; bottom: 38px; font-size: 34px; line-height: 1; pointer-events: none; }
.jg-obs.tall { font-size: 50px; }
.jg-field.tower { background: linear-gradient(180deg, rgba(56,189,248,.18), rgba(255,255,255,.04)); }
.jg-block { position: absolute; height: 24px; border-radius: 6px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 2px 0 rgba(0,0,0,.25); }
.jg-falta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: min(90vw, 420px); min-height: 120px; }
.jg-falta span { font-size: 46px; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 4px 0 rgba(0,0,0,.25); animation: jgIn .25s; }
.jg-falta span.gap { background: rgba(255,255,255,.18); color: #fff; font-family: var(--display); }
.jg-cups { position: relative; width: min(90vw, 400px); height: 170px; --sw: 400ms; }
.jg-cup { position: absolute; top: 20px; width: 33.33%; height: 140px; border: 0; background: none; cursor: pointer; transition: left var(--sw) ease-in-out; }
.jg-cup .cup { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 96px; line-height: 1; transition: transform .3s; }
.jg-cup .ball { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 30px; visibility: hidden; }
.jg-cup.has .ball { visibility: visible; }
.jg-cup.lift .cup { transform: translateX(-50%) translateY(-60px); }
.jg-cup.ok .cup { filter: drop-shadow(0 0 12px #4ADE80); } .jg-cup.bad .cup { filter: drop-shadow(0 0 12px #F87171); }/* Juegos dibujados en canvas (Aleteo, Puente, Diana giratoria, Canasta, Minigolf) */
.jg-field.jg-cv { touch-action: none; padding: 0; border-radius: 22px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.08); }
.jg-cv canvas { display: block; width: 100%; height: 100%; border-radius: 22px; }

/* ===================================================================== Juegos v129: cabecera, filtros, sala de espera, sonido/racha/confeti y juegos nuevos */
.jg-banner { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(125deg, #7C3AED 0%, #C026D3 48%, #F43F5E 100%); box-shadow: 0 14px 34px -16px rgba(124,58,237,.85), inset 0 1px 0 rgba(255,255,255,.3); }
.jg-banner-bg { position: absolute; inset: 0; pointer-events: none; }
.jg-banner-bg span { position: absolute; font-size: 42px; line-height: 1; opacity: .26; left: calc(var(--i) * 12.5% + 2%); animation: jgFloat 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
.jg-banner-bg span:nth-child(odd) { top: 6%; } .jg-banner-bg span:nth-child(even) { top: 54%; }
@keyframes jgFloat { 50% { transform: translateY(-10px) rotate(8deg); } }
.jg-banner-txt { position: relative; max-width: 600px; }
.jg-banner-txt > b { display: block; font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.jg-banner-txt p { margin: 6px 0 14px; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.jg-banner-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.jg-banner-stats span { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.24); border-radius: 99px; padding: 4px 12px; font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jg-banner-stats b { font-family: var(--display); font-size: 17px; font-weight: 500; color: #FDE68A; }
.jg-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.jg-chips::-webkit-scrollbar { display: none; }
.jg-chips button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.jg-chips button small { font-size: 11px; opacity: .7; }
.jg-chips button.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.jg-tiles .jg-tile { animation: jgIn .3s both; animation-delay: var(--d, 0ms); }
.jg-tile-secs { position: absolute; top: 6px; right: 8px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.26); border-radius: 99px; padding: 1px 6px; }
.jg-lobby { display: flex; flex-wrap: wrap; gap: 8px; }
.jg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--soft); font-weight: 600; font-size: 14px; animation: jgIn .3s both; animation-delay: var(--d, 0ms); }
.jg-chip i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.jg-chip.me { box-shadow: inset 0 0 0 2px var(--acc); }
.jg-rank li { position: relative; overflow: hidden; }
.jg-rank li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: linear-gradient(90deg, color-mix(in srgb, var(--pri) 12%, transparent), color-mix(in srgb, var(--acc) 26%, transparent)); transition: width .6s; pointer-events: none; }
.jg-rank li > * { position: relative; }
/* Pantalla de juego: sin desplazamiento ni zoom, sonido, racha y confeti */
.jg-play { touch-action: none; overscroll-behavior: none; -webkit-touch-callout: none; }
.jg-top-r { display: inline-flex; align-items: center; gap: 8px; }
.jg-snd { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.jg-combo { font-family: var(--display); font-size: 16px; color: #FDE68A; white-space: nowrap; }
.jg-combo.bump { animation: jgBump .3s; }
.jg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jg-confetti i { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; animation: jgConf 2s ease-in forwards; }
@keyframes jgConf { to { transform: translate(var(--dx, 0), 106vh) rotate(720deg); } }
/* Juegos abiertos (v138): cada juego con quién va primero debajo */
.jg-picks { max-height: 260px; }
.jg-open-item { display: grid; gap: 4px; min-width: 0; }
.jg-open-lead { text-align: center; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tiempo para contestar cada pregunta (v138) */
.jg-qtime { width: min(88vw, 440px); height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.jg-qtime i { display: block; height: 100%; width: 100%; border-radius: 99px; background: #fff; }
.jg-qtime.low i { background: #F87171; }
/* Juegos nuevos */
.jg-light { display: flex; gap: 10px; padding: 10px 14px; border-radius: 99px; background: #111827; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.jg-light i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); }
.jg-light.red i:nth-child(1) { background: #EF4444; box-shadow: 0 0 22px #EF4444; }
.jg-light.amber i:nth-child(2) { background: #FACC15; box-shadow: 0 0 22px #FACC15; }
.jg-light.green i:nth-child(3) { background: #22C55E; box-shadow: 0 0 22px #22C55E; }
.jg-race { position: relative; width: min(88vw, 440px); height: 58px; border-radius: 14px; border-bottom: 4px solid rgba(255,255,255,.3);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 22px, rgba(255,255,255,.04) 22px 44px); }
.jg-runner { position: absolute; left: 0; bottom: 2px; font-size: 40px; line-height: 1; transform: scaleX(-1); transition: left .08s linear; }
.jg-runner.run { animation: jgRun .22s infinite alternate; }
@keyframes jgRun { to { transform: scaleX(-1) translateY(-5px); } }
.jg-flag { position: absolute; right: 2px; bottom: 4px; font-size: 32px; line-height: 1; }
.jg-clockface { position: relative; width: 190px; height: 190px; border-radius: 50%; background: #fff; border: 8px solid #2B0B3B; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.jg-clockface b { position: absolute; font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1; color: #2B0B3B; }
.jg-clockface .n12 { top: 6px; left: 50%; transform: translateX(-50%); } .jg-clockface .n6 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.jg-clockface .n3 { right: 10px; top: 50%; transform: translateY(-50%); } .jg-clockface .n9 { left: 10px; top: 50%; transform: translateY(-50%); }
.jg-clockface i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 4px; width: 6px; margin-left: -3px; background: #2B0B3B; }
.jg-clockface i.hh { height: 46px; } .jg-clockface i.mm { height: 70px; width: 4px; margin-left: -2px; background: #C32720; }
.jg-clockface u { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #2B0B3B; }
.jg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(92vw, 440px); }
.jg-duo.in > * { animation: jgIn .2s; }
.jg-dotbox.sm { width: 100%; height: auto; aspect-ratio: 1; border: 0; cursor: pointer; padding: 0; }
.jg-dotbox.sm:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.jg-dotbox.sm i { width: 13px; height: 13px; margin: -6.5px; }
.jg-emo.hid { background: rgba(255,255,255,.18); color: rgba(255,255,255,.6); box-shadow: none; }
.jg-emo:disabled { cursor: default; color: inherit; }
@media (max-width: 640px) { .jg-banner { padding: 18px 16px; } .jg-banner-txt > b { font-size: 21px; } .jg-banner-bg span { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .jg-banner-bg span, .jg-runner.run { animation: none; } .jg-confetti { display: none; } }

/* v150: tipo de evento «Voluntario» (verde azulado), asistencia de directores y resumen de Uniformidad. */
:root { --vol-bg: #DDF3F1; --vol: #0B6B65; }
.tag.vol, .ev.voluntario { background: var(--vol-bg); color: var(--vol); }
.ev-mitem.voluntario { border-left-color: #14B8A6; }
.dir-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); }
.dir-line b { color: var(--ink); }
.dir-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 13px; color: var(--ink); }
.dir-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
/* v203: con foto, la miniatura recortada al círculo. */
.dir-chip i.has-photo { overflow: hidden; padding: 0; background: var(--soft); }
.dir-chip i.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cof-top.uni-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .cof-top.uni-top { grid-template-columns: 1fr; } }

/* v158: «La Rule» (ruleta en vivo de Juegos). */
.rule-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rule-saldo { display: flex; align-items: baseline; gap: 8px; }
.rule-saldo b { font-family: var(--display); font-size: 40px; color: var(--oro); line-height: 1; }
.rule-phase { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rule-bar { flex: 1; min-width: 160px; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.rule-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--oro), #E8C766); transition: width .25s linear; }
.rule-clock { font-family: var(--display); font-size: 28px; color: var(--oro); min-width: 56px; }
.rule-main { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .rule-main { grid-template-columns: 1fr; } }
.rule-wheel { width: 280px; height: 280px; max-width: 100%; margin: 0 auto; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.rule-spin { transform-origin: 0 0; }
.rule-board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.rule-cell { border-radius: 8px; padding: 9px 0; text-align: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; border: 2px solid transparent; font-family: inherit; }
.rule-cell.r { background: #B3261E; } .rule-cell.n { background: #1C1424; } .rule-cell.z { background: #1E7A46; grid-column: span 12; }
.rule-cell.sel, .rule-o.sel { border-color: var(--oro); box-shadow: 0 0 0 2px var(--oro) inset; color: var(--oro); }
.rule-cell.sel { color: #fff; }
.rule-outs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.rule-o { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 10px; padding: 9px 4px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rule-o small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.rule-board.off, .rule-outs.off { opacity: .55; pointer-events: none; }
@media (max-width: 560px) { .rule-board { grid-template-columns: repeat(6, 1fr); } .rule-cell.z { grid-column: span 6; } .rule-outs { grid-template-columns: repeat(3, 1fr); } }
.rule-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rule-chip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; border: 4px dashed rgba(255,255,255,.75); cursor: pointer; font-family: inherit; transition: transform .15s; }
.rule-chip.c5 { background: #7A3A99; } .rule-chip.c10 { background: #2F6FB3; } .rule-chip.c25 { background: #1E7A46; } .rule-chip.c50 { background: #B3261E; } .rule-chip.c100 { background: #1C1424; outline: 2px solid var(--oro); }
.rule-chip.sel { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--oro); }
.rule-result { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rule-last { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rule-ball { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0; }
.rule-ball.big { width: 56px; height: 56px; font-size: 24px; }
.rule-rk { width: 100%; border-collapse: collapse; } .rule-rk td { padding: 9px 6px; border-bottom: 1px solid var(--line); } .rule-rk td:last-child { text-align: right; font-weight: 800; color: var(--oro); white-space: nowrap; }
.rule-rk tr.me td { color: var(--oro); font-weight: 700; }
.rule-team { padding: 10px 0; border-bottom: 1px solid var(--line); } .rule-team.me b { color: var(--oro); }
.rule-team-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .rule-team .rule-bar { min-width: 0; margin-bottom: 4px; }

/* v160: La Rule se juega tocando la casilla con la ficha elegida; tablero de casino (0 + 3 filas de 12) y fichas apostadas
   encima de cada casilla. En el móvil, ruleta, fichas y tablero caben en la pantalla. */
.rule-table .rule-phase { margin: 10px 0 14px; }
.rule-board { grid-template-columns: 1.15fr repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, 40px); gap: 3px; }
.rule-cell { position: relative; padding: 0; display: grid; place-items: center; min-width: 0; }
.rule-cell.z { grid-column: auto; }
.rule-o { position: relative; padding: 8px 2px; }
.rule-stake { position: absolute; top: -7px; right: -5px; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff; border: 2px dashed rgba(255,255,255,.85); box-shadow: 0 3px 8px rgba(0,0,0,.45); z-index: 2; pointer-events: none; animation: rowIn .25s ease both; }
.rule-chip.c10, .rule-stake.c10 { background: #2F6FB3; } .rule-chip.c50, .rule-stake.c50 { background: #1E7A46; } .rule-chip.c100, .rule-stake.c100 { background: #B3261E; }
.rule-chip.c500, .rule-stake.c500 { background: #7A3A99; } .rule-chip.c1000, .rule-stake.c1000 { background: #1C1424; outline: 2px solid var(--oro); }
.rule-chip:disabled { opacity: .35; cursor: default; transform: none; }
.rule-chipbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rule-lbl { font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--oro); }
.rule-mybets { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.rule-main { grid-template-columns: 260px 1fr; }
.rule-wheel { width: 250px; height: 250px; }
@media (max-width: 760px) {
  .rule-intro { display: none; }
  .rule-main { grid-template-columns: 1fr; gap: 10px; }
  .rule-wheel { width: 190px; height: 190px; }
  .rule-saldo b { font-size: 30px; }
  .rule-clock { font-size: 22px; }
  .rule-board { grid-template-columns: 1.1fr repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, 34px); gap: 2px; }
  .rule-cell { font-size: 11.5px; border-radius: 6px; border-width: 1px; }
  .rule-cell.z { grid-column: auto; }
  .rule-outs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .rule-o { font-size: 11px; padding: 6px 1px; border-radius: 8px; }
  .rule-o small { font-size: 10px; }
  .rule-chip { width: 44px; height: 44px; font-size: 12px; border-width: 3px; }
  .rule-stake { min-width: 20px; height: 20px; font-size: 9.5px; top: -6px; right: -4px; }
  .rule-table { padding: 14px; }
  .rule-head { flex-wrap: nowrap; align-items: flex-start; }
  .rule-title h2 { font-size: 12.5px; letter-spacing: 1.5px; }
  .rule-title .note { font-size: 12px; margin-top: 2px; }
  .rule-saldo { flex-direction: column; align-items: flex-end; gap: 0; flex-shrink: 0; }
  .rule-table .rule-phase { flex-wrap: nowrap; gap: 8px; margin: 8px 0 10px; }
  .rule-phase-tag { font-size: 12px !important; padding: 4px 10px !important; flex-shrink: 0; }
  .rule-table .rule-bar { min-width: 40px; }
  .rule-phase .note { display: none; }
  .rule-wheel { width: 170px; height: 170px; }
}

/* v161: La Rule: se ve claramente si ganas (verde) o pierdes (rojo): aviso grande, mesa iluminada y destello. */
.rule-result { display: flex; flex-wrap: nowrap; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; margin: 0 0 12px; border: 2px solid var(--line); background: var(--soft); }
.rule-result p { margin: 2px 0 0; font-size: 13px; opacity: .92; }
.rule-result-big { display: block; font-family: var(--display); font-size: 24px; letter-spacing: 1px; line-height: 1.1; }
.rule-result.win { background: linear-gradient(135deg, #15803D, #22C55E); border-color: #86EFAC; color: #fff; animation: ruleWin .6s ease; }
.rule-result.lose { background: linear-gradient(135deg, #991B1B, #DC2626); border-color: #FCA5A5; color: #fff; animation: ruleLose .5s ease; }
.rule-table.win { box-shadow: 0 0 0 3px #22C55E, 0 0 50px rgba(34, 197, 94, .55); transition: box-shadow .3s; }
.rule-table.lose { box-shadow: 0 0 0 3px #DC2626, 0 0 50px rgba(220, 38, 38, .55); transition: box-shadow .3s; }
.rule-flash { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0; }
.rule-flash.win { background: radial-gradient(circle at 50% 40%, rgba(34, 197, 94, .6), rgba(21, 128, 61, .25) 70%); animation: ruleFlash 2.4s ease forwards; }
.rule-flash.lose { background: radial-gradient(circle at 50% 40%, rgba(220, 38, 38, .6), rgba(127, 29, 29, .25) 70%); animation: ruleFlash 2.4s ease forwards; }
@keyframes ruleFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ruleWin { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes ruleLose { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@media (max-width: 760px) { .rule-result-big { font-size: 20px; } }

/* v164: Juegos con una sola vida: se ocultan los corazones propios de cada juego y se muestra «❤️ 1» arriba. */
.jg-play.one-life .jg-lives { display: none; }
.jg-life { font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.14); white-space: nowrap; }
/* v165: pase de lista finalizado por voz y justificaciones de faltas */
.roll-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.roll-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; }
.just-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.just-row:last-child { border-bottom: 0; }
.just-txt { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.just-txt p { margin: 4px 0 0; }
.just-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.btn.btn-ok { background: #2E9E5B; border-color: #2E9E5B; color: #fff; }
@media (max-width: 600px) { .just-row { flex-direction: column; } .just-btns { justify-content: flex-start; } }

/* v167: asientos reservados para externos (Gestión › Autobuses) */
.seat.reserved { background: #FFF1D6; border: 2px dashed #E0A93B; color: #8A5A00; }
.res-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: 0; }
.res-txt { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.res-txt p { margin: 4px 0 0; }
@media (max-width: 600px) { .res-row { flex-direction: column; } }

/* v192: Inventario (unidades libres y asignadas), páginas en Documentación y «Solicita baja» en Cofrades */
.stock-sum { display: flex; flex-wrap: wrap; gap: 10px; }
.stock-big { flex: 1 1 110px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--line) 35%, transparent); }
.stock-big .l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stock-big .n { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.stock-big .n.ok { color: var(--ok); } .stock-big .n.info { color: var(--info); } .stock-big .n.muted { color: var(--muted); }
.stock-bar { display: flex; width: 110px; height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--line) 60%, transparent); }
.stock-bar .a { background: var(--info); } .stock-bar .f { background: var(--ok); } .stock-bar .o { background: #9AA3AE; }
.pager { align-items: center; margin-top: 10px; gap: 8px; }
.cof-bar .seg.grey, .cof-chip.grey .dot { background: #9AA3AE; }

/* v194: pestañas solo con texto (Documentación y las pestañas de cada apartado de Inventario y uniformidad) */
.txt-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.txt-tab { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.2; padding: 10px 18px; min-height: 40px;
  border: 0; border-radius: 999px; background: var(--cm-bg, #3A1450); color: var(--cm-text, #fff); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .2s; }
.txt-tab:hover { background: color-mix(in srgb, var(--cm-bg, #3A1450) 85%, var(--cm-icon, #E6C97A)); }
.txt-tab.on { box-shadow: inset 0 0 0 2px var(--cm-icon, #E6C97A); color: var(--cm-icon, #E6C97A); }
.txt-tabs.sub .txt-tab { font-size: 12px; padding: 8px 14px; min-height: 36px; }
@media (max-width: 600px) { .txt-tabs { gap: 6px; } .txt-tab { padding: 9px 13px; font-size: 12px; } }
/* ---------- v198: ficha del componente (menú «Configuración»), baja y Monedero ---------- */
.cfg-menu { display: flex; flex-direction: column; gap: 14px; min-width: min(320px, 80vw); }
.cfg-group h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cfg-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; color: var(--ink); background: var(--soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px; margin-bottom: 6px; cursor: pointer; min-height: 44px; }
.cfg-item:hover { border-color: var(--acc); }
.cfg-item.danger { color: var(--bad); }
.baja-block { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.baja-block h3 { margin: 0 0 6px; font-size: 14px; }
.baja-block ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.acc-switch.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-switch.one { grid-template-columns: minmax(0, 1fr); }
.acc-switch button.acc-x { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .25); }
.acc-switch button.acc-x .l svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; }
.acc-switch.one button.acc-x { box-shadow: none; }
/* ---------- v199: peticiones de material y sus citas ---------- */
.ev.cita { background: #FBE7F1; color: #A3195B; }
.ev-mitem.cita { border-left-color: #C2337A; }
.cal-legend .lg-sw.ev.cita { background: #FBE7F1; color: #A3195B; }
.mr-rows { display: flex; flex-direction: column; }
.mr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mr-row > span:first-child { color: var(--muted); flex-shrink: 0; }
.mr-row > b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.mr-mine { margin-top: 14px; }
.mr-mine h3 { margin: 0 0 8px; font-size: 14px; }
.mr-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; }
.mr-item small { color: var(--muted); }
.mr-item:hover { border-color: var(--acc); }
/* ---------- v204: insignia por asistir (logros de evento) ---------- */
.bonus-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--soft); }
.bonus-fields { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bonus-inputs { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.bonus-prev { flex: none; display: inline-flex; }
.bonus-prev svg { display: block; }
.bonus-card { display: flex; gap: 16px; align-items: center; }
@media (max-width: 520px) { .bonus-card { flex-direction: column; text-align: center; } }
/* ---------- v221: plano del teatro (Entradas) ---------- */
dialog.modal.tk-wide { width: min(1120px, calc(100vw - 24px)); }
.tk-map { overflow-x: auto; padding: 14px; border-radius: 14px; background: rgba(31, 5, 44, .08); border: 1px solid var(--line); }
.tk-theatre { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: max-content; margin: 0 auto; }
.tk-floor-name { font-family: var(--display); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tk-floor { display: grid; gap: 3px; align-items: center; }
.tk-sec { font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; border: 0; background: none; font-family: inherit; }
button.tk-sec, button.tk-fila { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tk-fila { font-size: 10px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; border: 0; background: none; padding: 0; font-family: inherit; }
.tk-aisle { height: 10px; }
.tk-seat { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px 5px 8px 8px; background: #CFC3D8; color: #2B0B3B; font: 700 8.5px/22px "Open Sans", sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-block; }
.tk-seat.s { border-radius: 50%; }
.tk-seat.band { background: #ECE4F1; box-shadow: inset 0 0 0 1.5px #9A8AA3; }
.tk-seat.off { background: #4A3A55; color: #8E7F99; cursor: not-allowed; opacity: .55; }
.tk-seat.mine { background: #E6C97A; color: #1F052C; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #E6C97A; }
.tk-seat.taken { background: #C32720; color: #fff; }
.tk-seat.taken.paid { background: #1F8A55; color: #fff; }
/* v233: butaca en reserva (no se asigna): azul con rayas, distinta de las demás. */
.tk-seat.held { background: repeating-linear-gradient(135deg, #2F6FD1 0 4px, #4F8BE6 4px 8px); color: #fff; box-shadow: inset 0 0 0 1.5px #1B4FA0; }
.tk-seat:focus-visible { outline: 2px solid #E6C97A; outline-offset: 2px; }
.tk-stage { width: min(70%, 520px); text-align: center; padding: 8px; border-radius: 0 0 40px 40px; background: #2B0B3B; color: #E6C97A; font-family: var(--display); letter-spacing: 6px; font-size: 13px; text-transform: uppercase; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.tk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tk-legend .tk-seat { width: 14px; height: 14px; cursor: default; }
.tk-reqs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tk-req { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.tk-req.on { border-color: #E6C97A; box-shadow: 0 0 0 1px #E6C97A; }
.tk-src { font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.45; white-space: pre; }
/* v223: ventana «Butacas» en dos pasos: zonas de la banda */
.tk-zone-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
@media (max-width: 640px) { .tk-zone-form { grid-template-columns: 1fr 1fr; } .tk-zone-form .field:first-child { grid-column: 1 / -1; } }
.tk-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-zone { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; }
.tk-zone button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }