/* Anton = gratis Impact-lookalike, want iOS en Android hebben geen Impact. */
@font-face { font-family: "Anton"; src: url("fonts/anton-400.woff2") format("woff2"); font-display: swap; }

:root {
  --xp-blauw: #0a3fd0;
  --xp-beige: #ece9d8;
  --xp-rand: #0831d9;
  --inkt: #0b1b4d;
  --impact: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --ui: Tahoma, Verdana, "Segoe UI", system-ui, sans-serif;
  --regenboog: linear-gradient(90deg, #ff1f1f 0%, #ff8a00 18%, #ffe600 34%, #1fd12b 52%, #1f7bff 70%, #7a2cff 86%, #ff2fb4 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh;
  background: #3f8ae9; /* fallback achter de Bliss-svg */
  color: var(--inkt); font-family: var(--ui);
  overflow-x: clip;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
}
a { color: #0033cc; }
button { font: inherit; }

.bliss { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.bliss .regen { display: none; }
.nee .bliss .regen { display: inline; animation: regen .6s linear infinite; }
@keyframes regen { from { transform: translate(0, -120px); } to { transform: translate(-40px, 0); } }
.nee .bliss .l1 { stop-color: #4b5b73; } .nee .bliss .l2 { stop-color: #7185a0; }
.nee .bliss .l3 { stop-color: #a6b3c4; } .nee .bliss .l4 { stop-color: #c7d0db; }
.nee .bliss .wolken { opacity: 1; fill: #e7ebf1; }
.nee .bliss { filter: saturate(.7); }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
}
.merk, .locatie {
  font: bold 12px var(--ui); color: #fff; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.7); border-radius: 4px; padding: 4px 8px;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.locatie { cursor: pointer; max-width: 50vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- WORDART ---------- */
.wa { position: relative; display: inline-block; line-height: 1; white-space: nowrap; isolation: isolate; }
.wa .f { position: relative; display: inline-block; }
.wa::before { /* extrusie-laag */
  content: attr(data-tekst); position: absolute; left: 0; top: 0; z-index: -1;
  color: #4b4b55;
}
.wa-impact { font-family: var(--impact); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.wa-regenboog .f {
  background: var(--regenboog); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #1a1a6e; paint-order: stroke fill;
}
.wa-regenboog::before {
  -webkit-text-stroke: 0; color: #54545e;
  text-shadow:
    1px 1px 0 #54545e, 2px 2px 0 #54545e, 3px 3px 0 #4a4a53, 4px 4px 0 #43434b,
    5px 5px 0 #3c3c43, 6px 6px 0 #35353b, 8px 10px 12px rgba(0,0,0,.35);
}
.wa-serif {
  font-family: var(--serif); font-weight: 700; font-style: italic;
  color: #101a5e; -webkit-text-stroke: 1px #fff;
  text-shadow: 0 0 1px #fff;
}
.wa-serif::before {
  color: #ff8fb8; transform: translate(4px, 5px); -webkit-text-stroke: 0;
  text-shadow: 1px 1px 0 #ff8fb8, 2px 2px 0 #ff8fb8;
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 12px 20px; }
.vraag { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 400; }
.vraag .wa-serif { font-size: clamp(2rem, 10vw, 3.6rem); letter-spacing: -.01em; }
.vraag .wa-impact {
  font-size: clamp(2.6rem, 13.5vw, 5.4rem);
  transform: perspective(420px) rotateX(14deg) scaleY(1.05);
}

.podium { position: relative; width: min(100%, 560px); margin-top: 6px; }
.antwoord { margin: 0; position: relative; z-index: 0; }
.wa-groot .f { -webkit-text-stroke: 3px #1a1a6e; }
.wa-groot {
  font-size: min(48vw, 15rem); line-height: .9;
  transform: perspective(600px) rotateX(12deg) rotate(-4deg);
  animation: wiebel 3.2s ease-in-out infinite alternate;
}
.wa-groot::before {
  text-shadow:
    2px 2px 0 #5a5a64, 4px 4px 0 #52525b, 6px 6px 0 #4a4a52, 8px 8px 0 #424249,
    10px 10px 0 #3a3a40, 12px 12px 0 #333338, 16px 20px 24px rgba(0,0,0,.35);
}
@keyframes wiebel { to { transform: perspective(600px) rotateX(12deg) rotate(3deg) scale(1.04); } }
.laden .wa-groot { opacity: .5; }

.man { position: relative; z-index: 1; width: min(100%, 520px); aspect-ratio: 1100 / 596; margin: -9vw auto 0; }
.man img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: auto;
  filter: drop-shadow(0 16px 12px rgba(0,40,0,.35));
  transition: opacity .35s, transform .35s;
}
.man__sad { opacity: 0; transform: translateY(6px); }
.nee .man__sad { opacity: 1; transform: none; }
.nee .man__blij { opacity: 0; transform: translateY(6px); }

.sub { margin: 14px 0 0; }
.wa-sub { font-size: clamp(1.5rem, 7vw, 2.6rem); white-space: normal; max-width: 16ch; text-wrap: balance; }
.wa-sub::before { width: 100%; }
.info { display: flex; flex-direction: column; align-items: center; width: 100%; }

/* ---------- XP-VENSTERS ---------- */
.xp {
  width: 100%; max-width: 520px; text-align: left;
  background: var(--xp-beige); border: 3px solid var(--xp-rand); border-top: 0;
  border-radius: 8px 8px 3px 3px; overflow: hidden;
  box-shadow: 3px 4px 0 rgba(0,0,0,.18), 0 10px 30px rgba(0,20,80,.25);
}
.xp__titel {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 8px; min-height: 30px;
  background: linear-gradient(180deg, #0a5dfb 0%, #3d95ff 8%, #0055ea 40%, #0046e0 88%, #0035c0 100%);
  color: #fff; font: bold 13px "Trebuchet MS", var(--ui); text-shadow: 1px 1px 0 #0a1f7a;
}
.xp__icoon { font-size: 14px; }
.xp__knoppen { margin-left: auto; display: flex; gap: 2px; }
.xp__knoppen i {
  font-style: normal; width: 21px; height: 21px; display: grid; place-items: center;
  border: 1px solid #fff; border-radius: 3px; font-size: 11px; font-weight: bold;
  background: linear-gradient(180deg, #3c8cff, #1455e0); text-shadow: none;
}
.xp__knoppen i.x { background: linear-gradient(180deg, #ef8a6c, #d8401c); }
.xp__body { padding: 12px; font-size: 14px; line-height: 1.45; }

.venster { margin-top: 18px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats li {
  background: #fff; border: 1px solid #7f9db9; border-radius: 3px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.stat__ico { font-size: 20px; line-height: 1; }
.stats b { font: 400 1.75rem/1.1 var(--impact); color: #0b1b4d; margin-top: 4px; }
.stats li > span:last-child { font-size: 11px; color: #555; }
.beste {
  margin: 10px 0 0; padding: 8px 10px; background: #ffffe1; border: 1px solid #b8b28a; border-radius: 3px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px;
}
.beste b { font: 400 1.25rem/1 var(--impact); color: #0a3fd0; letter-spacing: .02em; }

.acties { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; max-width: 520px; }
.xp-knop {
  appearance: none; cursor: pointer; text-decoration: none; color: #000;
  font: 14px var(--ui); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center;
  background: linear-gradient(180deg, #fff 0%, #ecebe6 80%, #d6d0c5 100%);
  border: 1px solid #003c74; border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.6);
}
.xp-knop:hover { box-shadow: inset 0 0 0 2px #f8b636; }
.xp-knop:active { background: linear-gradient(180deg, #e3e2da, #f3f2ee); }
.xp-knop--groen {
  color: #fff; font-weight: bold; font-style: italic; font-size: 15px; text-shadow: 1px 1px 1px rgba(0,0,0,.45);
  background: linear-gradient(180deg, #5fc15f 0%, #3a9f3a 45%, #2f8f2f 55%, #3aa63a 100%);
  border-color: #1e6b1e; flex: 1 1 100%; justify-content: center;
}
.xp-knop--groen:hover { box-shadow: inset 0 0 0 2px #b8f5a2; }

/* ---------- ONDER ---------- */
.onder { display: grid; gap: 18px; justify-items: center; padding: 16px 12px 24px; }
.kladblok { background: #fff; font-family: "Lucida Console", "Courier New", monospace; font-size: 15px; }
.kladblok p { margin: 0; }
.morgen__antwoord { font: 400 2.6rem/1 var(--impact); margin: 0 0 6px; color: #0a3fd0; }
.xp__body p { margin: 0 0 8px; }
.faq details { border-top: 1px solid #c9c4b0; padding: 8px 0; }
.faq details:first-child { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: bold; color: #0033cc; }
.faq details p { margin: 6px 0 0; }
.voet {
  max-width: 520px; text-align: center; font-size: 12px; color: #fff; margin: 4px 0 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.voet a { color: #fff; }

.slot { display: none; }
.dev .slot { display: block; }
.dev .slot .xp__body { min-height: 90px; display: grid; place-items: center; text-align: center; color: #555; font-style: italic; }

/* ---------- TAAKBALK ---------- */
.taakbalk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(40px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #3f86f0 0%, #2a64dd 8%, #245bd8 50%, #1f4fc4 92%, #16399a 100%);
  border-top: 1px solid #0c3aa8;
}
.start {
  appearance: none; border: 0; cursor: pointer; margin: 0; padding: 0 22px 0 12px;
  display: flex; align-items: center; gap: 7px;
  color: #fff; font: italic bold 19px "Trebuchet MS", var(--ui); text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  background: linear-gradient(180deg, #45b545 0%, #3a9c3a 12%, #33a133 50%, #2e8c2e 88%, #267226 100%);
  border-radius: 0 14px 14px 0; box-shadow: inset -2px 0 3px rgba(0,0,0,.25), 2px 0 4px rgba(0,0,0,.25);
}
.start:active { filter: brightness(.9); }
.start__vlag {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6a8, #ffd21f 45%, #ff9d00 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 0 8px 2px rgba(255,220,60,.8);
}
.taak {
  margin: 4px 8px; padding: 0 10px; display: flex; align-items: center; min-width: 0;
  color: #fff; font: 12px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #3c80f6, #1f5ad8); border: 1px solid #1a47b8; border-radius: 3px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.25); max-width: 40vw;
}
.tray {
  margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  color: #fff; font: 12px var(--ui);
  background: linear-gradient(180deg, #16a3f3, #0f8ae0 50%, #0a78cf);
  border-left: 1px solid #0b5fb3; box-shadow: inset 1px 0 0 rgba(255,255,255,.3);
}
.ballon {
  position: absolute; right: 10px; bottom: calc(100% + 12px); width: min(290px, calc(100vw - 20px));
  background: #ffffe1; border: 1px solid #000; border-radius: 8px; padding: 10px 26px 10px 12px;
  font: 13px var(--ui); color: #000; box-shadow: 2px 3px 6px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 4px; animation: pop .25s ease-out;
}
.ballon[hidden] { display: none; }
.ballon::after {
  content: ""; position: absolute; right: 28px; bottom: -11px; width: 18px; height: 11px;
  background: #ffffe1; clip-path: polygon(0 0, 100% 0, 100% 100%); border-right: 1px solid #000;
}
.ballon__x { position: absolute; top: 4px; right: 4px; border: 0; background: none; cursor: pointer; font-size: 12px; padding: 4px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

@media (min-width: 1000px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 32px;
    max-width: 1240px; margin: 0 auto; padding: 0 24px 24px; align-items: center;
  }
  .vraag { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 18px; align-items: baseline; }
  .vraag .wa-serif { font-size: 3.4rem; }
  .vraag .wa-impact { font-size: 5rem; }
  .podium { width: 100%; margin-top: 10px; }
  .wa-groot { font-size: min(17rem, 34vh); }
  .man { margin-top: min(-3rem, -6vh); width: min(86%, 540px); }
  .xp-knop--groen { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-groot, .nee .bliss .regen, .ballon { animation: none; }
}

/* ?og=1 — alleen gebruikt om og.png te maken */
.og .locatie, .og .venster, .og .acties, .og .ballon { display: none !important; }
.og .sub { margin-top: 40px; }
.og .wa-sub { font-size: 3.2rem; max-width: 12ch; }
.og .wa-groot { animation: none; }
