/* FOODIKU 1.0 -- LABEL LAB (Level 13). Overgenomen uit het goedgekeurde prototype (V2.2);
   volledig genamespaced: tokens op .ll-screen, geen globale regels (geen *, html/body, button, .hidden). */

.ll-screen {
  --green: #78bc75;
  --green-dark: #5da35a;
  --green-soft: rgba(120, 188, 117, 0.14);
  --orange: #ff930f;
  --orange-soft: rgba(255, 147, 15, 0.14);
  --bg: #faf9f5;
  --card: #ffffff;
  --ink: #2b2b28;
  --ink-soft: #6b6b66;
  --line: #e3e0d4;
  --red: #e0554a;
  --red-soft: rgba(224, 85, 74, 0.12);
  --label-ink: #1f1f1d;
  --focus: #fff1c9;
  --radius-lg: 24px;
  --radius-md: 16px;
}

.ll-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Knoppen erven hun tekstkleur (was een globale regel in het prototype); :where houdt de
   specificiteit op elementniveau, zodat .ll-btn-primary e.d. gewoon winnen. */
:where(.ll-screen) button {
  color: inherit;
}

.ll-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.ll-title {
  margin: 0.1rem 0 0;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--green-dark);
  line-height: 1;
}

.ll-title-sm {
  font-size: 1.7rem;
}

/* ---------- knoppen ---------- */

.ll-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.ll-btn:active {
  transform: scale(0.98);
}

.ll-btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 147, 15, 0.3);
}

.ll-btn-primary:disabled {
  background: #e6e2d6;
  color: #a19d92;
  box-shadow: none;
  cursor: default;
}

.ll-btn-quiet {
  background: none;
  color: var(--ink-soft);
}

/* ---------- intro ---------- */

.ll-intro {
  justify-content: space-between;
  text-align: center;
}

.ll-intro-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ll-intro-char {
  width: min(62vw, 230px);
  height: auto;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.ll-payoff {
  margin: 0.8rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- hub (V2.2: Macro Mania-opbouw) ----------
   Zelfde familie als de Macro Mania-hub in FOODIKU NEXT (css/macromania.css, .mm-hub-*):
   mascotte + titel gecentreerd, één verticale stapel witte kaarten met zachte schaduw,
   rond icoon, naam, uitleg en een pijl. Vergrendeld = plat, gestippeld, slotje, altijd
   leesbaar. Waarden zijn een eigen kopie; geen gedeelde CSS met NEXT. */

.ll-hub {
  align-items: center;
  gap: 0;
  text-align: center;
  padding-top: calc(1.2rem + var(--safe-top));
}

.ll-hub > * {
  flex-shrink: 0;
}

.ll-hub-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.ll-hub-char {
  width: 96px;
  height: auto;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.08));
}

.ll-hub-title {
  margin: 0.1rem 0 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.ll-hub-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ll-hub-modes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ll-mode-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon head end" "icon sub end";
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.12rem;
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  text-align: left;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 28px;
  box-shadow: 0 2px 6px rgba(43, 43, 40, 0.05), 0 10px 22px rgba(43, 43, 40, 0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.12s ease;
}

.ll-mode-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(43, 43, 40, 0.06), 0 5px 12px rgba(43, 43, 40, 0.08);
}

.ll-mode-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.ll-mode-icon {
  grid-area: icon;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(120, 188, 117, 0.16);
  color: var(--green-dark);
}

.ll-mode-icon svg {
  width: 28px;
  height: 28px;
}

