/* ===================================================
   Tokens
=================================================== */
:root{
  --sky-top: #8FE3F7;
  --sky-bot: #5FC2E4;
  --ink: #14121F;
  --shadow: #241B3D;
  --panel: #EEF3F7;
  --paper: #FBF3DD;
  --red: #E8435C;
  --red-dark: #9E2338;
  --red-darker: #5c1420;
  --green: #4FD67A;
  --green-dark: #227A44;
  --yellow: #FFCE45;
  --yellow-dark: #C98F10;
  --navy: #2C3B6B;
  --navy2: #1F2A4D;
  --window: #FFE28A;
  --grey: #B9C3CE;
}

*{ box-sizing: border-box; image-rendering: pixelated; }

@media (prefers-reduced-motion: reduce){ *{ animation: none !important; } }

html,body{ margin:0; padding:0; }

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  padding: 90px 14px 130px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-top) 55%, var(--sky-bot) 55%, var(--sky-bot) 100%);
  font-family: "VT323", monospace;
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

button{ font-family: inherit; }
button:focus-visible{ outline: 3px solid var(--navy2); outline-offset: 3px; }

/* ===================================================
   Backdrop: clouds, skyline, ground
=================================================== */
.cloud{ position:fixed; background:#fff; opacity:0.85; z-index:0; }
.cloud::before, .cloud::after{ content:""; position:absolute; background:#fff; }
.c1{ top:60px; left:6%; width:70px; height:18px; }
.c1::before{ width:34px; height:14px; top:-12px; left:10px; }
.c1::after{ width:24px; height:10px; top:-8px; left:40px; }
.c2{ top:110px; right:8%; width:56px; height:14px; }
.c2::before{ width:26px; height:12px; top:-10px; left:14px; }

.skyline{
  position:fixed; left:0; right:0; bottom:0;
  display:flex; align-items:flex-end; justify-content:center; gap:10px;
  z-index:0; pointer-events:none;
}
.bldg{
  background: var(--navy);
  border-top: 3px solid var(--navy2);
  display:grid; grid-template-columns: repeat(3,1fr); gap:6px; padding:8px;
}
.bldg span{ background: var(--window); width:10px; height:10px; }
.bldg.b1{ width:110px; height:150px; }
.bldg.b2{ width:150px; height:210px; grid-template-columns: repeat(4,1fr); }
.bldg.b2 span{ width:11px; height:11px; }
.bldg.b3{ width:100px; height:130px; }
.bldg.cross{
  background: var(--panel);
  border-top: 3px solid var(--ink);
  width:130px; height:190px;
  display:flex; align-items:flex-start; justify-content:center; padding-top:14px;
}
.ground{
  position:fixed; left:0; right:0; bottom:0; height:14px;
  background: repeating-linear-gradient(90deg, #3f9e57 0 14px, #368a4a 14px 28px);
  z-index:1;
}
.px-cross{
  width:6px; height:6px; background: var(--red);
  box-shadow:
    0 -6px 0 var(--red), 0 -12px 0 var(--red),
    0 6px 0 var(--red), 0 12px 0 var(--red),
    -6px 0 0 var(--red), -12px 0 0 var(--red),
    6px 0 0 var(--red), 12px 0 0 var(--red);
  filter:
    drop-shadow(6px 0 0 var(--ink)) drop-shadow(-6px 0 0 var(--ink))
    drop-shadow(0 6px 0 var(--ink)) drop-shadow(0 -6px 0 var(--ink));
  margin:12px 0 18px;
}

/* ===================================================
   Layout wrap
=================================================== */
.wrap{ position:relative; z-index:2; width:100%; max-width:560px; }

/* ===================================================
   Reusable pixel-frame (notched-corner shell)
=================================================== */
.pf{
  background: var(--ink);
  padding: 4px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.pf-shadow{ filter: drop-shadow(6px 6px 0 var(--shadow)); }
.pf-inner{
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.pf-fail{ filter: drop-shadow(6px 6px 0 var(--red-darker)); }

/* ===================================================
   HUD (logo + heart) — persistent
=================================================== */
.hud{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:10px; margin-bottom:16px; flex-wrap:wrap;
}
.logo-row{ display:flex; align-items:center; gap:12px; }
.logo-icon{
  width:34px; height:34px; background: var(--red);
  clip-path: polygon(30% 0,70% 0,70% 30%,100% 30%,100% 70%,70% 70%,70% 100%,30% 100%,30% 70%,0 70%,0 30%,30% 30%);
  filter: drop-shadow(3px 3px 0 var(--shadow));
  border: 3px solid var(--ink);
  flex-shrink:0;
}
.logo-text{
  font-family:"Press Start 2P", monospace;
  font-size:15px; line-height:1.5; color: var(--ink);
  text-shadow: 2px 2px 0 var(--paper);
}
.logo-text small{
  display:block; font-family:"VT323", monospace; font-size:13px;
  letter-spacing:0.08em; color: var(--navy2); margin-top:2px;
}

/* heart gets a fixed bounding box so it never overlaps neighboring text */
.heart-box{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  width: 56px;
}
.heart{
  position: relative;
  width: 40px; height: 36px;
}
.heart::before{
  content:"";
  position:absolute; left:8px; top:4px;
  width:4px; height:4px;
  background: var(--red);
  box-shadow:
    4px 0 0 var(--red), 12px 0 0 var(--red), 16px 0 0 var(--red),
    -4px 4px 0 var(--red), 0 4px 0 var(--red), 4px 4px 0 var(--red), 8px 4px 0 var(--red), 12px 4px 0 var(--red), 16px 4px 0 var(--red), 20px 4px 0 var(--red),
    0 8px 0 var(--red), 4px 8px 0 var(--red), 8px 8px 0 var(--red), 12px 8px 0 var(--red), 16px 8px 0 var(--red), 20px 8px 0 var(--red),
    4px 12px 0 var(--red), 8px 12px 0 var(--red), 12px 12px 0 var(--red), 16px 12px 0 var(--red),
    8px 16px 0 var(--red), 12px 16px 0 var(--red),
    12px 20px 0 var(--red);
  filter:
    drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink))
    drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink));
  transition: filter 0.2s ease;
}
.heart.hurt::before{
  filter: grayscale(0.75) brightness(0.75)
    drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink))
    drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink));
}
.heart-label{
  font-family:"Press Start 2P", monospace;
  font-size:11px; letter-spacing:0.08em; color: var(--navy2);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.6);
}

