/* JIP Level Up: de app */

html, body { height: 100%; }
body.app-body { background: var(--inkt); overflow: hidden; }

/* ---------- desktop: telefoonframe met uitleg ---------- */
.desk { height: 100%; display: grid; grid-template-columns: minmax(280px, 400px) auto; justify-content: center; align-items: center; gap: 56px; padding: 24px 32px;
  background-color: var(--blauw); background-image: linear-gradient(rgba(255,255,255,.08) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.08) 3px, transparent 3px); background-size: 48px 48px; }
.desk__uitleg { color: var(--wit); display: flex; flex-direction: column; gap: 18px; max-height: 100%; overflow: auto; padding: 4px 8px 12px 4px; }
.desk__uitleg h1 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 44px; line-height: 1; text-shadow: 4px 4px 0 var(--inkt); }
.desk__uitleg p { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; }
.desk__tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.desk__tips li { display: flex; gap: 12px; align-items: flex-start; background: var(--wit); color: var(--inkt); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 4px 4px 0 var(--inkt); padding: 10px 12px; font-size: 14px; line-height: 1.4; font-weight: 600; }
.desk__tips li b { font-weight: 900; }
.desk__tips .nr { flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--geel); border: 2px solid var(--inkt); border-radius: 6px; font-family: var(--kop); font-size: 15px; }
.desk__links { display: flex; gap: 12px; flex-wrap: wrap; }
.desk__links .knop { min-height: 46px; font-size: 15px; }
.toestel { position: relative; width: 422px; height: 876px; padding: 12px; background: var(--inkt); border: 4px solid var(--wit); border-radius: 52px; box-shadow: 14px 14px 0 var(--rood); transform-origin: center center; flex: none; }
.toestel__scherm { position: relative; width: 390px; height: 844px; border-radius: 40px; overflow: hidden; background: var(--bg); }
.toestel::before { content: ''; position: absolute; top: 22px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: var(--inkt); border-radius: 18px; z-index: 200; pointer-events: none; }
.toestel .app { padding-top: 38px; }

@media (max-width: 720px), (max-height: 560px) and (max-width: 1000px) {
  body.app-body { background: var(--bg); }
  .desk { display: block; padding: 0; background: none; height: 100%; }
  .desk__uitleg { display: none; }
  .toestel { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; transform: none !important; background: var(--bg); }
  .toestel::before { display: none; }
  .toestel__scherm { width: 100%; height: 100%; border-radius: 0; }
  .toestel .app { padding-top: env(safe-area-inset-top); }
}

/* ---------- app-basis ---------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); color: var(--tekst);
  --kop-h: 72px; --tab-h: 78px; }
.app[data-thema="donker"] { --bg: #14112B; --vlak: #262150; --tekst: #FFF6E0; --tekst-2: #CFCBEA; --lijn: #05040F; --schaduw: #05040F; --raster: rgba(255,255,255,.05); }
.app[data-thema="donker"] .knop--lijn { --k-fg: var(--lucht); --k-rand: var(--lucht); --k-sch: var(--lucht); }
.app[data-thema="donker"] .chip[aria-pressed="true"] { color: var(--inkt); }
.schermen { position: relative; flex: 1; min-height: 0; }
.scherm { position: absolute; inset: 0; display: flex; flex-direction: column; background-color: var(--bg);
  background-image: linear-gradient(var(--raster) 2px, transparent 2px), linear-gradient(90deg, var(--raster) 2px, transparent 2px); background-size: 26px 26px; }
.inhoud { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
.inhoud > * { flex: none; }

/* kopbalk */
.kop { display: flex; align-items: center; gap: 10px; min-height: var(--kop-h); padding: 10px 14px; background: var(--vlak); border-bottom: 3px solid var(--lijn); position: relative; z-index: 3; }
.kop--blauw { background: var(--blauw); color: var(--wit); }
.kop__titel { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kop__titel h1 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 24px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kop--blauw .kop__titel h1 { text-shadow: 2px 2px 0 var(--inkt); }
.kop__titel small { font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.kop--blauw .kop__titel small { color: var(--lucht); }
.kop .jip-knop { padding: 0; border: 0; background: none; border-radius: 10px; flex: none; }
.kop .jip-knop .jip-blok { width: 52px; height: 40px; border-radius: 9px; }
.ikoonknop { width: 48px; height: 48px; flex: none; display: grid; place-items: center; padding: 0; background: var(--vlak); color: var(--tekst); border: 3px solid var(--lijn); border-radius: 10px; box-shadow: 3px 3px 0 var(--schaduw); transition: transform .12s, box-shadow .12s; text-decoration: none; }
.ikoonknop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--schaduw); }
.ikoonknop--geel { background: var(--geel); color: var(--inkt); }
.ikoonknop svg { stroke: currentColor; }
.teller { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 6px; background: var(--inkt); color: var(--geel); border: 3px solid var(--inkt); border-radius: 10px; text-decoration: none; font-family: var(--kop); font-size: 20px; line-height: 1; box-shadow: 3px 3px 0 var(--geel-donker); flex: none; }
.app[data-thema="donker"] .teller { border-color: var(--geel); }
.teller .munt { width: 26px; height: 26px; }
.teller.bump { animation: bump .45s var(--veer); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }
.offline-pil { display: none; align-items: center; gap: 5px; min-height: 30px; padding: 0 8px; background: var(--rood); color: var(--wit); border: 2px solid var(--inkt); border-radius: 8px; font-size: 12px; font-weight: 900; flex: none; }
.app.is-offline .offline-pil { display: inline-flex; }

