/* =====================================================================
   Wij · "Clean" ontwerp
   Rustig, futuristisch en minimalistisch: veel ruimte, fijne lijnen,
   glazen panelen en jullie eigen kleur enkel waar het telt.
   Dit bestand komt ná app.css en overschrijft enkel de vormgeving.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --hair: 1px solid var(--line);
}
:root, :root[data-mode="light"] {
  --bg: #f4f4f1;
  --card: #ffffff;
  --ink: #0f0f11;
  --muted: #8a8a90;
  --line: rgba(15, 15, 17, .075);
  --soft: #efefeb;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 0 rgba(15, 15, 17, .02), 0 18px 40px -28px rgba(15, 15, 17, .25);
  --glow: color-mix(in srgb, var(--accent) 14%, transparent);
}
:root[data-mode="dark"] {
  --bg: #09090b;
  --card: #131316;
  --ink: #f3f3f4;
  --muted: #85858d;
  --line: rgba(255, 255, 255, .07);
  --soft: #1b1b1f;
  --glass: rgba(22, 22, 26, .66);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
  --glow: color-mix(in srgb, var(--accent) 16%, transparent);
}
:root[data-mode="noir"] {
  --bg: #0a0907;
  --card: #14120e;
  --ink: #f4ecd8;
  --muted: #9d9178;
  --line: rgba(212, 175, 55, .13);
  --soft: #1c1913;
  --glass: rgba(20, 18, 14, .7);
  --shadow: 0 0 0 1px rgba(212, 175, 55, .05);
  --glow: rgba(212, 175, 55, .12);
}

/* ---------- Basis ---------- */
html { background: var(--bg); }
body {
  font-family: var(--font); font-size: 15.5px; line-height: 1.5; letter-spacing: -.011em;
  font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased;
  background: transparent;
}
/* Zachte gloed in jullie kleur, heel subtiel, achter alles */
body::before {
  content: ''; position: fixed; inset: -20vh -20vw auto auto; width: 90vw; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); opacity: .9;
}
h1, h2, h3 { letter-spacing: -.025em; }
h2 { font-size: 1.02rem; font-weight: 600; }
h3 { font-size: .9rem; font-weight: 600; }
b, strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; }

#app { padding-left: 18px; padding-right: 18px; }

/* ---------- Titels ---------- */
.hero { padding: 8px 2px 22px; align-items: center; }
.hero h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.hero .date { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 600; margin-top: 8px; color: var(--muted); }
.page-title { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; margin: 10px 2px 20px; }
.page-head { margin-bottom: 18px; gap: 12px; }
.page-head .page-title { font-size: 1.55rem; }
.sec-label { font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: var(--muted); margin: 26px 4px 10px; }

/* ---------- Kaarten ---------- */
.card {
  background: var(--card); border: var(--hair); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
:root[data-mode="dark"] .card, :root[data-mode="noir"] .card { background-image: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent 40%); }
.card-head { margin-bottom: 14px; }
.card-head h2 { font-size: .95rem; }

/* ---------- Knoppen ---------- */
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 600; letter-spacing: -.01em;
  background: var(--accent); color: var(--on-accent); box-shadow: none;
}
.btn:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--ink); border: var(--hair); }
.btn.danger { background: transparent; color: #e5484d; border: 0; }
.btn.sm { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: .84rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; background: var(--card); border: var(--hair); font-size: 1rem; font-weight: 600; }
.link-btn { color: var(--ink); font-weight: 600; text-decoration-color: var(--line); }

.seg { background: var(--soft); border-radius: 14px; padding: 3px; gap: 2px; }
.seg button { border-radius: 11px; font-weight: 600; font-size: .84rem; padding: 8px 14px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }

.chip { background: var(--soft); border: 1px solid transparent; font-weight: 600; font-size: .84rem; padding: 7px 13px; }
.chip.on { border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent); background: color-mix(in srgb, var(--c, var(--accent)) 10%, var(--card)); }

