/* =====================================================================
   TUTORIAL DE LA MESA (js/ui/tutorial.js): foco de luz que recorre las zonas, puntero de mouse y cartel de tiza del Ciruja.
   ===================================================================== */
.tg-tuto { position: fixed; inset: 0; z-index: 1000050; opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.tg-tuto.visible { opacity: 1; }

/* foco: un agujero de luz en la penumbra (la sombra gigante oscurece todo lo demás), con borde de tiza que respira */
.tg-tuto-foco {
    position: fixed; border-radius: 14px; pointer-events: none;
    box-shadow: 0 0 0 200vmax rgba(8, 5, 2, .66), inset 0 0 18px rgba(255, 220, 150, .25);
    outline: 2px dashed rgba(255, 238, 200, .85); outline-offset: 3px;
    transition: left .55s cubic-bezier(.6, 0, .25, 1), top .55s cubic-bezier(.6, 0, .25, 1), width .55s cubic-bezier(.6, 0, .25, 1), height .55s cubic-bezier(.6, 0, .25, 1);
    animation: tgTutoRespira 1.6s ease-in-out infinite;
}
.tg-tuto.sin-foco .tg-tuto-foco { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; outline-color: transparent; }
@keyframes tgTutoRespira { 50% { outline-color: rgba(255, 200, 90, .95); outline-offset: 6px; } }

/* puntero de mouse que recorre los botones y "hace clic" (onda) */
.tg-tuto-puntero {
    position: fixed; left: 50%; top: 110%; pointer-events: none; opacity: 0; z-index: 3;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, .6));
    transition: left .7s cubic-bezier(.45, 0, .2, 1), top .7s cubic-bezier(.45, 0, .2, 1), opacity .3s ease;
}
.tg-tuto-puntero.on { opacity: 1; }
.tg-tuto-puntero svg { display: block; transform-origin: 2px 2px; }
.tg-tuto-puntero.clic svg { animation: tgTutoClic .35s ease; }
.tg-tuto-onda { position: absolute; left: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 215, 120, .95); opacity: 0; }
.tg-tuto-puntero.clic .tg-tuto-onda { animation: tgTutoOnda .6s ease-out; }
@keyframes tgTutoClic { 40% { transform: scale(.82); } }
@keyframes tgTutoOnda { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }

/* cartel: pizarrón de bar con marco de madera y la letra de tiza del Ciruja */
.tg-tuto-cartel {
    position: fixed; left: 50%; top: 60%; width: min(400px, calc(100cqw - 32px)); box-sizing: border-box; cursor: default; z-index: 2;
    padding: 12px 16px 10px; border-radius: 10px;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(160deg, #24302a, #141b17);
    border: 5px solid #6b4423; box-shadow: inset 0 0 0 2px #3a2412, inset 0 0 22px rgba(0, 0, 0, .6), 0 10px 28px rgba(0, 0, 0, .7);
    color: #f1eee3; transition: left .45s cubic-bezier(.6, 0, .25, 1), top .45s cubic-bezier(.6, 0, .25, 1);
}
.tg-tuto-cartel.entra { animation: tgTutoEntra .35s ease-out; }
@keyframes tgTutoEntra { 0% { transform: rotate(-1.5deg) scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.tg-tuto-quien { font-family: 'Lilita One', 'Arial Black', sans-serif; font-size: 15px; letter-spacing: 1.5px; color: #ffcf6e; text-shadow: 0 0 6px rgba(255, 180, 60, .5); }
.tg-tuto-paso { float: right; font-size: 12px; color: rgba(241, 238, 227, .55); letter-spacing: 1px; }
.tg-tuto-texto {
    min-height: 4.2em; margin: 6px 0 10px; font-family: 'Permanent Marker', 'Comic Sans MS', cursive; font-size: 17px; line-height: 1.35;
    text-shadow: 0 0 2px rgba(255, 255, 255, .45);
}
.tg-tuto-pie { display: flex; align-items: center; gap: 8px; }
.tg-tuto-puntos { flex: 1; display: flex; gap: 4px; justify-content: center; }
.tg-tuto-puntos i { width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 238, 227, .22); }
.tg-tuto-puntos i.on { background: #ffcf6e; }
.tg-tuto-pie button {
    font-family: 'Lilita One', 'Arial Black', sans-serif; letter-spacing: 1px; cursor: pointer; border-radius: 7px; color: #fff;
    border: 2px solid #1a1208; box-shadow: 0 3px 0 #1a1208; padding: 5px 12px; font-size: 14px;
}
.tg-tuto-pie button:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a1208; }
.tg-tuto-seguir { background: linear-gradient(180deg, #4caf50, #23692a); }
.tg-tuto-volver { background: linear-gradient(180deg, #6d5a45, #3d2f22); padding: 5px 9px !important; }
.tg-tuto-volver:disabled { opacity: .35; cursor: default; }

/* "YA SÉ JUGAR · OMITIR": siempre a mano, arriba a la derecha */
.tg-tuto-omitir {
    position: fixed; top: 14px; right: 14px; z-index: 4; cursor: pointer;
    font-family: 'Lilita One', 'Arial Black', sans-serif; font-size: 15px; letter-spacing: 1px; color: #fff3d6;
    padding: 8px 16px; border-radius: 9px; border: 3px solid #1a1208;
    background: linear-gradient(180deg, #a0522d, #5a2a12); box-shadow: inset 0 0 0 2px #d79a4a, 0 4px 0 #1a1208, 0 0 16px rgba(255, 170, 70, .35);
    animation: tgTutoOmitir 2.4s ease-in-out infinite;
}
.tg-tuto-omitir:hover { filter: brightness(1.15); }
.tg-tuto-omitir:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px #d79a4a, 0 2px 0 #1a1208; }
@keyframes tgTutoOmitir { 50% { box-shadow: inset 0 0 0 2px #d79a4a, 0 4px 0 #1a1208, 0 0 24px rgba(255, 190, 90, .6); } }

/* cartelito de tiza con el nombre de la seña que está haciendo el Ciruja */
.tg-tuto-etiqueta {
    position: fixed; transform: translate(-50%, 0) rotate(-2deg); pointer-events: none; opacity: 0; transition: opacity .2s ease;
    font-family: 'Permanent Marker', cursive; font-size: 16px; color: #ffe08a; white-space: nowrap;
    background: rgba(20, 27, 23, .92); border: 2px solid rgba(241, 238, 227, .5); border-radius: 6px; padding: 2px 10px;
}
.tg-tuto.con-etiqueta .tg-tuto-etiqueta { opacity: 1; }

/* las maquetas no se pueden tocar */
.tg-tuto-carta { pointer-events: none; }

@media (max-width: 600px) {
    .tg-tuto-texto { font-size: 15px; }
}