/* tabbalk met leiding */
.tabbalk { position: relative; flex: none; background: var(--vlak); border-top: 3px solid var(--lijn); padding: 14px 10px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 5; transition: transform .25s var(--snel); }
.tabbalk.is-weg { display: none; }
.tabbalk__leiding { position: absolute; left: 0; right: 0; top: -3px; height: 18px; pointer-events: none; }
.tabbalk__leiding svg { display: block; width: 100%; height: 18px; overflow: visible; }
.tab { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--tekst-2); font-size: 12px; font-weight: 800; border: 2px solid transparent; border-radius: 10px; -webkit-tap-highlight-color: transparent; transition: background-color .15s, transform .12s; position: relative; }
.tab svg { stroke: currentColor; }
.tab[aria-current="page"] { background: var(--geel); color: var(--inkt); border-color: var(--inkt); box-shadow: 2px 2px 0 var(--inkt); font-weight: 900; }
.tab:active { transform: translate(1px, 1px); }

/* ---------- overgang: door de leiding ---------- */
.overgang { position: absolute; inset: 0; z-index: 90; pointer-events: none; display: none; }
.overgang.is-actief { display: block; pointer-events: auto; }
.overgang svg { width: 100%; height: 100%; display: block; }

/* ---------- splash ---------- */
.splash { position: absolute; inset: 0; z-index: 150; display: flex; flex-direction: column; color: var(--wit);
  background-color: var(--blauw); background-image: linear-gradient(rgba(255,255,255,.09) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.09) 3px, transparent 3px); background-size: 39px 39px; transition: opacity .3s, transform .35s var(--snel); }