.ll-mode-head {
  grid-area: head;
  align-self: end;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ll-mode-kicker {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: #d97a06;
}

.ll-mode-name {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.ll-mode-tag {
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.ll-mode-tag.is-new {
  background: var(--green);
  color: var(--ink);
}


.ll-mode-sub {
  grid-area: sub;
  align-self: start;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
}

.ll-mode-end {
  grid-area: end;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #cbc6b7;
}

.ll-mode-end svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #b8b3a6;
}

/* Signature: dezelfde kaart, met oranje accent (rand + icoon) als climax van de stapel. */
.ll-mode-card.is-signature {
  border-color: var(--orange);
  box-shadow: 0 2px 6px rgba(43, 43, 40, 0.05), 0 10px 22px rgba(255, 147, 15, 0.16);
}

.ll-mode-card.is-signature .ll-mode-icon {
  background: var(--orange-soft);
  color: #d97a06;
}

.ll-mode-card.is-signature .ll-mode-end {
  color: var(--orange);
}

/* Vergrendeld: plat, gestippeld, slotje i.p.v. pijl, nooit onleesbaar. */
.ll-mode-card.is-locked {
  background: transparent;
  border-style: dashed;
  border-color: #d3cebf;
  box-shadow: none;
  cursor: default;
}

.ll-mode-card.is-locked:active {
  transform: none;
}

.ll-mode-card.is-locked .ll-mode-icon {
  background: rgba(43, 43, 40, 0.06);
  color: #a19d92;
}

.ll-mode-card.is-locked .ll-mode-name {
  color: var(--ink-soft);
}

.ll-mode-card.is-signature.is-locked .ll-mode-kicker {
  color: #b3afa4;
}

/* Prototype-knoppen: klein, grijs, los van de kaarten; geen stippelrand (dat is 'vergrendeld'). */
.ll-dev {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ll-dev-label {
  width: 100%;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b3afa4;
}

.ll-dev-btn {
  border: none;
  background: none;
  padding: 0.4rem 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9a968b;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ll-dev-sep {
  color: #c9c5b9;
  font-weight: 900;
}

/* ---------- spelscherm ---------- */

.ll-play {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-bottom: calc(12px + var(--safe-bottom));
}

.ll-play-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.ll-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
}

.ll-play-mode {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.ll-play[data-mode="claim"] .ll-play-mode,
.ll-play[data-mode="top3"] .ll-play-mode,
.ll-play[data-mode="allergenen"] .ll-play-mode {
  color: #c96f00;
  background: var(--orange-soft);
}

.ll-dots {
  margin-left: auto;
  display: flex;
  gap: 5px;
}

.ll-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e3e0d4;
}

.ll-dot.is-now {
  background: var(--orange);
  transform: scale(1.2);
}

.ll-dot.is-good {
  background: var(--green);
}

.ll-dot.is-miss {
  background: #f0b6b0;
}

.ll-prompt {
  margin: 10px 0 10px;
  min-height: 3.1rem;
}

.ll-prompt-main {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.2;
}

.ll-prompt-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ll-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ---------- sleep-basis ---------- */

.ll-draggable {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.ll-dragging {
  position: relative;
  z-index: 60;
  cursor: grabbing;
  transition: none !important;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.ll-armed {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  animation: ll-pulse 1s ease-in-out infinite;
}

@keyframes ll-pulse {
  50% {
    outline-offset: 6px;
  }
}

.ll-bounce {
  animation: ll-bounce 0.4s ease;
}

@keyframes ll-bounce {
  30% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(2px);
  }
}

.ll-shake {
  animation: ll-shake 0.44s ease;
}

@keyframes ll-shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.ll-pop {
  animation: ll-pop 0.25s ease;
}

@keyframes ll-pop {
  50% {
    transform: scale(1.08);
  }
}

/* ---------- vergrootglas ---------- */

.ll-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.ll-dock-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #a19d92;
  letter-spacing: 0.04em;
}

.ll-lens {
  position: relative;
  width: 66px;
  height: 66px;
}

.ll-lens-glass {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 7px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e9f6e8 55%, #cfe9cd 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.ll-lens-handle {
  position: absolute;
  left: 42px;
  top: 40px;
  width: 26px;
  height: 11px;
  border-radius: 6px;
  background: var(--orange);
  transform: rotate(45deg);
  transform-origin: left center;
}

.ll-lens.is-gone {
  opacity: 0;
  pointer-events: none;
}

/* ---------- achterkant (SPEURTOCHT) ---------- */

.ll-back {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-back-head,
.ll-top3-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ll-back-img,
.ll-top3-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.ll-back-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.ll-back-sub {
  margin: 1px 0 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ll-back-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
}

.ll-back-grid.is-flipped {
  grid-template-columns: 1fr 1.25fr;
}

.ll-back-grid.is-flipped > .ll-zone-nutrition {
  order: 2;
}

.ll-back-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: #f4f2ec;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ll-back-side .ll-zone {
  flex: 1;
}

.ll-zone-nutrition {
  min-height: 140px;
}

.ll-zone-title {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--label-ink);
}

.ll-zone-preview {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #8c887e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ll-skel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.ll-skel i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #dedace;
}

.ll-skel i:nth-child(2n) {
  width: 78%;
}

.ll-skel i:nth-child(3n) {
  width: 62%;
}

.ll-skel.is-short i {
  width: 70%;
}

.ll-zone-armed {
  border-color: rgba(120, 188, 117, 0.6);
  border-style: dashed;
}

.ll-zone-hover {
  border-color: var(--green-dark) !important;
  border-style: solid !important;
  background: var(--green-soft) !important;
}

.ll-zone.is-wrong,
.ll-ntable-row.is-wrongrow {
  border-color: var(--red) !important;
  background: var(--red-soft) !important;
}

.ll-back.is-zoomed > .ll-back-grid,
.ll-back.is-zoomed > .ll-zone {
  display: none;
}

.ll-zoom {
  animation: ll-zoom-in 0.3s ease;
}

@keyframes ll-zoom-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

.ll-zoom-big {
  margin: 6px 0;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--label-ink);
}

/* ---------- etiket: voedingswaardetabel ---------- */

.ll-ntable {
  border: 2px solid var(--label-ink);
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
  color: var(--label-ink);
  font-size: 0.86rem;
}

.ll-ntable-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 4px solid var(--label-ink);
  font-weight: 900;
}

