/* Guante Blanco: tema propio sobre ../../shared/engine.css. Noche azul, oro y un toque de cartel de los sesenta. */
:root {
  --gold: #e8c06a;
  --gold2: #ffe2a8;
  --accent: #2fbf71;
}

/* Panel inferior: azul noche con filo dorado */
#panel { background: linear-gradient(#14243a, #0a1220); border-top: 2px solid var(--gold); }
#verbs button, #tools button { background: #1e3452; border-color: #34507a; }
#verbs button:hover, #tools button:hover { background: #28446a; }
#verbs button.sel { background: #2a6a5a; border-color: var(--gold); }
#inventory .cell { background: #0e1a2c; border-color: #2a4062; }
#inventory button.cell:hover { background: #18304e; border-color: #5a8ac8; }
#subs, #choices { background: rgba(8, 16, 30, .93); border-color: rgba(232, 192, 106, .35); }

/* Título */
.title-text h1 { max-width: 600px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 900; font-size: 92px; line-height: 1; color: #fbf6ea;
  text-shadow: 0 0 26px rgba(90, 232, 154, .45), 0 3px 0 #0f6a3a, 0 8px 18px rgba(0, 0, 0, .7); }
.title-text .sub { color: #a8e8c8; font-style: italic; }
#setup { background: radial-gradient(ellipse at 50% 30%, #1e4a6a, #060c18 72%); }
.card, .voices button, .box { background: #0e1a2c; border-color: #2a4062; }
.card.sel, .voices button.sel { background: #1e4a6a; }
#end { background: radial-gradient(ellipse at 50% 20%, rgba(30, 74, 106, .75), rgba(6, 12, 24, .95) 70%); }
.end-box h1 { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 96px; color: #fbf6ea; }

/* Documentos propios */
.paper.nota { font-family: 'Caveat', cursive; font-size: 30px; line-height: 1.3; background: #f4ead0; transform: rotate(-1deg); }
.paper.nota p:first-child { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; color: #14305a; letter-spacing: .04em; }
.paper.plano { font-size: 21px; line-height: 1.35; background: #e8f0f8; }
.paper.plano p:first-of-type { font-weight: 900; color: #14305a; }
.paper.plano .doc-art { width: 500px; }
.paper.discurso { font-family: 'Playfair Display', Georgia, serif; font-size: 23px; line-height: 1.45; background: #fbf6ea; }
.paper.discurso p:first-child { font-family: 'Nunito', sans-serif; font-weight: 900; color: #0f6a3a; letter-spacing: .04em; }

/* Rompecabezas con el tema */
.frase-slots { background: #0a1422; border-color: #34507a; }
.orden-list li { background: #0e1a2c; border-color: #2a4062; }
.emp-card { background: #0e1a2c; border-color: #2a4062; }

/* Quien habla, y solo quien habla, se mueve: mueve la boca y la cabeza, y tiene una marca encima.
   Los demás solo respiran y parpadean, cada uno a su ritmo (--d y --p, en kit.js). */
#scene[data-habla="chela"] [data-quien="chela"],
#scene[data-habla="tito"] [data-quien="tito"],
#scene[data-habla="marta"] [data-quien="marta"],
#scene[data-habla="pina"] [data-quien="pina"],
#scene[data-habla="ramiro"] [data-quien="ramiro"],
#scene[data-habla="chabela"] [data-quien="chabela"],
#scene[data-habla="ernesto"] [data-quien="ernesto"],
#scene[data-habla="severo"] [data-quien="severo"],
#scene[data-habla="rocio"] [data-quien="rocio"],
#scene[data-habla="inspectora"] [data-quien="inspectora"],
#scene[data-habla="braulio"] [data-quien="braulio"],
#scene[data-habla="guardias"] [data-quien="guardias"],
#scene[data-habla="alex"] [data-quien="alex"] {
  --boca: bocaHabla; --boca-ver: inline; --cabeza: cabezaHabla; --cuerpo: cuerpoHabla; --cuerpo-t: 1.3s; --marca: inline; --boca-cerrada: hidden;
}
#scene .head-bob { animation: var(--cabeza, none) 1.7s ease-in-out infinite; }
#scene [data-quien] .blinkeye { animation-delay: var(--d, 0s); animation-duration: var(--p, 5s); }
#scene .cuerpo { transform-box: fill-box; transform-origin: 50% 100%; animation: var(--cuerpo, breathe) var(--cuerpo-t, var(--p, 4.5s)) ease-in-out var(--d, 0s) infinite; }
.boca-c { visibility: var(--boca-cerrada, visible); }
.boca-a { display: var(--boca-ver, none); transform-box: fill-box; transform-origin: 50% 50%; animation: var(--boca, none) .62s linear infinite; }
.marca-habla { display: var(--marca, none); animation: marcaHabla .8s ease-in-out infinite; }
@keyframes bocaHabla { 0%, 100% { transform: scaleY(.25); } 18% { transform: scaleY(1); } 34% { transform: scaleY(.45); } 52% { transform: scale(.9, .8); } 70% { transform: scaleY(.2); } 84% { transform: scale(1.05, .65); } }
@keyframes cabezaHabla { 0%, 100% { transform: none; } 25% { transform: rotate(-3deg) translateY(-2px); } 55% { transform: rotate(2.5deg); } 80% { transform: rotate(-1deg) translateY(-1px); } }
@keyframes cuerpoHabla { 50% { transform: scaleY(1.018); } }
@keyframes marcaHabla { 50% { transform: translateY(-8px); } }