.splash.is-weg { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash__midden { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 24px; }
.splash__scene { position: absolute; inset: 0; pointer-events: none; }
.splash__scene svg { width: 100%; height: 100%; }
.splash__scene .lijn-teken path { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: teken .7s var(--snel) forwards; }
.splash__scene .koppeling { opacity: 0; animation: verschijn .3s ease-out forwards; }
@keyframes verschijn { to { opacity: 1; } }
@keyframes teken { to { stroke-dashoffset: 0; } }
@keyframes plop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; } }
.splash__logo { position: relative; width: 250px; height: 172px; border-width: 5px; border-radius: 18px; box-shadow: 10px 10px 0 var(--inkt); animation: val .6s .45s var(--veer) both; }
.splash__logo > span { width: 212px; }
.splash__logo { padding: 0; cursor: pointer; }
.splash__logo .schroef { max-width: 13px; }
.splash__munt { position: absolute; top: -26px; right: -26px; width: 56px; height: 56px; animation: muntpop .5s 1s var(--veer) both, munt-draai 1.6s 1.5s ease-in-out infinite; }
@keyframes val { from { transform: translateY(-160px) scale(.9); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
@keyframes muntpop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.splash__tekst { text-align: center; display: flex; flex-direction: column; gap: 8px; animation: omhoog .5s .8s var(--snel) both; position: relative; }
.splash__tekst b { font-family: var(--kop); font-weight: 400; font-size: 30px; line-height: 1.05; text-shadow: 3px 3px 0 var(--inkt); }
.splash__tekst span { font-size: 16px; font-weight: 700; }
.splash .knop { animation: omhoog .45s 1.05s var(--snel) both; position: relative; }
@keyframes omhoog { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.blokstrook { display: grid; grid-template-columns: repeat(10, 1fr); height: 26px; border-top: 3px solid var(--inkt); border-bottom: 3px solid var(--inkt); background: var(--inkt); gap: 3px; flex: none; }
.blokstrook i:nth-child(5n+1) { background: var(--rood); } .blokstrook i:nth-child(5n+2) { background: var(--geel); } .blokstrook i:nth-child(5n+3) { background: var(--wit); } .blokstrook i:nth-child(5n+4) { background: var(--lucht); } .blokstrook i:nth-child(5n) { background: var(--geel); }
.splash__voet { background: var(--inkt); color: var(--wit); padding: 18px 0 calc(26px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }

/* ---------- onboarding ---------- */
.welkom { background-color: var(--blauw) !important; background-image: linear-gradient(rgba(255,255,255,.08) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.08) 3px, transparent 3px) !important; background-size: 39px 39px !important; color: var(--wit); }
.welkom__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.welkom__top .stap { font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--inkt); color: var(--geel); padding: 4px 10px; border-radius: 6px; }
.overslaan { min-height: 48px; padding: 0 14px; background: transparent; color: var(--wit); border: 2px solid var(--wit); border-radius: 10px; font-weight: 900; font-size: 15px; }
.welkom__inhoud { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.welkom h2 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 38px; line-height: 1.02; text-shadow: 3px 3px 0 var(--inkt); }
.welkom p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; }
.welkom__rij { display: flex; gap: 12px; align-items: center; background: var(--wit); color: var(--inkt); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 4px 4px 0 var(--inkt); padding: 12px; font-weight: 800; font-size: 15px; line-height: 1.3; }
.welkom__rij .ik { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--lucht); border: 3px solid var(--inkt); border-radius: 10px; }
.welkom__rij .ik--geel { background: var(--geel); }
.welkom__rij small { display: block; font-weight: 600; font-size: 13px; color: var(--gedempt); }
.merkkeus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.merkkeus button { position: relative; min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; text-align: left; background: var(--wit); color: var(--inkt); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 4px 4px 0 var(--inkt); transition: transform .12s, background-color .15s; }
.merkkeus button b { font-family: var(--kop); font-weight: 400; font-size: 21px; line-height: 1; }
.merkkeus button small { font-size: 12px; font-weight: 700; color: var(--gedempt); }
.merkkeus button[aria-pressed="true"] { background: var(--geel); }
.merkkeus button .vink { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; display: none; place-items: center; background: var(--groen); border: 3px solid var(--inkt); border-radius: 50%; }
.merkkeus button[aria-pressed="true"] .vink { display: grid; animation: muntpop .3s var(--veer); }
.merkkeus button .volg { position: absolute; bottom: 6px; right: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.welkom__onder { padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.voortgang-leiding svg { display: block; width: 100%; height: 44px; overflow: visible; }

/* ---------- home ---------- */
.groet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.groet h2 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 30px; line-height: 1.02; color: var(--rood); text-shadow: 2px 2px 0 var(--inkt); }
.app[data-thema="donker"] .groet h2 { color: var(--geel); }
.groet p { margin: 2px 0 0; font-weight: 700; color: var(--tekst-2); font-size: 14px; }
.levelpil { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: var(--vlak); border: 2px solid var(--lijn); border-radius: 10px; box-shadow: 2px 2px 0 var(--schaduw); text-decoration: none; color: var(--tekst); font-weight: 900; font-size: 13px; line-height: 1.1; flex: none; min-height: 48px; }
.levelpil small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--tekst-2); }