.ll-ntable-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 4px;
  margin: 0 -4px;
  border-top: 1px solid #cfcbbf;
  border-radius: 4px;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: background 0.15s ease;
}

.ll-ntable-head + .ll-ntable-row {
  border-top: none;
}

.ll-ntable-row.is-sub .ll-ntable-name {
  padding-left: 12px;
  font-weight: 500;
}

.ll-ntable-name {
  font-weight: 700;
}

.ll-ntable-val {
  font-weight: 700;
  white-space: nowrap;
}

.ll-ntable-row.is-focus {
  background: var(--focus);
  box-shadow: inset 0 0 0 2px var(--orange);
  font-size: 1.02em;
}

.ll-ntable-row.is-focus-soft {
  background: #fbf6e6;
}

.ll-ntable.is-compact {
  font-size: 0.8rem;
}

.ll-ntable.is-compact .ll-ntable-row {
  padding: 3px 4px;
}

.ll-rowzone {
  cursor: pointer;
}

/* ---------- etiket: ingrediënten ---------- */

.ll-ingredients {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--label-ink);
}

.ll-ingredients-label {
  font-weight: 900;
}

.ll-ingredients strong {
  font-weight: 900;
}

.ll-ing-token.is-focus {
  background: var(--focus);
  box-shadow: 0 0 0 2px var(--orange);
  border-radius: 4px;
}

/* ---------- verpakking (voorkant) ---------- */

.ll-pack {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
}

.ll-pack-img {
  width: 58%;
  max-width: 180px;
  flex: 1;
  min-height: 0;
  object-fit: contain;
}

.ll-pack-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.ll-pack-netto {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ll-sticker {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  padding: 10px;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--orange), 0 10px 18px rgba(255, 147, 15, 0.35);
  animation: ll-sticker-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes ll-sticker-in {
  from {
    transform: rotate(-30deg) scale(0.3);
    opacity: 0;
  }
}

/* ---------- TOP 3 ---------- */

.ll-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 6px 8px;
  border: 2px dashed #d6d2c5;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ll-slot.is-filled {
  border-style: solid;
}

.ll-slot-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
}

.ll-slot-hold {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.ll-slot.is-right {
  border-color: var(--green-dark);
  background: var(--green-soft);
}

.ll-slot.is-wrongslot {
  border-color: var(--red);
  background: var(--red-soft);
}

.ll-slot-answer {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green-dark);
  white-space: nowrap;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ll-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 62px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: #f1eee6;
}

.ll-tile {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  border: 2px solid var(--label-ink);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--label-ink);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  max-width: 100%;
}

.ll-check {
  margin-top: auto;
}

.ll-reveal {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.ll-reveal-title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.ll-reveal-list {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--label-ink);
}

.ll-reveal-list .is-top {
  font-weight: 900;
  background: var(--focus);
  border-radius: 4px;
  padding: 0 2px;
}

/* ---------- ALLERGENEN-SCAN ---------- */

