.pour-page {
  --paper: #f5f1e7;
  --ink: #1d352f;
  --accent: #a9482f;
  color-scheme: light;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper) url("grain.png");
  font-family: "Segoe UI", system-ui, sans-serif;
}
.pour-page::before { content: none; }
.pour-header, .pour-layout { width: min(100% - clamp(2rem, 8vw, 8rem), 74rem); margin-inline: auto; }
.pour-header {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  min-height: 4.4rem; border-bottom: 1px solid #28423640;
}
.pour-header .wordmark span, .pour-intro h1 span { color: var(--accent); }
.pour-header .run-progress { margin: 0; color: #44564a; }
.pour-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "intro vessel" "readout vessel";
  column-gap: clamp(2rem, 6vw, 6rem);
  align-content: center;
  min-height: calc(100svh - 4.4rem);
  padding-block: clamp(2rem, 5vh, 4rem);
}
.pour-intro { grid-area: intro; align-self: end; }
.pour-intro h1 {
  padding: 0; margin: 0;
  font: 500 clamp(5.8rem, 9.8vw, 9.2rem)/.84 Georgia, "Times New Roman", serif;
  letter-spacing: -.085em;
}
.pour-intro em { display: block; font-weight: 400; }
#pour-hint { margin: 1.65rem 0; color: #43554d; line-height: 1.55; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.pour-readout { grid-area: readout; align-self: start; }
.pour-readout dl {
  display: flex; width: min(100%, 20rem); margin: 0;
  border-top: 1px solid #28423645; padding-top: .95rem;
}
.pour-readout dl div { flex: 1; }
.pour-readout dt { font-size: .82rem; font-weight: 650; color: #506157; }
.pour-readout dd { margin: .2rem 0 0; font: 500 2rem/1.1 Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.pour-readout dd span { font-size: .66em; }
#pour-message { margin: .75rem 0 0; max-width: 24rem; color: #43554d; line-height: 1.4; }
#pour-message:empty { margin: 0; }
#next-level:not([hidden]) { display: inline-block; margin-top: .8rem; padding: .65rem 1rem; border-radius: .3rem; background: var(--ink); color: #fff6de; font-weight: 650; }
#pour-button {
  grid-area: vessel; align-self: center; display: block; width: 100%; min-width: 0;
  overflow: hidden; padding: 0; border: 0; border-radius: 48% 48% .65rem .65rem / 39% 39% .65rem .65rem;
  background: #213e36; color: #fff4da; font: inherit; text-align: left;
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-touch-callout: none;
  box-shadow: 0 .9rem 1.9rem -.95rem #263c3355;
}
#pour-button:disabled { opacity: 1; cursor: wait; }
.pour-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pour-stage {
  position: relative; display: block; isolation: isolate;
  background: radial-gradient(ellipse at 18% 15%, #9eb2a1, transparent 65%), linear-gradient(116deg, #6d897a, #46675c 56%, #2e4d43);
}
.pour-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("grain.png"), linear-gradient(122deg, transparent 18%, #faf2c92c 18.5%, #faf2c90a 35%, transparent 35.5%, transparent 40%, #f7edb91c 40.5%, transparent 54%);
}
#pour-canvas { display: block; width: 100%; aspect-ratio: 1.18; }
.pour-handle {
  display: flex; align-items: center; justify-content: center; gap: .7rem; position: relative;
  min-height: 3.6rem; background: #213e36; font-size: 1rem; font-weight: 650;
}
.pour-grip { width: .95em; height: .95em; border: 1.5px solid #f9d4a7; border-radius: 50%; box-shadow: inset 0 0 0 3px #213e36; background: #f9d4a7; }
#pour-button[data-active="true"] .pour-grip { background: #ffa96e; box-shadow: 0 0 0 4px #ffdaad29; }
.pour-handle kbd { font: 500 .73rem/1 system-ui; padding: .26rem .45rem; border: 1px solid #edf4d975; border-bottom-width: 2px; border-radius: .25rem; color: #dfebdb; }
@media (hover: hover) { #pour-button:hover .pour-handle { background: #294a40; } }
@media (pointer: coarse) { .pour-handle kbd { display: none; } }
@media (max-width: 640px) {
  .pour-layout { width: min(100% - 2rem, 27rem); min-height: auto; grid-template-columns: 1fr; grid-template-areas: "intro" "vessel" "readout"; gap: 1.1rem; padding-block: 1.6rem; }
  .pour-header { min-height: 3.5rem; }
  .pour-intro h1 { font-size: clamp(3.7rem, 12vw, 5rem); line-height: 1; }
  .pour-intro em { display: inline; }
  #pour-hint { margin: .55rem 0 0; font-size: .96rem; }
  #pour-hint br { display: none; }
  .pour-readout dl { width: 100%; padding-top: .65rem; }
  .pour-handle { min-height: 3rem; }
}
