* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#hint-knop, #reset-spel {
  background: #1f2937; color: #fff;
  border: 3px solid #475569; border-radius: 8px;
  padding: 8px 12px; font-size: 16px; cursor: pointer;
}
#stage.hints-aan .hotspot { outline: 2px dashed #ef4444; outline-offset: 2px; }
#stage.hints-aan .hotspot::after { opacity: 1; }
@media (pointer: coarse) {
  .item-slot { width: 56px; height: 56px; font-size: 28px; }
}
body {
  margin: 0; background: #111; color: #fff;
  font-family: 'Comic Sans MS', 'Quicksand', system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
#spel {
  position: relative;
  width: min(96vw, 960px);
  aspect-ratio: 16 / 10;
  background: #000;
  border: 4px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}
#stage {
  position: relative;
  background: #fde68a;
  overflow: hidden;
}
.hotspot {
  position: absolute;
  cursor: pointer;
  outline: none;
}
.hotspot:hover, .hotspot:focus-visible {
  outline: 2px dashed #ef4444;
  outline-offset: 2px;
}
.hotspot::after {
  content: attr(data-naam);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 4;
}
.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
}
#scene-tekst {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(0,0,0,0.85); color: #fff;
  padding: 10px 14px; border-radius: 8px;
  font-size: 18px; line-height: 1.3;
  z-index: 5;
}
#hud {
  background: #1f2937;
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  padding: 8px;
}
#verbs { display: flex; gap: 8px; justify-content: center; }
.verb {
  background: #fbbf24; color: #1f2937;
  border: 3px solid #1f2937; border-radius: 8px;
  padding: 8px 14px; font-weight: bold; font-size: 16px;
  font-family: inherit; cursor: pointer;
}
.verb.actief { background: #ef4444; color: #fff; }
#inventaris {
  display: flex; gap: 6px; min-height: 50px;
  background: #0f172a; border-radius: 6px; padding: 6px;
}
.item-slot {
  width: 48px; height: 48px; border-radius: 6px;
  background: #1e293b; border: 2px solid #334155;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px;
}
.item-slot.actief { border-color: #ef4444; background: #475569; }
.item-slot { position: relative; }
.item-slot::after {
  content: attr(data-kijk);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(0,0,0,0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 20;
}
.item-slot:hover::after,
.item-slot:focus-visible::after {
  opacity: 1;
}
#dialoog {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  z-index: 10;
}
#dialoog[hidden] { display: none; }
.dialoog-bubbel {
  background: #fff; color: #1f2937;
  border: 3px solid #1f2937; border-radius: 12px;
  padding: 16px 20px; max-width: 80%;
  font-size: 18px; line-height: 1.4;
}
.dialoog-keuzes { display: grid; gap: 8px; margin-top: 12px; }
.dialoog-keuzes button {
  background: #fbbf24; color: #1f2937;
  border: 2px solid #1f2937; border-radius: 8px;
  padding: 8px 12px; font-family: inherit; font-size: 16px;
  cursor: pointer; text-align: left;
}
