/* ==========================================================================
   Screens: title, creator, hub, level select, bag, shop,
   results. Shared layout helpers live at the bottom.
   ========================================================================== */

/* ══════════════════════════════════════════════════════════ TITLE ═══════ */
/* Four depth planes fill the screen; the words and the hero sit on top. */
.lh-screen--title { background: var(--lh-sky-grad); }
.lh-screen--title .lh-scene {
  position: absolute; inset: 0;
  /* The front door gets a real blue overhead — the doctor world's mist is
     for its rooms, not for the sky over the town. */
  background: linear-gradient(180deg,#8FDCF7 0%,#BDEEFB 42%,#E9F8E4 70%,#F6EBD3 100%);
}

.title-hero {
  position: absolute; right: 16%; bottom: 112px; width: min(24vw, 300px);
  z-index: 2; pointer-events: none;
}
.title-hero__art {
  animation: lh-breathe 3.8s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 14px 18px rgba(46,42,68,.22));
}
.title-hero__art svg { width: 100%; height: auto; display: block; }

.title-stack {
  position: absolute; left: 5.6%; top: 13%; width: min(44vw, 520px);
  z-index: 3; display: flex; flex-direction: column; align-items: flex-start;
}

.title-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 20px 9px 10px; border-radius: var(--lh-r-pill);
  background: rgba(255,255,255,.96); box-shadow: 0 6px 0 rgba(46,42,68,.14);
  margin-bottom: 20px;
  font-family: var(--lh-font-display); font-weight: 800;
  font-size: var(--lh-size-meta); letter-spacing: 1.8px; color: #5F5A7E;
}
.title-kicker__mark {
  width: 38px; height: 38px; border-radius: 50%; background: var(--lh-rasp);
  display: grid; place-items: center;
}
.title-kicker__mark svg { width: 24px; }

.title-wordmark {
  font-family: var(--lh-font-display); font-weight: 800;
  line-height: .9; letter-spacing: var(--lh-track-tight);
  margin: 0; display: flex; flex-direction: column; align-items: flex-start;
}
.title-word { display: block; animation: lh-letter .5s cubic-bezier(.2,1.4,.4,1) both; }
.title-word--1 {
  font-size: clamp(34px, 5vw, var(--lh-size-title-1)); color: var(--lh-paper);
  text-shadow: 0 5px 0 var(--lh-doc), 0 10px 20px rgba(46,42,68,.3);
}
.title-word--2 {
  font-size: clamp(50px, 7.5vw, var(--lh-size-hero)); color: var(--lh-star);
  text-shadow: 0 6px 0 var(--lh-star-deep), 0 14px 26px rgba(46,42,68,.32);
  animation-delay: .12s;
}
.title-word--3 {
  font-size: clamp(31px, 4.5vw, var(--lh-size-title-2)); color: var(--lh-paper);
  text-shadow: 0 5px 0 var(--lh-rasp), 0 10px 20px rgba(46,42,68,.3);
  animation-delay: .24s;
}

.title-sub {
  margin: 22px 0 30px;
  font-family: var(--lh-font-display);
  font-size: clamp(19px, 2vw, 24px); font-weight: 800; color: #2E4A52;
  text-shadow: 0 2px 0 rgba(255,255,255,.5); max-width: 26ch;
}