.zoekbalk { position: relative; }
.zoekbalk input { width: 100%; height: 60px; padding: 0 58px 0 52px; background: var(--wit); color: var(--inkt); border: 3px solid var(--lijn); border-radius: 12px; box-shadow: 5px 5px 0 var(--schaduw); font-family: var(--body); font-weight: 800; font-size: 18px; outline: none; -webkit-appearance: none; appearance: none; }
.zoekbalk input::placeholder { color: #6B6788; font-weight: 700; }
.zoekbalk input:focus { box-shadow: 5px 5px 0 var(--blauw); }
.zoekbalk input::-webkit-search-cancel-button { display: none; }
.zoekbalk > svg { color: var(--inkt); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.zoekbalk__wis { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: none; display: none; place-items: center; color: var(--inkt); }
.zoekbalk.heeft-tekst .zoekbalk__wis { display: grid; }
.zoekbalk--mono input { font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: 1px; }
.suggesties { list-style: none; margin: 10px 0 0; padding: 6px; background: var(--wit); color: var(--inkt); border: 3px solid var(--lijn); border-radius: 12px; box-shadow: 5px 5px 0 var(--schaduw); display: flex; flex-direction: column; gap: 4px; animation: omhoog .18s var(--snel); }
.suggesties a, .suggesties button { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 6px 8px; text-decoration: none; color: var(--inkt); border: 0; background: none; border-radius: 8px; text-align: left; width: 100%; font-weight: 800; font-size: 15px; }
.suggesties a:hover, .suggesties button:hover, .suggesties a:focus-visible { background: var(--papier); }
.suggesties .code-tag { flex: none; min-width: 58px; text-align: center; }
.suggesties small { display: block; color: var(--gedempt); font-weight: 700; font-size: 12px; }

.actietegels { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.tegel { position: relative; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px; text-decoration: none; color: var(--inkt); background: var(--lucht); border: 3px solid var(--lijn); border-radius: 14px; box-shadow: 5px 5px 0 var(--schaduw); font-weight: 900; font-size: 15px; line-height: 1.15; text-align: left; transition: transform .12s var(--snel), box-shadow .12s; overflow: hidden; }
.tegel:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--schaduw); }
.tegel .ik { width: 46px; height: 46px; display: grid; place-items: center; background: var(--wit); border: 3px solid var(--inkt); border-radius: 10px; }
.tegel--geel { background: var(--geel); }
.tegel--rood { background: var(--rood); color: var(--wit); }
.tegel--blauw { background: var(--blauw); color: var(--wit); }
.tegel small { display: block; font-weight: 700; font-size: 12px; opacity: .9; }

.sectie { display: flex; flex-direction: column; gap: 10px; }
.sectie__kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sectie__kop h3 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--blauw); }
.app[data-thema="donker"] .sectie__kop h3 { color: var(--lucht); }
.sectie__kop a, .linkknop { font-weight: 900; font-size: 14px; color: var(--blauw); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0 4px; }
.app[data-thema="donker"] .sectie__kop a, .app[data-thema="donker"] .linkknop { color: var(--lucht); }
.rijlijst { display: flex; flex-direction: column; gap: 10px; }
.coderij { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px; text-decoration: none; color: var(--tekst); background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; box-shadow: 4px 4px 0 var(--schaduw); transition: transform .12s, box-shadow .12s; }
.coderij:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--schaduw); }
.codeblok { position: relative; flex: none; width: 74px; height: 54px; display: grid; place-items: center; background: var(--rood); color: var(--wit); border: 3px solid var(--inkt); border-radius: 9px; box-shadow: 2px 2px 0 var(--inkt); font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.codeblok--lang { font-size: 14px; letter-spacing: 0; }
.codeblok[data-ernst="middel"] { background: var(--blauw); }
.codeblok[data-ernst="laag"] { background: var(--geel); color: var(--inkt); }
.coderij__tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.coderij__tekst b { font-weight: 900; font-size: 15px; line-height: 1.25; }
.coderij__tekst small { font-size: 12px; font-weight: 700; color: var(--tekst-2); }
.coderij__rechts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.karrousel { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.karrousel::-webkit-scrollbar { display: none; }
.popkaart { scroll-snap-align: start; flex: none; width: 164px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 12px; text-decoration: none; color: var(--inkt); background: var(--wit); border: 3px solid var(--inkt); border-radius: 14px; box-shadow: 4px 4px 0 var(--schaduw); }
.popkaart .code-tag { font-size: 18px; align-self: flex-start; }
.popkaart b { font-weight: 900; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.popkaart small { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--gedempt); }
.popkaart:nth-child(4n+1) { background: var(--geel); } .popkaart:nth-child(4n+2) { background: var(--lucht); } .popkaart:nth-child(4n+3) { background: var(--wit); } .popkaart:nth-child(4n) { background: #FFD9C2; }

.statuskaart { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.statuskaart b { font-weight: 900; }
.statuskaart .ik { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--inkt); border-radius: 50%; background: var(--groen); }
.app.is-offline .statuskaart .ik { background: var(--rood); }
.leeg { display: flex; align-items: center; gap: 12px; padding: 14px; border: 3px dashed var(--tekst-2); border-radius: 12px; color: var(--tekst-2); font-weight: 700; font-size: 14px; line-height: 1.4; }
.leeg svg { flex: none; }

/* ---------- codes zoeken ---------- */
.kop--naad { border-bottom: 0; }
.codeskop { background: var(--blauw); color: var(--wit); border-bottom: 3px solid var(--lijn); padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }
.codeskop .kop { background: transparent; border: 0; padding: 10px 0 0; min-height: 60px; color: var(--wit); }
.codeskop .kop__titel h1 { text-shadow: 2px 2px 0 var(--inkt); }
.codeskop .zoekbalk input { height: 56px; }
.merkchips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
.merkchips::-webkit-scrollbar { display: none; }
.merkchips .chip { flex: none; border-color: var(--inkt); background: var(--wit); color: var(--inkt); }
.merkchips .chip[aria-pressed="true"] { background: var(--geel); }
.resultaatkop { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--tekst-2); text-transform: uppercase; letter-spacing: .5px; }
.geenres { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 10px 6px; }
.geenres h3 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 26px; color: var(--rood); }
.geenres p { margin: 0; font-weight: 700; color: var(--tekst-2); }
.geenres svg.lek { width: 220px; height: 120px; }
@keyframes druppel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }
.lek .drup { animation: druppel 1.1s ease-in infinite; }

