.active-disclosure {
  color: var(--room-paper);
  background: var(--room-ground);
  border-block: 1px solid var(--room-line);
}
.active-disclosure details { padding-block: 0; border: 0; }
.active-disclosure summary {
  min-height: 64px;
  padding-block: 14px;
  font: 500 1.1rem/1.35 var(--body, sans-serif);
  color: var(--room-paper);
}
.active-disclosure summary::after { color: var(--room-accent); }
.active-list { margin: 0; }
.active-list > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  gap: clamp(16px, 3vw, 42px);
  padding: 18px 0;
  border-top: 1px solid var(--room-line, var(--line));
}
.active-list dt { font: 500 clamp(1.25rem, 2vw, 1.7rem)/1.2 var(--display); }
.active-list dd, .active-result {
  margin: 0;
  color: var(--room-muted, var(--muted));
  font-size: 1rem;
  line-height: 1.6;
  max-width: 62ch;
}
.active-disclosure .active-result { margin: 8px 0 26px; }
@media (prefers-reduced-motion: no-preference) {
  .active-disclosure details[open] > :is(.active-list, .active-result) {
    animation: reveal-ingredients 220ms ease-out;
  }
  @keyframes reveal-ingredients {
    from { opacity: .7; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
  }
}
.active-sheet {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr);
  gap: clamp(32px, 6vw, 90px);
  padding-block: clamp(44px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}
.active-sheet .active-list dt { color: var(--ink); }
.creator-profile {
  display: grid;
  grid-template-columns: minmax(170px, 310px) minmax(0, 49ch);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
}
.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 48% 48% 4px 4px;
}
.profile-copy h2 {
  font: 400 clamp(3.2rem, 6.4vw, 6.9rem)/1 var(--display);
  letter-spacing: -.05em;
  margin: .15em 0;
}
.profile-copy h2 em { color: var(--gold); }
.profile-copy p { margin: 0 0 .85em; }
.profile-copy p:last-child { margin-bottom: 0; }
.profile-role { color: var(--gold); font-weight: 600; }
@media (max-width: 700px) {
  .active-sheet, .creator-profile { grid-template-columns: 1fr; gap: 24px; }
  .active-list > div { grid-template-columns: 1fr; gap: 6px; padding-block: 16px; }
  .profile-photo { width: min(65%, 240px); }
}