.ll-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.ll-chip {
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--label-ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.ll-chip:active {
  transform: scale(0.97);
}

.ll-chip.is-picked {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.ll-chip.is-found {
  border-color: var(--green-dark);
  background: var(--green-soft);
}

.ll-chip.is-missed {
  border-color: var(--orange);
  border-style: dashed;
  background: #fff7ea;
}

.ll-chip.is-wrongchip {
  border-color: var(--red);
  background: var(--red-soft);
  text-decoration: line-through;
}

.ll-chip:disabled {
  cursor: default;
  color: var(--label-ink);
}

.ll-cloud.is-real .ll-chip strong {
  font-weight: 900;
}

/* ---------- CLAIM CHECK ---------- */

.ll-claim-scene {
  position: relative;
  height: clamp(240px, 50dvh, 420px);
  perspective: 1000px;
  flex-shrink: 0;
  transition: height 0.35s ease;
}

.ll-claim-scene.is-judging {
  height: clamp(210px, 36dvh, 300px);
}

.ll-claim-scene.is-judging .ll-ntable-row {
  padding-top: 2px;
  padding-bottom: 2px;
}



.ll-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.3, 1);
  cursor: pointer;
  touch-action: pan-y;
}

.ll-flip.is-flipped {
  transform: rotateY(180deg);
  cursor: default;
}

.ll-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ll-flip.is-flipped .ll-face-front {
  pointer-events: none;
}

.ll-face-back {
  transform: rotateY(180deg);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.ll-claim-backhead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ll-claim-chip {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.ll-claim-backname {
  font-size: 0.86rem;
  font-weight: 900;
}

.ll-claim-lower {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ll-meter {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px 8px;
}

.ll-meter-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
  font-size: 0.9rem;
}

.ll-meter-val {
  color: var(--label-ink);
  text-align: right;
}

.ll-meter-bar {
  position: relative;
  height: 16px;
  margin: 24px 0 6px;
  border-radius: 999px;
  background: #ece9e0;
}

.ll-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--label-ink);
  animation: ll-fill 0.6s ease;
}

@keyframes ll-fill {
  from {
    width: 0;
  }
}

.ll-meter-limit {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--orange);
}

