/* ── Eindscherm (Minipret) ──────────────────────────────────────
   Zelfde blauw/Oranje stijl als het startscherm. Responsive
   via clamp() + vh-units zoals de rest van het spel. */

.ws-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vh, 24px);
  /* Speelscherm blijft zichtbaar als achtergrond, met lichte dim */
  background: rgba(20, 50, 100, 0.35);
  font-family: 'Fredoka', 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  animation: wsFadeIn 0.22s ease-out;
}
@keyframes wsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ws-panel {
  width: 100%;
  max-width: min(560px, 94vw);
  max-height: 96vh;
  background: #ffffff;
  border-radius: clamp(14px, 2.4vh, 22px);
  padding: clamp(14px, 3vh, 28px) clamp(18px, 4vw, 36px);
  text-align: center;
  box-shadow: 0 10px 0 rgba(20, 60, 130, 0.18), 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: wsPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.8vh, 18px);
  box-sizing: border-box;
}
@keyframes wsPop {
  0%   { transform: scale(0.88); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

.ws-title {
  margin: 0;
  font-size: clamp(22px, 4.2vh, 38px);
  font-weight: 700;
  color: #1f4e9c;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
}

.ws-score-box {
  background: linear-gradient(180deg, #fff7ec 0%, #ffe6c2 100%);
  border: 3px solid #ff8c1a;
  border-radius: clamp(12px, 2.4vh, 20px);
  padding: clamp(10px, 2.2vh, 22px) clamp(14px, 3vw, 28px);
  box-shadow: 0 6px 0 rgba(214, 85, 0, 0.20), inset 0 0 0 1px rgba(255, 140, 26, 0.30);
}
.ws-score-label {
  margin: 0 0 clamp(2px, 0.6vh, 6px);
  font-size: clamp(12px, 1.9vh, 16px);
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #d65500;
  text-transform: uppercase;
}
.ws-score-value {
  font-size: clamp(40px, 9vh, 80px);
  font-weight: 700;
  line-height: 1;
  color: #d65500;
  text-shadow: 0 2px 0 rgba(214, 85, 0, 0.15);
  letter-spacing: 1px;
}

.ws-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.2vh, 12px);
  margin-top: clamp(4px, 1vh, 10px);
}
/* Submit-knop volle breedte onder de andere twee */
.ws-btn--submit { grid-column: 1 / -1; }
.ws-btn {
  border: 0;
  border-radius: 999px;
  padding: clamp(8px, 1.7vh, 14px) clamp(14px, 3vw, 24px);
  font-family: inherit;
  font-size: clamp(14px, 2.1vh, 18px);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.10s, box-shadow 0.10s, filter 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ws-btn__icon { font-size: 1.15em; line-height: 1; }
.ws-btn:active { transform: translateY(1px); }

.ws-btn--restart {
  background: linear-gradient(180deg, #ff9a33 0%, #ff7a00 100%);
  color: #fff;
  box-shadow: 0 4px 0 #c45a00, 0 6px 14px rgba(196, 90, 0, 0.30);
}
.ws-btn--restart:hover { filter: brightness(1.07); }
.ws-btn--restart:active { box-shadow: 0 2px 0 #c45a00, 0 3px 6px rgba(196, 90, 0, 0.30); }

.ws-btn--home {
  background: #f3f8ff;
  color: #1f4e9c;
  box-shadow: 0 4px 0 rgba(60, 100, 160, 0.25), inset 0 0 0 2px rgba(60, 100, 160, 0.18);
}
.ws-btn--home:hover { background: #ffffff; }
.ws-btn--home:active { box-shadow: 0 2px 0 rgba(60, 100, 160, 0.25), inset 0 0 0 2px rgba(60, 100, 160, 0.18); }

.ws-btn--submit {
  background: linear-gradient(180deg, #2f6fd8 0%, #1f4e9c 100%);
  color: #fff;
  box-shadow: 0 4px 0 #143a78, 0 6px 14px rgba(20, 58, 120, 0.30);
}
.ws-btn--submit:hover { filter: brightness(1.10); }
.ws-btn--submit:active { box-shadow: 0 2px 0 #143a78, 0 3px 6px rgba(20, 58, 120, 0.30); }
