/* wall.css: de spijker, het naambordje, de knoppen en de briefjes. potlood: muur niet verven */

/* ---------- de spijker die alles draagt ---------- */

.nail {
  position: absolute;
  z-index: 6;
  top: calc(var(--drop) * .15 - 20px);
  left: 50%;
  width: 60px;
  height: 40px;
  margin: 0 0 0 -30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: help;
}

.nail-cracks {
  position: absolute;
  inset: 0;
  fill: none;
  stroke: rgba(70, 55, 40, .45);
  stroke-width: 1;
}

.nail-head {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2f4f5, #8d949a 55%, #50565c);
  box-shadow: 1px 3px 3px rgba(0, 0, 0, .45);
  transform: rotate(18deg) scaleY(.82); /* hij zakt al een beetje */
}

.sweat {
  position: absolute;
  width: 5px;
  height: 7px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: linear-gradient(#bfe3ff, #6fb6ef);
  opacity: 0;
  animation: sweat 3.2s ease-in infinite;
}
.sweat.s1 { left: 40px; top: 10px; }
.sweat.s2 { left: 14px; top: 13px; animation-delay: 1.6s; }

@keyframes sweat {
  0%, 30% { opacity: 0; transform: translateY(0); }
  40% { opacity: .9; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- onder het schilderij ---------- */

.under {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.plaque {
  margin: 0;
  padding: 8px 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #e8d18f, #b8923f 55%, #d9bd72);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(90, 60, 10, .35);
  color: #3d2c08;
  font: 600 14px/1.3 var(--f-type);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--ink);
  font: 700 15px/1 var(--f-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px dashed var(--pencil); outline-offset: 3px; }
.btn[hidden] { display: none; }

.fallout {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(90vw, 460px);
  margin: 0;
  padding: 12px 18px;
  background: #fff59a;
  color: var(--ink);
  font: 400 18px/1.3 var(--f-marker);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translate(-50%, 160%) rotate(-2deg);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }

.print-only { display: none; }
