
body:not(.alba-tests-entry) #home :is(.home-action-grid, .alba-v5-hero-foot, .alba-visit-counter) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 700px !important;
}
body:not(.alba-tests-entry) #home .alba-v5-hero-foot {
  column-gap: 10px !important;
}
body:not(.alba-tests-entry) #home .alba-visit-counter-copy strong {
  font-size: clamp(17px, 1.5vw, 22px) !important;
  line-height: 1.2;
}
body:not(.alba-tests-entry) #home .alba-visit-counter-copy small {
  font-size: clamp(15px, 1.2vw, 18px) !important;
  line-height: 1.35;
}
#home .alba-home-challenge-kicker { font-size: clamp(15px, 1.3vw, 19px); }
#home .alba-home-challenge h2 { font-size: clamp(24px, 2.3vw, 33px) !important; }
#home .alba-home-challenge-heading p:not(.alba-home-challenge-kicker) { font-size: clamp(16px, 1.4vw, 20px) !important; }
#home .alba-home-challenge-heading { flex-wrap: wrap; }
#home .alba-home-challenge-all, #home .alba-home-feedback-action { font-size: 15px; }
#home .alba-home-challenge-game-title { font-size: clamp(17px, 1.4vw, 20px); }
#home .alba-home-challenge-game-note, #home .alba-home-feedback-copy small { font-size: clamp(15px, 1.2vw, 18px); }
#home .alba-home-feedback-copy strong { font-size: clamp(20px, 1.7vw, 25px); }
#home .alba-home-feedback { flex-wrap: wrap; }
@media (max-width: 650px) {
  #home .alba-home-challenge-game { grid-template-columns: 36px minmax(0, 1fr); }
}
#home .home-progress {grid-column:1/-1; min-width:0; margin-top:16px; padding:16px; border:1px solid #486381; border-radius:16px; background:linear-gradient(145deg,#242f50,#102f49); color:#eff4ff}
#home .home-progress h2 {margin:4px 0; font-size:22px; color:white}
#home .home-progress .card-overline, #home .donut-info-kicker {font-size:12px; font-weight:750; letter-spacing:.09em; color:#ffd784}
#home .donut-orbital-stage {width:min(100%,320px); margin:12px auto; border:1px solid #37546c; border-radius:50%; background:radial-gradient(circle,#224a68,transparent 72%); box-sizing:border-box}
#home .report-donut {display:block; width:100%; height:auto}
#home .donut-info-row {display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:8px; margin:6px 0; padding:8px; border:1px solid #395771; border-radius:8px}
#home .legend-dot {width:9px; height:9px; border-radius:50%; background:#16bca1}
#home .legend-dot.red {background:#f1647b}
#home .legend-dot.amber {background:#ffc56d}
#home .home-progress a {display:inline-block; margin-top:12px; color:#ffdb90}
#home .donut-info-footnote {font-size:13px}
body #home .alba-v5-hero-actions.home-action-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 10px !important;
}
body #home .alba-v5-hero-actions.home-action-grid > :is(a, button)[class] {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 52px !important;
  margin: 0;
  padding: 10px 8px !important;
  font: 750 14px/1.25 system-ui, sans-serif !important;
  letter-spacing: normal;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
@media (max-width: 700px) {
  body #home .alba-v5-hero-actions.home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 340px) {
  body #home .alba-v5-hero-actions.home-action-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ALBA refactor fase 3: llamada normativa del bloque de bienvenida. */
#welcome .preview-foot .alba-normativa-destacada{
  display:block;margin-top:6px;font-weight:800;line-height:1.5;
}

/* Mostrar Juegos desde la primera pintura cuando index.html abre #games.
   La ruta de JS se marca antes de procesar el body y se desactiva
   en alba-v16.js cuando termina de preparar la pantalla inicial. */
html.alba-route-games-pending:not(.alba-route-ready) #home,
html.alba-route-games-pending:not(.alba-route-ready) #welcome {
  display:none !important;
}
html.alba-route-games-pending:not(.alba-route-ready) #games {
  display:block !important;
}

/* Acceso directo a los 4 juegos integrados en index.html.
   Antes de descargar el banco de preguntas solo mostrar la transición accesible. */
#alba-game-deeplink-loader{display:none!important}
html.alba-route-game-pending #mainContent>.screen{display:none!important}
html.alba-route-game-pending #alba-game-deeplink-loader{
  display:grid!important;
  place-items:center;
  min-height:min(68vh,620px);
  padding:clamp(20px,4vw,48px) 12px;
}
#alba-game-deeplink-loader .alba-game-deeplink-panel{
  width:min(100%,760px);
  padding:clamp(24px,5vw,55px);
  background:linear-gradient(145deg,#152b47,#0c2139);
  border:1px solid rgba(246,199,112,.68);
  border-radius:20px;
  box-shadow:0 12px 35px rgba(2,8,19,.3),inset 0 1px rgba(255,255,255,.07);
  text-align:center;
}
#alba-game-deeplink-loader .alba-game-deeplink-kicker{
  font-size:clamp(12px,1.4vw,15px);
  letter-spacing:.19em;
  font-weight:850;
  color:#efd3a1;
}
#alba-game-deeplink-loader h1{
  color:#ffda8b;
  font-size:clamp(28px,5vw,45px);
  line-height:1.16;
  margin:16px 0 13px;
}
#alba-game-deeplink-loader p{
  color:#dce9f5;
  margin:0 auto 20px;
  max-width:42ch;
  line-height:1.6;
}
#alba-game-deeplink-loader .alba-game-deeplink-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
#alba-game-deeplink-loader a,
#alba-game-deeplink-loader button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:44px;
  border:1px solid rgba(238,201,141,.67);
  background:#132b44;
  border-radius:12px;
  padding:10px 18px;
  color:#ffe09f;
  text-decoration:none;
  font:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  cursor:pointer;
}
#alba-game-deeplink-loader a:hover,
#alba-game-deeplink-loader button:hover{
  background:#23425f;
  color:#fff3d3;
}
#alba-game-deeplink-loader :is(a,button):focus-visible{
  outline:3px solid #ffdc81;
  outline-offset:3px;
}
@media(max-width:600px){
  #alba-game-deeplink-loader .alba-game-deeplink-actions{
    flex-direction:column;
  }
}

/* Acceso directo al sexto juego ALBA desde la portada (4 tarjetas). */
#home .alba-home-challenge-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#home a.alba-home-challenge-game{text-decoration:none}
#home a.alba-home-challenge-game:hover{color:#fff}
#home .alba-home-quesitos{--luz:#c69afa}
@media(max-width:950px){
  #home .alba-home-challenge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  #home .alba-home-challenge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
  #home .alba-home-challenge-grid{grid-template-columns:1fr}
}

/* alba-games-links-no-underline: tarjetas enlazadas del menu Juegos. */
#games .games-grid a.game-option,
#games .games-grid a.game-option:is(:hover,:focus,:focus-visible),
#games .games-grid a.game-option :is(strong,.game-desc,.game-highscore){
  text-decoration:none!important;
  text-decoration-line:none!important;
}