.ll-meter-limit.is-hidden {
  background: repeating-linear-gradient(180deg, #b9b5aa 0 4px, transparent 4px 7px);
}

.ll-meter-limit-label {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 900;
  color: #c96f00;
}

.ll-meter-limit.is-hidden .ll-meter-limit-label {
  color: #8c887e;
}

.ll-meter-hint {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ll-stamps {
  display: flex;
  gap: 12px;
}

.ll-stamp {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 14px;
  border: 4px double currentColor;
  background: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.ll-stamp-mag {
  color: var(--green-dark);
}

.ll-stamp-magniet {
  color: var(--red);
  transform: rotate(3deg);
}

.ll-stamp.is-used {
  opacity: 0.35;
  pointer-events: none;
}

.ll-stamp-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 5;
  padding: 0.4rem 1rem;
  border: 6px double currentColor;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: ll-slam 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
  pointer-events: none;
}

.ll-stamp-mark.is-mag {
  color: var(--green-dark);
}

.ll-stamp-mark.is-magniet {
  color: var(--red);
}

@keyframes ll-slam {
  from {
    transform: translate(-50%, -50%) rotate(-12deg) scale(2.2);
    opacity: 0;
  }
}

/* ---------- feedback ---------- */

.ll-sheet {
  flex-shrink: 0;
  margin-top: 10px;
  padding: 12px 14px 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 2px solid var(--line);
  border-left-width: 8px;
  animation: ll-sheet-in 0.25s ease;
}

.ll-sheet.is-good {
  border-left-color: var(--green-dark);
}

.ll-sheet.is-bad {
  border-left-color: var(--red);
}

@keyframes ll-sheet-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}

.ll-sheet-verdict {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.ll-sheet.is-good .ll-sheet-verdict {
  color: var(--green-dark);
}

.ll-sheet.is-bad .ll-sheet-verdict {
  color: var(--red);
}

.ll-sheet-text {
  margin: 4px 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.ll-sheet-btn {
  padding: 0.85rem 1rem;
}

/* Tijdens de feedback zijn bedieningselementen onderin niet meer nodig. */
.ll-play:has(.ll-sheet:not(.hidden)) .ll-dock,
.ll-play:has(.ll-sheet:not(.hidden)) .ll-stamps,
.ll-play:has(.ll-sheet:not(.hidden)) .ll-meter-hint {
  display: none;
}

/* ---------- resultaat ---------- */

.ll-result {
  text-align: center;
  justify-content: space-between;
}

.ll-result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ll-result-char {
  width: min(44vw, 160px);
  height: auto;
  margin-bottom: 0.6rem;
}

.ll-result-score {
  margin: 0.2rem 0 0;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
}

.ll-result-line {
  margin: 0.6rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.ll-unlock {
  margin-top: 1.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  animation: ll-pop 0.4s ease;
}

.ll-unlock-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #c96f00;
}

.ll-unlock-name {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.ll-result-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- kleine telefoons ---------- */

@media (max-width: 359px) {
  .ll-screen {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ll-prompt-main {
    font-size: 1.08rem;
  }
  .ll-mode-card {
    column-gap: 0.7rem;
    padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  }
  .ll-mode-icon {
    width: 48px;
    height: 48px;
  }
  .ll-mode-name {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
  }
  .ll-sticker {
    width: 88px;
    height: 88px;
    font-size: 0.8rem;
  }
  .ll-tile {
    font-size: 0.84rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-height: 680px) {
  .ll-prompt {
    margin: 6px 0;
  }
  .ll-zone-nutrition {
    min-height: 118px;
  }
  .ll-slot {
    min-height: 50px;
  }
  .ll-sheet-text {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-screen *,
  .ll-screen *::before,
  .ll-screen *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- polish na eerste speeltest ---------- */

.ll-stage-speurtocht .ll-back {
  flex: 1;
  min-height: 0;
}

.ll-stage-speurtocht .ll-back-grid {
  flex: 1;
  min-height: 0;
}

.ll-stage-speurtocht .ll-back-side .ll-zone {
  min-height: 0;
}

.ll-stage-speurtocht .ll-zone-ingredients {
  min-height: 74px;
}

.ll-stage-speurtocht .ll-back.is-zoomed {
  flex: 0 1 auto;
}

.ll-labelcard {
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 2px solid var(--label-ink);
  border-radius: 10px;
  padding: 10px 10px 12px;
}

.ll-labelcard-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--label-ink);
}

.ll-cloud.is-dense {
  gap: 6px;
}

.ll-cloud.is-dense .ll-chip {
  min-height: 34px;
  padding: 0.32rem 0.6rem;
  font-size: 0.8rem;
}

.ll-stage-top3 .ll-top3-img,
.ll-stage-allergenen .ll-top3-img {
  width: 58px;
  height: 58px;
}

@media (max-height: 680px) {
  .ll-cloud.is-dense .ll-chip {
    min-height: 30px;
    padding: 0.26rem 0.5rem;
    font-size: 0.76rem;
  }
  .ll-stage-top3 .ll-top3-img,
  .ll-stage-allergenen .ll-top3-img {
    width: 44px;
    height: 44px;
  }
  .ll-meter {
    padding: 8px 10px 6px;
  }
  .ll-meter-bar {
    margin-top: 20px;
  }
}

/* ---------- reveal past naast de feedback, ook op korte schermen ---------- */

.ll-stage-top3.is-checked .ll-top3-head {
  display: none;
}

.ll-stage-top3.is-checked .ll-slots {
  gap: 6px;
}

.ll-stage-top3.is-checked .ll-slot {
  min-height: 46px;
  padding: 3px 8px;
}

.ll-stage-top3.is-checked .ll-slot-hold {
  min-height: 36px;
}

.ll-stage-top3.is-checked .ll-tile {
  min-height: 34px;
  padding: 0.3rem 0.7rem;
}

@media (max-height: 760px) {
  .ll-zoom .ll-ntable {
    font-size: 0.8rem;
  }
  .ll-zoom .ll-ntable-row {
    padding: 3px 4px;
  }
  .ll-sheet {
    padding: 10px 12px;
  }
  .ll-sheet-text {
    font-size: 0.84rem;
    margin: 3px 0 8px;
  }
  .ll-sheet-btn {
    padding: 0.75rem 1rem;
  }
  .ll-reveal {
    padding: 8px 10px;
  }
  .ll-reveal-list {
    font-size: 0.84rem;
    line-height: 1.4;
  }
}

.ll-stage-allergenen.is-checked .ll-top3-head {
  display: none;
}

.ll-stage-allergenen.is-checked .ll-chip {
  min-height: 32px;
  padding: 0.28rem 0.55rem;
  font-size: 0.8rem;
}

.ll-stage-speurtocht .ll-zone-nutrition {
  justify-content: flex-start;
}

.ll-skel-table {
  flex: 1;
  justify-content: space-evenly;
  gap: 4px;
}

.ll-skel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ll-skel-row i {
  width: 52% !important;
}

.ll-skel-row.is-sub i {
  width: 40% !important;
  margin-left: 10px;
}

.ll-skel-row b {
  display: block;
  width: 22%;
  height: 7px;
  border-radius: 4px;
  background: #d3cfc2;
}

.ll-zone-emark {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #cdc9bc;
}

/* ---------- V2.1: SPEURTOCHT, doel STAAT ER NIET OP ---------- */

.ll-dock.ll-dock-speur {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ll-dock-lens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ll-zone.ll-zone-none {
  width: auto;
  min-width: 132px;
  max-width: 190px;
  min-height: 58px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 2px dashed #cfcabd;
}

.ll-zone-none .ll-zone-title {
  line-height: 1.25;
}

.ll-zone-none-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eeebe3;
  color: #a19d92;
  font-weight: 900;
  font-size: 0.9rem;
}

.ll-zone.ll-zone-none.is-right {
  border-style: solid;
  border-color: var(--green-dark);
  background: var(--green-soft);
}

.ll-zoom-none {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--label-ink);
}

/* ---------- V2.1: ADDITIEVEN-SCAN ---------- */

.ll-cloud.is-real .ll-chip .ll-fn {
  font-weight: 900;
  color: var(--green-dark);
}

/* Heel lange lijsten (bv. mayonaise): alles past zonder scrollen in de etiketkaart. */
.ll-cloud.is-xdense {
  gap: 4px;
}

.ll-cloud.is-xdense .ll-chip {
  min-height: 28px;
  padding: 0.2rem 0.45rem;
  font-size: 0.74rem;
}

.ll-stage-allergenen:has(.ll-cloud.is-xdense) .ll-top3-img {
  width: 40px;
  height: 40px;
}

.ll-stage-allergenen:has(.ll-cloud.is-xdense) .ll-labelcard {
  padding: 8px 8px 10px;
}

.ll-stage-allergenen:has(.ll-cloud.is-xdense) .ll-labelcard-title {
  margin-bottom: 6px;
}

/* Reveal van lange lijsten op korte schermen: lijst + feedback passen samen. */
@media (max-height: 700px) {
  .ll-stage-allergenen.is-checked .ll-cloud {
    gap: 4px;
  }
  .ll-stage-allergenen.is-checked .ll-chip {
    min-height: 26px;
    padding: 0.18rem 0.42rem;
    font-size: 0.74rem;
  }
  .ll-stage-allergenen.is-checked .ll-cloud.is-xdense .ll-chip {
    min-height: 22px;
    padding: 0.12rem 0.36rem;
    font-size: 0.7rem;
  }
  .ll-stage-allergenen.is-checked .ll-labelcard {
    padding: 6px 8px 8px;
  }
  .ll-stage-allergenen.is-checked .ll-labelcard-title {
    display: none;
  }
  .ll-back.is-zoomed .ll-back-sub {
    display: none;
  }
  .ll-zoom-none {
    margin-bottom: 4px;
    font-size: 0.8rem;
  }
}

@media (max-height: 700px) {
  .ll-zoom-none + .ll-ntable .ll-ntable-row {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

/* Hub op korte schermen: kop compacter, zodat de stapel plus prototype-knoppen passen. */
@media (max-height: 700px) {
  .ll-hub {
    padding-top: calc(0.8rem + var(--safe-top));
  }
  .ll-hub-char {
    width: 72px;
    margin-bottom: 0.2rem;
  }
  .ll-hub-head {
    margin-bottom: 0.75rem;
  }
  .ll-dev {
    padding-top: 0.9rem;
  }
}

/* ---------- V2.2: leerstappen ---------- */

.ll-play.is-lesson .ll-play-mode {
  background: var(--green-soft);
  color: var(--green-dark);
}

.ll-stage-lesson {
  gap: 10px;
}

.ll-lesson-tabel .ll-ntable-name {
  flex: 1;
}

.ll-lslot {
  display: block;
  width: 88%;
  min-height: 1.35em;
  border: 2px dashed #cfcabd;
  border-radius: 8px;
  background: #faf9f5;
}

.ll-ntable-row.is-sub .ll-lslot {
  width: 78%;
}

.ll-lslot.is-filled {
  border: none;
  background: none;
}

.ll-lslot.ll-zone-armed {
  border-color: var(--green);
}

.ll-lslot.ll-zone-hover {
  border-style: solid;
  border-color: var(--green-dark);
  background: var(--green-soft);
}

.ll-ntable-row.is-learned {
  background: var(--green-soft);
}

.ll-lesson-tray {
  justify-content: center;
}

.ll-lesson-tabel .ll-ntable-row {
  padding-top: 3px;
  padding-bottom: 3px;
}

.ll-stage-lesson .ll-cloud .ll-chip.is-found {
  background: var(--green-soft);
  border-color: var(--green-dark);
}

/* ---------- V2.2: vergrootglas in FOODIKU-groen ---------- */

.ll-lens-handle {
  background: var(--green-dark);
}

.ll-lens-glass {
  border-color: #3f7a3c;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #eef8ed 50%, #cfe9cd 100%);
}

.ll-stage-lesson.is-checked .ll-top3-head {
  display: none;
}

@media (max-height: 700px) {
  .ll-stage-lesson .ll-top3-img {
    width: 44px;
    height: 44px;
  }
  .ll-stage-lesson.is-checked .ll-cloud {
    gap: 4px;
  }
  .ll-stage-lesson.is-checked .ll-chip {
    min-height: 28px;
    padding: 0.2rem 0.5rem;
    font-size: 0.76rem;
  }
  .ll-stage-lesson.is-checked .ll-labelcard-title {
    display: none;
  }
}

/* Korte voorbeeldlijst in een leerstap: kaart zo groot als de inhoud, niet uitgerekt. */
.ll-stage-lesson .ll-labelcard {
  flex: 0 0 auto;
}

/* ---------- FOODIKU NEXT: app-shell ---------- */

/* Terugknop (NEXT .btn-back) zwevend linksboven op intro en hub, zoals bij Macro Mania. */
.ll-intro,
.ll-hub {
  position: relative;
}

.ll-topbar {
  position: absolute;
  top: calc(14px + var(--safe-top));
  left: 12px;
  z-index: 2;
}

.ll-intro-char,
.ll-hub-char,
.ll-result-char {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* Standaard FOODIKU-XP-badge op het resultaatscherm. */
.ll-result .xp-result-badge {
  margin-top: 0.8rem;
}

/* In NEXT staat tijdens het spelen de live Pizza-badge bovenaan (generieke duw: safe-top + 42px,
   zie css/styles.css). Het Claim Check-pak tijdens het oordelen wordt daarom iets lager, zodat
   pak + meter + uitleg ook met iPhone-safe-area zonder scroll passen. */
body.pizza-live-active #screen-ll-play .ll-claim-scene.is-judging {
  height: clamp(200px, calc(36dvh - 10px), 290px);
}

/* Korte schermen (max. 700px hoog) mét Pizza-badge: de badge kost 28px extra bovenin. Die ruimte
   komt terug uit de speelscherm-chrome (bovenbalk, marges rond de vraag, feedbackkaart); het
   etiket, de tegels en de sleepdoelen zelf behouden hun maat. */
@media (max-height: 700px) {
  body.pizza-live-active #screen-ll-play {
    gap: 4px;
  }
  body.pizza-live-active #screen-ll-play .ll-play-top {
    min-height: 32px;
  }
  body.pizza-live-active #screen-ll-play .ll-icon-btn {
    width: 32px;
    height: 32px;
  }
  body.pizza-live-active #screen-ll-play .ll-prompt {
    margin: 2px 0 4px;
  }
  body.pizza-live-active #screen-ll-play .ll-prompt-main {
    font-size: 1.1rem;
  }
  body.pizza-live-active #screen-ll-play .ll-prompt-sub {
    margin-top: 2px;
  }
  body.pizza-live-active #screen-ll-play .ll-sheet {
    margin-top: 6px;
    padding: 8px 12px;
  }
  body.pizza-live-active #screen-ll-play .ll-sheet-text {
    margin: 2px 0 6px;
  }
  body.pizza-live-active #screen-ll-play .ll-sheet-btn {
    padding: 0.6rem 1rem;
  }
}

@media (max-height: 700px) {
  body.pizza-live-active #screen-ll-play .ll-top3-img {
    width: 36px;
    height: 36px;
  }
  body.pizza-live-active #screen-ll-play .ll-lesson-tabel .ll-ntable-row {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

@media (max-height: 700px) {
  body.pizza-live-active #screen-ll-play .ll-slots {
    gap: 6px;
  }
}
