/* Warsztat (assets/js/warsztat.js): dobór klucza do śrub, osie kółek, demontaż i montaż. Reszta wyglądu gry — sklep.css (.ws-*). */

/* łeb śruby z bliska */
.ws-closeup { display: flex; align-items: center; gap: 14px; margin: 0; padding: 10px 14px; border-radius: var(--r); background: var(--tlo); }
.ws-closeup svg { flex: none; width: 58px; height: 58px; }
.ws-closeup figcaption { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-2); }
.ws-sock__head { fill: #dcd7e6; stroke: var(--czern); stroke-width: 2; }
.ws-sock__rim { fill: #c9c2d6; }
.ws-sock__in { fill: var(--czern); }

/* narzędzia w kafelkach wyboru */
.ws-tool { width: 34px; height: 76px; }
.ws-tool__metal { fill: #8f96a3; }
.ws-tool__tip { fill: var(--czern); }
.ws-tool__grip { fill: var(--fiolet); }
.ws-tool__line { stroke: var(--czern); stroke-width: 1.4; }
.ws-opts--plain .ws-opt { grid-template-columns: 1fr; }

/* osie kółek: łby po obu stronach kółka; wyjęta oś = kółko luzem */
.ws-axle { position: absolute; top: 50%; left: 50%; width: 50px; height: 0; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .2s; }
.ws-axle::before, .ws-axle::after { content: ""; position: absolute; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #dcd7e6; box-shadow: 0 0 0 1.5px var(--czern), inset 0 0 0 3.5px #dcd7e6, inset 0 0 0 6px var(--czern); }
.ws-axle::before { left: -6px; }
.ws-axle::after { right: -6px; }
.ws-slot.is-out .ws-axle { opacity: 0; }
.ws-wheel.is-loose .ws-wheel__body { outline: 2px dashed rgba(255, 255, 255, .55); outline-offset: 3px; }
.ws-wheel.is-loose.is-sel .ws-wheel__body { outline: 3px solid var(--zolty); }
.ws-key--axle { width: 12px; height: 12px; border-radius: 50%; background: #dcd7e6; box-shadow: inset 0 0 0 3.5px #dcd7e6, inset 0 0 0 6px var(--czern); }

/* przed doborem klucza i w trakcie demontażu/montażu kółka nie są jeszcze do przekładania */
.ws-game[data-phase="tool"] .ws-wheel .ws-wheel__body { opacity: .78; }
.ws-game[data-phase="open"] .ws-slot:not(.is-out) .ws-wheel:hover .ws-wheel__body,
.ws-game[data-phase="close"] .ws-slot.is-out .ws-wheel:hover .ws-wheel__body { outline: 2px solid var(--zolty); outline-offset: 3px; }
[data-tools][hidden], [data-rules][hidden] { display: none; }
.ws-frame__wheel--cover { opacity: 1; }