.title-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.title-returning { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-returning span {
  font-family: var(--lh-font-display); font-weight: 800; font-size: 18px;
  color: #2E4A52; text-shadow: 0 2px 0 rgba(255,255,255,.5);
}

.title-foot {
  position: absolute; left: 0; bottom: 0; width: 100%; z-index: 3;
  padding: 12px; text-align: center;
  font-family: var(--lh-font-display); font-weight: 800;
  font-size: var(--lh-size-label); color: #EAF6E9;
}

/* On a narrow screen the hero steps behind the words rather than fighting
   them, and the wordmark takes the middle. */
@media (max-width: 820px) {
  .title-stack { left: 50%; transform: translateX(-50%); width: min(92vw, 520px); align-items: center; text-align: center; top: 9%; }
  .title-wordmark, .title-actions { align-items: center; }
  .title-hero { right: 50%; transform: translateX(50%); bottom: 90px; width: min(46vw, 220px); opacity: .5; }
}


/* ══════════════════════════════════════════════════════ CREATOR ═════════ */
.lh-screen--creator { background: var(--lh-sky-grad); }

.creator-grid {
  display: grid; gap: 16px; padding: 0 16px 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .creator-grid { grid-template-columns: minmax(260px, 380px) 1fr; padding: 0 26px 26px; }
}

/* All eight groups sit above the fold: two columns, wide ones spanning. */
.creator-options { display: grid; gap: 14px; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 720px) {
  .creator-options { grid-template-columns: 1fr 1fr; }
  .lh-optgroup--wide { grid-column: 1 / -1; }
}

/* The action bar is a pinned row, not an absolute footer — that clipped. */
.creator-bar {
  flex: none; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 26px calc(14px + var(--safe));
  background: rgba(255,255,255,.94);
  box-shadow: 0 -8px 0 rgba(46,42,68,.06), 0 -18px 30px rgba(46,42,68,.10);
}
.creator-bar .lh-btn { white-space: nowrap; flex: none; }
.creator-bar__go {
  background: linear-gradient(180deg,#5FD8B4,#3FC79E); color: #0C4A3A;
  padding: 20px 56px; box-shadow: 0 8px 0 #2E9E7C, var(--lh-air-2), var(--lh-gloss);
  text-shadow: none;
}
.creator-bar__go:active { box-shadow: 0 3px 0 #2E9E7C, var(--lh-air-1), var(--lh-gloss); }
.creator-bar__note {
  flex: 1; min-width: 140px;
  font-family: var(--lh-font-display); font-weight: 800;
  font-size: var(--lh-size-label); color: var(--lh-ink-mute);
}

/* The preview is pinned while the options scroll past it, so it has to be
   OPAQUE and it has to sit on top. It was neither: a 70%-white panel let
   every option card underneath show straight through it, which read as the
   screen failing to repaint rather than as a deliberate piece of glass. */
.hero-preview {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 14px;
  background: var(--lh-panel); border-radius: var(--lh-r-2xl);
  padding: 12px 18px; box-shadow: var(--lh-edge-2), var(--lh-air-2);
}
/* On a phone the preview is a compact strip. Full height, it ate two thirds
   of the screen and left barely one option group visible under it. */
.hero-preview__art { width: 92px; flex: none; aspect-ratio: 200/250; }
.hero-preview__name {
  font-family: var(--lh-font-display); font-weight: 800; font-size: var(--step-1);
  display: flex; align-items: center; gap: 8px; min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 620px) {
  .hero-preview__art { width: 128px; }
  .hero-preview__name { font-size: var(--step-2); }
}
/* Its own column at desktop width: nothing scrolls under it, so it can go
   back to being the big portrait the design asks for. */
@media (min-width: 860px) {
  .hero-preview {
    flex-direction: column; justify-content: center; gap: 10px;
    padding: 18px; border-radius: var(--lh-r-pill);
  }
  .hero-preview__art { width: min(28vw, 230px); }
}

.name-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.name-input {
  font-family: var(--lh-font-display); font-weight: 800; font-size: var(--step-1);
  padding: 10px 18px; border-radius: var(--lh-r-pill); border: 3px solid rgba(46,42,68,.14);
  background: var(--lh-panel); color: var(--lh-ink); text-align: center; width: min(260px, 70vw);
  min-height: 52px;
}
.name-input:focus { outline: none; border-color: var(--lh-sky); }
.name-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.name-chip {
  border: none; border-radius: var(--lh-r-pill); padding: 8px 18px;
  min-height: var(--lh-tap-min); min-width: var(--lh-tap-min);
  background: var(--lh-panel); box-shadow: 0 3px 0 rgba(46,42,68,.14);
  font-family: var(--lh-font-display); font-weight: 800; font-size: var(--lh-size-meta); cursor: pointer;
}
.name-chip:hover { transform: translateY(-2px); }


.difficulty-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.diff-card {
  border: none; border-radius: var(--lh-r-xl); padding: 16px; cursor: pointer;
  background: linear-gradient(180deg,var(--lh-panel),#f7fbff); text-align: left;
  box-shadow: 0 6px 0 rgba(46,42,68,.14), 0 12px 22px rgba(46,42,68,.12);
  display: flex; gap: 12px; align-items: flex-start;
  transition: transform .14s;
}
.diff-card:hover { transform: translateY(-3px); }
.diff-card h3 { font-size: var(--lh-size-body-lg); }
.diff-card__ages { font-size: 15px; font-weight: 800; margin: 2px 0 6px; }
.diff-card__ages--little { color: #B07A12; }
.diff-card__ages--explorer { color: var(--lh-doc); }
.diff-card[aria-pressed='true'] { box-shadow: 0 6px 0 var(--lh-doc-deep), 0 0 0 5px rgba(63,208,166,.4); background: linear-gradient(180deg,#f2fffa,#dcfbee); }
.diff-card__icon { font-size: 38px; }
.diff-card h3 { font-size: var(--step-1); }
.diff-card p { margin: 4px 0 0; font-size: 14px; color: var(--lh-ink-soft); line-height: 1.35; }

/* ══════════════════════════════════════════════════════ CAREER ══════════ */
/* ══════════════════════════════════════════════════════ HUB ═════════════ */
.lh-screen--hub { background: var(--lh-sky-grad); }
.hub-scroll { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Three world doors, with the growing-hospital panel floating beside them. */
.hub-top {
  width: min(96vw, 1180px); display: flex; gap: 18px; align-items: stretch;
  flex-wrap: wrap; padding: 0 8px;
}
.hub-doors { flex: 1 1 640px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.hub-door {
  position: relative; overflow: hidden; cursor: pointer; border: none; padding: 0;
  height: 230px; border-radius: var(--lh-r-xl);
  background: linear-gradient(180deg, var(--lh-accent), var(--lh-accent-deep));
  box-shadow: 0 10px 0 var(--lh-accent-ink), 0 20px 32px rgba(46,42,68,.24);
  transition: transform .16s cubic-bezier(.2,1.4,.4,1);
}
.hub-door:hover { transform: translateY(-4px); }
.hub-door:active { transform: translateY(5px); }
.hub-door:focus-visible { outline: 4px solid var(--lh-ink); outline-offset: 4px; }
.hub-door__room { position: absolute; inset: 0; }
.hub-door__head {
  position: absolute; left: 0; top: 0; width: 100%;
  padding: 16px 20px; display: flex; align-items: center; gap: 10px; text-align: left;
}
.hub-door__mark {
  width: 44px; height: 44px; flex: none; border-radius: var(--lh-r-xs);
  background: rgba(255,255,255,.22); display: grid; place-items: center;
}
.hub-door__title {
  font-family: var(--lh-font-display); font-weight: 800;
  font-size: 25px; color: var(--lh-paper);
}
.hub-door__sub { font-size: var(--lh-size-label); font-weight: 800; color: var(--lh-accent-tint); }
.hub-door__go {
  position: absolute; right: 16px; bottom: 16px;
  padding: 9px 18px; border-radius: var(--lh-r-pill);
  background: var(--lh-star); color: var(--lh-star-ink);
  font-family: var(--lh-font-display); font-weight: 800; font-size: var(--lh-size-meta);
  box-shadow: 0 5px 0 var(--lh-star-deep);
}

.hub-progress { flex: 0 1 322px; min-width: 260px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hub-progress h3 { font-size: var(--lh-size-body-lg); }


.building-wrap { width: min(96vw, 720px); padding: 4px 8px 10px; }

.floor {
  margin-bottom: 8px;
  display: grid; gap: 8px; margin-bottom: 8px;
}
.floor--1 { grid-template-columns: 1fr; }
.floor--2 { grid-template-columns: 1fr 1fr; }

.room {
  position: relative; overflow: hidden;
  border: none; border-radius: var(--lh-r-sm);
  min-height: 84px;
  cursor: pointer; padding: 0;
  box-shadow: 0 7px 0 rgba(46,42,68,.16), 0 14px 26px rgba(46,42,68,.16);
  transition: transform .16s cubic-bezier(.3,1.4,.5,1), box-shadow .16s;
  text-align: left;
}
.room:hover { transform: translateY(-4px); }
.room:active { transform: translateY(3px); }
.room:focus-visible { outline: 4px solid var(--lh-ink); outline-offset: 3px; }
.room__wall { position: absolute; inset: 0; background: linear-gradient(180deg, var(--wall), var(--tint)); }
.room__floorline { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: rgba(46,42,68,.1); }
.room__prop {
  position: absolute; transform: translate(-50%,-50%);
  display: grid; place-items: center;
  filter: drop-shadow(0 3px 3px rgba(46,42,68,.18));
}
.room__prop svg { width: 100%; height: 100%; display: block; }
/* A living prop is a whole character, so it hangs from its feet. */
.room__prop--living { transform: translate(-50%,-72%); }
.room__label {
  position: absolute; left: 8px; top: 8px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--lh-r-pill);
  background: rgba(255,255,255,.92);
  font-family: var(--lh-font-display); font-weight: 800; font-size: clamp(12px, 2vw, 16px);
  box-shadow: 0 2px 6px rgba(46,42,68,.14);
}
.room__go {
  position: absolute; right: 8px; bottom: 8px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.94); display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 3px 0 rgba(46,42,68,.16);
  animation: lh-bob-slow 2.6s ease-in-out infinite;
}
.room__count {
  position: absolute; right: 8px; top: 8px;
  padding: 4px 12px; border-radius: var(--lh-r-pill);
  background: rgba(255,255,255,.94); font-family: var(--lh-font-display); font-weight: 800; font-size: var(--lh-size-label);
  box-shadow: 0 2px 6px rgba(46,42,68,.14);
}

.room--locked { cursor: pointer; }
.room--locked { box-shadow: var(--lh-inset); }
.room--locked .room__wall { display: none; }
.room__lock {
  position: absolute; inset: 0; z-index: 2;
  background: var(--lh-locked-fill);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--lh-ink-mute); text-align: center; padding: 8px; padding: 8px;
}
.room__lock-icon { display: grid; place-items: center; animation: lh-bob-slow 3s ease-in-out infinite; }
.room__lock-name { font-family: var(--lh-font-display); font-weight: 800; font-size: 15px; color: var(--lh-ink-mute); }
.room__lock-how {
  font-size: var(--lh-size-label); font-weight: 800; line-height: 1.25;
  color: var(--lh-ink-faint); max-width: 26ch; text-wrap: balance;
}

.room--roof {
  min-height: 92px;
  background: transparent; box-shadow: none;
  border-radius: var(--lh-r-sm) var(--lh-r-sm) 0 0;
}
.room--roof .room__wall { background: linear-gradient(180deg, transparent, rgba(255,255,255,.4)); }

.roof-cap {
  height: 44px; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, var(--lh-accent), var(--lh-accent-deep));
  box-shadow: 0 6px 0 var(--lh-accent-ink);
  margin-bottom: 8px;
  display: grid; place-items: center; color: var(--lh-paper);
  font-family: var(--lh-font-display); font-weight: 800; font-size: var(--lh-size-meta);
  letter-spacing: var(--lh-track-caps);
}
.hub-ground {
  height: 26px; border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg,#8fc978,#6fae5c);
  box-shadow: 0 8px 0 rgba(46,42,68,.14);
}

.hub-hero {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.86); border-radius: var(--lh-r-pill);
  padding: 10px 18px 10px 10px; box-shadow: var(--lh-edge-1), var(--lh-air-1);
  width: min(96vw, 720px);
}
.hub-hero__art { width: 62px; aspect-ratio: 200/250; flex: none; }
.hub-hero__text { flex: 1; }
.hub-hero__text h3 { font-size: var(--step-1); }
.hub-hero__text p { margin: 2px 0 0; font-size: 14px; color: var(--lh-ink-soft); }

.hub-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: min(96vw,720px); padding: 6px 0 26px;
}

.construction {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: rgba(46,42,68,.55); border-radius: var(--lh-r-sm);
  font-size: clamp(30px, 7vw, 56px);
}
.construction span { animation: lh-wiggle .4s ease-in-out infinite; }

/* ══════════════════════════════════════════════════ LEVEL SELECT ════════ */
.lh-screen--levels { background: var(--lh-sky-grad); }


/* The world header bar: a band in the world's own hue, so the paper-white
   name and the drawn mark both have a ground to sit on. */
.levels-header {
  background: linear-gradient(180deg, var(--lh-accent-deep), var(--lh-accent));
  border-radius: 0 0 var(--lh-r-xl) var(--lh-r-xl);
  box-shadow: 0 8px 0 rgba(46,42,68,.10), var(--lh-air-1);
  margin-bottom: 18px;
}
.levels-header .lh-hud__title {
  font-size: clamp(24px, 3vw, var(--lh-size-h2));
  color: var(--lh-paper); text-shadow: 0 3px 0 rgba(31,94,104,.4);
}
.levels-world { display: flex; align-items: center; gap: 12px; }
.levels-world__mark {
  width: 52px; height: 52px; border-radius: var(--lh-r-xs);
  background: rgba(255,255,255,.24); display: grid; place-items: center;
}

.level-list { display: grid; gap: 20px; padding: 20px 16px calc(24px + var(--safe)); width: min(96vw, 760px); margin: 0 auto; }

/* ══════════════════════════════════════════════════════ BAG / SHOP ══════ */
.lh-screen--bag  { background: linear-gradient(180deg, var(--lh-canvas-top), var(--lh-canvas-bot)); }
.lh-screen--shop { background: linear-gradient(180deg, var(--lh-canvas-top), var(--lh-canvas-bot)); }

.lh-section-title { display: flex; align-items: center; gap: 12px; padding: 6px 18px 10px; width: min(96vw, 900px); margin: 0 auto; }
.lh-section-title__icon { font-size: 34px; }
.lh-section-title h2 { font-size: var(--step-2); }
.lh-section-title p { margin: 2px 0 0; font-size: 14px; color: var(--lh-ink-soft); }

.lh-card-grid {
  display: grid; gap: 12px; padding: 0 16px 20px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  width: min(96vw, 900px); margin: 0 auto;
}

.kit {
  position: relative; border-radius: var(--lh-r-xl); padding: 14px 12px;
  background: linear-gradient(180deg,var(--lh-panel),#f7fbff); text-align: center;
  box-shadow: 0 6px 0 rgba(46,42,68,.13), 0 12px 22px rgba(46,42,68,.12);
  border: none; cursor: pointer; transition: transform .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.kit:hover { transform: translateY(-4px); }
.kit__icon { font-size: 44px; filter: drop-shadow(0 4px 4px rgba(46,42,68,.18)); }
.kit__name { font-family: var(--lh-font-display); font-weight: 800; font-size: 15px; }
.kit__blurb { font-size: var(--lh-size-label); font-weight: 700; color: var(--lh-ink-soft); line-height: 1.35; }
.kit--locked { filter: grayscale(.9) opacity(.62); cursor: default; }
.kit--locked .kit__icon { filter: blur(2.5px) grayscale(1); }
.kit--locked:hover { transform: none; }
/* Corner badge, not a cover — the "???" name is half the fun of a collection. */
.kit__lock {
  position: absolute; top: -6px; right: -6px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
  background: var(--lh-panel); box-shadow: 0 3px 0 rgba(46,42,68,.18);
}
.kit--new::after {
  content: "NEW!"; position: absolute; top: -8px; right: -6px;
  background: var(--lh-rasp); color: var(--lh-panel); font-family: var(--lh-font-display); font-weight: 800;
  font-size: 11px; padding: 3px 10px; border-radius: 99px; box-shadow: 0 3px 0 var(--lh-rasp-deep);
  animation: lh-wiggle 2s ease-in-out infinite;
}

.shop-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; width: min(96vw,900px); margin: 0 auto; }
.shop-tab {
  flex: none; border: none; border-radius: var(--lh-r-pill); padding: 10px 20px;
  min-height: var(--lh-tap-min);
  background: rgba(255,255,255,.85); cursor: pointer;
  font-family: var(--lh-font-display); font-weight: 800; font-size: 15px; color: var(--lh-ink);
  box-shadow: 0 4px 0 rgba(46,42,68,.14);
  display: flex; align-items: center; gap: 6px;
}
.shop-tab[aria-selected='true'] { background: var(--lh-marigold); box-shadow: 0 4px 0 var(--lh-marigold-deep); color: var(--lh-marigold-ink); }

.buy { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.buy__price {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  padding: 5px 14px; border-radius: 99px; background: var(--lh-marigold); color: var(--lh-marigold-ink);
  font-family: var(--lh-font-display); font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 0 var(--lh-marigold-deep);
}
.buy--owned .buy__price { background: var(--lh-doc); box-shadow: 0 3px 0 var(--lh-doc-deep); color: #08533c; }
.buy--poor { filter: grayscale(.4); }
.buy--poor .buy__price { background: #dfe4ee; box-shadow: 0 3px 0 #b8c0d0; color: #6c7590; }

/* ══════════════════════════════════════════════════════ RESULTS ════════ */
.lh-screen--results {
  background: linear-gradient(180deg,#ffd98a,#ffb3c6 55%,#c9a6ff);
  align-items: center; justify-content: center;
}
.results-card {
  width: min(560px, 94vw); text-align: center;
  background: rgba(255,255,255,.96); border-radius: var(--lh-r-pill);
  box-shadow: var(--lh-edge-4), var(--lh-air-3); padding: 20px 22px calc(26px + var(--safe));
  max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  animation: lh-pop .5s cubic-bezier(.2,1.3,.4,1.1) both;
}
.results-card h2 { font-size: clamp(21px, 5vw, 36px); margin-bottom: 4px; text-wrap: balance; }
.results-card__sub { font-size: var(--step-1); color: var(--lh-ink-soft); margin: 0 0 14px; }
.results-patient { width: min(38vw, 142px); aspect-ratio: 200/250; margin: 0 auto; }
.results-rewards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.reward-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 18px; border-radius: var(--lh-r-xl); min-width: 96px;
  background: linear-gradient(180deg,var(--lh-panel),#fff4dc); box-shadow: 0 5px 0 rgba(46,42,68,.14);
  animation: lh-pop .5s cubic-bezier(.2,1.5,.4,1.1) both;
}
.reward-pill__icon { font-size: 28px; }
.reward-pill__value { font-family: var(--lh-font-display); font-weight: 800; font-size: var(--step-2); }
.reward-pill__label { font-size: 12px; color: var(--lh-ink-soft); }

.unlock-strip {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin: 10px 0 4px;
}
.unlock-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--lh-r-pill);
  background: linear-gradient(180deg,var(--lh-panel),#e8fff6);
  box-shadow: 0 4px 0 var(--lh-doc-deep);
  font-family: var(--lh-font-display); font-weight: 800; font-size: 15px;
  animation: lh-pop .5s cubic-bezier(.2,1.5,.4,1.1) both;
}
.unlock-chip__icon { font-size: 24px; }

.badge-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.badge-pill {
  padding: 8px 16px; border-radius: var(--lh-r-pill);
  background: linear-gradient(180deg,#fff6d9,#ffe6a0); box-shadow: 0 4px 0 var(--lh-marigold-deep);
  font-family: var(--lh-font-display); font-weight: 800; font-size: 14px; color: var(--lh-marigold-ink);
}

/* ══════════════════════════════════════════════════ TOOL UNLOCK MODAL ═══ */
.newtool { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.newtool__kicker {
  font-family: var(--lh-font-display); font-weight: 800; letter-spacing: 3px;
  color: var(--lh-rasp); font-size: var(--step-1);
  animation: lh-twinkle 1.4s ease-in-out infinite;
}
.newtool__icon {
  font-size: clamp(64px, 16vw, 120px);
  filter: drop-shadow(0 10px 14px rgba(46,42,68,.3));
  animation: lh-pop .6s cubic-bezier(.2,1.6,.4,1.1) both, lh-bob 2.6s .6s ease-in-out infinite;
}
.newtool__name { font-family: var(--lh-font-display); font-weight: 800; font-size: var(--step-3); }
.newtool__blurb { font-size: var(--step-1); color: var(--lh-ink-soft); max-width: 30ch; }

/* ══════════════════════════════════════════════════════ SHARED ═════════ */

.empty-note {
  text-align: center; color: var(--lh-ink-soft); font-size: var(--step-0);
  padding: 20px; font-family: var(--lh-font-display); font-weight: 700;
}

/* ── The Doctor Bag's little "what does it do?" loop ────────────────────── */
.tool-demo {
  position: relative;
  width: min(340px, 78vw); height: 132px;
  margin: 4px auto 6px;
  border-radius: var(--lh-r-xl);
  background: radial-gradient(70% 90% at 50% 100%,
              color-mix(in srgb, var(--tint) 26%, var(--lh-panel)), #f7fbff);
  overflow: hidden;
}
.tool-demo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: rgba(46,42,68,.07);
}
.tool-demo__patient, .tool-demo__pet {
  position: absolute; bottom: 16px; font-size: 46px;
  animation: lh-demo-patient 3.2s ease-in-out infinite;
}
.tool-demo__patient { left: 22%; }
.tool-demo__pet { right: 22%; animation-delay: .35s; }
.tool-demo__tool {
  position: absolute; left: 50%; top: 50%; font-size: 40px;
  filter: drop-shadow(0 4px 5px rgba(46,42,68,.28));
  animation: lh-demo-tool 3.2s cubic-bezier(.3,.9,.4,1.2) infinite;
}
.tool-demo__spark { position: absolute; font-size: 20px; opacity: 0; }
.tool-demo__spark--a { left: 32%; top: 26%; animation: lh-demo-spark 3.2s ease-in-out infinite 1.1s; }
.tool-demo__spark--b { right: 32%; top: 34%; animation: lh-demo-spark 3.2s ease-in-out infinite 1.35s; }

@keyframes lh-demo-tool {
  0%   { transform: translate(-50%,-50%) scale(.6) rotate(-18deg); opacity: 0 }
  18%  { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 1 }
  38%  { transform: translate(-118%,-24%) scale(1.05) rotate(-8deg); opacity: 1 }
  58%  { transform: translate(18%,-24%) scale(1.05) rotate(8deg); opacity: 1 }
  78%  { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 1 }
  100% { transform: translate(-50%,-50%) scale(.6) rotate(18deg); opacity: 0 }
}
@keyframes lh-demo-patient {
  0%, 30%, 100% { transform: translateY(0) }
  70%  { transform: translateY(-10px) }
  85%  { transform: translateY(0) scale(1.06) }
}
@keyframes lh-demo-spark {
  0%, 40% { opacity: 0; transform: scale(.4) }
  60%     { opacity: 1; transform: scale(1.2) }
  90%     { opacity: 0; transform: scale(.8) translateY(-14px) }
}
.newtool__demo { font-style: italic; color: var(--lh-ink-soft); font-size: var(--step-0); margin: 6px 0 0; }


/* Drawn marks inside the results chips and pills. */
.unlock-chip__icon { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: var(--lh-accent-tint, var(--lh-doc-mist)); }
.unlock-chip__icon svg { width: 100%; height: 100%; display: block; }
.unlock-chip__icon > svg[viewBox='0 0 40 40'] { width: 62%; height: auto; }
.reward-pill__icon { width: 30px; height: 30px; display: grid; place-items: center; }
.reward-pill__icon svg { width: 100%; height: 100%; }
.kit__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto; }
.kit__icon svg { width: 100%; height: 100%; display: block; }
.kit__lock { display: grid; place-items: center; }
.newtool__icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto; }
.newtool__icon svg { width: 100%; height: 100%; }
.tool-demo__tool { width: 54px; height: 54px; display: grid; place-items: center; }
.tool-demo__tool svg, .tool-demo__patient svg, .tool-demo__pet svg { width: 100%; height: 100%; display: block; }
.tool-demo__patient, .tool-demo__pet { width: 56px; height: 56px; display: grid; place-items: end center; overflow: hidden; }
.tool-demo__spark { display: grid; place-items: center; }
.buy__coin { display: inline-grid; place-items: center; vertical-align: middle; margin-right: 4px; }
.lh-section-title__icon { display: grid; place-items: center; }
.lh-section-title__icon svg { width: 30px; height: 30px; }
.lh-btn__mark { display: inline-grid; place-items: center; }
.lh-btn__mark svg, .lh-btn__arrow svg { width: 100%; height: 100%; display: block; }

.shop-tab__mark { width: 26px; height: 26px; display: inline-grid; place-items: center; }
.shop-tab__mark svg { width: 100%; height: 100%; display: block; }

/* The design's two floors, held everywhere: nothing a child reads is under
   14px, and nothing is under weight 700. */
.diff-card p, .lh-modal p, .hub-hero__text p, .lh-section-title p { font-weight: 700; }
