/* Stijl gebaseerd op FP Flow: Manrope + Inter, diepgroen accent, salie/zand, rustige kaarten met lijn */
:root {
  --bg: #F7F9F7; --card: #FFFFFF; --ink: #17231E; --muted: #55625C; --line: #E1E8E2;
  --accent: #29483C; --accent-ink: #FFFFFF; --soft: #E6EEE8; --sand: #F3EFE7; --sand-ink: #5B4A2E;
  --ok: #2F7A4F; --warn: #9A5B12; --red: #A23B2C; --red-soft: #F6E7E3;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111815; --card: #18211D; --ink: #E6EEE9; --muted: #A3B1AA; --line: #2A3631;
  --accent: #8CC3A8; --accent-ink: #0F1A15; --soft: #20302A; --sand: #2B2620; --sand-ink: #E2CFAE;
  --ok: #7FD1A2; --warn: #E9B36B; --red: #F0A090; --red-soft: #3A2420; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #111815; --card: #18211D; --ink: #E6EEE9; --muted: #A3B1AA; --line: #2A3631;
  --accent: #8CC3A8; --accent-ink: #0F1A15; --soft: #20302A; --sand: #2B2620; --sand-ink: #E2CFAE;
  --ok: #7FD1A2; --warn: #E9B36B; --red: #F0A090; --red-soft: #3A2420; color-scheme: dark }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 28px; display: grid; gap: 14px; }
main > * { min-width: 0; }
.loading { text-align: center; color: var(--muted); margin-top: 30vh; }

h1 { font: 800 28px/1.15 var(--display); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font: 700 18px/1.25 var(--display); margin: 0 0 10px; text-wrap: balance; }
h3 { font: 600 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.eyebrow { font: 600 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header .hello { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.header .hello b { color: var(--ink); font-family: var(--display); font-size: 16px; display: block; line-height: 1.2; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.card > h2 { margin: 0; }
.sandbox { background: var(--sand); color: var(--sand-ink); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.sandbox b { color: inherit; }

.hero { background: var(--accent); color: var(--accent-ink); border: 0; padding: 22px 18px; gap: 4px; }
.hero .sub { opacity: .8; font-size: 14px; }
.hero .big { font: 800 30px/1.1 var(--display); letter-spacing: -0.01em; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.countdown div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 8px; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .countdown div { background: rgba(0,0,0,.12); } }
.countdown b { display: block; font: 800 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; opacity: .8; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.todo li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; padding-top: 0; }
.todo .ico { width: 32px; height: 32px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: 0 0 auto; font-size: 16px; }

.program { display: grid; gap: 0; }
.program div { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.program div:first-child { border-top: 0; padding-top: 0; }
.program .t { font: 700 14px var(--display); color: var(--accent); min-width: 48px; font-variant-numeric: tabular-nums; }
.pre { white-space: pre-line; }

button, .btn {
  font: 700 15px var(--display); border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); min-height: 48px;
}
button.secondary { background: var(--soft); color: var(--accent); }
button.green { background: var(--ok); color: var(--accent-ink); }
button.ghost { background: transparent; color: var(--muted); padding: 0 10px; min-height: 40px; font: 600 14px var(--body); }
button.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
button.big { min-height: 52px; font-size: 16px; }
button:disabled { opacity: .5; cursor: default; }
button.block { width: 100%; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

input, select, textarea {
  font: inherit; width: 100%; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); min-height: 44px;
}
textarea { min-height: 110px; padding: 10px 12px; resize: vertical; }
label { display: block; font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }

/* Inloggen */
.login-top { display: grid; gap: 8px; justify-items: center; text-align: center; margin-top: 8vh; }
.logo { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 28px; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.names button {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; font-size: 15px;
}
.names button .new { display: block; font: 500 12px var(--body); color: var(--ok); }
.pin { display: flex; justify-content: center; gap: 10px; }
.pin input { width: 56px; height: 64px; text-align: center; font: 800 26px var(--display); padding: 0; border-radius: 12px; }

/* Lootje */
.lootje { text-align: center; padding: 28px 16px; background: var(--soft); border-color: transparent; justify-items: center; }
.lootje .name { font: 800 36px/1.1 var(--display); color: var(--accent); letter-spacing: -0.01em; }
.reveal { filter: blur(12px); user-select: none; }
.reveal.shown { filter: none; }

/* Lijsten */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 4px; }
.list .main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.list .title { font-weight: 600; word-break: break-word; }
.list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--soft); color: var(--accent); white-space: nowrap; justify-self: start;
}
.tag.open { background: var(--sand); color: var(--warn); }

.person-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 40px; }
.person-head .who { display: flex; align-items: center; gap: 10px; font: 700 16px var(--display); }
.person-head .count { color: var(--muted); font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: var(--soft); color: var(--accent); font: 800 15px var(--display);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 14px var(--body);
}
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Onderbalk */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
#tabs button {
  flex: 1; max-width: 112px; background: none; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 3px; font: 600 11px var(--body); padding: 6px 2px; min-height: 54px; border-radius: 12px;
}
#tabs button svg { width: 22px; height: 22px; }
#tabs button.active { color: var(--accent); }
#tabs button.active .pill { background: var(--soft); }
#tabs .pill { padding: 3px 16px; border-radius: 999px; display: grid; place-items: center; }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; opacity: 0; font-weight: 500;
  transition: opacity .2s, transform .2s; z-index: 10; max-width: calc(100% - 32px); text-align: center; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.error { color: var(--red); font-weight: 600; min-height: 1.4em; text-align: center; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; min-height: 40px; display: flex; align-items: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- Kerstsfeer ---------- */
:root { --berry: #B3372F; --berry-soft: #F7E6E3; --gold: #C99A2E; --snow: #C9D6CF; --script: "Dancing Script", cursive; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --berry: #F08A7E; --berry-soft: #3A2420; --gold: #E9C46A; --snow: #3A4A43; } }
:root[data-theme="dark"] { --berry: #F08A7E; --berry-soft: #3A2420; --gold: #E9C46A; --snow: #3A4A43; }

body { background-image: radial-gradient(circle at 20% 0%, rgba(201,154,46,.08), transparent 40%), radial-gradient(circle at 90% 10%, rgba(179,55,47,.06), transparent 35%); background-attachment: fixed; }
#snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#snow i { position: absolute; top: -12px; color: var(--snow); font-style: normal; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(105vh) translateX(30px) rotate(200deg); } }
main, #tabs, #toast { position: relative; z-index: 1; }
#tabs, #toast { position: fixed; }

.script { font: 700 26px/1 var(--script); color: var(--berry); }
.hero .script { color: var(--gold); font-size: 24px; }

/* Lichtslinger */
.lights { display: flex; justify-content: space-between; padding: 0 6px; height: 22px; position: relative; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 14px; border-bottom: 2px solid rgba(23,35,30,.35); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.hero .lights::before { border-color: rgba(255,255,255,.35); }
.lights b { width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; margin-top: 4px; position: relative; animation: twinkle 2.4s ease-in-out infinite; }
.lights b::before { content: ""; position: absolute; top: -3px; left: 2px; width: 5px; height: 4px; background: #4a5a52; border-radius: 1px; }
.lights b:nth-child(4n+1) { background: #E5483B; box-shadow: 0 0 10px #E5483B; }
.lights b:nth-child(4n+2) { background: #F2C14E; box-shadow: 0 0 10px #F2C14E; animation-delay: .6s; }
.lights b:nth-child(4n+3) { background: #7FD1A2; box-shadow: 0 0 10px #7FD1A2; animation-delay: 1.2s; }
.lights b:nth-child(4n+4) { background: #8FC6F2; box-shadow: 0 0 10px #8FC6F2; animation-delay: 1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: none; } }

/* Hero met boompje */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #2F5444, #1D352B); padding-top: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: linear-gradient(160deg, #24453A, #13261F); color: #fff; } }
:root[data-theme="dark"] .hero { background: linear-gradient(160deg, #24453A, #13261F); color: #fff; }
.hero .lights { margin: 0 -10px 10px; }
.hero .tree { position: absolute; right: -4px; bottom: 70px; width: 90px; opacity: .16; pointer-events: none; }
.hero > *:not(.tree) { position: relative; }
.hero .flake { position: absolute; color: rgba(255,255,255,.5); font-size: 10px; animation: drift 7s linear infinite; pointer-events: none; }
@keyframes drift { from { transform: translateY(-20px); } to { transform: translateY(240px); } }
.countdown div { backdrop-filter: blur(2px); }

/* Kaart-accenten */
.card > h2 .ico { margin-right: 6px; }
.tag.berry { background: var(--berry-soft); color: var(--berry); }

/* Inlogscherm */
.login-top .lights { width: min(320px, 90%); margin-bottom: 10px; }
.logo { background: linear-gradient(160deg, #2F5444, #1D352B); box-shadow: 0 0 0 4px var(--berry-soft); }

/* Lootje als cadeautje */
.gift-wrap { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; }
.gift { width: 150px; height: 130px; position: relative; cursor: pointer; border: 0; background: none; padding: 0; min-height: 0; }
.gift .box { position: absolute; left: 10px; right: 10px; bottom: 0; height: 90px; background: var(--berry); border-radius: 10px; }
.gift .lid { position: absolute; left: 0; right: 0; top: 18px; height: 30px; background: var(--berry); border-radius: 8px; filter: brightness(1.08); transition: transform .5s cubic-bezier(.5,-0.3,.6,1.4); }
.gift .rv { position: absolute; left: 50%; width: 18px; margin-left: -9px; top: 18px; bottom: 0; background: var(--gold); }
.gift .rh { position: absolute; left: 10px; right: 10px; top: 72px; height: 16px; background: var(--gold); }
.gift .bow { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 34px; line-height: 1; transition: transform .5s; }
.gift:hover .lid, .gift:focus-visible .lid { transform: translateY(-4px) rotate(-3deg); }
@media (prefers-reduced-motion: no-preference) { .gift { animation: wiggle 3s ease-in-out infinite; } }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } }
.lootje { background: linear-gradient(180deg, var(--soft), var(--card)); }
.lootje .name { animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: fixed; top: -20px; z-index: 20; pointer-events: none; font-size: 20px; animation: confetti 2.2s ease-in forwards; }
@keyframes confetti { to { transform: translateY(110vh) rotate(540deg); opacity: .8; } }

@media (prefers-reduced-motion: reduce) {
  #snow, .hero .flake, .confetti { display: none; }
  .lights b, .gift, .lootje .name { animation: none; }
}

/* 3D-kerstkamer */
.kamer-card { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; cursor: pointer; }
.kamer-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--berry-soft); display: grid; place-items: center; font-size: 28px; }
.kamer-stage { background: #13261F; border-radius: 16px; overflow: hidden; min-height: 200px; }
.kamer-stage .loading { color: #cfe0d6; }

/* Feest-onderdelen */
.header .ghost .pill { padding: 0; }
.header .ghost svg { width: 20px; height: 20px; }
.header .ghost.on { color: var(--accent); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; min-height: 128px; align-content: start;
}
.tile b { font: 700 16px var(--display); }
.tile-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 6px; }
.tile:nth-child(3n+2) .tile-ico { background: var(--berry-soft); }
.tile:nth-child(3n) .tile-ico { background: var(--sand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stats div { background: var(--soft); border-radius: 12px; padding: 10px 4px; text-align: center; display: grid; }
.stats b { font: 800 22px var(--display); color: var(--accent); }
.stats span { font-size: 11px; color: var(--muted); line-height: 1.2; }
.chip:disabled { opacity: .6; }

.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); font: 500 15px var(--body); padding: 10px 14px; min-height: 52px;
}
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--sand); transition: width .4s; }
.poll-opt.mine { border-color: var(--accent); }
.poll-opt.mine .bar { background: var(--soft); }
.poll-opt .txt { position: relative; flex: 1; display: grid; }
.poll-opt .pct { position: relative; font: 700 14px var(--display); color: var(--accent); }
.poll-opt:disabled { opacity: 1; cursor: default; }

.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt { background: var(--card); color: var(--ink); border: 1px solid var(--line); font: 600 14px var(--body); padding: 10px; min-height: 56px; }
.quiz-opt.right { background: var(--ok); color: #fff; border-color: var(--ok); opacity: 1; }
.quiz-opt.wrong { background: var(--berry); color: #fff; border-color: var(--berry); opacity: 1; }
.quiz-opt:disabled:not(.right):not(.wrong) { opacity: .55; }

.bingo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bingo-cell {
  aspect-ratio: 1; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  font: 600 11.5px/1.25 var(--body); padding: 6px; min-height: 0; hyphens: auto; overflow-wrap: anywhere;
}
.bingo-cell.on { background: var(--berry); color: #fff; border-color: var(--berry); position: relative; }
.bingo-cell.on::after { content: "⭐"; position: absolute; top: 3px; right: 4px; font-size: 11px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo { padding: 0; min-height: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: #0b120f; display: grid; grid-template-rows: 1fr auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; min-height: 0; align-self: center; }
.lb-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; }
.lb-bar .secondary { background: rgba(255,255,255,.14); color: #fff; }

.header .ghost.small { padding: 0 8px; }

/* Voortgang verlanglijstje */
.wish-progress { display: flex; align-items: center; gap: 10px; background: var(--berry-soft); color: var(--berry); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; text-align: left; }
.wish-progress.done { background: var(--soft); color: var(--accent); }
.wish-progress .dots { display: flex; gap: 4px; flex: 0 0 auto; }
.wish-progress .dots span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.wish-progress .dots span.on { background: currentColor; }
.person-head .count.low { color: var(--berry); }

/* Gerechten verdelen */
.dish-rows { display: grid; gap: 10px; }
.dish-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dish-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dish-name { display: flex; align-items: center; gap: 10px; }
.dish-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: 0 0 auto; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; }
.seg button { background: transparent; color: var(--muted); min-height: 40px; font: 600 13px var(--body); padding: 0 4px; border-radius: 9px; }
.seg button.on { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button.on.nee { color: var(--berry); }
.my-dishes { display: grid; gap: 8px; }
.my-dish { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 12px; padding: 12px; }
.my-dish .dish-ico { background: var(--card); font-size: 18px; width: 40px; height: 40px; }
.my-dish b { font: 700 16px var(--display); }

/* Uitleg-popup en koopknoppen */
.modal-back { position: fixed; inset: 0; z-index: 40; background: rgba(10, 16, 13, .55); display: grid; place-items: end center; padding: 16px; }
@media (min-width: 560px) { .modal-back { place-items: center; } }
.modal { background: var(--card); border-radius: 20px; padding: 20px; width: min(100%, 440px); display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); margin-bottom: env(safe-area-inset-bottom); }
.buy-actions { display: grid; gap: 2px; justify-items: end; flex: 0 0 auto; }

/* Menukeuze */
.opt-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-wrap { position: relative; display: flex; }
.opt { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0 14px; font: 600 14px var(--body); }
.opt.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt:disabled { opacity: .7; cursor: default; }
.opt-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; background: var(--berry); color: #fff; font-size: 13px; line-height: 1; }
.menu-result { background: linear-gradient(180deg, var(--sand), var(--card)); }
.menu-list { display: grid; gap: 0; }
.menu-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.menu-line:first-child { border-top: 0; }
.menu-line b { font: 700 17px var(--display); }

/* Huishouden kiezen */
.hh-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--soft); border-radius: 12px; padding: 6px 6px 6px 14px; font-size: 14px; }
.hh-opt { display: grid; justify-items: start; gap: 2px; text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 10px 14px; min-height: 56px; font: 500 14px var(--body); }
.hh-opt b { font: 700 15px var(--display); }
.hh-opt.on { border-color: var(--accent); background: var(--soft); }
.card.attention { border: 2px solid var(--accent); }

/* Route, onthulling */
.route-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; font: 700 14px var(--display); padding: 8px 14px; border-radius: 999px; justify-self: start; }
.reveal-me { background: var(--card); border-radius: 14px; padding: 14px; text-align: center; display: grid; gap: 4px; }
.reveal-me .big-name { font: 800 30px var(--display); color: var(--accent); }

.door-card { border: 2px solid var(--berry); }
.door-card.open { border-color: var(--accent); }

/* ---------- Inloggen bij de voordeur ---------- */
.door-login { position: relative; margin: -20px -16px 0; }
.door-stage { position: relative; height: min(58vh, 520px); min-height: 300px; background: radial-gradient(ellipse at 50% 30%, #2a3350, #06080f); border-radius: 0 0 28px 28px; overflow: hidden; }
.door-stage canvas { border-radius: 0 0 28px 28px; }
.door-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #cfe0ff; font-size: 40px; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.door-failed { display: none; }
.door-title { position: absolute; left: 0; right: 0; top: 0; padding: 18px 16px 40px; text-align: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,15,.75), rgba(5,7,15,0)); color: #fff; }
.door-title h1 { color: #fff; font-size: 24px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.door-title .script { color: #f2c14e; }
.door-login + .names { margin-top: 4px; }

.bell-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 12, .35); display: grid; place-items: end center; padding: 12px; }
@media (min-width: 560px) { .bell-back { place-items: center; } }
.bell { width: min(100%, 380px); background: linear-gradient(160deg, #3b3f44, #1f2226); color: #f1f3f5; border-radius: 26px; padding: 16px 18px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.15); display: grid; gap: 12px; margin-bottom: env(safe-area-inset-bottom);
  animation: bellIn .35s cubic-bezier(.2,.9,.3,1.2); transition: transform .5s, opacity .5s; }
@keyframes bellIn { from { transform: translateY(40px); opacity: 0; } }
.bell-back.hide .bell { transform: translateY(60px); opacity: 0; }
.bell-back.hide { background: transparent; transition: background .5s; }
.bell-head { display: flex; align-items: center; gap: 10px; }
.bell-head .eyebrow { color: #aab3bb; }
.bell-head b { font: 800 18px var(--display); }
.bell-head .ghost { color: #c9d0d6; }
.bell-dots { display: flex; justify-content: center; gap: 14px; padding: 6px 0; }
.bell-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8b949c; transition: all .15s; }
.bell-dots span.on { background: #f2c14e; border-color: #f2c14e; box-shadow: 0 0 12px rgba(242,193,78,.7); }
.bell-back.ok .bell-dots span { background: #7fd1a2; border-color: #7fd1a2; box-shadow: 0 0 12px rgba(127,209,162,.8); }
.bell-back.err .bell { animation: bellShake .4s; }
@keyframes bellShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bell-msg { text-align: center; color: #d6dce1; font-size: 14px; min-height: 2.6em; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { min-height: 58px; border-radius: 50%; aspect-ratio: 1; justify-self: center; width: min(76px, 100%);
  background: radial-gradient(circle at 35% 30%, #5c636a, #2c3035); color: #fff; font: 700 24px var(--display);
  box-shadow: 0 3px 0 #15171a, inset 0 1px 0 rgba(255,255,255,.2); }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 #15171a, inset 0 1px 0 rgba(255,255,255,.2); }
.key.del { font-size: 20px; background: transparent; box-shadow: none; color: #c9d0d6; }
.bell-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #aab3bb; }
.bell-btn span:first-child { font-size: 20px; }
.bell-back.busy .key { opacity: .5; }
.door-login:has(.door-failed) .door-title { position: static; color: var(--ink); background: none; }
.door-login:has(.door-failed) .door-title h1 { color: var(--ink); text-shadow: none; }

/* Boodschappenlijst */
.shop-list { list-style: none; margin: 0 0 8px; padding: 0; }
.shop-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.shop-item:first-child { border-top: 0; }
.shop-item .check { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 8px; border: 2px solid var(--line); background: var(--card); color: #fff; font-size: 15px; flex: 0 0 auto; }
.shop-item.done .check { background: var(--ok); border-color: var(--ok); }
.shop-item.done .main { text-decoration: line-through; color: var(--muted); }
/* Kerstmodus */
.live-card { background: linear-gradient(160deg, #7a1f2b, #4a0f19); color: #fff; border: 0; gap: 8px; }
.live-card .eyebrow, .live-card .muted { color: rgba(255,255,255,.75); }
.live-dot { display: flex; align-items: center; gap: 6px; font: 700 12px var(--body); letter-spacing: .08em; }
.live-dot span { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 0 rgba(255,90,90,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,90,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,90,0); } }
.live-now { font: 800 28px/1.15 var(--display); }
.live-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 10px 12px; }
.live-steps { display: grid; gap: 4px; margin-top: 4px; font-size: 14px; }
.live-steps div { display: flex; gap: 12px; opacity: .8; }
.live-steps div span:first-child { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 46px; }
.live-steps .past { opacity: .45; text-decoration: line-through; }
.live-steps .cur { opacity: 1; font-weight: 700; color: #f2c14e; }
@media (prefers-reduced-motion: reduce) { .live-dot span { animation: none; } }

/* Volledig scherm */
.kamer-stage { position: relative; }
.fs-btn { position: absolute; right: 10px; bottom: 10px; z-index: 5; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 12px; background: rgba(15,20,18,.6); color: #fff; font-size: 20px; }
.kamer-stage.full { position: fixed; inset: 0; z-index: 70; border-radius: 0; background: #000; }
.kamer-stage.full canvas { border-radius: 0 !important; height: 100% !important; }
body.no-scroll { overflow: hidden; }
/* Welkom terug bij de voordeur, schermvullend */
.door-welcome { position: fixed; inset: 0; z-index: 40; background: #06080f; }
.door-welcome .door-stage { height: 100%; min-height: 0; border-radius: 0; }
.door-welcome .door-stage canvas { border-radius: 0; }
.door-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 6px; justify-items: center;
  background: linear-gradient(0deg, rgba(5,7,15,.85), rgba(5,7,15,0)); }
.door-cta .big { width: min(100%, 360px); }

/* Inloggen: de voordeur schermvullend, namen onderin */
.door-login { position: fixed; inset: 0; z-index: 40; margin: 0; background: #06080f; }
.door-login .door-stage { height: 100%; min-height: 0; border-radius: 0; }
.door-login .door-stage canvas { border-radius: 0; }
.door-names { position: absolute; left: 0; right: 0; bottom: 0; max-height: 46%; overflow-y: auto; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(6,8,15,.95) 70%, rgba(6,8,15,0)); display: grid; gap: 8px; }
.door-names .muted { color: #b9c2c8; }
.door-names .names button { background: rgba(255,255,255,.92); }
.door-login:has(.door-failed) { position: static; background: none; }
.door-login:has(.door-failed) .door-names { position: static; background: none; max-height: none; }
.door-login:has(.door-failed) .door-names .muted { color: var(--muted); }
#tabs[hidden] { display: none !important; }

/* Keukenpaneel boven de 3D-wereld */
.ks-back { position: fixed; inset: 0; z-index: 80; background: rgba(6,8,12,.35); display: grid; place-items: end center; }
@media (min-width: 640px) { .ks-back { place-items: center; } }
.ks { width: min(100%, 560px); max-height: 86vh; background: var(--bg); border-radius: 22px 22px 0 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
@media (min-width: 640px) { .ks { border-radius: 22px; } }
.ks-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.ks-head b { font: 800 17px var(--display); }
.ks-body { overflow-y: auto; padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.btn-3d { font-weight: 700; color: var(--accent); }

.name-input { background: rgba(255,255,255,.95); color: #17231E; font: 700 20px var(--display); min-height: 54px; text-align: center; border: 0; border-radius: 14px; }
.name-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 40px; }
.name-sugg .chip { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.door-login .door-cta { position: absolute; left: 0; right: 0; bottom: 0; }

/* eten-wensenlijst (anoniem) */
.fw-list { display: grid; gap: 14px; }
.fw-course .eyebrow { margin: 0 0 6px; }
.fw-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-top: 6px; border-radius: 12px; background: var(--soft, #f3f1ec); overflow: hidden; }
.fw-bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent, #2f7d4f) 16%, transparent); border-radius: 12px; }
.fw-row.top .fw-bar { background: color-mix(in srgb, var(--accent, #2f7d4f) 28%, transparent); }
.fw-name { position: relative; flex: 1; font-weight: 600; }
.fw-n { position: relative; font-variant-numeric: tabular-nums; color: var(--muted, #6b6b6b); font-size: 14px; }

/* welkomstvideo van Ayla na het opengaan van de deur */
.welcome-vid { position: fixed; inset: 0; z-index: 9999; background: #000; display: grid; place-items: center; transition: opacity .45s; }
.welcome-vid.out { opacity: 0; pointer-events: none; }
.welcome-vid video { width: 100%; height: 100%; object-fit: cover; }
.welcome-vid .wv-skip { position: absolute; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 16px; font: 600 15px Inter, system-ui, sans-serif; min-height: 0; width: auto; }
.welcome-vid .wv-sound { position: absolute; left: 50%; top: calc(24px + env(safe-area-inset-top)); transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: 700 16px Manrope, system-ui, sans-serif; min-height: 0; width: auto; }
.welcome-vid .wv-sound[hidden] { display: none; }
.welcome-vid .wv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); color: #17231E; border: 0; border-radius: 999px; padding: 18px 28px; font: 800 20px Manrope, system-ui, sans-serif; min-height: 0; width: auto; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.welcome-vid .wv-play[hidden] { display: none; }

/* dobbelspel voor het lootje */
.dice-back { position: fixed; inset: 0; z-index: 9000; background: rgba(6,10,8,.6); display: grid; place-items: center; padding: 16px; }
.dice-card { background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px 20px; width: min(380px, 100%); text-align: center; display: grid; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.dice-card .name { font: 800 34px Manrope, system-ui, sans-serif; margin: 4px 0; color: var(--accent); }
.dice-msg { display: grid; gap: 4px; margin: 0; min-height: 48px; }
.dice-row { display: flex; justify-content: center; gap: 18px; }
.die { font-size: 76px; line-height: 1; color: var(--ink); animation: dieroll .35s linear infinite; display: inline-block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.die.stop { animation: diedrop .45s cubic-bezier(.2,1.6,.4,1); }
.dice-row.big .die { font-size: 64px; animation: diewobble 2.4s ease-in-out infinite; }
.dice-row.big .die:nth-child(2) { animation-delay: -1.2s; }
@keyframes dieroll { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-14px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-8px); } 100% { transform: rotate(360deg) translateY(0); } }
@keyframes diedrop { 0% { transform: scale(1.3) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes diewobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-4px); } }

/* invoervelden minstens 16px: anders zoomt de telefoon in zodra je erin tikt */
input, select, textarea { font-size: 16px; }

/* keukenmenu als bord in de 3D-wereld zelf (geen ander scherm) */
.ks-back.in-world { position: absolute; inset: 0; z-index: 60; background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(6,8,12,.35) 75%); place-items: end center; padding: 8px; border-radius: 16px; }
.ks-back.in-world .ks { width: min(100%, 520px); max-height: 74%; border-radius: 18px; background: rgba(247,244,236,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 3px solid #b38a52; box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.5); animation: ksUp .35s cubic-bezier(.2,1.2,.4,1); }
.ks-back.in-world .ks-head { background: linear-gradient(#2f4a3c, #24392e); color: #fff; border-bottom: 2px solid #b38a52; }
.ks-back.in-world .ks-head .eyebrow { color: #f2c14e; }
.ks-back.in-world .ks-head button { color: #fff; }
.ks-back.in-world .ks-body .card { box-shadow: none; }
.kamer-stage.full .ks-back.in-world { border-radius: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
@keyframes ksUp { from { transform: translateY(30px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* terug naar het 3D-huis na het kiezen van het eten */
.save-bar { position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.save-bar button { background: #fff; color: #17231E; font-weight: 800; white-space: nowrap; }
.recipe { margin-top: 6px; }
.recipe summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.recipe ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* lot trekken uit de pot: roffel, graaien, vliegen, openvouwen, schrijven, sterrenregen */
.lot-card { overflow: hidden; }
.lot-stage { position: relative; height: 210px; display: grid; place-items: center; perspective: 700px; }
.lot-glow { position: absolute; inset: 10% 15%; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.55), rgba(255,214,120,0) 65%); opacity: 0; transform: scale(.4); transition: all .6s; }
.lot-card.boom .lot-glow { opacity: 1; transform: scale(1.3); animation: glowpulse 1.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { transform: scale(1.45); opacity: .7; } }
.lot-jar { position: relative; width: 96px; height: 120px; margin-top: 40px; animation: jarshake .22s ease-in-out infinite; transform-origin: 50% 100%; transition: transform .5s, opacity .5s; }
.lot-jar.still { animation: none; }
.jar-glass { position: absolute; inset: 14px 6px 0; border-radius: 14px 14px 22px 22px; background: linear-gradient(90deg, rgba(200,230,240,.55), rgba(255,255,255,.25) 35%, rgba(200,230,240,.5)); border: 2px solid rgba(160,200,215,.8); overflow: hidden; box-shadow: inset -8px 0 14px rgba(255,255,255,.5); }
.jar-lid { position: absolute; left: 14px; right: 14px; top: 2px; height: 14px; border-radius: 5px; background: linear-gradient(#e6c47c, #b88f42); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.jar-bow { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); font-size: 22px; }
.lot-bits i { position: absolute; left: calc(50% + var(--x)); bottom: 6px; width: 20px; height: 12px; border-radius: 2px; background: var(--c); box-shadow: 0 1px 2px rgba(0,0,0,.2); animation: bitjump .45s ease-in-out var(--d) infinite alternate; }
.lot-bits i:nth-child(n+4) { bottom: 18px; } .lot-bits i:nth-child(n+7) { bottom: 30px; }
@keyframes bitjump { from { transform: translateY(0) rotate(-20deg); } to { transform: translateY(-38px) rotate(40deg); } }
@keyframes jarshake { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-5px); } }
.lot-hand { position: absolute; left: 50%; top: -60px; font-size: 54px; transform: translateX(-50%); transition: top .55s cubic-bezier(.3,1.4,.5,1); z-index: 2; }
.lot-card.grab .lot-hand { top: 52px; animation: handwiggle .18s ease-in-out .5s infinite; }
@keyframes handwiggle { 50% { transform: translateX(-46%) rotate(8deg); } }
.lot-card.fly .lot-hand { top: -90px; opacity: 0; transition: top .5s ease-in, opacity .4s; animation: none; }
.lot-card.fly .lot-jar { animation: none; transform: translateY(46px) scale(.75); opacity: .35; }
.lot-paper { position: absolute; left: 50%; top: 86px; width: 40px; height: 26px; margin-left: -20px; border-radius: 3px; background: #fbf6e8; border: 1px solid #d8cba8; box-shadow: 0 6px 16px rgba(0,0,0,.2); opacity: 0; display: grid; place-items: center; overflow: hidden; z-index: 3; transform-style: preserve-3d; }
.lot-card.fly .lot-paper { opacity: 1; animation: paperfly .7s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes paperfly { 0% { transform: translateY(0) rotateY(0) rotateZ(0) scale(.8); } 60% { transform: translateY(-80px) rotateY(540deg) rotateZ(20deg) scale(1.2); } 100% { transform: translateY(-58px) rotateY(720deg) rotateZ(-3deg) scale(1); } }
.lot-card.open .lot-paper { width: 250px; height: 100px; margin-left: -125px; transition: width .45s cubic-bezier(.2,1.3,.4,1), height .45s cubic-bezier(.2,1.3,.4,1) .15s, margin .45s cubic-bezier(.2,1.3,.4,1); background: repeating-linear-gradient(#fbf6e8 0 22px, #e8dfc6 22px 23px); }
.lot-crease { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(150,120,70,.35); opacity: 0; }
.lot-card.open .lot-crease { opacity: 1; transition: opacity .3s .4s; }
.lot-name { font: 700 42px 'Dancing Script', cursive; color: #a3262e; white-space: nowrap; }
.lot-name span { display: inline-block; opacity: 0; transform: translateY(6px) scale(.6); animation: letterin .25s ease-out forwards; }
@keyframes letterin { to { opacity: 1; transform: none; } }
.lot-burst { position: absolute; left: 50%; top: 40%; z-index: 4; pointer-events: none; }
.lot-burst i { position: absolute; font-style: normal; font-size: 18px; opacity: 0; animation: burst 1.3s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.3) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--r)); } }

/* lot trekken: feestelijke kaart (donkergroen, goud, sneeuw) */
.lot-card { position: relative; background: radial-gradient(120% 90% at 50% 0%, #2f5a45 0%, #1c3a2c 55%, #12261d 100%); color: #fff; border: 2px solid #d6ad5c; box-shadow: 0 24px 70px rgba(0,0,0,.55), inset 0 0 0 5px rgba(214,173,92,.18); padding-top: 26px; }
.lot-card > * { position: relative; }
.lot-card .script { color: #f2c14e; font-size: 34px; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.lot-card .dice-msg { color: #fff; }
.lot-card .dice-msg .eyebrow { color: #f2c14e; }
.lot-card .dice-msg .muted { color: rgba(255,255,255,.75); }
.lot-card button.big { background: linear-gradient(#f0cf85, #d6ad5c); color: #1c2a22; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.lot-card button.ghost { color: #fff; }
.lot-snow { position: absolute !important; inset: 0; pointer-events: none; overflow: hidden; border-radius: 20px; }
.lot-snow::before, .lot-snow::after { content: ''; position: absolute; top: -10px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: transparent;
  box-shadow: 20px 10px #fff, 70px 60px rgba(255,255,255,.8), 120px 20px #fff, 170px 90px rgba(255,255,255,.7), 220px 40px #fff, 270px 110px rgba(255,255,255,.8), 320px 15px #fff, 45px 140px rgba(255,255,255,.7), 150px 170px #fff, 250px 190px rgba(255,255,255,.8), 95px 230px #fff, 300px 250px rgba(255,255,255,.7), 15px 280px #fff, 200px 300px rgba(255,255,255,.8), 340px 330px #fff;
  animation: lotsnow 7s linear infinite; opacity: .7; }
.lot-snow::after { left: 14px; animation-duration: 11s; animation-delay: -4s; transform: scale(.7); opacity: .5; }
@keyframes lotsnow { from { transform: translateY(-340px); } to { transform: translateY(340px); } }
.lot-stage { height: 230px; }
.lot-jar { width: 112px; height: 140px; margin-top: 50px; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.jar-glass { background: linear-gradient(90deg, rgba(190,230,240,.5), rgba(255,255,255,.22) 35%, rgba(190,230,240,.45)); border-color: rgba(210,240,250,.85); }
.jar-shine { position: absolute; left: 9px; top: 12px; width: 9px; height: 62%; border-radius: 8px; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.1)); }
.jar-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%) rotate(-3deg); background: #fbf6e8; color: #a3262e; font: 700 17px 'Dancing Script', cursive; padding: 1px 10px; border-radius: 3px; border: 1px solid #d8cba8; box-shadow: 0 1px 3px rgba(0,0,0,.2); z-index: 1; }
.jar-lid { height: 16px; background: linear-gradient(#f3d892, #b88f42); border-radius: 6px; }
.jar-bow { font-size: 26px; top: 2px; }
.lot-hand { filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.lot-card.grab .lot-hand { top: 62px; }
.lot-paper { border-radius: 4px; box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.lot-card.open .lot-paper { width: 270px; height: 124px; margin-left: -135px; background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0) 30%), repeating-linear-gradient(#fbf6e8 0 24px, #eadfc2 24px 25px); border: 1px solid #d8cba8; outline: 1px dashed rgba(163,38,46,.35); outline-offset: -7px; }
.lot-for { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font: 600 11px Inter, system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: #8a7a5c; opacity: 0; }
.lot-card.open .lot-for { opacity: 1; transition: opacity .4s .5s; }
.lot-stamp { position: absolute; right: 10px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #a3262e; box-shadow: 0 2px 5px rgba(0,0,0,.3), inset 0 0 0 2px rgba(255,255,255,.25); transform: scale(0) rotate(-40deg); }
.lot-card.boom .lot-stamp { transform: scale(1) rotate(12deg); transition: transform .35s cubic-bezier(.2,1.8,.4,1) .2s; }
.lot-card.open .lot-name { font-size: 46px; margin-top: 14px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.lot-glow { background: radial-gradient(circle, rgba(255,214,120,.75), rgba(255,214,120,0) 65%); }
.lot-burst i { font-size: 20px; }

/* ---------- opknapbeurt: meer diepte en kerstsfeer ---------- */
body { background: radial-gradient(1200px 500px at 50% -120px, rgba(214,173,92,.14), transparent 70%) no-repeat, var(--bg); }
html { background: var(--bg); }
.foryou .row { justify-content: space-between; }
.foryou .row > h2 { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; }
.foryou .row > .tag { flex: 0 0 auto; }
.card { border-radius: 20px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -14px rgba(23,35,30,.25); }
.card > h2, .card .row > h2 { font-size: 19px; }
.hero { box-shadow: 0 18px 40px -18px rgba(18,38,29,.7), inset 0 0 0 1px rgba(214,173,92,.35); border-radius: 22px; }
.hero .big { font-size: 32px; }
.countdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(214,173,92,.35); }
.countdown b { color: #f6d58a; font-size: 28px; }
button, .btn { transition: transform .12s, box-shadow .2s, background .2s; }
button:active:not(:disabled) { transform: scale(.97); }
button.big, button.block:not(.ghost):not(.secondary) { background: linear-gradient(#35604c, #264536); box-shadow: 0 8px 18px -8px rgba(23,45,35,.7), inset 0 1px 0 rgba(255,255,255,.15); }
.logout-btn { font-size: 18px; width: 40px; padding: 0 !important; }
.header { padding: 2px 0 4px; }
.header .avatar { background: linear-gradient(135deg, #35604c, #1d352b); color: #f6d58a; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.tag.gold { background: #f8ecd0; color: #7a5a17; }
.progress { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #d6ad5c, #b3222a); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.foryou .todo { gap: 8px; }
.foryou .todo li { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; align-items: center; background: var(--card); }
.foryou .todo li:first-child { padding-top: 10px; border-top: 1px solid var(--line); }
.foryou .todo li.act { background: linear-gradient(90deg, rgba(214,173,92,.14), rgba(214,173,92,0) 70%); border-color: rgba(214,173,92,.55); position: relative; padding-right: 30px; }
.foryou .todo li.act::after { content: '›'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #b38a3c; }
.foryou .todo li.act .ico { background: #f8ecd0; }
.foryou .todo li:not(.act) { opacity: .85; }
.tile { border-radius: 20px; box-shadow: 0 8px 24px -14px rgba(23,35,30,.3); transition: transform .15s, box-shadow .2s; }
.tile:active { transform: scale(.97); }
.tile-ico { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; background: linear-gradient(135deg, #e3efe7, #c9e0d1); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 12px -8px rgba(0,0,0,.3); }
.tile:nth-child(3n+2) .tile-ico { background: linear-gradient(135deg, #fbe3e3, #f3c3c6); }
.tile:nth-child(3n) .tile-ico { background: linear-gradient(135deg, #fbf0d6, #f1dca6); }
.opt { transition: all .15s; box-shadow: 0 2px 6px -4px rgba(0,0,0,.25); }
.opt.on { background: linear-gradient(#35604c, #264536); box-shadow: 0 6px 14px -8px rgba(23,45,35,.8); }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: #d6ad5c; box-shadow: 0 0 0 3px rgba(214,173,92,.25); outline: none; }
#tabs { background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.35); }
#tabs button.active .pill { background: linear-gradient(#35604c, #264536); color: #f6d58a; box-shadow: 0 6px 12px -8px rgba(23,45,35,.9); }
.dish-row { border-radius: 14px; }
.script { text-shadow: 0 1px 0 rgba(255,255,255,.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.gold { background: #3a301a; color: #f1d48a; } :root:not([data-theme="light"]) .foryou .todo li.act .ico { background: #3a301a; } }
