/* Selector de fecha y hora (public/js/fecha-hora.js) y duplas (public/js/duplas-ui.js). Usa los
   colores del tema (claro y oscuro salen solos de las variables de app.css). */

/* --- Selector de fecha y hora --- */
.fh { display: grid; gap: 12px; min-width: 0; max-width: 560px; }
.fh-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-cal { background: var(--surface-2); border-radius: 16px; padding: 10px 8px 6px; }
.fh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 6px; }
.fh-month { font: 700 1.1rem var(--display); text-align: center; flex: 1; }
.fh-nav { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 1.5rem/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.fh-nav:disabled { opacity: .35; cursor: default; }
.fh-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.fh-grid th { font: 600 .72rem var(--sans); color: var(--ink-3); text-transform: lowercase; padding: 2px 0 4px; text-align: center; }
.fh-grid td { padding: 0; text-align: center; }
.fh-day { appearance: none; border: 0; width: 100%; aspect-ratio: 1; max-height: 46px; min-height: 38px; border-radius: 12px; background: transparent; color: var(--ink);
  font: 600 .95rem var(--sans); cursor: pointer; position: relative; display: grid; place-items: center; }
.fh-day:hover:not(.is-off) { background: var(--surface); }
.fh-day.is-today { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-ink); }
.fh-day.is-today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.fh-day.is-on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.fh-day.is-off { color: var(--ink-3); opacity: .45; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.fh-day:focus-visible, .fh-slot:focus-visible, .fh-band:focus-visible, .fh-nav:focus-visible, .fh-field:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.fh-words { margin: 0; font: 700 1.15rem var(--display); }
.fh-hint { margin: 0; }
.fh-time { display: grid; gap: 10px; }
.fh-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fh-band { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 14px; padding: 8px 4px; cursor: pointer; display: grid; gap: 1px; font: 600 .9rem var(--sans); }
.fh-band-r { font-size: .7rem; font-weight: 500; color: var(--ink-3); }
.fh-band[aria-selected='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.fh-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.fh-slot { appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; min-height: 48px; font: 700 1rem var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.fh-slot.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fh-slot:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.fh-other { gap: 8px; }
.fh-other-in { max-width: 160px; }
.fh-sum { background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 1rem; }
.fh-sum b { font-weight: 700; }
.fh-field { appearance: none; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; text-align: left; }
.fh-field-txt { overflow-wrap: anywhere; }
.fh-sheet .fh { margin-top: 4px; }

/* --- Duplas --- */
.dupla-crest { font-size: 1.3rem; }
.dupla-crest.big { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 18px; }
.dupla-inputs .row { gap: 10px; }
.dupla-more summary { cursor: pointer; font-size: .875rem; color: var(--ink-2); padding: 4px 0; }
.dupla-more .chips { margin-top: 8px; flex-wrap: wrap; }
.dupla-emoji { font-size: 1.15rem; padding: 4px 9px; min-width: 44px; min-height: 40px; }
.dupla-colors { display: flex; gap: 8px; }
.dupla-color { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 30%); }
.dupla-color[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.dupla-color:focus-visible, .dupla-emoji:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.dupla-name { font: 800 1.15rem var(--display); color: var(--ink); overflow-wrap: anywhere; }
.side.win .dupla-name { color: var(--accent-ink); }
.dupla-people { text-align: center; overflow-wrap: anywhere; }
.dupla-card.dupla-ask { box-shadow: inset 0 0 0 2px var(--accent); }
.dupla-row:last-child { border-bottom: 0; }
.dupla-mine .avatar.sm { width: 24px; height: 24px; font-size: .65rem; }
.dupla-title { font: 800 1.3rem/1.1 var(--display); overflow-wrap: anywhere; }
.dupla-who { color: inherit; text-decoration: none; }
.pairs-dupla { color: var(--ink); text-transform: none; letter-spacing: 0; font: 800 1rem var(--display); display: grid; gap: 2px; border-left: 4px solid var(--c, var(--accent)); padding-left: 8px; }
.invite-duplas { margin: 0; font: 700 1.1rem var(--display); color: var(--ink-2); overflow-wrap: anywhere; }
.watch-people { display: block; margin-top: 2px; }
.h2h-duplas { font-weight: 500; }
/* Parejas en el celular: dos fotos y un marcador largo («6-4 3-6 10-7») no caben a 375 px. */
@media (max-width: 480px) {
  .vs .side .avatars:has(> :nth-child(2)) .avatar { width: 44px; height: 44px; font-size: .95rem; }
  .vs .mid .score { white-space: nowrap; font-size: 1.15rem; }
}
