/* The hands picture (modules/hands.js). */
.hands-box { margin: 4px auto 0; }
.hands { width: min(100%, 440px); height: auto; display: block; margin: 0 auto; overflow: hidden; }

/* A faint keyboard behind the hands. */
.hands .kb-key { fill: none; stroke: rgba(35, 50, 74, 0.13); stroke-width: 1.5; }

/* Skin: flat fill with a warm brown outline and a soft shadow. */
.hands .skin { fill: #f8c4a0; stroke: #a0583a; stroke-width: 2; stroke-linejoin: round; }
.hands .shadow { fill: rgba(60, 90, 130, 0.12); }

/* Fingertips coloured like their keys on the keyboard. */
.hands .f-lp { fill: var(--f-lp); } .hands .f-lr { fill: var(--f-lr); } .hands .f-lm { fill: var(--f-lm); } .hands .f-li { fill: var(--f-li); }
.hands .f-ri { fill: var(--f-ri); } .hands .f-rm { fill: var(--f-rm); } .hands .f-rr { fill: var(--f-rr); } .hands .f-rp { fill: var(--f-rp); }
.hands .f:not(.lit) .tip { opacity: 0.6; }

.hands text { font: 700 17px ui-monospace, Menlo, Consolas, monospace; fill: var(--muted); }
.hands text.long { font-size: 13px; letter-spacing: -1px; }
.hands text.sym { font: 700 22px system-ui, sans-serif; }

/* Unlit fingers stay calm; lit ones get a glowing outline. */
.hands .halo, .hands .edge { fill: none; stroke: none; }
.hands .lit .edge { stroke: var(--orange); stroke-width: 4; stroke-linejoin: round; }
.hands .lit .halo { stroke: var(--orange); stroke-width: 12; stroke-opacity: 0.35; stroke-linejoin: round; animation: hands-glow 1.2s ease-in-out infinite; }
.hands .lit text { font-size: 24px; fill: var(--ink); }
.hands .lit text.sym { font-size: 28px; }
.hands .lit text.long { font-size: 16px; letter-spacing: -0.5px; }
@keyframes hands-glow { 50% { stroke-width: 20; stroke-opacity: 0.15; } }

/* Oops mode: red, steady. */
.hands.oops .lit .edge { stroke: var(--red); }
.hands.oops .lit .halo { stroke: var(--red); stroke-width: 12; stroke-opacity: 0.3; animation: none; }
.hands.oops .lit text { fill: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .hands .lit .halo { animation: none; }
}
