/* Aldea Chile · Juegos del fin de los senderos (js/juegos.js) — letra grande y botones grandes */
.juego-capa { position: absolute; inset: 0; z-index: 40; background: #0b0d18; overflow: hidden; font-family: var(--aldea-letra, sans-serif); color: #fff8ea; touch-action: none; user-select: none; -webkit-user-select: none; }
.juego-capa[hidden], .juego-capa [hidden] { display: none !important; }
.juego-lienzo { position: absolute; inset: 0; display: block; cursor: crosshair; }
.aldea.con-juego .aldea-hud-izq, .aldea.con-juego .aldea-hud-der, .aldea.con-juego .aldea-iconos, .aldea.con-juego .aldea-controles, .aldea.con-juego .aldea-menu-boton { visibility: hidden; }

.juego-hud { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.juego-hud button { pointer-events: auto; }
.juego-dato { background: rgba(20, 16, 30, .78); border: 2px solid var(--aldea-oro, #d9b36a); border-radius: 12px; padding: 6px 12px; font-size: 21px; white-space: nowrap; }
.juego-dato b { font-family: var(--aldea-serif, Georgia, serif); font-size: 24px; color: var(--aldea-oro-claro, #f3d99a); }
.juego-tiempo.poco b { color: #ff9a8a; }
.juego-hud-espacio { flex: 1; }
.juego-volver, .juego-mini { border: 2px solid var(--aldea-oro, #d9b36a); border-radius: 14px; background: linear-gradient(#5a3fa8, #3a2a78); color: #fff; font: 700 19px var(--aldea-letra, sans-serif); padding: 10px 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); min-height: 48px; }
.juego-mini { background: rgba(20, 16, 30, .8); padding: 8px 12px; font-size: 20px; }
.juego-volver:hover, .juego-volver:focus-visible { background: linear-gradient(#6c50c0, #4a3890); outline: 3px solid #fff3; }

.juego-ayuda { position: absolute; z-index: 2; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(20, 16, 30, .82); border: 2px solid var(--aldea-oro, #d9b36a); border-radius: 14px; padding: 10px 18px; font-size: 20px; text-align: center; max-width: calc(100% - 32px); pointer-events: none; }
.juego-cuenta { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 min(28vw, 180px) var(--aldea-serif, Georgia, serif); color: #ffe7a0; text-shadow: 0 6px 0 #6a3a10, 0 12px 30px rgba(0, 0, 0, .6); pointer-events: none; animation: juego-late .75s ease-out infinite; }
@keyframes juego-late { from { transform: scale(1.25); opacity: .6; } to { transform: scale(1); opacity: 1; } }

.juego-panel { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; background: linear-gradient(#24183a, #160f24); border: 3px solid var(--aldea-oro, #d9b36a); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); touch-action: auto; }
.juego-titulo { font: 700 30px/1.15 var(--aldea-serif, Georgia, serif); color: var(--aldea-oro-claro, #f3d99a); text-align: center; margin-bottom: 10px; }
.juego-texto { font-size: 20px; line-height: 1.4; margin: 8px 0; text-align: center; }
.juego-texto.chico { font-size: 17px; opacity: .92; }
.juego-botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.juego-boton { flex: 1 1 200px; min-height: 56px; border: 2px solid var(--aldea-oro, #d9b36a); border-radius: 16px; background: linear-gradient(#f3d99a, #c99a48); color: #2a1a08; font: 700 20px var(--aldea-letra, sans-serif); padding: 10px 14px; cursor: pointer; box-shadow: 0 4px 0 #7a5420; }
.juego-boton.grande { font-size: 23px; min-height: 64px; }
.juego-boton.suave { background: rgba(255, 255, 255, .08); color: #fff8ea; box-shadow: none; }
.juego-boton:hover, .juego-boton:focus-visible { filter: brightness(1.08); outline: 3px solid #fff5; }
.juego-boton:active { transform: translateY(2px); box-shadow: 0 2px 0 #7a5420; }

.juego-difs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.juego-difs.dos { grid-template-columns: repeat(2, 1fr); }
.juego-dif { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; min-height: 64px; border: 2px solid #6a5a8a; border-radius: 14px; background: rgba(255, 255, 255, .06); color: #fff8ea; padding: 10px 6px; cursor: pointer; font: 17px var(--aldea-letra, sans-serif); }
.juego-dif b { font-size: 20px; }
.juego-dif small { font-size: 14px; opacity: .85; text-align: center; }
.juego-dif.activa { border-color: var(--aldea-oro, #d9b36a); background: rgba(243, 217, 154, .2); box-shadow: 0 0 0 3px rgba(243, 217, 154, .35); }
@media (max-width: 480px) { .juego-difs { grid-template-columns: 1fr; } .juego-dif { flex-direction: row; justify-content: space-between; padding: 10px 14px; } .juego-dato { font-size: 17px; padding: 5px 9px; } .juego-dato b { font-size: 20px; } .juego-volver { font-size: 17px; padding: 8px 12px; } .juego-titulo { font-size: 25px; } }

.juego-final { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.juego-final div { background: rgba(255, 255, 255, .07); border: 2px solid #6a5a8a; border-radius: 14px; padding: 8px 16px; text-align: center; min-width: 120px; }
.juego-final small { display: block; font-size: 16px; opacity: .85; }
.juego-final b { font: 700 34px var(--aldea-serif, Georgia, serif); color: var(--aldea-oro-claro, #f3d99a); }
.juego-tabla { list-style: none; margin: 10px 0; padding: 0; }
.juego-tabla li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 19px; }
.juego-tabla li:nth-child(odd) { background: rgba(255, 255, 255, .05); }
.juego-tabla li.yo { background: rgba(243, 217, 154, .25); outline: 2px solid var(--aldea-oro, #d9b36a); }
.juego-tabla b { font-family: var(--aldea-serif, Georgia, serif); color: var(--aldea-oro-claro, #f3d99a); }