.toggle span { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.toggle input:checked + span { background: var(--accent); box-shadow: none; }

/* ---------- Formulieren ---------- */
.field > label, .label { font-weight: 600; font-size: .75rem; letter-spacing: .02em; color: var(--muted); }
.input { min-height: 48px; border-radius: 14px; border: 1px solid transparent; background: var(--soft); transition: border .2s, box-shadow .2s, background .2s; }
.input:focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Tegels ---------- */
.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tile {
  background: var(--card); border: var(--hair); border-radius: 22px; padding: 16px 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 132px; transition: transform .15s var(--ease), border-color .2s;
}
.tile .ti {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem;
  background: var(--soft); margin-bottom: auto;
}
.tile b { margin-top: 16px; font-size: .95rem; font-weight: 600; letter-spacing: -.02em; }
.tile .muted.small { font-size: .76rem; line-height: 1.35; margin-top: 2px; }
.tile .soon { top: 14px; right: 14px; font-size: .62rem; font-weight: 600; letter-spacing: .02em; background: var(--soft); color: var(--muted); padding: 3px 8px; }
.tile .soon.live { background: var(--accent); color: var(--on-accent); }
.spicy-tile { background: var(--card); background-image: radial-gradient(120% 90% at 100% 0%, rgba(226, 72, 111, .14), transparent 60%); }
.spicy-tile .ti { background: rgba(226, 72, 111, .12); }

/* ---------- Banners en lijstjes ---------- */
.free-banner, .wij-banner {
  background: var(--card); border: var(--hair); box-shadow: var(--shadow); font-weight: 600; letter-spacing: -.015em;
  background-image: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, var(--keoni) 10%, transparent), transparent 55%), radial-gradient(140% 120% at 100% 100%, color-mix(in srgb, var(--lotte) 12%, transparent), transparent 55%);
  color: var(--ink); text-decoration: none;
}
.wij-banner { text-align: center; padding: 26px 18px; }
.wij-banner span[style] { font-weight: 700 !important; letter-spacing: -.04em; font-size: 2.4rem !important; }
.reminder-card { background: var(--card); }
.item { background: var(--soft); border-left: 0; box-shadow: inset 3px 0 0 var(--c); border-radius: 12px; }
.item .it-title { font-weight: 600; }
.free-pill { background: transparent; border: 1px dashed color-mix(in srgb, var(--samen) 40%, transparent); font-weight: 600; }
.placeholder .big { font-size: 2.4rem; opacity: .9; }
.settings-row { border-top: var(--hair); }

/* ---------- Navigatie: zwevende glazen balk ---------- */
@media (max-width: 899px) {
  #nav {
    left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px);
    height: 64px; padding: 6px; border-radius: 24px; border: var(--hair); border-top: var(--hair);
    background: var(--glass); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35);
  }
  #nav a { position: relative; gap: 4px; font-size: .62rem !important; font-weight: 600; letter-spacing: .01em; border-radius: 18px; }
  #nav svg { width: 22px !important; height: 22px !important; stroke-width: 1.6; }
  #nav a.active { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  #nav a.active svg { transform: none; }
  #nav a[data-tab="wij"].active svg { fill: none; }
  #nav a.active::after { content: ''; position: absolute; top: 6px; right: calc(50% - 16px); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
}
@media (min-width: 900px) {
  #nav { background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-right: var(--hair); }
  #nav a.active { background: var(--soft); color: var(--ink); }
}
.badge { font-weight: 600; }

/* ---------- Sheets, meldingen ---------- */
dialog#sheet { background: var(--card); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .28); border-top: var(--hair); }
dialog#sheet::backdrop { background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-inner h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.grabber { width: 36px; height: 4px; background: var(--line); }
#toast { background: var(--glass); color: var(--ink); border: var(--hair); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }

/* ---------- Vandaag ---------- */
.weather .w-temp { font-weight: 600; letter-spacing: -.04em; font-size: 2rem; }

