/* BaroHiddo · Qudaar iyo Miro
   A tactile, sunlit learning trail built entirely from CSS shapes and gradients.
   Load after food-learning-path.css. */
:root {
  --food-ink: #254b43;
  --food-leaf: #43856d;
  --food-leaf-deep: #286c58;
  --food-mint: #e4f1e8;
  --food-sky: #dceef0;
  --food-coral: #e67b60;
  --food-sun: #f3c75e;
  --food-cream: #fff8e9;
  --food-paper: #fffdf6;
  --food-line: #d7e6dc;
  --food-shadow: 0 14px 38px rgba(46, 86, 69, .12);
}

.food-learning-path,
.food-learning-path-card,
.food-path-practice,
.food-path-review,
.food-path-quiz,
.food-path-summary,
.food-path-sentence,
.food-path-find {
  color: var(--food-ink);
  border: 1px solid var(--food-line);
  background-color: var(--food-paper);
  box-shadow: var(--food-shadow);
}

.food-learning-path {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 5vw, 48px);
  border-radius: 32px;
  background-image:
    radial-gradient(ellipse at 98% 0%, rgba(243, 199, 94, .19), transparent 34%),
    radial-gradient(ellipse at 0% 100%, rgba(147, 198, 166, .16), transparent 35%),
    linear-gradient(145deg, #fffdf6 0%, #f7fbf1 100%);
}

.food-learning-path > .back,
.food-path-market-back {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(40, 108, 88, .18);
  border-radius: 999px;
  background: rgba(255, 253, 246, .94);
  color: var(--food-leaf-deep);
  font-weight: 750;
  box-shadow: 0 4px 12px rgba(46, 86, 69, .09);
}

