/* Versión para jugar en la computadora. Usa las variables y los botones de style.css. */
body { min-height: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 18px 28px 6px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; }
.top .link-btn { padding: 8px 0; font-size: 14px; }

.panel { max-width: 640px; margin: 0 auto; padding: 24px 28px 56px; display: flex; flex-direction: column; gap: 20px; }
.panel .lead { max-width: none; }
.panel .btn { max-width: 420px; }
.field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.field legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg button { min-width: 56px; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--azul); background: transparent; color: var(--azul); font-size: 18px; font-weight: 800; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--azul); color: var(--crema); }
.seg button:focus-visible, .slot:focus-visible, .round:focus-visible, .names input:focus-visible { outline: 3px solid #1c7ed6; outline-offset: 2px; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.names label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; }
.names .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.names input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--azul); background: #fff8ec; color: var(--azul); font: inherit; font-size: 16px; font-weight: 700; }
.panel .muted { max-width: none; }

/* Marcador */
.game { max-width: 1180px; margin: 0 auto; padding: 8px 28px 56px; display: flex; flex-direction: column; gap: 22px; }
.board { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 2px solid rgba(30, 42, 74, 0.25); font-size: 15px; font-weight: 800; }
.board li .dot { width: 14px; height: 14px; border-radius: 50%; }
.board li .n { font-weight: 900; opacity: 0.75; }
.board li .pts { font-weight: 700; font-size: 13px; padding-left: 10px; border-left: 2px solid currentColor; opacity: 0.85; }
.board li.active { background: var(--azul); border-color: var(--azul); color: var(--crema); }
.board li.active .n { opacity: 1; }

/* Turno */
.turn { display: flex; flex-direction: column; gap: 16px; }
.turn-head .eyebrow { margin-bottom: 4px; }
.turn-head .title { font-size: 40px; }
.player { display: flex; align-items: center; gap: 28px; }
.player-side { flex: 1; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.player-row { display: flex; align-items: center; gap: 18px; }
.round { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--azul); color: var(--crema); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(30, 42, 74, 0.28); }
.round:active { transform: scale(0.95); }
.progress-block { flex: 1; }
.progress { height: 10px; border-radius: 999px; background: rgba(30, 42, 74, 0.18); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--azul); border-radius: 999px; transition: width 0.25s linear; }
.times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 800; }
.muted.left { text-align: left; }
.instr { margin: 0; font-size: 17px; font-weight: 700; }

/* Línea del tiempo */
.timeline-wrap { display: flex; flex-direction: column; gap: 8px; }
.axis-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: 0.2em; opacity: 0.7; }
.timeline { display: flex; align-items: stretch; gap: 0; padding: 12px 4px 18px; overflow-x: auto; min-height: 200px; }
.tcard { flex: 0 0 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px 14px 12px; border-radius: 16px; background: var(--azul); color: var(--crema); text-align: center; position: relative; }
.tcard .y { font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.tcard .t { font-size: 14px; font-weight: 800; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tcard .a { font-size: 12px; font-weight: 600; opacity: 0.85; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tcard.nueva { background: #12a150; animation: aparece 0.5s ease; }
@keyframes aparece { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slot { flex: 0 0 56px; margin: 0 6px; border-radius: 16px; border: 3px dashed rgba(30, 42, 74, 0.4); background: transparent; color: var(--azul); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; transition: background 0.12s ease, border-color 0.12s ease; }
.slot:hover { background: rgba(30, 42, 74, 0.1); border-color: var(--azul); }
.slot.sel { flex-basis: 120px; background: #1c7ed6; border-style: solid; border-color: #1c7ed6; color: #fff; font-size: 15px; letter-spacing: 0.04em; }
.slot:disabled { cursor: default; opacity: 0.35; pointer-events: none; }
.slot.sel:disabled { opacity: 1; background: rgba(28, 126, 214, 0.5); border-color: transparent; }

.actions { display: flex; }
.actions .btn { max-width: 420px; }

/* Resultado */
.reveal { display: flex; gap: 32px; align-items: stretch; padding: 24px; border-radius: 22px; background: rgba(30, 42, 74, 0.08); }
.reveal-card { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 20px; border-radius: 18px; background: var(--azul); color: var(--crema); text-align: center; }
.reveal-year { font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.reveal-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.reveal-artist { font-size: 15px; font-weight: 600; opacity: 0.9; }
.reveal-meta { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; opacity: 0.7; }
.reveal-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.reveal-text .lead.small { margin: 8px 0 16px; max-width: none; text-align: left; }
.reveal-text .title { font-size: 34px; }
.reveal-text .col { max-width: 420px; }
.reveal.ok .reveal-text .title { color: #0c7a3d; }
.reveal.mal .reveal-text .title { color: var(--alerta); }

/* Fin de la partida */
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ranking li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: rgba(30, 42, 74, 0.08); font-size: 18px; font-weight: 800; }
.ranking li:first-child { background: var(--azul); color: var(--crema); }
.ranking .pos { font-weight: 900; opacity: 0.7; width: 28px; }
.ranking .name { flex: 1; }
.ranking .dot { width: 14px; height: 14px; border-radius: 50%; }

@media (max-width: 760px) {
  .game, .panel, .top { padding-left: 16px; padding-right: 16px; }
  .player { flex-direction: column; align-items: stretch; text-align: center; }
  .player .disc { align-self: center; }
  .reveal { flex-direction: column; }
  .reveal-card { flex-basis: auto; }
  .turn-head .title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .tcard.nueva { animation: none; } .progress .bar { transition: none; } }

/* Aciertos de nombre y artista (1/6 de punto cada uno) */
.guess { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.guess-q { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.guess-row { display: flex; gap: 12px; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 14px; border: 2px solid var(--azul); background: transparent; color: var(--azul); font-size: 17px; font-weight: 800; cursor: pointer; }
.toggle .chk { width: 24px; height: 24px; border-radius: 7px; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; }
.toggle[aria-pressed="true"] { background: #12a150; border-color: #12a150; color: #fff; }
.toggle[aria-pressed="true"] .chk::after { content: ""; width: 12px; height: 7px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.toggle:focus-visible { outline: 3px solid #1c7ed6; outline-offset: 2px; }
.guess-total { font-size: 15px; font-weight: 700; min-height: 22px; }
.ranking .sub { font-size: 15px; font-weight: 700; opacity: 0.8; margin-left: 12px; }