/* Miniaturas das três cenas da abertura. */
[data-theme=dia] .oracle-bar .rail-tools svg {
  color: #413622;
  stroke: #413622;
}
.morph-controls {
  gap: 5px;
  padding: 5px;
  border: 1px solid #d2bd8c70;
  border-radius: 12px;
  background: #171611ef;
  color: #fff3d4;
  box-shadow: 0 6px 24px #08070338;
}
.morph-controls #scene-name { display: none; }
.morph-stops { gap: 3px; }
.morph-stops button {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: start;
  isolation: isolate;
  overflow: hidden;
  width: 82px;
  height: 45px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #181711;
  color: #fff8df;
}
.morph-stops button img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}
.morph-stops button:first-child img { object-position: right; }
.morph-stops button::after { display: none; }
.morph-stops button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,#090904eb,transparent 95%);
  pointer-events: none;
}
.morph-stops button span { font-size: .79rem; font-weight: 600; line-height: 1.15; }
.morph-stops button[aria-pressed=true] { border-color: #ffdfa0; box-shadow: inset 0 0 0 1px #ffdfa0; }
.morph-controls .morph-play { min-width: 40px; }
.morph-controls button:focus-visible { outline: 2px solid #fff3cf; outline-offset: 1px; }
.landing .morph-stage .view-3d {
  color: #fff3d4;
  background: #191812eb;
  border: 1px solid #d2bd8c70;
  border-radius: 24px;
  min-height: 42px;
  padding: 6px 14px;
}
.landing .morph-stage .hero-foot { align-items: end; }

/* A amostra da flor ou da semente acompanha a seleção de fórmula. */
.active-disclosure {
  background: linear-gradient(100deg,var(--room-surface),var(--room-ground) 78%);
}
.active-disclosure summary { gap: 14px; justify-content: flex-start; min-height: 78px; }
.active-disclosure summary::before {
  content: "";
  width: 58px;
  height: 44px;
  flex: none;
  background: url(assets/materia-cbd.webp) 77% center / cover;
  border-radius: 4px 14px 4px 14px;
}
[data-formula=ozonio] .active-disclosure summary::before {
  background-image: url(assets/girassol-semente.webp);
}
.active-disclosure summary::after { margin-left: auto; }
.room-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px #0002, inset 0 1px 0 #fff6;
}
.room-buy svg { width: 1.1em; height: 1.1em; }
.room-checkout strong { font: 600 1.36rem/1.3 var(--body,sans-serif); }
.room-checkout {
  width: fit-content;
  max-width: 100%;
  padding-top: 16px;
  border-top: 1px solid #f5e3ad52;
}
.room-species { display: flex; align-items: center; gap: 12px; }
.room-species::before { content: ""; height: 1px; width: 32px; background: currentColor; }
.room-point button { backdrop-filter: blur(7px); }
@media (min-width: 901px) {
  .landing .morph-stage .hero-copy h1 {
    font-size: clamp(5.8rem,8vw,9rem);
    margin-block: 20px;
    line-height: .89;
  }
  .landing .morph-stage .hero-copy h1 em { white-space: nowrap; }
  .morph-copy p { text-wrap: pretty; }
  .room-point::after {
    content: ""; position: absolute; top: 50%; left: 100%;
    width: clamp(22px,3vw,54px); height: 1px;
    background: linear-gradient(90deg,#f5d89490,#f5d89430);
    transform: rotate(17deg); transform-origin: left;
    pointer-events: none;
  }
  .room-point + .room-point::after { left: auto; right: 100%; transform-origin: right; }
}
.ingredient-print {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 28px 0 0;
  border-radius: 3px;
  background: #192016;
}
.materia .ingredient-print { margin-top: 28px; }
.ingredient-print img { width: 100%; aspect-ratio: 2.45; height: auto; display: block; object-fit: cover; object-position: 72% 45%; }
.ingredient-print::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg,#0b0c08de,transparent 55%);
}
.materia .ingredient-print figcaption {
  position: absolute; left: 18px; bottom: 12px; z-index: 1; margin: 0;
  color: #f9e9c2; font: italic 1.3rem/1.1 var(--display);
}
.bag-product { display: flex; align-items: center; gap: 12px; }
.bag-product img {
  display: block; width: 50px; height: 58px; object-fit: cover;
  object-position: 79% center; border-radius: 5px; flex: none;
}

/* Retrato de Pitya com a luz e a ramagem do boticário. */
.creator-profile {
  grid-template-columns: minmax(0,365px) minmax(0,48ch);
  gap: clamp(42px,8vw,130px);
  padding-block: clamp(60px,8vw,118px);
}
.profile-plate {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  background: radial-gradient(ellipse closest-side,#c49b4e45,transparent 97%);
}
.profile-plate .profile-photo {
  position: relative; z-index: 1; display: block;
  width: 86%; max-width: 310px;
  border-radius: 44% 44% 4px 4px;
  box-shadow: 0 18px 34px -24px #070603ad;
}
.profile-plate::before {
  content: ""; position: absolute; z-index: -1;
  inset: 6% 3% 3%;
  border: 1px solid color-mix(in srgb,var(--gold) 48%,transparent);
  border-radius: 50%; transform: rotate(17deg);
}
.profile-plate::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  width: 47%; aspect-ratio: 1; bottom: -7%; left: -6%;
  background: url(assets/showroom-flor.webp) center / contain no-repeat;
  filter: drop-shadow(0 6px 5px #0003);
  transform: rotate(-23deg);
}
.profile-copy .profile-role {
  display: inline-block;
  margin-block: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .morph-controls { padding: 3px; gap: 0; }
  .morph-controls .morph-play { min-width: 33px; height: 44px; }
  .morph-stops button { width: clamp(39px,11vw,57px); min-width: 0; height: 44px; padding: 4px; }
  .morph-stops button span { font-size: .71rem; }
  .landing .morph-stage .view-3d { padding-inline: 9px; gap: 5px; font-size: .77rem; }
  .landing .morph-stage .hero-foot { align-items: center; gap: 4px; }
  .landing .morph-stage .hero-copy h1,.landing .morph-stage .hero-copy h2 { font-size: clamp(3rem,12.4vw,5.5rem); }
  .active-disclosure summary { min-height: 66px; gap: 10px; font-size: 1rem; }
  .active-disclosure summary::before { width: 42px; height: 36px; }
  .materia .ingredient-print { margin-top: 18px; }
  .ingredient-print img { aspect-ratio: 2.8; }
  .creator-profile { grid-template-columns: 1fr; gap: 32px; padding-block: 42px; }
  .profile-plate { width: min(81%,290px); margin-inline: auto; }
  .bag-product { gap: 8px; }
  .bag-product img { width: 35px; height: 43px; }
}
@media (max-width: 520px) {
  .line-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .line-item .bag-product { grid-column: 1 / -1; }
  .line-item .quantity { justify-self: start; }
  .line-item > strong { text-align: right; white-space: nowrap; }
}
