/* lab.css — lab chrome, matched to the base game's design language.
   Uses the game's own CSS variables (with fallbacks) so it tracks the theme and
   special-day recoloring. Kept below the modal overlay (z-index 50) so
   result/reveal dialogs cover it. */

/* Flask logo — an in-flow flex item next to the wordmark, so the logo + title
   center together as one group. .brand becomes a centered flex row (lab-only);
   the white glow keeps the flask crisp against the page. */
.app .brand:not(.result-brand) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.app .brand:not(.result-brand) .brand-text { flex: 0 0 auto; }
.lab-flask-badge {
  flex: 0 0 auto;
  width: 26px;
  height: 36px;
  transform: rotate(-11deg);
  pointer-events: none;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
          drop-shadow(0 1px 1.5px rgb(40 40 30 / 22%));
}
.lab-flask {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Top-right toolbar: (i) "what's new?" + return-to-classic. */
.lab-bar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 41; /* below the modal overlay (z-index 50) */
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* (i) and return reuse the game's .info-button (white circle, muted, hover accent). */
.lab-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.lab-return-icon { width: 13px; height: 13px; display: block; }

/* "what's new?" menu — opens downward from the toolbar, styled like the game's
   "how to play" popover. */
.lab-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 28px));
  padding: 11px 13px;
  text-align: left;
  background: #fff;
  color: var(--muted, #707567);
  border: 1px solid var(--line-2, #ddd6c4);
  border-radius: var(--radius-sm, 9px);
  box-shadow: var(--shadow, 0 1px 2px rgb(40 40 30 / 6%), 0 8px 30px rgb(40 40 30 / 8%));
  line-height: 1.4;
  font-size: 13px;
}
.lab-menu-title {
  margin: 0 0 7px;
  color: var(--ink, #23282b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lab-menu-list { margin: 0; padding-left: 17px; display: grid; gap: 5px; }
.lab-menu-list li { margin: 0; }
.lab-menu-note {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line, #ece6d6);
  color: var(--faint, #a8ac9d);
  font-size: 12px;
}