/* ===================================================
   Stage / screens
=================================================== */
.stage{ display:flex; flex-direction:column; }
.screen{ animation: screenIn 0.3s ease; }
@keyframes screenIn{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }

.panel{ background: var(--panel); padding: 22px 20px 24px; }
.panel-result{ text-align:left; }
.panel-fail{ background: #f4e3e6; }

.eyebrow{
  font-family:"Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing:0.08em;
  color: var(--navy2);
  margin: 0 0 12px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}
.eyebrow-fail{ color: var(--red-dark); }

.title{
  font-family:"Press Start 2P", monospace;
  font-size: 30px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--paper);
}
.title-small{ font-size: 20px; }
.title-fail{
  color: var(--red-dark);
  text-shadow: 3px 3px 0 #fff;
  font-size: 26px;
}
.blink-cursor{ animation: blink 0.8s steps(2) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.lede{
  font-size: 21px;
  line-height: 1.55;
  color: var(--navy2);
  margin: 0 0 20px;
  max-width: 44ch;
}

.hint{
  font-family:"VT323", monospace;
  font-size: 16px;
  color: var(--navy2);
  margin-top: 4px;
}
.hint-left{ text-align:left; }

/* ===================================================
   Buttons (pixel-frame system)
=================================================== */
.btn-frame{
  display:inline-block;
  background: var(--ink);
  padding: 3px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  filter: drop-shadow(4px 4px 0 var(--shadow));
  transition: transform 0.05s ease, filter 0.05s ease;
}
.btn-frame:active{ transform: translate(4px,4px); filter: drop-shadow(0 0 0 var(--shadow)); }
.btn-frame-lg{ margin-top: 4px; }

.btn-next{
  font-family:"Press Start 2P", monospace;
  font-size: 13px;
  background: var(--yellow);
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  color: var(--ink);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.btn-next:hover{ filter: brightness(1.06); }

.btn-frame-ghost{ filter: drop-shadow(4px 4px 0 rgba(36,27,61,0.35)); }
.btn-ghost{
  font-family:"Press Start 2P", monospace;
  font-size: 12px;
  background: var(--paper);
  border: none;
  padding: 13px 18px;
  cursor: pointer;
  color: var(--navy2);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.btn-cluster{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ===================================================
   Quiz: progress bar + tag row
=================================================== */
.quiz-top{ margin-bottom: 14px; }

.bar{ display:flex; gap:4px; margin-bottom: 12px; flex-wrap: wrap; }
.cell{ width:26px; height:14px; background: var(--grey); border:2px solid var(--ink); }
.cell.now{ background: var(--yellow); animation: cellBlink 0.8s steps(2) infinite; }
.cell.ok{ background: var(--green); }
.cell.bad{ background: var(--red); }
@keyframes cellBlink{ 50%{ opacity:0.35; } }

.tag-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }

.tag{
  display:inline-block;
  font-family:"Press Start 2P", monospace;
  font-size: 10.5px;
  color: var(--ink);
  background: var(--yellow);
  padding: 8px 11px;
  border: 3px solid var(--ink);
  clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
  filter: drop-shadow(3px 3px 0 var(--shadow));
}

.qcount{
  font-family:"Press Start 2P", monospace;
  font-size: 10.5px;
  color: var(--navy2);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.55);
}

/* ===================================================
   Question + options
=================================================== */
.prompt{
  font-family:"Press Start 2P", monospace;
  font-size: 10.5px;
  color: var(--navy2);
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin: 0 0 14px;
}

.question{
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 20px;
  text-shadow: 1px 0 0 currentColor;
}

.options{ display:flex; flex-direction:column; gap: 12px; }

.opt-frame{
  background: var(--ink);
  padding: 3px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  filter: drop-shadow(4px 4px 0 var(--shadow));
  transition: transform 0.05s ease, filter 0.05s ease, opacity 0.2s ease;
}
.opt-frame:not(.locked):active{ transform: translate(4px,4px); filter: drop-shadow(0 0 0 var(--shadow)); }

.opt{
  width:100%;
  display:flex; align-items:center; gap:12px;
  background: var(--paper);
  border:none;
  padding: 13px 15px;
  cursor:pointer;
  font-family:"VT323", monospace;
  font-size: 21px;
  color: var(--ink);
  text-align:left;
  text-shadow: 0.6px 0 0 currentColor;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}
.opt-frame:hover:not(.locked) .opt{ background: #fff8e6; }

.opt .letter{
  font-family:"Press Start 2P", monospace;
  font-size: 12px;
  width:28px; height:28px;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy2);
  color: var(--window);
  flex-shrink:0;
}

.opt-frame.correct .opt{ background: #d3f7de; }
.opt-frame.correct .letter{ background: var(--green-dark); color:#eaffef; }
.opt-frame.wrong .opt{ background: #fbd7dc; }
.opt-frame.wrong .letter{ background: var(--red-dark); color:#ffe9ec; }
.opt-frame.dim{ opacity: 0.62; }
.opt-frame.locked .opt{ cursor:default; }

/* ===================================================
   Feedback dialogue
=================================================== */
.dialogue{ margin-top: 18px; }
.dbox{ background: var(--navy2); padding: 15px 16px 17px; color: var(--window); position:relative; }
.dtitle{
  font-family:"Press Start 2P", monospace;
  font-size: 12.5px;
  margin: 0 0 10px;
}
.dtitle.good{ color: var(--green); }
.dtitle.bad{ color: var(--red); }
.dtext{ font-size: 20px; line-height: 1.5; margin:0; color:#EAF3FF; padding-right: 20px; }
.cursor{
  position:absolute; right:14px; bottom:12px;
  width:0; height:0;
  border-left:8px solid transparent; border-right:8px solid transparent;
  border-top:10px solid var(--window);
  animation: bob 0.6s steps(2) infinite;
}
@keyframes bob{ 50%{ transform: translateY(4px); } }

.next-row{ display:flex; justify-content:flex-end; margin-top: 16px; }

/* ===================================================
   Results
=================================================== */
.score-frame{
  display:inline-block;
  background: var(--ink);
  padding: 4px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  margin: 4px 0 18px;
  filter: drop-shadow(5px 5px 0 var(--shadow));
}
.score-box{
  background: var(--navy2);
  color: var(--green);
  font-family:"Press Start 2P", monospace;
  font-size: 42px;
  padding: 16px 26px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.score-frame-fail{ filter: drop-shadow(5px 5px 0 var(--red-darker)); }
.score-box-fail{ color: var(--red); }

/* ===================================================
   Review
=================================================== */
.review-list{ display:flex; flex-direction:column; gap:14px; margin: 6px 0 20px; max-height: 48vh; overflow-y:auto; padding-right: 4px; }
.review-item{ background: var(--paper); border: 3px solid var(--ink); padding: 14px 15px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.review-q{ font-family:"VT323", monospace; font-weight: normal; font-size: 19px; margin: 0 0 8px; text-shadow: 0.6px 0 0 currentColor; }
.review-row{ font-size: 16px; margin: 4px 0; line-height:1.5; }
.review-row.wrong-ans{ color: var(--red-dark); }
.review-row.right-ans{ color: var(--green-dark); }
.review-explain{ font-size: 15px; color: var(--navy2); margin-top:8px; padding-top:8px; border-top: 2px dashed var(--grey); }

/* ===================================================
   Divider ("OF")
=================================================== */
.divider{
  display:flex; align-items:center; gap: 10px;
  margin: 4px 0 18px;
  font-family:"Press Start 2P", monospace;
  font-size: 9px;
  color: var(--navy2);
  letter-spacing: 0.1em;
}
.divider::before, .divider::after{
  content:"";
  flex:1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--navy2) 0 6px, transparent 6px 12px);
}

/* ===================================================
   Course CTA card (shown on the fail screen)
=================================================== */
.course-frame{
  background: var(--ink);
  padding: 4px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  filter: drop-shadow(5px 5px 0 var(--shadow));
}
.course-card{
  background: var(--navy2);
  padding: 18px 18px 20px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  color: var(--window);
}
.course-top{ display:flex; align-items:flex-start; gap: 14px; margin-bottom: 12px; }
.course-icon{
  width: 38px; height: 38px; flex-shrink:0;
  background: var(--yellow);
  border: 3px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.course-icon::before{ content:""; width:6px; height:6px; background:var(--ink); box-shadow: 0 -6px var(--ink), 0 6px var(--ink), -6px 0 var(--ink), 6px 0 var(--ink); }
.course-title{ font-family:"Press Start 2P", monospace; font-size: 13px; line-height: 1.6; margin: 4px 0 0; color: #fff; }
.course-text{ font-size: 19px; line-height: 1.5; color: #D9E6F5; margin: 0 0 16px; }
.course-btn-frame{
  background: var(--yellow); padding: 3px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.35));
  display:inline-block;
  transition: transform 0.05s ease, filter 0.05s ease;
}
.course-btn-frame:active{ transform: translate(4px,4px); filter: drop-shadow(0 0 0 rgba(0,0,0,0.35)); }
.course-btn{
  font-family:"Press Start 2P", monospace;
  font-size: 12px;
  background: var(--navy2);
  color: var(--yellow);
  border: none;
  text-decoration:none;
  display:inline-flex; align-items:center; gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

/* ===================================================
   Providers page (cursussen.html)
=================================================== */
.back-frame{ background: var(--ink); padding:3px; display:inline-block; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); filter: drop-shadow(3px 3px 0 var(--shadow)); }
.back-link{
  display:inline-block;
  font-family:"Press Start 2P", monospace;
  font-size: 10px;
  background: var(--paper);
  color: var(--navy2);
  text-decoration:none;
  padding: 9px 12px;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0 6px; }
@media (max-width: 620px){ .grid{ grid-template-columns: 1fr; } }

.tile-frame{
  background: var(--ink);
  padding: 4px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  filter: drop-shadow(5px 5px 0 var(--shadow));
  transition: transform 0.08s ease, filter 0.08s ease;
  position: relative;
}
.tile{
  background: var(--paper);
  padding: 20px 18px 20px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  display:flex; flex-direction:column; gap: 10px;
  min-height: 210px;
  position: relative;
}

a.tile-frame{ text-decoration:none; color:inherit; display:block; cursor:pointer; }
a.tile-frame:hover{ transform: translate(-2px,-2px); filter: drop-shadow(7px 7px 0 var(--shadow)); }
a.tile-frame:active{ transform: translate(3px,3px); filter: drop-shadow(2px 2px 0 var(--shadow)); }

.provider-badge{
  width: 44px; height: 44px;
  background: var(--red);
  border: 3px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.provider-badge::before{ content:""; width: 6px; height: 6px; background:#fff; box-shadow: 0 -6px #fff, 0 6px #fff, -6px 0 #fff, 6px 0 #fff; }

.provider-name{ font-family:"Press Start 2P", monospace; font-size: 14.5px; line-height:1.5; margin: 4px 0 0; color: var(--ink); }
.provider-desc{ font-size: 19px; line-height: 1.5; color: var(--navy2); margin: 0; flex-grow: 1; }

.mini-tag-row{ display:flex; flex-wrap:wrap; gap:6px; margin: 2px 0 4px; }
.mini-tag{ font-family:"Press Start 2P", monospace; font-size: 8.5px; background: var(--panel); border: 2px solid var(--ink); color: var(--navy2); padding: 4px 6px; }

.cta-row{ display:flex; align-items:center; justify-content:space-between; margin-top: 6px; font-family:"Press Start 2P", monospace; font-size: 11px; color: var(--red-dark); }
.cta-row .arrow{ transition: transform 0.1s ease; }
a.tile-frame:hover .arrow{ transform: translateX(4px); }

.tile-frame.soon{ filter: drop-shadow(5px 5px 0 rgba(36,27,61,0.35)); cursor: default; }
.tile.soon-inner{ filter: grayscale(0.6); }
.tile-frame.soon .provider-badge{ background: #7f8896; }
.tile-frame.soon .provider-name, .tile-frame.soon .provider-desc{ color: #7f8896; }

.scrim{ position:absolute; inset:0; background: rgba(20,18,31,0.5); }

.stamp{
  position:absolute; top: 46%; left: 50%;
  transform: translate(-50%,-50%) rotate(-8deg);
  font-family:"Press Start 2P", monospace;
  font-size: 13px;
  color: var(--yellow);
  background: var(--ink);
  padding: 8px 10px;
  border: 3px solid var(--yellow);
  white-space: nowrap;
  text-align:center;
  box-shadow: 0 0 0 3px var(--ink);
}

.hazard-corner{ position:absolute; top:0; left:0; width: 78px; height: 78px; overflow: hidden; pointer-events:none; }
.hazard-corner::before{
  content:"";
  position:absolute; top: 14px; left: -24px;
  width: 120px; height: 18px;
  transform: rotate(-45deg);
  background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
}

.footnote{ font-family:"VT323", monospace; font-size: 15px; color: var(--navy2); text-align:center; margin-top: 22px; line-height: 1.6; }

/* ===================================================
   Footer + confetti
=================================================== */
.foot{
  font-family:"Press Start 2P", monospace;
  font-size: 8.5px;
  line-height: 1.8;
  color: var(--navy2);
  text-align:center;
  margin-top: 22px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

#confettiCanvas{ position: fixed; inset:0; pointer-events:none; z-index: 999; }

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 480px){
  body{ padding: 60px 10px 110px; }
  .title{ font-size: 22px; }
  .question{ font-size: 23px; }
  .score-box{ font-size: 32px; padding: 13px 18px; }
  .skyline{ transform: scale(0.72); transform-origin: bottom center; }
  .logo-text{ font-size: 12px; }
}