/* ---------- code-detail ---------- */
.detailkop { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 16px; box-shadow: 6px 6px 0 var(--schaduw); }
.detailkop__boven { display: flex; gap: 14px; align-items: center; }
.detailkop .codeblok { width: 108px; height: 78px; font-size: 30px; border-width: 3px; box-shadow: 4px 4px 0 var(--inkt); }
.detailkop .codeblok--lang { font-size: 20px; }
.detailkop .codeblok .schroef { position: absolute; width: 7px; height: 7px; }
.detailkop .codeblok .schroef:nth-of-type(1) { top: 4px; left: 4px; } .detailkop .codeblok .schroef:nth-of-type(2) { top: 4px; right: 4px; } .detailkop .codeblok .schroef:nth-of-type(3) { bottom: 4px; left: 4px; } .detailkop .codeblok .schroef:nth-of-type(4) { bottom: 4px; right: 4px; }
.detailkop__boven > div { min-width: 0; }
.detailkop h2 { overflow-wrap: break-word; margin: 0; font-family: var(--kop); font-weight: 400; font-size: 24px; line-height: 1.08; }
.detailkop__merk { font-size: 13px; font-weight: 800; color: var(--tekst-2); }
.statusbalk { display: flex; flex-wrap: wrap; gap: 8px; }
.statusbalk > span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; background: var(--papier); color: var(--inkt); border: 2px solid var(--inkt); border-radius: 9px; font-size: 13px; font-weight: 800; }
.statusbalk .stopt { background: var(--rood); color: var(--wit); }
.statusbalk .draait { background: #CFEFD9; }
.statusbalk .geverifieerd { background: var(--lucht); }
.samenvatting { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; }
.blok { display: flex; flex-direction: column; gap: 10px; }
.blok h3 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 20px; color: var(--blauw); display: flex; align-items: center; gap: 8px; }
.app[data-thema="donker"] .blok h3 { color: var(--lucht); }
.oorzaken { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.oorzaken li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; line-height: 1.4; font-weight: 600; }
.oorzaken li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--tekst); position: relative; top: -2px; }

