/* Gioco «Componi la cucina» */
.gk{--anta:#F3F0EA;--maniglia:#7A7F82;background:#fff;border:1px solid var(--linea);border-radius:var(--raggio);padding:20px;box-shadow:var(--ombra)}
.gk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding-bottom:16px;border-bottom:1px solid var(--linea);margin-bottom:18px}
.gk-bar>span{display:flex;flex-direction:column;min-width:58px}
.gk-bar small{font:600 .7rem/1.2 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--salvia-scuro)}
.gk-bar b{font:600 1.35rem/1.2 var(--serif);font-variant-numeric:tabular-nums}
.gk-bar .gk-tools{flex-direction:row;gap:8px;margin-left:auto}
.gk-tools .btn{min-height:40px;padding:9px 14px;font-size:.88rem}
.gk-tools .btn:disabled{opacity:.4;cursor:default;background:transparent;color:var(--antracite)}
.gk-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.gk-wall{position:relative;aspect-ratio:400/250;border-radius:10px;overflow:hidden;user-select:none;-webkit-user-select:none}
.gk-bg{position:absolute;inset:0;width:100%;height:100%;display:block}
.gk-clue{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;color:#8b8172;pointer-events:none}
.gk-clue svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}
.gk-clue circle{fill:currentColor;stroke:none}
.gk-clue.water{color:#4C88B0}.gk-clue.water svg{fill:rgba(76,136,176,.18)}
.gk-clue.fire{color:#D06A2C}.gk-clue.fire svg{fill:rgba(208,106,44,.15)}
.gk-slot{position:absolute;padding:0;margin:0;background:rgba(255,255,255,.28);border:2px dashed rgba(86,102,79,.55);border-radius:4px;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.gk-slot:hover,.gk-slot:focus-visible,.gk-slot.over{background:rgba(138,154,134,.25);border-color:var(--salvia-scuro);outline:none}
.gk-slot:focus-visible{box-shadow:0 0 0 3px rgba(86,102,79,.35)}
.gk-wall.picking .gk-slot:not(.full){border-style:solid;border-color:var(--salvia)}
.gk-slot.full{background:none;border:0;cursor:default;z-index:1}
.gk-slot.full svg{width:100%;height:100%;display:block}
.gk-slot.ok{animation:gk-snap .45s ease}
.gk-slot.no{animation:gk-no .45s ease}
.gk-slot.pulse{animation:gk-pulse .7s ease 3;border-color:var(--rosso);border-style:solid}
@keyframes gk-snap{0%{transform:scale(1.08)}60%{transform:scale(.97)}100%{transform:none}}
@keyframes gk-no{0%,100%{background:rgba(255,255,255,.28)}30%{background:rgba(196,30,42,.3);border-color:var(--rosso)}}
@keyframes gk-pulse{50%{background:rgba(196,30,42,.18);box-shadow:0 0 0 6px rgba(196,30,42,.15)}}
.gk-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.82rem;color:var(--testo-2);margin:10px 0 0}
.gk-legend span{display:inline-flex;align-items:center;gap:6px}
.gk-legend i{width:10px;height:10px;border-radius:3px;border:2px solid #8b8172}
.gk-legend .lg-water{border-color:#4C88B0;border-radius:50%;background:rgba(76,136,176,.2)}
.gk-legend .lg-fire{border-color:#D06A2C;border-radius:50% 50% 50% 0;background:rgba(208,106,44,.2)}
.gk-h{font-size:1.25rem;margin:0 0 12px}
.gk-pal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:60px}
.gk-piece{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;padding:26px 4px 8px;background:var(--avorio);border:1.5px solid var(--linea);border-radius:12px;cursor:grab;touch-action:none;font:500 .78rem/1.15 var(--sans);color:var(--antracite);transition:border-color .15s,box-shadow .15s,transform .15s;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.gk-piece:hover{border-color:var(--salvia)}
.gk-piece:focus-visible{outline:3px solid rgba(86,102,79,.45);outline-offset:2px}
.gk-piece.sel{border-color:var(--salvia-scuro);box-shadow:0 0 0 3px rgba(86,102,79,.25);background:#fff}
.gk-piece.lift{opacity:.35}
.gk-piece.shake{animation:gk-shake .4s ease}
@keyframes gk-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.gk-piece .th{display:flex;align-items:flex-end;justify-content:center;height:70px;pointer-events:none}
.gk-piece .th svg{height:100%;width:auto;overflow:visible}
.gk-piece .th-pensile,.gk-piece .th-cappa{height:42px}.gk-piece .th-cappa svg{height:30px}
.gk-piece .th-cassetti,.gk-piece .th-lavello,.gk-piece .th-lavastoviglie,.gk-piece .th-cottura{height:46px}
.gk-piece .lb{pointer-events:none;text-align:center}
.gk-msg{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:var(--avorio-2);font-size:.93rem;min-height:3.2em}
.gk-msg.good{background:#E8EFE4;color:#3D4B37}
.gk-msg.bad{background:#FBE9E7;color:#8A1F19}
.gk-ghost{position:fixed;left:0;top:0;z-index:999;pointer-events:none;filter:drop-shadow(0 10px 16px rgba(35,40,43,.25));will-change:transform}
.gk-ghost svg{width:100%;height:100%;display:block;overflow:visible}
.gk-ghost.back{transition:transform .35s ease,opacity .35s ease}
/* disegni dei moduli */
.gk svg .f,.gk-ghost svg .f{fill:var(--anta,#F3F0EA);stroke:rgba(35,40,43,.28);stroke-width:.8;transition:fill .35s}
.gk svg .h,.gk-ghost svg .h{fill:var(--maniglia,#7A7F82);transition:fill .35s}
.gk svg .pl,.gk-ghost svg .pl{fill:#3a3f42}
.gk svg .d,.gk-ghost svg .d{fill:#2b2f31}
.gk svg .gl,.gk-ghost svg .gl{fill:#15181a;stroke:#555;stroke-width:.6}
.gk svg .s,.gk svg .st,.gk-ghost svg .s,.gk-ghost svg .st{fill:#C5CACD;stroke:#9aa0a4;stroke-width:.7}
.gk svg .st2,.gk-ghost svg .st2{fill:#A9AFB3}
.gk svg .dk,.gk-ghost svg .dk{fill:#2b2f31}
.gk svg .led,.gk-ghost svg .led{fill:#6FCF74}
.gk svg .tap,.gk-ghost svg .tap{fill:none;stroke:#9aa0a4;stroke-width:3;stroke-linecap:round}
.gk svg .pot,.gk-ghost svg .pot{fill:#C41E2A}
.gk svg .steam,.gk-ghost svg .steam{stroke:#b8b0a4;stroke-width:1.4;stroke-linecap:round}
.gk svg .ic,.gk-ghost svg .ic{stroke:var(--maniglia,#7A7F82);stroke-width:1.4;stroke-linecap:round;fill:none;opacity:.8}
/* finitura e fine */
.gk-finish,.gk-end{margin-top:22px;padding:22px;border-radius:14px;background:var(--avorio-2);text-align:center}
.gk-sw{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:6px 0 18px}
.gk-swatch{display:flex;flex-direction:column;align-items:center;gap:6px;width:96px;padding:10px 6px;background:#fff;border:2px solid var(--linea);border-radius:12px;cursor:pointer;font:500 .8rem/1.15 var(--sans);color:var(--antracite)}
.gk-swatch i{width:44px;height:44px;border-radius:50%;border:1px solid rgba(0,0,0,.15)}
.gk-swatch[aria-checked="true"]{border-color:var(--salvia-scuro);box-shadow:0 0 0 3px rgba(86,102,79,.25)}
.gk-swatch:focus-visible{outline:3px solid rgba(86,102,79,.45);outline-offset:2px}
.gk-end{background:#EFE9DD;outline:none}
.gk-end h2{margin:4px 0 8px}
.gk-stars{display:block;font-size:2rem;letter-spacing:.15em;color:#C9A227}
.gk-score{font:600 1.15rem var(--sans)}
.gk-score b{font-family:var(--serif);font-size:1.6rem;color:var(--salvia-scuro)}
.gk,.gk-finish,.gk-end{scroll-margin-top:96px}
.gk:not([data-state="play"]) .gk-side,.gk:not([data-state="play"]) .gk-clue,.gk:not([data-state="play"]) .gk-legend{display:none}
.gk:not([data-state="play"]) .gk-main{grid-template-columns:minmax(0,820px);justify-content:center}
@media(max-width:900px){.gk-main{grid-template-columns:1fr}.gk-pal{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:600px){
  .gk{padding:12px;margin-inline:-8px}
  .gk-bar{gap:8px 14px}.gk-bar>span{min-width:0}.gk-bar b{font-size:1.1rem}
  .gk-bar .gk-tools{margin-left:0;width:100%}.gk-tools .btn{flex:1}
  .gk-clue{width:16px;height:16px;margin:-8px 0 0 -8px}
  .gk-pal{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .gk-piece{padding-top:22px;font-size:.74rem}
  .gk-swatch{width:30%;min-width:84px}
}
@media(prefers-reduced-motion:reduce){.gk *,.gk-ghost{animation:none!important;transition:none!important}}
