/* Cup memory */
.pure-review #p04,
.pure-review #p05 {
  padding-block: var(--section-gap) 0;
  background: var(--rw-canvas);
}

.pure-review #p04 .rw-volume__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: #f9f6f1;
  border: 1px solid #e7e1d8;
}

.pure-review #p04 .rw-volume__visual { position: relative; }
.pure-review #p04 .rw-volume__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.pure-review #p04 .rw-volume__controls {
  padding: clamp(24px, 3vw, 44px);
  color: var(--rw-ink);
  --rw-focus: #735844;
  --p04-cup-accent: #87472e;
}

.pure-review #p04[data-volume="double"] .rw-volume__controls { --p04-cup-accent: #355d78; }
.pure-review #p04 .rw-volume__switch {
  flex-wrap: wrap;
  gap: 8px;
  margin-inline: 0;
  padding: 0;
  border-radius: 0;
}

.pure-review #p04 .rw-volume__story { margin-top: clamp(20px, 2vw, 28px); }
.pure-review #p04 .rw-volume__explanation { display: block; }
.pure-review #p04 .rw-volume__explanation p,
.pure-review #p04 .rw-volume__fact p {
  color: #59544f;
}

.pure-review #p04 .rw-volume__explanation strong,
.pure-review #p04 .rw-volume__ranges .rw-volume__fact > * {
  color: var(--p04-cup-accent);
}

.pure-review #p04 .rw-volume__ranges { margin-block: 12px; }
.pure-review #p04 .rw-volume__ranges .rw-volume__fact h3 {
  font-size: clamp(27px, 2.4vw, 35px);
  line-height: 1.1;
}

.pure-review #p04 .rw-volume__guide-link { margin-top: 16px; }
.pure-review #p04 .rw-volume__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-color: #dfd7cb;
}

.pure-review #p04 .rw-volume__facts h3 {
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.2;
}

.pure-review #p04 .rw-volume__choice[aria-pressed="true"],
.pure-review #p05 .p05-controls button[aria-pressed="true"] {
  box-shadow: none;
}

.pure-review #p04 .rw-volume__choice[aria-pressed="true"] { border-color: var(--p04-cup-accent); }

/* Use the approved SVG layers without moving or rescaling individual machine parts. */
.pure-review #p05 {
  --p05-wall-top: #e7ddd1;
  --p05-floor-bottom: #faf7f3;
  --p05-disc: #f8f1e8;
}

.pure-review #p05[data-active-drink="1"] {
  --p05-wall-top: #eee3d3;
  --p05-floor-bottom: #fbf8f0;
  --p05-disc: #f9f0de;
}

.pure-review #p05[data-active-drink="2"] {
  --p05-wall-top: #dfe6e2;
  --p05-floor-bottom: #f6f8f5;
  --p05-disc: #eef1ec;
}

.pure-review #p05 .p05-sticky {
  position: relative;
  top: auto;
  gap: clamp(14px, 2vw, 20px);
}

.pure-review #p05::after { content: none; }

.pure-review #p05 .p05-stage {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  grid-template-rows: auto auto;
  width: 100%;
  min-height: auto;
  border: 1px solid rgb(87 63 46 / .12);
  background: linear-gradient(145deg, var(--p05-wall-top), var(--p05-floor-bottom) 92%);
}

.pure-review #p05 .p05-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 71%;
  top: 47%;
  width: min(48%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / .54);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 33%, var(--p05-disc), transparent 75%);
  box-shadow: 0 0 0 22px rgb(255 255 255 / .14);
  pointer-events: none;
}

.pure-review #p05 .p05-copy-stack {
  align-items: center;
  align-self: stretch;
  grid-area: 1 / 1;
  padding: clamp(20px, 4.2vw, 60px) 0 clamp(20px, 4.2vw, 60px) clamp(20px, 4.2vw, 60px);
}

.pure-review #p05 .p05-copy h3 {
  font-size: clamp(31px, 4.55vw, 66px);
  line-height: 1;
}

.pure-review #p05 .p05-copy p { color: #544e46; }
.pure-review #p05 .p05-art {
  grid-area: 1 / 2;
  width: 100%;
  height: min(52svh, 455px);
}

.pure-review #p05 .p05-controls {
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: flex-start;
  margin-inline: clamp(18px, 4.2vw, 60px);
  padding-block: 12px 16px;
  border-top: 1px solid rgb(87 63 46 / .20);
}

.pure-review #p05 .p05-controls .pill {
  min-height: 44px;
  padding-inline: clamp(10px, 2vw, 19px);
}

.pure-review #p05 .p05-copy[aria-hidden="true"],
.pure-review #p05 [data-drink-layer][aria-hidden="true"] { visibility: hidden; }
.pure-review #p05 [data-drink-layer][aria-hidden="false"] { opacity: 1; }

.pure-review #p05 .p05-copy[aria-hidden="false"] { animation: drink-caption-in .20s ease-out both; }
.pure-review #p05 [data-drink-layer][aria-hidden="false"] { animation: drink-detail-in .20s ease-out both; }
@keyframes drink-caption-in {
  from { opacity: .35; transform: translateY(5px); }
}
@keyframes drink-detail-in {
  from { opacity: .45; }
}

@media (max-width: 760px) {
  .pure-review #p04 .rw-volume__stage { grid-template-columns: minmax(0, 1fr); }
  .pure-review #p04 .rw-volume__photo { position: static; height: auto; aspect-ratio: 16 / 10; }
  .pure-review #p04 .rw-volume__controls { padding: clamp(19px, 4.8vw, 30px); }
  .pure-review #p05 .p05-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .pure-review #p05 .p05-stage::before { top: 55%; left: 52%; width: min(71%, 350px); }
  .pure-review #p05 .p05-copy-stack { padding: 17px 18px 4px; }
  .pure-review #p05 .p05-art {
    grid-area: 2 / 1;
    height: clamp(136px, calc(100svh - var(--chapter-height) - 286px), 350px);
  }
  .pure-review #p05 .p05-controls {
    justify-content: center;
    margin-inline: 12px;
    padding-block: 10px 12px;
    gap: 4px;
  }
  .pure-review #p05 .p05-controls .pill { font-size: clamp(12px, 3.4vw, 15px); }
}

@media (prefers-reduced-motion: reduce) {
  .pure-review #p05 .p05-copy[aria-hidden="false"],
  .pure-review #p05 [data-drink-layer][aria-hidden="false"] { animation: none; }
}