/* stappenplan als leiding */
.stappen { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.stappen__leiding { position: absolute; left: 0; top: 0; width: 52px; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.stap { position: relative; }
.stap label { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 8px 12px 8px 64px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; box-shadow: 3px 3px 0 var(--schaduw); font-size: 15px; font-weight: 700; line-height: 1.35; cursor: pointer; transition: background-color .2s; }
.stap input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stap .vakje { position: absolute; left: 10px; top: 50%; margin-top: -17px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--geel); color: var(--inkt); border: 3px solid var(--inkt); border-radius: 8px; font-family: var(--kop); font-size: 17px; transition: background-color .2s, transform .25s var(--veer); z-index: 1; }
.stap .vakje svg { display: none; }
.stap input:checked + label { background: #DDF3E4; color: var(--inkt); }
.stap input:checked + label .vakje { background: var(--groen); transform: rotate(-6deg) scale(1.05); }
.stap input:checked + label .vakje span { display: none; }
.stap input:checked + label .vakje svg { display: block; }
.stap input:checked + label .stap__tekst { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.stap input:focus-visible + label { outline: 3px solid var(--blauw); outline-offset: 2px; }
.stappen__teller { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--tekst-2); margin-left: auto; }

.tips { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--geel); color: var(--inkt); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 3px 3px 0 var(--schaduw); font-size: 15px; font-weight: 700; line-height: 1.4; }
.tip svg { flex: none; margin-top: 1px; }
.modellen { display: flex; flex-wrap: wrap; gap: 8px; }
.modellen .code-tag { background: var(--lucht); font-size: 13px; padding: 2px 8px; }
.vervolg { display: flex; flex-direction: column; gap: 8px; }
.vervolg button, .vervolg a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 12px; text-align: left; background: var(--vlak); color: var(--tekst); border: 2px solid var(--lijn); border-radius: 10px; font-weight: 800; font-size: 15px; text-decoration: none; }
.bron { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px dashed var(--tekst-2); border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--tekst-2); }
.onderbalk { flex: none; display: flex; gap: 10px; align-items: center; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--vlak); border-top: 3px solid var(--lijn); z-index: 3; }
.onderbalk .knop { flex: 1; min-height: 54px; padding: 0 10px; font-size: 16px; }
.onderbalk .ikoonknop { width: 54px; height: 54px; }
.ikoonknop[aria-pressed="true"] { background: var(--geel); color: var(--inkt); }
.ikoonknop[aria-pressed="true"] svg path { fill: var(--geel); }
.opgelost-knop .munt { width: 26px; height: 26px; }

/* ---------- chat ---------- */
.demoband { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: var(--inkt); color: var(--geel); font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .3px; border-bottom: 3px solid var(--lijn); }
.demoband span { color: var(--wit); font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0; }
.gesprek { gap: 14px; padding-bottom: 18px; }
.bericht { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: bericht-in .28s var(--veer); }
@keyframes bericht-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.bericht--ik { align-self: flex-end; justify-content: flex-end; max-width: 86%; }
.bericht--jip { align-self: flex-start; max-width: 100%; width: 100%; }
.avatar { flex: none; width: 34px; height: 34px; }
.avatar .jip-blok { width: 34px; height: 30px; border-width: 2px; border-radius: 7px; box-shadow: 2px 2px 0 var(--inkt); }
.avatar .jip-blok .schroef { display: none; }
.ballon { padding: 10px 13px; border: 3px solid var(--inkt); box-shadow: 4px 4px 0 var(--schaduw); font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; }
.bericht--ik .ballon { background: var(--blauw); color: var(--wit); border-radius: 14px 14px 4px 14px; font-weight: 700; }
.bericht--jip .ballon { flex: 1; min-width: 0; background: var(--wit); color: var(--inkt); border-radius: 14px 14px 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.ballon p { margin: 0; }
.ballon h4 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 17px; color: var(--blauw); }
.ballon ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.ballon ol li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; counter-increment: s; }
.ballon ol li::before { content: counter(s); flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: var(--geel); border: 2px solid var(--inkt); border-radius: 6px; font-family: var(--kop); font-size: 15px; }
.ballon .notitie { font-size: 13px; font-weight: 700; color: var(--gedempt); }
.bronchip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 10px; background: var(--lucht); color: var(--inkt); text-decoration: none; border: 2px solid var(--inkt); border-radius: 8px; font-size: 13px; font-weight: 800; line-height: 1.25; }
.bronchip:active { transform: translate(1px, 1px); }
.snelknoppen { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 42px; }
.snelknoppen .knop { min-height: 46px; font-size: 14px; padding: 0 12px; box-shadow: 3px 3px 0 var(--schaduw); animation: plop .3s var(--veer) both; }
.snelknoppen .knop:nth-child(2) { animation-delay: .05s; } .snelknoppen .knop:nth-child(3) { animation-delay: .1s; } .snelknoppen .knop:nth-child(4) { animation-delay: .15s; } .snelknoppen .knop:nth-child(5) { animation-delay: .2s; }
.snelknoppen .knop .munt { width: 24px; height: 24px; }
.cursor::after { content: ''; display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--blauw); margin-left: 2px; animation: knipper .6s steps(1) infinite; }
@keyframes knipper { 50% { opacity: 0; } }
.typt { display: flex; gap: 8px; align-items: center; }
.typt .ballon { flex: none; padding: 8px 12px; display: flex; flex-direction: row; align-items: center; gap: 10px; width: auto; }
.typt svg { width: 130px; height: 34px; display: block; overflow: visible; }
.typt small { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--gedempt); }
.fotobericht { padding: 6px 6px 10px; display: flex; flex-direction: column; gap: 8px; }
.fotokader { position: relative; overflow: hidden; border: 2px solid var(--inkt); border-radius: 9px; background: #3B3F4A; max-width: 250px; }
.fotokader img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.fotokader .scan { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(rgba(214,224,255,.15), rgba(30,63,216,.45)); border-top: 3px solid var(--lucht); pointer-events: none; }
.fotokader.scant .scan { animation: waterpeil 1.4s ease-in-out forwards; }
.fotokader .scan svg { position: absolute; top: -10px; left: 0; width: 200%; height: 12px; animation: golf .6s linear infinite; }
@keyframes waterpeil { 0% { height: 0; } 70% { height: 100%; } 100% { height: 100%; opacity: 0; } }
@keyframes golf { to { transform: translateX(-50%); } }
.fotokader .scanlabel { position: absolute; left: 8px; top: 8px; background: var(--inkt); color: var(--geel); font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.invoerbalk { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--vlak); border-top: 3px solid var(--lijn); position: relative; z-index: 3; }
.invoerbalk input { flex: 1; min-width: 0; height: 50px; padding: 0 12px; background: var(--papier); color: var(--inkt); border: 3px solid var(--lijn); border-radius: 10px; font-weight: 700; font-size: 16px; outline: none; }
.invoerbalk input:focus { border-color: var(--blauw); }
.invoerbalk .ikoonknop { width: 50px; height: 50px; }
.ikoonknop--rood { background: var(--rood); color: var(--wit); }
.ikoonknop--blauw { background: var(--blauw); color: var(--wit); }

/* ---------- lagen: sheets ---------- */
.laag { position: absolute; inset: 0; z-index: 80; display: none; }
.laag.is-open { display: block; }
.laag__achter { position: absolute; inset: 0; background: rgba(20,17,43,.55); animation: fade .2s; }
.laag--onder-kop .laag__achter { top: calc(var(--kop-top, 0px)); }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow: auto; background: var(--vlak); color: var(--tekst); border-top: 3px solid var(--inkt); border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: sheet-in .32s var(--snel); box-shadow: 0 -6px 0 rgba(20,17,43,.25); }
.sheet::before { content: ''; align-self: center; width: 54px; height: 6px; border-radius: 3px; background: var(--tekst-2); opacity: .5; flex: none; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sheet h2 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 26px; line-height: 1.05; }
.sheet p { margin: 0; font-weight: 600; line-height: 1.45; }
.sheet .knoppenrij { display: flex; flex-direction: column; gap: 10px; }
.sheet .knoppenrij .knop { width: 100%; }