.food-learning-path > .eyebrow {
  color: var(--food-coral);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.food-learning-path > h1 {
  max-width: 18ch;
  color: var(--food-ink);
  font-size: clamp(1.8rem, 5.2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.food-learning-path > p {
  max-width: 54ch;
  color: #5f7d70;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.55;
}

.food-learning-path-card {
  position: relative;
  isolation: isolate;
  border-color: #e9dec3;
  background:
    radial-gradient(ellipse at 12% 12%, rgba(255, 255, 255, .75), transparent 48%),
    linear-gradient(125deg, #fff5d9 0%, #eff7e7 52%, #e5f2ec 100%);
  box-shadow: 0 16px 36px rgba(99, 101, 53, .12);
}

.food-path-entry-art,
.food-learning-path-card > .food-path-design-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 70% 19%, rgba(255, 255, 255, .8) 0 9%, transparent 9.5%),
    linear-gradient(150deg, #f7d982 0 35%, #e9b85c 35.5% 53%, #b7d8aa 53.5% 100%);
  box-shadow: inset 0 -10px 0 rgba(101, 124, 65, .08);
  font-size: 0;
}

.food-path-entry-art::before,
.food-learning-path-card > .food-path-design-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 17%;
  width: 36%;
  height: 60%;
  transform: translateX(-50%) rotate(-8deg);
  border: 2px solid rgba(108, 105, 46, .22);
  border-radius: 48% 48% 43% 43% / 18% 18% 76% 76%;
  background:
    radial-gradient(ellipse at 50% 24%, #f8d96c 0 7%, transparent 8%),
    linear-gradient(90deg, #f19d45 0 18%, #f7bd54 19% 74%, #e98b3d 75% 100%);
  box-shadow: 16px 11px 0 -7px rgba(244, 168, 69, .7), -17px 15px 0 -8px rgba(248, 189, 84, .8);
}

.food-path-entry-art::after,
.food-learning-path-card > .food-path-design-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 50%;
  width: 31%;
  height: 27%;
  transform: translateX(-48%);
  clip-path: polygon(49% 100%, 0 0, 43% 17%, 54% 0, 100% 9%);
  background: linear-gradient(100deg, #4b9367 0 40%, #83b96b 41% 100%);
  filter: drop-shadow(1px 3px 1px rgba(42, 92, 59, .18));
}

.food-stage-animals .food-path-entry-art::before,
.food-stage-animals .food-path-entry-art::after,
.food-stage-animals .food-learning-path-card > .food-path-design-art::before,
.food-stage-animals .food-learning-path-card > .food-path-design-art::after {
  content: none;
  display: none;
}

.food-stage-animals .food-path-entry-art,
.food-stage-animals .food-learning-path-card > .food-path-design-art {
  background: linear-gradient(145deg, #e7f2e9, #f7f1d9);
}

.food-path-entry-copy h2 {
  color: var(--food-ink);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  letter-spacing: -.035em;
}

.food-path-entry-copy p {
  max-width: 38ch;
  color: #5f796c;
  line-height: 1.5;
}

.food-path-play {
  position: relative;
  width: clamp(104px, 15vw, 140px);
  height: clamp(104px, 15vw, 140px);
  border: 4px solid rgba(255, 255, 255, .76);
  background: linear-gradient(145deg, #4d9b76, #286c58);
  box-shadow: 0 8px 0 #205d4b, 0 13px 20px rgba(36, 84, 63, .2);
}

.food-path-play span { font-size: 2rem; }
.food-path-play small { line-height: 1.15; }

.food-learning-path > .food-path-design-art {
  min-height: clamp(160px, 30vh, 260px);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, .9) 0 12%, transparent 12.5%),
    radial-gradient(ellipse at 50% 55%, #f0c866 0 22%, transparent 22.5%),
    linear-gradient(150deg, #dcefe4, #fff4d5 58%, #f4d58c);
}

.food-path-word-grid {
  max-width: 1040px;
  gap: clamp(12px, 2vw, 22px);
  margin: clamp(18px, 3vw, 30px) auto;
}

.food-path-word {
  min-height: 100%;
  padding: clamp(10px, 1.6vw, 16px);
  border: 1px solid #dce9dd;
  border-radius: 24px;
  background: linear-gradient(160deg, #fffefa, #f1f7ed);
  box-shadow: 0 8px 22px rgba(52, 88, 68, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.food-path-word > span,
.food-path-word-tap > span {
  height: clamp(150px, 24vw, 235px);
  border: 1px solid rgba(75, 129, 99, .1);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, .95) 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 20% 100%, rgba(160, 204, 164, .3), transparent 48%),
    linear-gradient(145deg, #e7f2e7, #fbf3d9);
}

.food-path-word img,
.food-path-word-tap img,
.food-path-choices img,
.food-path-find-grid img,
.food-path-review-image > img,
.food-path-quiz-prompt img {
  object-fit: contain;
  filter: drop-shadow(0 7px 6px rgba(55, 79, 51, .12));
}

.food-path-word strong,
.food-path-word-tap strong {
  color: var(--food-ink);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  letter-spacing: -.015em;
}

.food-path-word:hover,
.food-path-word:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(52, 88, 68, .13);
}

.learn-content-replay-button,
.food-path-audio {
  min-height: 50px;
  padding: 10px 18px;
  border: 2px solid #a9cfb6;
  border-radius: 999px;
  background: #f2f8ef;
  color: var(--food-leaf-deep);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(68, 130, 94, .12);
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.learn-content-replay-button {
  padding: 8px 13px;
  font-size: .92rem;
}

.food-path-audio {
  border-color: #e9bd53;
  background: linear-gradient(180deg, #ffedb7, #f8d877);
  color: #594919;
  box-shadow: 0 4px 0 #d9ad43, 0 7px 14px rgba(148, 112, 36, .12);
}

.food-path-audio:active,
.learn-content-replay-button:active,
.food-path-play:active,
.food-path-find-grid button:active {
  transform: translateY(2px);
}

.food-path-practice,
.food-path-review,
.food-path-quiz,
.food-path-summary,
.food-path-sentence {
  border-radius: 30px;
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(244, 212, 125, .18), transparent 38%),
    linear-gradient(145deg, #fffdf6, #f6faf1);
}

.food-path-prompt {
  color: var(--food-ink);
  letter-spacing: -.025em;
}

.food-path-review-image > img,
.food-path-quiz-prompt img {
  border: 1px solid #dce9dd;
  background:
    radial-gradient(ellipse at 75% 16%, white 0 7%, transparent 7.5%),
    linear-gradient(145deg, #e8f2e8, #fff2d3);
}

.food-path-review-image > strong {
  color: var(--food-ink);
  letter-spacing: -.025em;
}

.food-path-review-count {
  color: #6b887a;
  font-variant-numeric: tabular-nums;
}

.food-path-choices {
  gap: clamp(10px, 2.5vw, 24px);
}

.food-path-choices button,
.food-path-quiz .food-path-choices button {
  min-height: clamp(170px, 31vh, 300px);
  border: 2px solid #dce9dc;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, .92) 0 8%, transparent 8.5%),
    linear-gradient(150deg, #eff6e9, #fff3d9);
  box-shadow: 0 9px 22px rgba(52, 88, 68, .1);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.food-path-choices button:focus-visible {
  border-color: #75aa85;
  box-shadow: 0 12px 24px rgba(52, 88, 68, .15);
}

@media (hover: hover) {
  .food-path-choices button:hover {
    border-color: #75aa85;
    box-shadow: 0 12px 24px rgba(52, 88, 68, .15);
  }
}

.food-path-choices button:active { transform: none; }
.food-path-choices button strong { color: var(--food-ink); }
.food-path-choices button:disabled { opacity: .8; }
.food-path-practice > [role=status],
.food-path-quiz [role=status] { color: #567566; }

@media (hover: none) {
  .food-path-choices button:hover,
  .food-path-choices button:active,
  .food-path-choices button:focus:not(:focus-visible) {
    transform: none;
    filter: none;
    border-color: #dce9dc;
    box-shadow: 0 9px 22px rgba(52, 88, 68, .1);
  }
}

.food-path-quiz-target {
  color: var(--food-ink);
  font-weight: 800;
}

.food-path-find {
  background-color: #d8ead2;
  background-image:
    radial-gradient(ellipse at 12% 16%, rgba(255,255,255,.7) 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 89% 12%, rgba(255,255,255,.45) 0 11%, transparent 11.5%),
    linear-gradient(180deg, #b9d9c2 0%, #dce8b9 52%, #b6d19c 100%);
}

.food-path-find::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(ellipse at 8% 100%, #6d9f6a 0 14%, transparent 14.5%),
    radial-gradient(ellipse at 95% 100%, #7eaa6f 0 18%, transparent 18.5%),
    linear-gradient(180deg, transparent 0 72%, rgba(255, 248, 217, .42) 72% 100%);
}

.food-path-find > * { position: relative; z-index: 1; }
.food-path-find .food-path-review-count { color: #fffdf1; }
.food-path-find .food-path-board-note,
.food-path-find [data-food-find-status] { color: #fffdf1; }

.food-path-find-grid {
  gap: clamp(10px, 2vw, 20px);
}

.food-path-find-grid button {
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 76% 12%, #fff 0 7%, transparent 7.5%),
    linear-gradient(150deg, #fffdf2, #ecf5e6);
  box-shadow: 0 10px 24px rgba(39, 79, 52, .2);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.food-path-find-grid button:hover,
.food-path-find-grid button:focus-visible {
  border-color: #f2c85c;
  transform: translateY(-3px);
}

.food-path-find-grid button.correct {
  border-color: #4c9c70;
  background: #e1f2df;
}

.food-path-find-grid button.incorrect {
  border-color: #e98c6d;
  background: #fff0df;
}

.food-path-sentence {
  max-width: 760px;
  border-radius: 30px;
}

.food-path-sentence .food-path-review-image img {
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 76% 12%, #fff 0 7%, transparent 7.5%),
    linear-gradient(150deg, #e9f3e6, #fff1d0);
}

.food-path-sentence h2 {
  color: var(--food-ink);
  line-height: 1.18;
}

.food-path-sentence p[lang="da"],
.food-path-sentence p[lang="en"] {
  color: #71887c;
}

.food-path-sentence audio {
  min-height: 48px;
  accent-color: var(--food-leaf);
}

.food-path-market {
  background-color: #84ae7b;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(255,255,255,.28) 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 88% 15%, rgba(255,246,205,.34) 0 11%, transparent 11.5%),
    linear-gradient(180deg, #93bd93 0 35%, #c6d18d 35% 58%, #719e69 100%);
}

.food-path-market::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 33%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 110%, #4f865b 0 22%, transparent 22.5%),
    radial-gradient(ellipse at 94% 120%, #568a58 0 27%, transparent 27.5%),
    linear-gradient(180deg, transparent, rgba(54, 102, 59, .42));
}

.food-path-market .market-banner h2 {
  color: #fffdf0;
  text-shadow: 0 2px 5px rgba(34, 71, 47, .52);
}

.food-path-market .food-shelf {
  align-content: center;
}

.food-path-market .food-shelf > button {
  border: 0;
  border-radius: 22px;
  background: transparent;
  filter: drop-shadow(0 10px 12px rgba(38, 61, 37, .18));
  transition: transform .16s ease;
}

.food-path-market .food-shelf > button:hover,
.food-path-market .food-shelf > button:focus-visible {
  transform: translateY(-5px);
}

.food-path-market .market-choice-art img {
  filter: drop-shadow(0 8px 8px rgba(49, 57, 32, .2));
}

.food-path-market .market-basket {
  border: 4px solid #996543;
  border-radius: 28px 28px 22px 22px;
  background:
    repeating-linear-gradient(0deg, #d4a16a 0 8px, #bb8150 8px 12px),
    repeating-linear-gradient(90deg, transparent 0 14px, #96613e 14px 18px);
  box-shadow: inset 0 7px 12px rgba(255, 232, 177, .42), 0 9px 20px rgba(44, 67, 40, .24);
}

.food-path-market .market-basket-item {
  border: 1px solid rgba(110, 68, 40, .18);
  background: transparent;
}

.food-path-summary .food-path-reward-art {
  color: transparent;
  font-size: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 20%, #fff5c9 20.5% 22%, transparent 22.5%),
    radial-gradient(ellipse at 50% 49%, #f3c75e 0 36%, transparent 36.5%),
    radial-gradient(ellipse at 50% 50%, #ffe8a0, #f7d66d 62%, #efbf4f);
}

.food-path-reward {
  border: 1px solid #f0dfaa;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(255, 230, 155, .65), transparent 36%),
    linear-gradient(160deg, #fffdf1, #f1f8e8 85%);
  box-shadow: 0 18px 44px rgba(96, 113, 52, .13);
}

.food-path-reward-art {
  position: relative;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  animation: food-orchard-pop .42s cubic-bezier(.2,.8,.2,1) both;
}

.food-path-reward-art::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 48% 52% 45% 55%;
  background:
    radial-gradient(ellipse at 39% 40%, #f4ae54 0 22%, transparent 23%),
    radial-gradient(ellipse at 64% 58%, #d96f53 0 25%, transparent 26%),
    radial-gradient(ellipse at 52% 25%, #6c9c65 0 10%, transparent 11%),
    radial-gradient(ellipse at 48% 70%, #f4d568 0 24%, transparent 25%);
  filter: drop-shadow(0 8px 6px rgba(103, 97, 44, .18));
}

.food-path-reward h2 { color: var(--food-ink); }
.food-path-score { color: #638372; }

.food-path-reward-action {
  min-width: 150px;
  min-height: 112px;
  border: 2px solid #d9e8d8;
  border-radius: 23px;
  background: #fffdf5;
  color: var(--food-ink);
  box-shadow: 0 5px 0 rgba(55, 105, 73, .08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.food-path-reward-action.primary {
  border-color: var(--food-leaf);
  background: linear-gradient(145deg, #4b9973, #286c58);
  box-shadow: 0 5px 0 #205d4b;
}

.food-path-reward-action span { color: var(--food-coral); }
.food-path-reward-action.primary span { color: #ffdf83; }
.food-path-reward-action:hover { transform: translateY(-3px); }

.food-path-image-placeholder {
  color: #628373;
  background:
    radial-gradient(ellipse at 76% 15%, #fff 0 8%, transparent 8.5%),
    linear-gradient(145deg, #e6f1e6, #fff1d0);
}

.food-path-design-audio {
  accent-color: var(--food-leaf);
}

.food-path-play:focus-visible,
.food-path-audio:focus-visible,
.learn-content-replay-button:focus-visible,
.food-path-choices button:focus-visible,
.food-path-find-grid button:focus-visible,
.food-path-reward-action:focus-visible,
.food-learning-path > .back:focus-visible,
.food-path-market-back:focus-visible {
  outline: 4px solid #e8ae40;
  outline-offset: 4px;
}

@keyframes food-orchard-pop {
  from { transform: scale(.82); opacity: .55; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 700px) {
  .food-learning-path,
  .food-path-practice,
  .food-path-review,
  .food-path-quiz,
  .food-path-summary,
  .food-path-sentence {
    border-radius: 24px;
  }

  .food-learning-path-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    padding: 14px;
  }

  .food-path-entry-art,
  .food-learning-path-card > .food-path-design-art {
    grid-row: 1 / 3;
    grid-column: 1;
    min-height: 152px;
  }

  .food-path-entry-copy {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .food-path-play {
    grid-row: 1 / 3;
    grid-column: 2;
    width: 92px;
    height: 92px;
  }

  .food-path-word-grid { gap: 10px; }
  .food-path-word { border-radius: 19px; }
  .food-path-word > span,
  .food-path-word-tap > span { height: clamp(138px, 41vw, 190px); }

  .food-path-choices button,
  .food-path-quiz .food-path-choices button {
    min-height: 0;
    aspect-ratio: .88;
    padding: 5px;
    border-radius: 17px;
  }

  .food-path-quiz .food-path-choices button strong { font-size: .83rem; }

  .food-path-find {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .food-path-find-grid { gap: 9px; }
  .food-path-find-grid button { border-radius: 16px; }
  .food-path-market {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .food-path-market .market-basket { border-width: 3px; border-radius: 21px 21px 16px 16px; }
  .food-path-review-controls { gap: 8px; }
  .food-path-review-controls .btn { min-height: 44px; }
}

@media (max-width: 390px) {
  .food-learning-path { padding: 16px 12px; }
  .food-path-word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-path-choices { gap: 6px; }
  .food-path-choices button,
  .food-path-quiz .food-path-choices button { aspect-ratio: .78; }
  .food-path-quiz { padding-right: 8px; padding-left: 8px; }
  .food-path-quiz .food-path-audio { min-height: 44px; }
  .food-path-reward-actions { gap: 8px; }
}

@media (max-height: 620px) and (max-width: 700px) {
  .food-path-market { grid-template-rows: 40px minmax(0, 1fr) 100px; }
  .food-path-market .market-basket { min-height: 88px; }
  .food-path-find { padding-top: max(52px, calc(env(safe-area-inset-top) + 44px)); }
  .food-path-find-grid { width: min(100%, 760px); }
}

@media (prefers-reduced-motion: reduce) {
  .food-path-reward-art,
  .food-path-word,
  .food-path-audio,
  .learn-content-replay-button,
  .food-path-play,
  .food-path-choices button,
  .food-path-find-grid button,
  .food-path-reward-action,
  .food-path-market .food-shelf > button {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Four large daily words, consistently arranged as a 2x2 learning grid. */
#main .food-path-word-grid {
  width: min(100%, 960px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 24px);
}
#main .food-path-word {
  min-width: 0;
  padding: clamp(8px, 2vw, 18px);
}
#main .food-path-word-tap > span {
  height: clamp(132px, 27vh, 260px);
}
#main .food-path-word-tap img {
  object-fit: contain;
}
.food-path-sentence-picture {
  display: grid;
  width: min(100%, 420px);
  min-height: 160px;
  margin: 12px auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
}
.food-path-sentence-picture:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.food-path-sentence-picture img {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
}
.food-path-sentence-audio-missing {
  color: var(--muted);
}

/* The CMS-selected market scene supplies the artwork; keep only a compact,
   readable basket summary and let transparent Admin cutouts sit on the scene. */
#main .playground .food-path-market {
  grid-template-rows: 48px minmax(0, 1fr) clamp(72px, 12vh, 108px);
}
#main .playground .food-path-market .food-shelf > button {
  background: transparent;
  box-shadow: none;
}
#main .playground .food-path-market .market-choice-art,
#main .playground .food-path-market .market-choice-art img {
  background: transparent;
}
#main .playground .food-path-market .market-basket {
  min-height: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 253, 246, .48);
  box-shadow: none;
  backdrop-filter: blur(3px);
}
#main .playground .food-path-market .market-basket-items {
  max-height: 72px;
}
.food-path-market .market-basket-item {
  background: rgba(255, 253, 246, .78);
}
.food-path-market .market-basket-art img {
  background: transparent;
}

@media (max-width: 560px) {
  #main .playground .food-path-market {
    grid-template-rows: 38px minmax(0, 1fr) clamp(68px, 11vh, 88px);
  }
  #main .food-path-word-tap > span {
    height: clamp(122px, 21vh, 190px);
  }
  .food-path-sentence-picture {
    min-height: 130px;
  }
}

/* CMS illustrations stay behind controls; transparent product cutouts remain
   independent foreground layers. */
.food-path-design-art[style*="food-stage-background"] {
  background-image: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.06)), var(--food-stage-background);
  background-position: center;
  background-size: cover;
}
.food-learning-path-card[style*="food-stage-background"] {
  background-image: linear-gradient(135deg, rgba(255,250,240,.84), rgba(239,248,245,.8)), var(--food-stage-background);
  background-position: center;
  background-size: cover;
}
.food-path-market > .food-path-design-art[style*="food-stage-background"] {
  background-image: linear-gradient(180deg, rgba(23,75,55,.12), rgba(23,62,48,.48)), var(--food-stage-background);
  background-position: center;
  background-size: cover;
  opacity: 1;
}
.food-path-market-complete-basket {
  width: min(100%, 920px);
  margin: 18px auto 24px;
  padding: clamp(18px, 4vw, 32px);
  border: 0;
  border-radius: 18px;
  background: rgba(255,253,246,.48);
  box-shadow: none;
  backdrop-filter: blur(3px);
}
.food-path-market-complete-basket .market-basket-heading {
  justify-content: center;
  gap: 12px;
  color: #382817;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}
.food-path-market-complete-basket .market-basket-heading > span { font-size: 2.4rem; }
.food-path-market-complete-basket .market-basket-items {
  display: grid;
  max-height: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}
.food-path-market-complete-basket .market-basket-item {
  min-height: 98px;
  padding: 10px;
  border-radius: 18px;
  border-color: transparent;
  background: transparent;
  color: #382817;
}
.food-path-market-complete-basket .market-basket-art {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}
@media (max-width: 560px) {
  .food-path-market-complete-basket { padding: 14px; }
  .food-path-market-complete-basket .market-basket-item { min-height: 78px; }
}

/* Admin-selected Qudaar backgrounds stay in the child content area, not behind the app shell. */
.food-stage-area {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100svh - 190px);
  flex-direction: column;
  margin: 0 auto 14px;
  padding: clamp(8px, 2vw, 20px);
  background-color: #e7f2e7;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.14)),
    var(--food-stage-background, linear-gradient(145deg, #dcefe4, #fff4d5 58%, #f4d58c));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.food-stage-area > * { position: relative; z-index: 1; }
.food-stage-entry { min-height: max(320px, calc(100svh - 190px)); justify-content: center; }
.food-stage-area .food-learning-path {
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.food-stage-area .food-learning-path > .food-path-design-art {
  min-height: clamp(140px, 28vh, 250px);
  margin: 0 auto 12px;
  background: rgba(255,253,246,.22);
}
.food-stage-area .food-path-design-art > img,
.food-stage-area .food-path-design-art > video { max-height: min(34vh, 300px); }
.food-stage-area .food-path-entry-art,
.food-stage-entry .food-learning-path-card > .food-path-design-art { min-height: clamp(190px, 32vh, 310px); }
.food-stage-entry .food-learning-path-card {
  width: min(100%, 1120px);
  margin: auto;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,253,246,.16);
  box-shadow: 0 12px 36px rgba(34,62,46,.12);
}
.food-stage-area .food-path-practice,
.food-stage-area .food-path-review,
.food-stage-area .food-path-quiz,
.food-stage-area .food-path-summary,
.food-stage-area .food-path-sentence {
  width: min(100%, 1000px);
  max-width: 1000px;
  margin: auto;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,253,246,.62);
  box-shadow: 0 10px 30px rgba(34,62,46,.12);
  backdrop-filter: blur(7px) saturate(1.08);
}
.food-stage-area .food-learning-path:has(+ .food-path-find) {
  position: relative;
  inset: auto;
  z-index: 2;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}
.food-stage-area .food-learning-path:has(+ .food-path-find) > :not(.back) { display: none; }
.food-stage-area .food-learning-path:has(+ .food-path-find) > .back {
  min-height: 42px;
  margin: 0;
  pointer-events: auto;
}
.food-stage-area .food-path-find {
  position: relative;
  inset: auto;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: auto;
  min-height: calc(100svh - 250px);
  max-height: none;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
  margin: 0 auto;
  padding: 12px clamp(8px, 2vw, 20px) max(12px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.food-stage-area .food-path-find::before { display: none; }
.food-stage-area .food-path-find > * { position: relative; z-index: 1; }
.food-stage-area .food-path-find .food-path-review-count,
.food-stage-area .food-path-find .food-path-board-note,
.food-stage-area .food-path-find [data-food-find-status] {
  color: var(--food-ink);
  text-shadow: 0 1px 3px rgba(255,255,255,.9);
}
#main .playground:has(.food-path-market) {
  position: relative;
  width: 100%;
  height: calc(100svh - 250px);
  min-height: 450px;
  max-height: 900px;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#main .playground .food-path-market {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
}
@media (max-width: 560px) {
  .food-stage-area { min-height: calc(100svh - 175px); padding: 8px; }
  .food-stage-entry { min-height: max(300px, calc(100svh - 175px)); }
  .food-stage-area .food-path-find { min-height: calc(100svh - 245px); padding-top: 8px; }
  #main .playground:has(.food-path-market) { height: calc(100svh - 230px); min-height: 420px; }
}
