:root {
  --bg1: #fefce8; --bg2: #fef3c7;
  --accent: #d97706; --accent2: #b45309; --soft: #fef3c7;
  --staal: #f59e0b;
}
.kraanveld {
  position: relative; margin: 0 auto 10px; padding: 96px 18px 18px; width: max-content; max-width: 100%;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line);
  background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
  background-size: 18px 18px;
}
/* de balk van de kraan */
.kraanveld::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 14px; border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--staal) 0 12px, #1f2937 12px 18px);
}
.kraan { position: absolute; left: 0; top: 4px; width: 60px; transition: transform .45s cubic-bezier(.5, 1.6, .5, 1); z-index: 2; }
.kraan .arm { width: 40px; height: 22px; margin: 0 auto; background: #374151; border-radius: 6px; }
.kraan .kabel { width: 3px; height: 38px; margin: 0 auto; background: #374151; position: relative; animation: zwaai 2.2s ease-in-out infinite; transform-origin: top center; }
.kraan .haak { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: 26px; }
.kraan.klaar .kabel { height: 14px; transition: height .4s; }
@keyframes zwaai { 50% { transform: rotate(4deg); } }

.cgrid { display: grid; grid-template-columns: 40px repeat(var(--w), 56px); gap: 4px 6px; justify-content: center; }
.cc { height: 56px; display: grid; place-items: center; font-weight: 900; font-size: 36px; border-radius: 10px; font-variant-numeric: tabular-nums; position: relative; }
.cc.kop { height: 24px; font-size: 13px; color: var(--muted); font-weight: 800; }
.cc.boven { height: 34px; font-size: 22px; color: var(--accent2); border: 2px dashed transparent; }
.cc.boven.actief { border-color: var(--accent); background: var(--soft); }
.cc.boven.onth .val { background: #fde68a; border-radius: 99px; padding: 0 8px; }
.cc.boven.leen { color: #dc2626; }
.cc.cijfer { background: #fffbeb; border: 2px solid #fde68a; animation: zak .55s cubic-bezier(.3, 1.4, .6, 1) backwards; }
.cc.cijfer.leeg { background: none; border-color: transparent; }
.cc.cijfer.doorgestreept span { color: #9ca3af; text-decoration: line-through; text-decoration-color: #dc2626; text-decoration-thickness: 4px; }
.cc.teken { font-size: 34px; color: var(--accent2); }
@keyframes zak { from { transform: translateY(-120px); opacity: 0; } 60% { opacity: 1; } }
.streep { height: 5px; background: #1f2937; border-radius: 3px; margin: 2px 0; }
.cc.antw { background: #f8fafc; border: 3px solid var(--line); }
.cc.antw.actief { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 5px var(--soft); }
.cc.actief::after { content: ""; position: absolute; inset: auto 20% 6px; height: 3px; background: var(--accent); border-radius: 2px; animation: knipper 1s steps(2) infinite; }
.cc.boven.actief::after { bottom: 3px; }
@keyframes knipper { 50% { opacity: 0; } }
.cc.mis { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.cc .val { display: inline-block; }
.cc.drop .val { animation: plof .3s ease-out; }
@keyframes plof { from { transform: translateY(-18px) scale(1.3); opacity: 0; } }
.cgrid.af .antw { border-color: var(--good); background: var(--good-soft); }

.chint { text-align: center; font-size: 18px; min-height: 26px; margin: 4px 0 10px; }
.cpad { max-width: 520px; margin: 0 auto; }
.ckeys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ckeys button {
  background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 0;
  font-size: 26px; font-weight: 900; box-shadow: 0 3px 0 var(--line);
}
.ckeys button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.cacties { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.cacties .k-btn { font-size: 18px; padding: 10px 18px; }
#bLeen { border-color: #fca5a5; }

@media (max-width: 560px) {
  .kraanveld { padding: 84px 8px 12px; }
  .cgrid { grid-template-columns: 26px repeat(var(--w), 44px); gap: 3px 4px; }
  .cc { height: 48px; font-size: 28px; }
  .cc.boven { height: 28px; font-size: 18px; }
  .cc.teken { font-size: 26px; }
  .ckeys button { font-size: 22px; padding: 8px 0; }
}
