/* ===============================================================
   SELENE-7 · MEJORES TIEMPOS (../comun/tiempos.js)
   La ventana que se abre desde el reloj de la pantalla de inicio
   y desde el final de la misión (Reto 7).
   =============================================================== */
/* Un anillo con un pedazo por reto y la tabla con los mismos datos.
   Un color por reto, siempre el mismo (paleta categórica comprobada sobre el fondo de las ventanas, #040c15,
   también para daltonismo y con el 7 junto al 1, que se tocan al cerrar el anillo). Los textos, nunca en esos colores */
.nave-caja-tiempos { max-width: 720px; }
.tiempos { --superficie: #040c15; --reto-1: #3987e5; --reto-2: #d95926; --reto-3: #199e70; --reto-4: #c98500; --reto-5: #d55181; --reto-6: #008300; --reto-7: #e66767; }
.nave-cab svg.reloj { width: 17px; height: 17px; stroke-width: 1.5; stroke-linecap: round; }
.tiempos-modos { display: inline-flex; margin: 0 0 16px; border: 1px solid var(--linea-2); border-radius: 2px; }
.tiempos-modos.oculto { display: none; }
.tiempos-modos button { padding: 8px 14px 7px; background: none; border: 0; color: var(--texto-2); font: 600 11px/1 var(--f-mono); letter-spacing: .16em; cursor: pointer; }
.tiempos-modos button + button { border-left: 1px solid var(--linea-2); }
.tiempos-modos button:hover, .tiempos-modos button:focus-visible { color: var(--texto); outline: none; background: rgba(98, 220, 255, .06); }
.tiempos-modos button[aria-pressed="true"] { background: rgba(98, 220, 255, .14); color: var(--texto); }
.tiempos-modos button[data-modo="master"][aria-pressed="true"] { background: rgba(255, 210, 87, .14); color: #ffe39a; }
.tiempos-cuerpo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 30px; }
.tarta { position: relative; flex: none; width: 244px; height: 244px; margin: 0; }
.tarta svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pedazo { stroke: var(--superficie); stroke-width: 2; stroke-linejoin: round; outline: none; transition: opacity .15s; }
.tarta.con-activo .pedazo:not(.activo) { opacity: .28; }
.tarta-vacia { fill: none; stroke: rgba(126, 206, 255, .1); stroke-width: 34; }
.tarta .num { font: 500 10px/1 var(--f-mono); fill: var(--texto-2); text-anchor: middle; dominant-baseline: central; transition: opacity .15s; }
.tarta.con-activo .num:not(.activo) { opacity: .35; }
.tarta-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; pointer-events: none; text-align: center; }
.tarta-centro small { font: 500 10px/1 var(--f-mono); letter-spacing: .18em; color: var(--texto-2); }
.tarta-centro b { font: 600 32px/1 var(--f-ui); letter-spacing: .02em; color: var(--texto); }
.tabla-tiempos { flex: 1 1 320px; border-collapse: collapse; }
.tabla-tiempos th, .tabla-tiempos td { padding: 7px 8px; text-align: left; }
.tabla-tiempos thead th { font: 600 10px/1 var(--f-mono); letter-spacing: .18em; color: var(--texto-2); border-bottom: 1px solid var(--linea); }
.tabla-tiempos thead th + th, .tabla-tiempos td { text-align: right; }
.tabla-tiempos tbody th { font: 500 15px/1.2 var(--f-ui); color: var(--texto); }
.tabla-tiempos td { font: 500 13px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--texto); white-space: nowrap; }
.tabla-tiempos td.ultimo { color: var(--texto-2); }
.tabla-tiempos .falta { color: var(--tenue); }
.tabla-tiempos tbody tr { transition: background .15s; }
.tabla-tiempos tbody tr.activo { background: rgba(98, 220, 255, .08); }
.tabla-tiempos .muestra { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 2px; background: var(--c); }
.tabla-tiempos .muestra.vacia { background: none; box-shadow: inset 0 0 0 1px var(--tenue); }
.tabla-tiempos .n { margin-right: 8px; font: 500 11px/1 var(--f-mono); color: var(--texto-2); }
.tabla-tiempos tfoot th, .tabla-tiempos tfoot td { border-top: 1px solid var(--linea-2); }
.tabla-tiempos tfoot th { font: 600 10px/1 var(--f-mono); letter-spacing: .18em; color: var(--texto-2); }
.tabla-tiempos tfoot td { font-weight: 600; }
/* Los Tangs de la misión, como en el final del Reto 7: una huella por Tang encontrado y la 7.ª, la secreta (el Tang especial) */
.tiempos-tangs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 12px 16px; border: 1px dashed rgba(255, 201, 77, .45); }
.tiempos-tangs-txt small { display: block; font: 600 10px/1 var(--f-mono); letter-spacing: .18em; color: var(--ambar, #ffc94d); }
.tiempos-tangs-txt b { display: block; margin-top: 8px; font: 500 17px/1.2 var(--f-ui); letter-spacing: .02em; color: #ffe7bd; }
.tiempos-tangs .huellas { display: flex; gap: 9px; margin-left: auto; }
.tiempos-tangs .huella { width: 28px; height: 28px; color: rgba(126, 206, 255, .16); transform: rotate(-12deg); }
.tiempos-tangs .huella:nth-child(even) { transform: rotate(10deg) translateY(4px); }
.tiempos-tangs .huella.on { color: #ff9a3d; filter: drop-shadow(0 0 7px rgba(255, 154, 61, .6)); }
.tiempos-tangs .huella.especial { width: 31px; height: 31px; margin-left: 6px; color: #ffd257; transform: rotate(-12deg); filter: drop-shadow(0 0 5px rgba(255, 210, 87, .8)); }
.tiempos-tangs .huella.especial:not(.on) g { fill: none; stroke: currentColor; stroke-width: 2; }   /* sin encontrar: solo el borde dorado */
.tiempos-tangs .huella.especial.on { color: #ffe27a; filter: drop-shadow(0 0 4px #fff2b0) drop-shadow(0 0 10px rgba(255, 214, 90, 1)) drop-shadow(0 0 20px rgba(255, 190, 40, .8)); }   /* encontrada: rellena y más brillante */
.tiempos-nota { margin: 16px 0 0; font: 400 15px/1.45 var(--f-ui); color: var(--texto-2); }
.tiempos-botones { margin-top: 18px; }
