/* Grimstay 1.7: de grote knop bij houthakken, mijnbouw en vissen (ui-verzamelen.js). Hij staat onder je poppetje, midden
   in de wereld (die schuift op als het zijpaneel open staat), en klopt zachtjes zolang je iets kunt doen. Het balkje onderin
   loopt leeg in de tijd die je nog hebt. */
#vzknop { position: fixed; left: calc(50% - 85px); bottom: 24vh; z-index: 12; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; min-width: 230px; max-width: calc(100vw - 32px); padding: 9px 20px 13px 10px;
  border-radius: 999px; border: 1px solid #ffe6a3; background: linear-gradient(180deg, #ffd56e, #eba53a); color: var(--gold-ink);
  font: 800 1.02rem var(--body); text-align: left; cursor: pointer; overflow: hidden; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(150, 80, 10, .45), 0 6px 22px rgba(240, 160, 50, .35), 0 2px 6px rgba(0, 0, 0, .5);
  animation: vzpop .2s ease-out, vzklop 1.1s ease-in-out .2s infinite; }
#vzknop:hover { filter: brightness(1.06); }
#vzknop:active { transform: translateX(-50%) translateY(1px) scale(.98); animation: none; }
#vzknop .vzico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(43, 26, 3, .16); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
#vzknop .vztxt { display: flex; flex-direction: column; line-height: 1.2; }
#vzknop .vztxt small { font-weight: 600; font-size: .72rem; opacity: .72; }
#vzknop .vztxt small:empty { display: none; }
#vzknop .vztijd { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 4px; border-radius: 4px; background: rgba(43, 26, 3, .22); overflow: hidden; }
#vzknop .vztijd::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .7; transform-origin: left center;
  animation: vztijd linear forwards; animation-duration: var(--vzms, 3000ms); animation-delay: var(--vzdelay, 0ms); }
#vzknop.blauw { background: linear-gradient(180deg, #a8e0ff, #4fa3e0); border-color: #dff3ff; color: #062238;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(20, 70, 120, .45), 0 6px 22px rgba(80, 170, 240, .35), 0 2px 6px rgba(0, 0, 0, .5); }
#vzknop.paars { background: linear-gradient(180deg, #e2c2ff, #9a5ae0); border-color: #f2e4ff; color: #22083a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(80, 30, 130, .45), 0 6px 22px rgba(170, 100, 240, .35), 0 2px 6px rgba(0, 0, 0, .5); }
#vzknop.rustig { background: var(--glass); border-color: var(--gold); color: var(--fg); animation: vzpop .2s ease-out; }
#vzknop.rustig .vzico { background: rgba(255, 255, 255, .06); }
@keyframes vztijd { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes vzklop { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.045); } }
@keyframes vzpop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@media (max-width: 900px) { #vzknop { left: calc(50% - 67px); } }
@media (max-width: 600px) { #vzknop { left: 50%; } }
@media (max-width: 760px), (max-height: 520px) {
  #vzknop { bottom: calc(92px + env(safe-area-inset-bottom)); min-width: 210px; font-size: 1rem; padding: 10px 18px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { #vzknop { animation: none; } }
