@font-face { font-family: 'Oswald'; src: url('../fonts/oswald-400-normal.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/oswald-700-normal.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --negro: #000;
  --fondo: #0b0b0a;
  --tarjeta: #141310;
  --linea: rgba(245, 197, 66, 0.28);
  --oro: #f5c542;
  --oro-2: #c98f0e;
  --oro-claro: #ffe08a;
  --texto: #eeeae0;
  --texto-2: #a9a497;
  --rojo: #ff8a5c;
  --azul: #7fb2ff;
  --oro-grad: linear-gradient(180deg, #ffe590 0%, #f5c542 38%, #c98f0e 100%);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--negro); color: var(--texto); overflow: hidden; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .btn-oro, .btn-borde { font-family: 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: 0.02em; }

.oculto { display: none !important; }

.pantalla { position: fixed; inset: 0; display: none; flex-direction: column; background: var(--fondo); }
.pantalla.activa { display: flex; }

/* ---------- botones ---------- */
.btn-oro {
  border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 18px; text-transform: uppercase;
  color: #1a1203; background: var(--oro-grad);
  box-shadow: 0 2px 0 #7a5404, 0 6px 18px rgba(245, 197, 66, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.08s, filter 0.2s, opacity 0.2s;
}
.btn-oro:active { transform: translateY(2px); box-shadow: 0 0 0 #7a5404, inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-oro:disabled { filter: grayscale(0.85) brightness(0.55); box-shadow: none; }
.btn-borde {
  border: 1.5px solid var(--oro); border-radius: 12px; padding: 11px 20px; background: rgba(0, 0, 0, 0.35);
  color: var(--oro); font-weight: 700; font-size: 18px; text-transform: uppercase;
}
.btn-borde:active { background: rgba(245, 197, 66, 0.15); }
.btn-texto { background: none; border: 0; color: var(--texto-2); padding: 10px; font-size: 14px; }
.btn-icono {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linea); background: rgba(0, 0, 0, 0.4);
  color: var(--oro); font-size: 24px; line-height: 1; display: grid; place-items: center; flex: none;
}
.grande { width: 100%; padding: 15px; font-size: 21px; }

/* ---------- menú ---------- */
#fondo-menu { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
#fondo-menu.listo { opacity: 1; }
.velo { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.88) 75%), linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.9)); }
.menu-contenido {
  position: relative; margin: auto; width: min(420px, 100%); padding: calc(24px + var(--safe-t)) 24px calc(24px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.logo { width: 100%; max-width: 380px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)); }