/* beloning */
.beloning { gap: 10px; text-align: center; align-items: stretch; }
.beloning__scene { margin: 0 -18px; height: 168px; position: relative; overflow: visible; }
.beloning__scene svg { width: 100%; height: 100%; overflow: visible; display: block; }
.beloning h2 { font-size: 40px; color: var(--groen); text-shadow: 3px 3px 0 var(--inkt); -webkit-text-stroke: 0; }
.app[data-thema="donker"] .beloning h2 { color: #3FD486; }
.beloning__code { font-weight: 800; color: var(--tekst-2); font-size: 14px; margin-top: -6px; }
.bonus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.bonus li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px; background: var(--papier); color: var(--inkt); border: 2px solid var(--inkt); border-radius: 9px; font-weight: 800; font-size: 14px; opacity: 0; transform: translateX(-12px); transition: opacity .25s, transform .3s var(--veer); }
.bonus li.is-in { opacity: 1; transform: none; }
.bonus li b { margin-left: auto; font-family: var(--kop); font-weight: 400; font-size: 18px; color: var(--groen); }
.bonus li .munt { width: 22px; height: 22px; }
.levelbalk { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.levelbalk__tekst { display: flex; justify-content: space-between; font-weight: 900; font-size: 14px; }
.levelbalk__tekst small { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--tekst-2); }
.levelbalk svg { width: 100%; height: 34px; display: block; overflow: visible; }
.levelup { display: none; align-items: center; gap: 12px; padding: 10px 12px; background: var(--blauw); color: var(--wit); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 4px 4px 0 var(--inkt); text-align: left; }
.levelup.is-in { display: flex; animation: stempel .5s var(--veer); }
.levelup b { font-family: var(--kop); font-weight: 400; font-size: 24px; line-height: 1; display: block; color: var(--geel); text-shadow: 2px 2px 0 var(--inkt); }
.levelup span { font-weight: 700; font-size: 14px; }
@keyframes stempel { from { transform: scale(1.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: absolute; width: 12px; height: 12px; border: 2px solid var(--inkt); pointer-events: none; z-index: 100; }

/* ---------- ik / profiel ---------- */
.levelkaart { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 16px; color: var(--wit); background-color: var(--blauw); background-image: linear-gradient(rgba(255,255,255,.1) 3px, transparent 3px), linear-gradient(90deg, rgba(255,255,255,.1) 3px, transparent 3px); background-size: 30px 30px; border: 3px solid var(--inkt); border-radius: 16px; box-shadow: 6px 6px 0 var(--schaduw); }
.levelkaart__boven { display: flex; gap: 14px; align-items: center; }
.levelkaart h2 { margin: 0; font-family: var(--kop); font-weight: 400; font-size: 30px; line-height: 1; text-shadow: 3px 3px 0 var(--inkt); }
.levelkaart small { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--lucht); }
.levelkaart .munten { margin-left: auto; text-align: right; font-family: var(--kop); font-size: 34px; line-height: 1; color: var(--geel); text-shadow: 2px 2px 0 var(--inkt); display: flex; align-items: center; gap: 6px; }
.levelkaart .munten .munt { width: 30px; height: 30px; }
.levelkaart .levelbalk__tekst small { color: var(--lucht); }
.badge { flex: none; width: 64px; height: 64px; }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ladder li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 62px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; font-weight: 800; }
.ladder li .badge { width: 44px; height: 44px; }
.ladder li b { display: block; font-family: var(--kop); font-weight: 400; font-size: 18px; line-height: 1.1; }
.ladder li small { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--tekst-2); }
.ladder li .rechts { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ladder li .rechts .munt { width: 18px; height: 18px; }
.ladder li.is-nu { background: var(--geel); color: var(--inkt); box-shadow: 4px 4px 0 var(--schaduw); }
.ladder li.is-nu small { color: var(--gedempt); }
.ladder li.is-dicht { opacity: .6; border-style: dashed; }
.cijfers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cijfers div { padding: 10px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; box-shadow: 3px 3px 0 var(--schaduw); display: flex; flex-direction: column; gap: 2px; }
.cijfers b { font-family: var(--kop); font-weight: 400; font-size: 30px; line-height: 1; }
.cijfers small { font-size: 12px; font-weight: 800; color: var(--tekst-2); }
.instelling { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--vlak); border: 3px solid var(--lijn); border-radius: 12px; }
.instelling > b { font-weight: 900; font-size: 15px; }
.instelling > small { font-size: 13px; font-weight: 600; color: var(--tekst-2); margin-top: -6px; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid var(--lijn); border-radius: 10px; overflow: hidden; }
.segment--2 { grid-template-columns: repeat(2, 1fr); }
.segment button { min-height: 48px; border: 0; border-right: 3px solid var(--lijn); background: var(--vlak); color: var(--tekst); font-weight: 800; font-size: 14px; }
.segment button:last-child { border-right: 0; }
.segment button[aria-pressed="true"] { background: var(--geel); color: var(--inkt); font-weight: 900; }
.merkchips-ik { display: flex; flex-wrap: wrap; gap: 8px; }
.histrij .coderij__rechts b { font-family: var(--kop); font-weight: 400; color: var(--groen); font-size: 16px; display: flex; align-items: center; gap: 3px; }
.app[data-thema="donker"] .histrij .coderij__rechts b { color: #3FD486; }
.histrij .coderij__rechts .munt { width: 18px; height: 18px; }
.over { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.over p { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; max-width: 330px; }
.over .dhps { color: var(--tekst); }
.over .versie { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--inkt); color: var(--geel); padding: 4px 10px; border-radius: 6px; }

/* toast */
.toast { position: absolute; left: 50%; bottom: calc(var(--tab-h) + 18px); transform: translate(-50%, 30px); opacity: 0; z-index: 120; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--inkt); color: var(--wit); border: 3px solid var(--inkt); border-radius: 12px; box-shadow: 4px 4px 0 var(--geel); font-weight: 800; font-size: 14px; pointer-events: none; transition: transform .3s var(--veer), opacity .2s; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* snelle modus: geen sier */
.app.is-snel .bericht, .app.is-snel .snelknoppen .knop { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .splash__scene .lijn-teken path { stroke-dashoffset: 0; }
  .splash__scene .koppeling { opacity: 1; }
}
