/* Vakmanschap (sinds 1.7, client/js/ui-maken.js): het paneeltje tijdens het maken, de uitleg in de werkplaats en het gistvat.
   Grote knoppen (ook voor een duim op een telefoon) en een tafereel van 120 × 64 pixels dat scherp wordt vergroot. */
/* (linksboven, onder de beheerknop: midden onderin staan je balken en de xp, en in het midden staat je poppetje) */
.vakpaneel { position: fixed; left: 14px; top: 98px; z-index: 12; width: min(316px, calc(100vw - 32px)); padding: 8px 10px 9px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.vakpaneel.nu { border-color: var(--gold); box-shadow: var(--shadow), 0 0 0 1px rgba(246, 196, 83, .5), 0 0 22px rgba(246, 196, 83, .35); }
.vk-kop { display: flex; align-items: center; gap: 7px; min-width: 0; }
.vk-kop .vk-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.vk-kop .vk-naam { font-weight: 800; color: var(--gold); font-size: .92rem; white-space: nowrap; }
.vk-kop .vk-titel { color: var(--fg-2); font-size: .84rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-dicht { flex: none; width: 30px; height: 30px; margin: -4px -4px -4px 0; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--fg-3); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.vk-dicht:hover { color: var(--fg); background: var(--s3); border-color: var(--line-2); }
.vk-doek { display: block; width: 100%; aspect-ratio: 120 / 64; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 9px; border: 1px solid var(--line-2); background: #141118; cursor: pointer; touch-action: manipulation; }
.vk-tekst { min-height: 1.35em; text-align: center; font-weight: 700; font-size: .92rem; color: var(--fg-2); }
.vk-tekst[data-soort="nu"] { color: var(--gold); animation: vk-pols .55s ease-in-out infinite alternate; }
.vk-tekst[data-soort="raak"] { color: var(--good); }
@keyframes vk-pols { from { opacity: .75; } to { opacity: 1; } }
.vk-knoppen { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 6px; }
.vk-knoppen:empty { display: none; }
.vk-knoppen[data-n="2"] { --n: 2; } .vk-knoppen[data-n="3"] { --n: 3; }
.vk-knop { min-height: 46px; font-size: 1.02rem; font-weight: 800; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.vk-knop.tik { animation: vk-tik .22s ease-out; }
@keyframes vk-tik { 50% { transform: scale(.94); } }
.vakpaneel[data-skill="houtbewerken"] .vk-knop { font-size: 1.5rem; line-height: 1; }
.vk-voet { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--fg-3); min-height: 1.2em; }
.vk-vorm.aan { color: var(--good); }
.vk-pips { color: var(--gold); letter-spacing: 2px; white-space: nowrap; font-size: .9rem; }
.vakpil { position: fixed; left: 14px; top: 98px; z-index: 12; display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--fg-2); cursor: pointer; }
.vakpil.nu { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px rgba(246, 196, 83, .45); }
.vp-ster { color: var(--gold); }
/* op een telefoon: net boven de tabs onderin; staat het rugzakpaneel open, dan bovenaan tussen het chatknopje en de bolletjes */
@media (max-width: 760px), (max-height: 520px) {
  .vakpaneel { top: auto; left: 50%; transform: translateX(-50%); bottom: calc(66px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 24px)); padding: 6px 8px 7px; gap: 5px; z-index: 15; }
  .vakpil { top: auto; left: 50%; transform: translateX(-50%); bottom: calc(68px + env(safe-area-inset-bottom)); }
  body:not(.paneel-dicht) .vakpaneel { top: calc(8px + env(safe-area-inset-top)); bottom: auto; left: 60px; right: 104px; width: auto; max-width: 320px; transform: none; z-index: 17; }
  body:not(.paneel-dicht) .vakpil { top: calc(10px + env(safe-area-inset-top)); bottom: auto; left: 60px; transform: none; z-index: 17; }
  .vk-voet { display: none; }
  .vk-knop { min-height: 44px; }
}

/* in de werkplaats */
.vakuitleg { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid rgba(246, 196, 83, .35); background: var(--gold-soft); font-size: .86rem; color: var(--fg-2); }
.vakuitleg p { margin: 3px 0 0; }
.vakuitleg .vu-kop { display: flex; align-items: center; gap: 6px; color: var(--fg); }
.vakuitleg .vu-goed { color: var(--good); }
.vakvat { display: flex; gap: 12px; align-items: flex-start; }
.vakvat .vv-doek { flex: none; width: 72px; height: 72px; image-rendering: pixelated; image-rendering: crisp-edges; }
.vakvat .vv-rechts { flex: 1; min-width: 0; }
.vakvat .vv-knoppen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.vakvat .vv-knoppen .btn { min-height: 36px; }
.vakvat[data-fase="smaak"] { border-color: var(--gold); box-shadow: 0 0 14px rgba(246, 196, 83, .3); }
.vakvat[data-fase="zuur"] { border-color: rgba(190, 200, 90, .5); }
@media (prefers-reduced-motion: reduce) { .vk-tekst[data-soort="nu"] { animation: none; } .vk-knop.tik { animation: none; } }