.subtitulo {
  margin: 4px 0 30px; font-size: 22px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; text-align: center;
  color: var(--oro-claro); text-shadow: 0 2px 12px #000;
}
.menu-botones { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- cabeceras y listas ---------- */
.cabecera { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 12px; border-bottom: 1px solid var(--linea); background: #000; }
.cabecera h2 { margin: 0; flex: 1; font-size: 24px; text-transform: uppercase; color: var(--oro); }
.escudo { height: 36px; }
.lista { flex: 1; overflow-y: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.obra {
  flex: none; /* que no se aplasten cuando no caben: la lista hace scroll */
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, #151411), #151411 60%);
  border: 1px solid var(--linea); position: relative; overflow: hidden;
}
.obra::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.obra .num { font-family: Oswald, sans-serif; font-size: 30px; font-weight: 700; color: var(--oro); width: 30px; text-align: center; }
.obra .info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.obra .info b { font-family: Oswald, sans-serif; font-size: 19px; font-weight: 700; text-transform: uppercase; }
.obra .info small { color: var(--texto-2); font-size: 13px; }
.obra .est { font-size: 20px; color: #3c3a33; white-space: nowrap; }
.obra .est i { font-style: normal; }
.obra .est i.on { color: var(--oro); text-shadow: 0 0 10px rgba(245, 197, 66, 0.5); }
.obra.cerrada { opacity: 0.45; }
.seccion { margin: 8px 0 2px; font-size: 16px; text-transform: uppercase; color: var(--oro); letter-spacing: 0.08em; }
.rejilla-moldes { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.chip-molde { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; border: 1.5px solid transparent; background: var(--tarjeta); font-size: 12.5px; text-align: center; }
.chip-molde .ph { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #222; }
.chip-molde .ph canvas { display: block; }
.chip-molde.sel, .chip-color.sel { border-color: var(--oro); background: #221d0e; }
.rejilla-colores { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding-bottom: 80px; }
.chip-color { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid transparent; background: var(--tarjeta); font-size: 13px; text-align: left; }
.muestra { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); flex: none; vertical-align: middle; }
.pie-fijo { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + var(--safe-b)); background: linear-gradient(transparent, #000 35%); }

/* ---------- juego ---------- */
.hud { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 12px 8px; background: #000; border-bottom: 1px solid var(--linea); }
.hud-titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hud-titulo b { font-family: Oswald, sans-serif; font-size: 17px; text-transform: uppercase; color: var(--oro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-titulo span { font-size: 12px; color: var(--texto-2); }
#hud-clima { font-size: 12px; color: var(--texto); text-align: right; max-width: 34%; }

#fraguado { padding: 8px 14px 10px; background: #0d0c0a; border-bottom: 1px solid var(--linea); }
.fr-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.fr-cab b { font-family: Oswald, sans-serif; font-size: 18px; letter-spacing: 0.04em; color: var(--azul); }
#fraguado[data-estado='A PUNTO'] .fr-cab b { color: var(--oro); }
#fraguado[data-estado='DURO'] .fr-cab b, #fraguado[data-estado='FRAGUADO'] .fr-cab b { color: var(--rojo); }
.fr-barra { position: relative; display: flex; height: 14px; border-radius: 7px; overflow: visible; }
.fr-barra .z { height: 100%; }
.fr-barra .fresco { width: 38%; background: linear-gradient(90deg, #3a5f8f, #6d8fb8); border-radius: 7px 0 0 7px; }
.fr-barra .punto { width: 34%; background: var(--oro-grad); box-shadow: 0 0 12px rgba(245, 197, 66, 0.5); }
.fr-barra .duro { width: 28%; background: linear-gradient(90deg, #8a6a52, #5b4637); border-radius: 0 7px 7px 0; }
#aguja { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px #000, 0 0 10px #fff; }

#lienzo-wrap { position: relative; flex: 1; min-height: 0; }
#lienzo { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
#toast {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: rgba(0, 0, 0, 0.85); border: 1px solid var(--oro); color: var(--oro-claro); padding: 8px 16px; border-radius: 20px;
  font-family: Oswald, sans-serif; font-size: 16px; line-height: 1.25; text-transform: uppercase; text-align: center; width: max-content; max-width: calc(100% - 28px); transition: all 0.25s;
}
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
#transicion {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.85); opacity: 0; pointer-events: none;
  font-family: Oswald, sans-serif; font-size: 34px; text-transform: uppercase; color: var(--oro); letter-spacing: 0.08em; transition: opacity 0.4s;
}
#transicion.visible { opacity: 1; }
#btn-ver-resultado { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }

.panel { background: #000; border-top: 1px solid var(--linea); padding: 10px 14px calc(12px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; }
.pasos { display: flex; gap: 4px; }
.pasos span { flex: 1; height: 4px; border-radius: 2px; background: #2a2823; }
.pasos span.hecho { background: var(--oro-2); }
.pasos span.actual { background: var(--oro); box-shadow: 0 0 8px var(--oro); }
.panel-fila { display: flex; align-items: center; gap: 12px; }
.panel-txt { flex: 1; }
.panel h2 { margin: 0; font-size: 20px; text-transform: uppercase; color: var(--oro); }
.panel p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: var(--texto); min-height: 38px; }
.panel p b { color: var(--oro-claro); }
.panel p .aviso { color: var(--rojo); }
.barra { position: relative; flex: 1; height: 26px; border-radius: 13px; background: #1d1b17; border: 1px solid #333; overflow: hidden; }
#barra-progreso { height: 100%; width: 0; background: var(--oro-grad); transition: width 0.15s; }
#progreso-txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: Oswald, sans-serif; font-size: 14px; color: #fff; text-shadow: 0 1px 3px #000; }
#btn-siguiente { padding: 10px 18px; font-size: 17px; }
#btn-siguiente.listo { animation: latido 1s infinite; }
@keyframes latido { 50% { transform: scale(1.06); box-shadow: 0 0 24px rgba(245, 197, 66, 0.6); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.tarjeta {
  width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #1b1913, #0e0d0b); border: 1px solid var(--linea); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: entra 0.25s ease-out;
}
@keyframes entra { from { transform: translateY(20px) scale(0.97); opacity: 0; } }
.tarjeta h2 { margin: 0 0 4px; font-size: 26px; text-transform: uppercase; color: var(--oro); }
.tarjeta .sub { margin: 0 0 14px; color: var(--texto-2); }
.tarjeta .pista { color: var(--oro-claro); }
.tarjeta .btn-oro { width: 100%; margin-top: 8px; }
.etiqueta { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro-2); }
.ficha { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); border: 1px solid #2a2721; }
.ficha .mini { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: #222; flex: none; }
.ficha .mini canvas { display: block; }
.ficha p { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.ficha small { color: var(--texto-2); font-size: 11px; }
.lbl { display: inline-block; width: 48px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--oro-2); }
.encargo .nota { color: var(--texto-2); font-size: 13.5px; margin: 12px 0 4px; }
.rejilla-ra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcion-ra { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 12px; background: #1f1d18; border: 1px solid #36332b; text-align: left; font-size: 14px; }
.opcion-ra .muestra { width: 30px; height: 30px; border-radius: 50%; }
.opcion-ra:active { border-color: var(--oro); }

.resultado { text-align: center; }
.estrellas { font-size: 54px; line-height: 1; color: #2e2c26; margin-bottom: 6px; }
.estrellas span { display: inline-block; }
.estrellas span.on { color: var(--oro); text-shadow: 0 0 18px rgba(245, 197, 66, 0.7); animation: estrella 0.5s backwards; }
.estrellas span.on:nth-child(2) { animation-delay: 0.2s; }
.estrellas span.on:nth-child(3) { animation-delay: 0.4s; }
@keyframes estrella { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } }
.cita { font-style: italic; color: var(--texto); margin: 8px 0 14px; }
.cita small { color: var(--texto-2); font-style: normal; }
.notas { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.notas td { padding: 5px 4px; border-bottom: 1px solid #24221d; }
.notas td:last-child { text-align: right; font-family: Oswald, sans-serif; font-size: 16px; color: var(--oro-claro); }
.notas small { display: block; color: var(--texto-2); font-size: 11.5px; }
.importe { margin: 12px 0 6px; color: var(--texto-2); }
.importe b { color: var(--oro); font-family: Oswald, sans-serif; font-size: 20px; }
.botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.botones .btn-oro { grid-column: 1 / -1; margin-top: 0; }
.botones .btn-borde { font-size: 15px; padding: 10px; }

/* ---------- v2: imprevistos y botón de acción ---------- */
#btn-accion { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 12px 22px; font-size: 18px; animation: latido 0.9s infinite; z-index: 2; }
.imprevisto h2 { color: var(--rojo); }
.opciones { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.opcion { text-align: left; padding: 13px 14px; border-radius: 12px; background: #1f1d18; border: 1px solid #36332b; font-size: 15px; line-height: 1.3; }
.opcion:active { border-color: var(--oro); background: #2a2516; }
.imp-tit { margin-top: 14px; }
.notas td.mas { color: #9be37a; }
.notas td.menos { color: var(--rojo); }

/* botones del menú con explicación */
.btn-menu { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 16px; }
.btn-menu span { font-size: 22px; }
.btn-menu small { font-family: system-ui, -apple-system, sans-serif; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.3; opacity: 0.85; }
.btn-oro.btn-menu small { color: #2a1c02; }
.btn-borde.btn-menu small { color: var(--oro-claro); }
.ayuda { margin: 0 0 4px; color: var(--texto-2); font-size: 13.5px; }

/* repaso final */
.ayuda-repaso { display: block; font-size: 12px; color: var(--texto-2); margin-bottom: 6px; }
.lista-fallos { display: flex; flex-direction: column; gap: 4px; max-height: 24vh; overflow-y: auto; padding-right: 2px; }
.fallo { flex: none; display: flex; align-items: center; gap: 10px; text-align: left; background: #14130f; border: 1px solid var(--linea); border-radius: 10px; padding: 6px 10px; color: var(--texto); font: inherit; font-size: 14px; cursor: pointer; }
.fallo i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--oro); color: #111; font-style: normal; font-family: Oswald, sans-serif; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.fallo span { display: flex; flex-direction: column; line-height: 1.2; }
.fallo small { color: var(--texto-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.fallo.sel { border-color: var(--oro); background: #221d10; }
.fallo.todo i { background: #3a3730; color: var(--oro); }
.ver-obra { width: 100%; margin: 4px 0 10px; }

/* ---------- efectos de interfaz ---------- */
#progreso-txt.salto { animation: salto 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes salto { 0% { transform: scale(1); } 35% { transform: scale(1.35) translateY(-3px); color: var(--oro-claro); } 100% { transform: scale(1); } }
.barra.completa { border-color: var(--oro); box-shadow: 0 0 14px rgba(245, 197, 66, 0.45); }
.barra.completa #barra-progreso { position: relative; overflow: hidden; }
.barra.completa #barra-progreso::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%); background-size: 220% 100%; animation: brillo-barra 1.4s linear infinite; }
@keyframes brillo-barra { from { background-position: 130% 0; } to { background-position: -90% 0; } }
.fase-hecha {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  min-width: 210px; padding: 16px 22px 14px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(27, 25, 19, 0.96), rgba(10, 9, 7, 0.96)); border: 1px solid var(--oro);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 197, 66, 0.25);
  animation: entra-fase 0.45s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity 0.45s, transform 0.45s;
}
.fase-hecha.fuera { opacity: 0; transform: translate(-50%, -62%) scale(0.95); }
@keyframes entra-fase { from { opacity: 0; transform: translate(-50%, -40%) scale(0.8); } }
.fase-hecha h3 { margin: 2px 0 6px; font-size: 24px; text-transform: uppercase; color: var(--oro); }
.fase-hecha .estrellas { font-size: 38px; margin: 0; }
.fase-hecha b { display: block; font-family: Oswald, sans-serif; font-size: 30px; color: var(--oro-claro); line-height: 1.1; }
.fase-hecha small { color: var(--texto-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
#btn-mute { width: 38px; height: 38px; font-size: 0; color: var(--oro); }
#btn-mute.apagado { color: var(--texto-2); }
/* botones con relieve que se hunden al pulsar */
.btn-borde, .btn-icono, .opcion, .opcion-ra, .fallo, .obra, .chip-molde, .chip-color { transition: transform 0.08s, box-shadow 0.15s, background 0.2s; }
.btn-borde { box-shadow: 0 2px 0 rgba(122, 84, 4, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-borde:active, .btn-icono:active, .opcion:active, .opcion-ra:active, .fallo:active, .obra:active, .chip-molde:active, .chip-color:active { transform: translateY(2px) scale(0.98); box-shadow: none; }
.btn-icono { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-oro { position: relative; overflow: hidden; }
.btn-oro::before { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)); pointer-events: none; }

/* aviso fijo (p. ej. rodillo sin resina): abajo del lienzo, discreto, se toca para actuar */
#aviso {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.82); border: 1px solid #ff8a5c; color: #ffd9c7; text-align: left;
  font-family: Oswald, sans-serif; font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
#aviso.visible { opacity: 1; transform: none; pointer-events: auto; }
#aviso i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ff8a5c; color: #000; font-style: normal; font-weight: 700; display: grid; place-items: center; font-size: 14px; }

/* veredicto al acabar la obra */
.veredicto { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; margin-bottom: 8px; }
.veredicto .estrellas { font-size: 20px; letter-spacing: 1px; }
.veredicto .estrellas span { color: #3a3730; }
.veredicto .estrellas span.on { color: var(--oro); }
.veredicto p { margin: 0; font-size: 14px; line-height: 1.3; color: var(--texto); }
.veredicto.v0 p { color: #ffb59a; }
.ver-botones { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 6px; }
.ver-botones button { flex: 1; padding: 9px 10px; font-size: 15px; }
.tit-fallos { margin: 2px 0 2px; font-family: Oswald, sans-serif; font-size: 15px; text-transform: uppercase; color: var(--oro); letter-spacing: 0.03em; }
.lista-fallos { max-height: 20vh; }

/* práctica: elegir fase */
.rejilla-fases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip-fase { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid transparent; background: var(--tarjeta); font-size: 14px; text-align: left; color: var(--texto); }
.chip-fase i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #3a3730; color: var(--oro); font-style: normal; font-family: Oswald, sans-serif; font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.chip-fase.completa { grid-column: 1 / -1; justify-content: center; font-family: Oswald, sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: 0.03em; }
.chip-fase.sel { border-color: var(--oro); background: #221d0e; }
.chip-fase.sel i { background: var(--oro); color: #111; }

/* clientes */
#reloj { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.78); border: 1px solid var(--oro); font-family: Oswald, sans-serif; display: flex; gap: 6px; align-items: baseline; pointer-events: none; }
#reloj span { font-size: 11px; text-transform: uppercase; color: #bbb; letter-spacing: 0.04em; }
#reloj b { font-size: 18px; color: var(--oro); font-variant-numeric: tabular-nums; }
#reloj.tarde { border-color: #ff6a4d; }
#reloj.tarde b { color: #ff8a6c; }
.tipo-cli { color: var(--oro); font-weight: 700; }
.nota.cli { border-left: 3px solid var(--oro); padding-left: 8px; }
.obra .info .chip-cli { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border: 1px solid var(--oro); border-radius: 10px; font: 500 12px Oswald, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: 0.03em; color: var(--oro); }

/* menú: Jugar principal, practicar secundario */
.menu-botones { gap: 0; }
.btn-jugar { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 22px 16px 18px; border-radius: 16px; }
.btn-jugar .t { font-size: 34px; line-height: 1; }
.btn-jugar .s { font-family: system-ui, -apple-system, sans-serif; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #2a1c02; }
.btn-jugar .s.n { font-weight: 400; font-size: 12.5px; }
.btn-jugar .barra { display: block; flex: none; width: 80%; height: 8px; margin-top: 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.18); overflow: hidden; }
.btn-jugar .barra i { display: block; height: 100%; width: 0; background: #2a1c02; border-radius: 4px; transition: width 0.4s; }
.menu-botones .sep { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; color: var(--texto-2); font-size: 13px; }
.menu-botones .sep::before, .menu-botones .sep::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.btn-practicar { width: 100%; font-size: 16px; padding: 10px 14px; border-width: 1px; border-color: rgba(245, 197, 66, 0.55); color: var(--oro-claro); background: rgba(0, 0, 0, 0.45); box-shadow: none; }
.menu-botones #btn-sonido { margin-top: 14px; }