/* ---------- Chat ---------- */
.chat-head, .chat-bar { background: var(--glass); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border-color: var(--line); }
.chat-head .icon-btn, .chat-bar .icon-btn { background: transparent; border: var(--hair); }
.chat-input .input { background: var(--soft); border-radius: 22px; }
.bubble { font-weight: 450; border-radius: 22px; padding: 10px 14px; letter-spacing: -.01em; }
.mine .bubble { border-bottom-right-radius: 8px; }
.theirs .bubble { background: var(--card); box-shadow: none; border: var(--hair); border-bottom-left-radius: 8px; }
.meta { font-weight: 500; font-size: .66rem; }
.day-sep span { background: transparent; border: var(--hair); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .62rem; }
.snap-banner { border-width: 1px; background: var(--card); border-radius: 20px; }
.chat-head .icon-btn.on { background: color-mix(in srgb, #f7c948 30%, transparent); }

/* ---------- Muziekspeler en kleine dingen ---------- */
.yt-dock { background: var(--glass); border-radius: 22px; }
.song, .wish, .letter { box-shadow: none; }
.song, .letter { border: var(--hair); }
.letter { background-image: none; }
.streak { background: var(--soft); border: var(--hair); font-weight: 600; }
.wij-streak { font-weight: 600; color: var(--muted); font-size: .8rem; }
.app-foot { font-weight: 500; letter-spacing: .02em; }
.quiz-opt { background: var(--soft); border: var(--hair); font-weight: 600; text-align: left; padding: 15px 16px; }
.rad-result, .pl-hero { background: var(--card); background-image: radial-gradient(120% 120% at 100% 0%, var(--glow), transparent 60%); }

/* Minder beweging voor wie dat wil */
@media (prefers-reduced-motion: reduce) { body::before { display: none; } }

/* Tegels: titels altijd op dezelfde hoogte */
.tile { justify-content: flex-start; }
.tile .ti { margin-bottom: 0; }
.tile b { margin-top: 18px; }

/* =====================================================================
   Homepage (Vandaag)
   ===================================================================== */
.home-top { padding: 6px 2px 18px; }
.home-date { text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 600; color: var(--muted); }
.home-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 10px; }
.home-hello h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.045em; line-height: 1.08; }
.home-me { flex: none; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--keoni), var(--lotte), var(--keoni)); }
.home-me .avatar, .home-me img { display: block; border-radius: 50%; border: 2px solid var(--bg); }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { display: grid; gap: 2px; padding: 14px 14px 12px; border-radius: 20px; background: var(--card); border: var(--hair); box-shadow: var(--shadow); color: inherit; text-decoration: none; min-width: 0; transition: transform .15s var(--ease); }
.stat:active { transform: scale(.97); }
.stat-k { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.15; display: flex; align-items: baseline; gap: 3px; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .9rem; letter-spacing: 0; }
.stat-s { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.risk { border-color: color-mix(in srgb, #f5a524 45%, transparent); }
.stat.risk .stat-s { color: #d98a0b; }

.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 16px; padding: 2px 18px; scroll-snap-type: x proximity; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; width: 70px; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: -.005em; }
.quick button span { width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; font-size: 1.35rem; color: var(--ink);
  background: var(--card); border: var(--hair); box-shadow: var(--shadow); transition: transform .15s var(--ease), background .2s; }
.quick button:active span { transform: scale(.9); background: var(--soft); }
.quick button:first-child span { background: color-mix(in srgb, var(--accent) 14%, var(--card)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Mood-kaart: de knoppen staan nu in de snelle acties */
.home-feed .mood-bar .mood-actions { display: none; }
.home-feed .mood-bar { padding: 14px 16px; }
.home-feed > :empty { display: none; }

/* Tijdlijn */
.home-day .card-head { margin-bottom: 8px; }
.home-day-act { display: flex; gap: 12px; align-items: center; }
.tl { display: grid; }
.tl-row { display: grid; grid-template-columns: 52px 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 0; border-top: var(--hair); cursor: pointer; }
.tl-row:first-child { border-top: 0; }
.tl-time { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; display: grid; line-height: 1.25; }
.tl-time i { font-style: normal; color: var(--muted); font-weight: 500; font-size: .7rem; }
.tl-row .check { width: 22px; height: 22px; border-radius: 7px; border-width: 1.5px; margin: 0; }
.tl-main { display: grid; min-width: 0; }
.tl-main b { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row.done .tl-main b { text-decoration: line-through; opacity: .45; }
.tl-who .avatar { display: block; }
.tl-samen { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-size: .75rem; }
.tl-empty { color: var(--muted); font-size: .9rem; padding: 10px 0 4px; }
.free-line { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; color: inherit; font: inherit;
  background: color-mix(in srgb, var(--samen) 7%, var(--soft)); }
.free-line b { flex: 1; font-size: .86rem; font-weight: 600; }
.free-line i { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--samen); white-space: nowrap; }
.home-more { display: grid; gap: 0; }
.free-pill { border-style: solid; border-color: var(--line); background: var(--soft); border-radius: 14px; }
.free-pill span:last-child { font-weight: 600; }
/* Snelle acties: altijd netjes verdeeld over de breedte */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; overflow: visible; margin: 0 0 16px; padding: 0; }
.quick button { width: auto; min-width: 0; }
.quick button span { width: 100%; max-width: 58px; aspect-ratio: 1; height: auto; border-radius: 19px; }

/* =====================================================================
   Liquid glass-balk (onderaan, gsm)
   ===================================================================== */
@media (max-width: 899px) {
  #nav {
    touch-action: none; isolation: isolate; overflow: visible; -webkit-user-select: none; user-select: none;
    transform: translateZ(0); -webkit-touch-callout: none; /* eigen laag: geen flikkeren tijdens scrollen op iPhone */
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .015) 55%, rgba(255, 255, 255, .05)),
      var(--glass);
    backdrop-filter: blur(26px) saturate(190%) brightness(1.04); -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.04);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .22),
      inset 0 -1px 0 rgba(255, 255, 255, .05),
      inset 0 0 0 .5px rgba(255, 255, 255, .04),
      0 18px 44px -16px rgba(0, 0, 0, .55);
  }
  :root[data-mode="light"] #nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .45)), rgba(250, 250, 248, .4);
    border-color: rgba(255, 255, 255, .9);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .03), 0 18px 40px -18px rgba(0, 0, 0, .28), 0 0 0 .5px rgba(0, 0, 0, .06);
  }
  #nav a { z-index: 1; background: none !important; transition: color .25s; -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  #nav a.active::after { display: none; }
  #nav a svg { transition: transform .35s cubic-bezier(.3, 1.6, .4, 1); }
  #nav a.active svg { transform: scale(1.06); }
  #nav.dragging a { color: var(--muted); }
  #nav a.under { color: var(--ink) !important; }
  #nav a.under svg { transform: scale(1.18); }

  /* De glazen druppel */
  .nav-glass {
    position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 64px; border-radius: 19px; pointer-events: none;
    background:
      radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .30), transparent 55%),
      linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    backdrop-filter: blur(4px) saturate(220%) brightness(1.3); -webkit-backdrop-filter: blur(4px) saturate(220%) brightness(1.3);
    border: .5px solid rgba(255, 255, 255, .35);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .6),
      inset 0 -1px 2px rgba(255, 255, 255, .15),
      inset 0 0 14px rgba(255, 255, 255, .08),
      0 8px 22px -8px rgba(0, 0, 0, .45);
    /* De beweging komt volledig uit de veer-natuurkunde in JavaScript: geen CSS-overgang op transform (die vocht ertegen) */
    transition: width .3s var(--ease), opacity .25s;
    will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  }
  .nav-glass::after { /* zacht kleurrandje, als licht dat breekt in glas */
    content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    background: linear-gradient(110deg, color-mix(in srgb, var(--keoni) 45%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--lotte) 45%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; opacity: .55;
  }
  :root[data-mode="light"] .nav-glass {
    background: radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .95), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(240, 240, 236, .45));
    border-color: rgba(255, 255, 255, .95);
    box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px rgba(0, 0, 0, .04), 0 8px 20px -8px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .05);
  }
  .nav-glass.instant { transition: none; }
}
@media (min-width: 900px) { .nav-glass { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav-glass { transition: opacity .2s !important; } }

/* Vloeibare versie: beweging komt van de veer-natuurkunde (JS), niet van CSS-overgangen */
@media (max-width: 899px) {
  .nav-glass, .nav-glass.instant { transition: width .3s var(--ease), opacity .25s, filter .3s; scale: none !important; transform-origin: 50% 50%; }
  .nav-glass.lift { filter: brightness(1.12) saturate(1.15); }
  #nav a svg { transform: scale(var(--mag, 1)) !important; transition: none; transform-origin: 50% 60%; }
  #nav a span { transform: scale(calc(1 + (var(--mag, 1) - 1) * .35)); transform-origin: 50% 0; }
  #nav a { color: color-mix(in srgb, var(--ink) calc(var(--near, 0) * 100%), var(--muted)); }
  #nav.dragging a, #nav a.under { color: color-mix(in srgb, var(--ink) calc(var(--near, 0) * 100%), var(--muted)) !important; }
}

/* =====================================================================
   Gouden sleutel
   ===================================================================== */
.gold-card { border-color: rgba(212, 175, 55, .28); background-image: radial-gradient(120% 120% at 100% 0%, rgba(212, 175, 55, .10), transparent 60%); }
.gold-key {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 6px;
  border-radius: 16px; font-weight: 700; letter-spacing: .01em; color: #3a2a05; overflow: hidden;
  background: linear-gradient(135deg, #8a6a1c 0%, #f6dc8a 28%, #c9a13b 52%, #fff1b8 72%, #a87e22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 10px 26px -10px rgba(201, 161, 59, .6);
}
.gold-key span { font-size: 1.2rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.gold-key::after { /* glans die voorbijschuift */
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%);
  transform: translateX(-120%); animation: goldShine 3.8s ease-in-out infinite;
}
@keyframes goldShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.gold-sheet .gold-big, .wiped-view .gold-big { font-size: 3rem; text-align: center; filter: drop-shadow(0 6px 16px rgba(201, 161, 59, .45)); }
.gold-list { margin: 0 0 14px; padding: 12px 14px 12px 30px; border-radius: 14px; background: var(--soft); font-size: .85rem; display: grid; gap: 4px; }
.gold-hold {
  position: relative; width: 100%; min-height: 56px; border-radius: 16px; overflow: hidden; font-weight: 700; color: #fff;
  background: #2a2112; border: 1px solid rgba(212, 175, 55, .45); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.gold-hold:disabled { opacity: .4; }
.gold-hold i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #b8892a, #f6dc8a); }
.gold-hold span { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.wiped-view { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; padding: 30px; background: var(--bg); animation: fade .4s var(--ease); }
.wiped-view h1 { font-size: 2rem; letter-spacing: -.04em; margin: 10px 0 6px; }
.wiped-view .btn { margin-top: 18px; min-width: 160px; }
@media (prefers-reduced-motion: reduce) { .gold-key::after { animation: none; } }

/* Snelle acties: zes knoppen */
@media (max-width: 899px) { .quick { grid-template-columns: repeat(6, 1fr); gap: 4px; } .quick button { font-size: .62rem; } }

/* ✏️ Tekenen */
.draw-ov { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg, #0b0b0e); color: var(--ink);
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 14px); animation: fade .2s var(--ease); }
.draw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.draw-top b { flex: 1; text-align: center; font-size: .95rem; }
.draw-tools { display: flex; gap: 6px; }
.draw-round { width: 40px; height: 40px; border-radius: 50%; border: var(--hair); background: var(--card); color: var(--ink); font-size: 1.05rem; display: grid; place-items: center; cursor: pointer; }
.draw-stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.draw-stage canvas, .draw-img { width: min(100%, 62vh, 520px); aspect-ratio: 1; height: auto; border-radius: 22px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.5); touch-action: none; background: #fff; }
.draw-img.pop { animation: drawpop .7s cubic-bezier(.3, 1.6, .4, 1); }
@keyframes drawpop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.draw-bar { margin-top: 14px; display: grid; gap: 12px; }
.draw-colors { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dc { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 2px solid var(--line); cursor: pointer; transition: transform .2s; }
.dc.on { transform: scale(1.18); box-shadow: 0 0 0 3px var(--accent); }
.draw-row { display: flex; justify-content: space-between; align-items: center; }
.draw-sizes, .draw-papers { display: flex; gap: 6px; }
.ds { width: 40px; height: 40px; border-radius: 12px; border: var(--hair); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.ds i { display: block; border-radius: 50%; background: var(--ink); }
.ds.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.dp { width: 30px; height: 30px; border-radius: 9px; background: var(--p); border: 2px solid var(--line); cursor: pointer; }
.dp.on { box-shadow: 0 0 0 3px var(--accent); }
.draw-card { display: flex; gap: 14px; align-items: center; }
.draw-card.empty { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.draw-thumb { flex: none; width: 104px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; padding: 0; border: var(--hair); cursor: pointer; background: #fff; }
.draw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.draw-meta { display: grid; gap: 4px; min-width: 0; }
.draw-acts { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.draw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.draw-thumb.sm { width: 100%; position: relative; }
.draw-thumb.sm span { position: absolute; left: 6px; bottom: 6px; font-size: .62rem; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; padding: 2px 6px; border-radius: 8px; }
