.pour-page {
  --line: #d4b7bd;
  min-height: 100vh;
  color: #3d2c53;
  background: radial-gradient(ellipse at 6% 12%, #ffd7cb, transparent 43%),
    radial-gradient(ellipse at 92% 55%, #caf2df, transparent 47%), #fff3dc;
}
.pour-page a { color: #553961; }
.pour-main { padding-top: 24px; }
.pour-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 5.5vw, 62px);
  margin: 18px 0 44px;
}
.pour-intro { max-width: 430px; }
.pour-kicker { margin: 0; color: #8a4a61; font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.pour-title { margin: 14px 0; font-size: clamp(60px, 8.3vw, 106px); line-height: .89; letter-spacing: -.065em; }
.pour-title span { display: block; color: #a2436c; }
.pour-rule { color: #65526a; font-size: 18px; line-height: 1.5; }
.pour-rule strong { color: #443050; }
.pour-key { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.pour-key span { padding: 5px 9px; border: 1px solid #bca3b2; border-radius: 30px; color: #423049; background: #fff9ed; font-size: 12px; font-weight: 800; }

.pour-console {
  width: 100%;
  max-width: 490px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #ad7ea7;
  border-radius: 25px;
  background: linear-gradient(145deg, #f9e4f2, #f0e2fa);
  box-shadow: 0 7px 0 #c8a3bf, 0 18px 35px #7e4e6b25;
}
.pour-stats { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pour-stats p { margin: 0; color: #725171; font-size: 10px; letter-spacing: .09em; font-weight: 850; text-transform: uppercase; }
.pour-stats strong { display: block; color: #51375f; font-size: 23px; font-variant-numeric: tabular-nums; }
.pour-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pour-controls button {
  min-height: 44px;
  border: 1px solid #af819f;
  border-radius: 12px;
  background: #fff5f6;
  color: #59384f;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.pour-controls .pour-primary { background: #753f78; border-color: #753f78; color: #fff5fd; }
.pour-controls button:disabled { opacity: .6; cursor: default; }
.pour-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px 10px;
  min-height: 340px;
  padding: 22px 12px 15px;
  border: 1px solid #b88dba;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0, #fff5fb, transparent 80%),
    repeating-linear-gradient(0deg, #c3a6d32b 0, #c3a6d32b 1px, transparent 1px, transparent 29px), #decce9;
  box-shadow: inset 0 3px 10px #9b77ad1a;
}
.pour-vial {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
  max-width: 94px;
  padding: 5px 8px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #503b61;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pour-vial:disabled { opacity: 1; cursor: default; }
.pour-vial[data-selected="true"] { border-color: #824c85; background: #fff1fc; box-shadow: 0 0 0 3px #d8b1de; }
.pour-vial[data-sorted="true"] .pour-glass { border-color: #326c66; }
.pour-glass {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 129px;
  padding: 5px 3px 3px;
  border: 3px solid #86608f;
  border-top: 5px solid #b999c3;
  border-radius: 6px 6px 25px 25px;
  background: #fff6ff7a;
  overflow: hidden;
  box-shadow: 3px 4px 0 #8c639629;
  pointer-events: none;
}
.pour-glass::after { content: ''; position: absolute; top: 10px; bottom: 17px; left: 7px; width: 5px; border-radius: 3px; background: #ffffff75; }
.pour-layer { display: grid; place-items: center; color: #4b2c57; font-size: 21px; font-weight: 900; border-bottom: 1px solid #64496b2b; }
.pour-layer[data-color="empty"] { background: transparent; border-color: transparent; }
.pour-layer[data-color="0"] { background: linear-gradient(90deg, #f8b7ce, #fa8db3); }
.pour-layer[data-color="1"] { background: linear-gradient(90deg, #abf3df, #6ed5c5); }
.pour-layer[data-color="2"] { background: linear-gradient(90deg, #ffe8a4, #ffc66f); }
.pour-layer[data-color="3"] { background: linear-gradient(90deg, #dcc9ff, #baa3f3); }
.pour-number { font-size: 12px; font-weight: 850; line-height: 1; }
.pour-status { min-height: 2.6em; margin: 10px 0 0; font-size: 13px; line-height: 1.3; color: #664768; }
.pour-vial:focus-visible, .pour-controls button:focus-visible { outline: 3px solid #237e83; outline-offset: 3px; }
.pour-vial:not(:disabled):hover { background: #fff3f994; }
.pour-land .pour-layer { animation: pour-settle .23s ease-out; }
@keyframes pour-settle { from { opacity: .55; } to { opacity: 1; } }
.pour-console[data-state="complete"] { border-color: #418d7c; box-shadow: 0 7px 0 #9dcbb0, 0 18px 35px #7e4e6b25; }
.pour-page .mini-instructions { color: #523854; background: #fff8ef; border-color: #d3acba; }
.pour-page .mini-instructions p { color: #665269; }
.pour-page .ad-slot { background: #fff8ef; border-color: #d3acba; }

@media (max-width: 720px) {
  .pour-main { padding-top: 4px; }
  .pour-hero { grid-template-columns: 1fr; gap: 13px; margin-top: 10px; }
  .pour-title { margin: 6px 0; font-size: clamp(37px, 11vw, 64px); line-height: 1; }
  .pour-title span { display: inline; }
  .pour-kicker { font-size: 10px; }
  .pour-rule { margin: 6px 0 0; font-size: 14px; line-height: 1.35; }
  .pour-key { display: none; }
  .pour-console { padding: 11px; }
  .pour-stats { margin-bottom: 8px; }
  .pour-stats strong { font-size: 19px; }
  .pour-shelf { gap: 10px 6px; min-height: 294px; padding: 10px 8px; }
  .pour-vial { padding: 3px 5px; }
  .pour-glass { height: 109px; }
  .pour-layer { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pour-land .pour-layer { animation: none; }
}
