/* Cozy bartender prototype — portrait, one-hand, no external assets */
:root {
  --bg: #24150e;
  --bg-2: #1a0f0a;
  --wood: #6b3e24;
  --wood-2: #4a2816;
  --wood-3: #8a5330;
  --wood-hi: #c4894c;
  --counter: #3a2214;
  --cream: #f3e2c5;
  --cream-dim: #d8c19a;
  --amber: #e8a84c;
  --amber-2: #f4c57a;
  --lamp: #ffd18a;
  --ink: #2a1810;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --strip-h: 210px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
[hidden] { display: none !important; }

#app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #5a3118 0%, transparent 60%),
    linear-gradient(180deg, #2c1910 0%, #1a0f0a 100%);
  overflow: hidden;
}

/* Ambience */
.ambience { pointer-events: none; position: absolute; inset: 0; z-index: 0; }
.window {
  position: absolute;
  top: calc(var(--safe-top) + 52px);
  right: 10px;
  width: 72px;
  height: 88px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #1c2438 0%, #3a2a38 100%);
  box-shadow: inset 0 0 0 3px #4a2e1c, 0 0 18px rgba(0,0,0,.4);
  overflow: hidden;
  opacity: .9;
}
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 48%, #4a2e1c 48% 52%, transparent 52%),
    linear-gradient(180deg, transparent 46%, #4a2e1c 46% 50%, transparent 50%);
  z-index: 2;
}
.rain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    18deg,
    transparent 0 10px,
    rgba(200, 220, 255, .18) 10px 11px
  );
  animation: rain 1.1s linear infinite;
  z-index: 1;
}
@keyframes rain { to { transform: translateY(16px); } }
.cat {
  position: absolute;
  bottom: 6px;
  left: 8px;
  width: 22px;
  height: 14px;
  background: #1a1210;
  border-radius: 10px 10px 4px 4px;
  z-index: 3;
  box-shadow: 14px -8px 0 -6px #1a1210;
}
.cat::before, .cat::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #1a1210;
}
.cat::before { left: 1px; }
.cat::after { left: 8px; }
.lamp {
  position: absolute;
  top: calc(var(--safe-top) + 44px);
  width: 18px;
  height: 28px;
  background: #3a2214;
  border-radius: 0 0 10px 10px;
  z-index: 1;
}
.lamp::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 90px;
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(255, 209, 138, .35), transparent 70%);
  pointer-events: none;
}
.lamp-l { left: 18px; }
.lamp-r { right: 96px; }

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 14px 8px;
  min-height: calc(var(--safe-top) + 46px);
}
.brand {
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--amber-2);
  display: flex;
  gap: 8px;
  align-items: center;
  text-shadow: 0 1px 0 #0008;
}
.brand-mark { color: var(--amber); }
.top-right { display: flex; gap: 8px; align-items: center; }
.coins, .lang-btn {
  background: #3a2418cc;
  border: 1px solid #c4894c55;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 14px;
  color: var(--cream);
  backdrop-filter: blur(6px);
}
.lang-btn { min-width: 40px; font-family: system-ui, sans-serif; font-weight: 600; }

.screen-bar {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: padding-bottom .28s ease;
}
#app.strip-open .screen-bar { padding-bottom: var(--strip-h); }

/* Guest */
.guest-row {
  flex: 0 0 auto;
  padding: 0 16px 4px;
  min-height: 148px;
}
.guest {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}
.guest-body {
  width: 108px;
  height: 132px;
  flex: 0 0 auto;
  position: relative;
  filter: drop-shadow(0 6px 8px #0006);
}
.bubble {
  flex: 1;
  background: #f7ead3;
  color: var(--ink);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px 10px;
  box-shadow: 0 6px 16px #0005;
  min-height: 88px;
  position: relative;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 18px;
  border: 8px solid transparent;
  border-right-color: #f7ead3;
  border-left: 0;
}
#orderText {
  margin: 0 0 8px;
  font-size: 14.5px;
  line-height: 1.35;
}
.recipe-hint {
  font-family: system-ui, sans-serif;
  font-size: 11.5px;
  background: #ead4ad;
  border-radius: 8px;
  padding: 5px 8px;
  color: #4a3018;
}

/* Cartoon guests drawn in CSS */
.guest-art {
  position: absolute;
  inset: 0;
}
.guest-art .torso {
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 64px;
  border-radius: 22px 22px 10px 10px;
}
.guest-art .head {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 70px;
  height: 70px;
  margin-left: -35px;
  border-radius: 50%;
}
.guest-art .ear-l, .guest-art .ear-r {
  position: absolute;
  top: 2px;
  width: 22px;
  height: 28px;
  border-radius: 50% 50% 40% 40%;
}
.guest-art .ear-l { left: 14px; transform: rotate(-18deg); }
.guest-art .ear-r { right: 14px; transform: rotate(18deg); }
.guest-art .eye {
  position: absolute;
  top: 32px;
  width: 8px;
  height: 10px;
  background: #1a1008;
  border-radius: 50%;
}
.guest-art .eye.l { left: 22px; }
.guest-art .eye.r { right: 22px; }
.guest-art .nose {
  position: absolute;
  top: 44px;
  left: 50%;
  width: 12px;
  height: 8px;
  margin-left: -6px;
  background: #2a1810;
  border-radius: 0 0 8px 8px;
}
.guest-art .blush-l, .guest-art .blush-r {
  position: absolute;
  top: 46px;
  width: 12px;
  height: 7px;
  background: #e88a8a66;
  border-radius: 50%;
}
.guest-art .blush-l { left: 10px; }
.guest-art .blush-r { right: 10px; }

/* Shelves */
.shelves {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 6px 12px 8px;
  min-height: 0;
}
.shelf-board {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  min-height: 118px;
  padding: 0 6px 10px;
}
.shelf-wood {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #c4894c 0 2px, #7a4526 2px 10px, #3a2214 100%);
  box-shadow: 0 6px 10px #0006;
}
.group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  flex: 1;
  padding: 4px 2px 0;
  border-radius: 10px;
  transition: transform .15s ease, filter .15s ease;
}
.group:active { transform: translateY(1px); }
.group.selected {
  filter: drop-shadow(0 0 10px rgba(255, 209, 138, .85));
}
.group.selected .group-label { color: var(--amber-2); }
.group-label {
  font-family: system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-shadow: 0 1px 2px #000a;
  margin-top: 2px;
}
.group-label.muted { opacity: .45; font-size: 9px; }
.cluster {
  height: 86px;
  width: 100%;
  max-width: 118px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Mini bottles / cartons / glasses on the shelf */
.mini-bottle {
  position: relative;
  width: 16px;
  margin: 0 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 2px 1px #0005);
}
.mini-bottle .neck {
  width: 6px;
  height: 12px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #eee8, var(--c), #0004);
}
.mini-bottle .cap {
  width: 8px;
  height: 5px;
  border-radius: 1px;
  background: #d4b07a;
}
.mini-bottle .body {
  width: 16px;
  height: 36px;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(90deg, #fff6 0%, var(--c) 35%, var(--c) 70%, #0005 100%);
  box-shadow: inset 0 -8px 0 #0002;
}
.mini-bottle.tall .body { height: 44px; }
.mini-bottle.short .body { height: 28px; width: 18px; }
.mini-carton {
  width: 18px;
  height: 34px;
  margin: 0 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f3e2c5, var(--c));
  box-shadow: inset -3px 0 0 #0002, 0 2px 2px #0004;
  position: relative;
}
.mini-carton::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 8px;
  background: #e8d8b0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.mini-soda {
  width: 14px;
  margin: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-soda .n { width: 7px; height: 10px; background: #d0d8de; border-radius: 2px 2px 0 0; }
.mini-soda .b {
  width: 14px;
  height: 38px;
  border-radius: 4px 4px 5px 5px;
  background: linear-gradient(90deg, #fff5, var(--c), #0005);
}
.mini-glass {
  width: 20px;
  margin: 0 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.mini-glass .g {
  background: linear-gradient(180deg, #eaf4ff88, #bcd4e8aa);
  border: 1.5px solid #e8f0f8cc;
  box-shadow: inset 0 -6px 0 #e8c87a55, 0 2px 2px #0004;
}
.mini-glass.highball .g { width: 12px; height: 36px; border-radius: 1px 1px 3px 3px; }
.mini-glass.shot .g { width: 12px; height: 16px; border-radius: 1px 1px 2px 2px; }
.mini-glass.rocks .g { width: 18px; height: 18px; border-radius: 1px 1px 4px 4px; }
.mini-glass.mug .g {
  width: 16px; height: 24px; border-radius: 2px 2px 4px 4px; position: relative;
}
.mini-glass.mug .g::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 5px;
  width: 7px;
  height: 11px;
  border: 2px solid #e8f0f8cc;
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.sink-deco {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .7;
}
.sink-basin {
  width: 54px;
  height: 28px;
  border-radius: 4px 4px 14px 14px;
  background: linear-gradient(180deg, #9aa8b0, #5a6870);
  box-shadow: inset 0 6px 8px #0004, 0 2px 0 #c4894c;
  position: relative;
}
.sink-basin::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 8px;
  width: 8px;
  height: 12px;
  background: #c0c8cc;
  border-radius: 3px;
}

/* Workstation / counter */
.workstation {
  position: relative;
  flex: 0 0 auto;
  padding: 0 12px calc(10px + var(--safe-bot));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.counter-edge {
  height: 10px;
  margin: 0 -12px;
  background: linear-gradient(180deg, #a86434, #5a3018 60%, #2a160c);
  box-shadow: 0 -8px 16px #0005;
  border-radius: 8px 8px 0 0;
}
.tray {
  display: block;
  width: 100%;
  min-height: 108px;
  background:
    radial-gradient(ellipse at 50% 20%, #5a3820, #3a2214 70%);
  border: 2px solid #c4894c66;
  border-radius: 16px;
  padding: 8px 8px 6px;
  text-align: left;
  box-shadow: inset 0 0 20px #0006, 0 4px 0 #1a0c08;
}
.tray.ready { border-color: #e8a84c; box-shadow: inset 0 0 20px #0006, 0 0 16px #e8a84c44; }
.tray-items {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 72px;
  flex-wrap: wrap;
}
.tray-hint {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  color: var(--cream-dim);
  text-align: center;
  opacity: .85;
  min-height: 16px;
}
.tray-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}
.tray-piece .name {
  font-family: system-ui, sans-serif;
  font-size: 9px;
  color: var(--cream-dim);
  max-width: 52px;
  text-align: center;
  line-height: 1.1;
}
.tray-piece.warn .name { color: #f0b090; }
.cook-btn, .next-btn, .intro-card .next-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8a84c, #c47a28);
  color: #2a1608;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  box-shadow: 0 3px 0 #7a4a14, 0 8px 16px #0005;
}
.cook-btn:active, .next-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #7a4a14; }
.next-btn:disabled {
  opacity: .4;
  box-shadow: none;
  filter: grayscale(.3);
}

/* Bottom strip */
.strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: calc(var(--strip-h) + var(--safe-bot));
  padding: 6px 0 calc(10px + var(--safe-bot));
  background: linear-gradient(180deg, #4a2e1c, #2a1810);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px #0008;
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.strip.open { transform: translateY(0); }
.strip-handle {
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: #c4894c99;
  margin: 2px auto 8px;
}
.strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
}
.strip-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--amber-2);
}
.strip-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0004;
  color: var(--cream);
  font-family: system-ui, sans-serif;
}
.strip-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 16px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-item {
  flex: 0 0 86px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 12px;
  background: #3a241888;
  border: 1px solid #c4894c33;
  min-height: 124px;
  touch-action: none;
}
.strip-item:active, .strip-item.dragging { background: #5a3820; }
.strip-item .lab {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  text-align: center;
  line-height: 1.15;
  color: var(--cream);
}
.strip-item.on-tray { outline: 2px solid var(--amber); }

/* Item art (larger, for strip / tray / pour) */
.art-bottle { width: 36px; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 2px 2px #0006); }
.art-bottle .cap { width: 14px; height: 7px; background: #d4b07a; border-radius: 2px; }
.art-bottle .neck { width: 10px; height: 16px; background: linear-gradient(90deg, #fff8, var(--c), #0003); }
.art-bottle .body {
  width: 32px;
  height: 58px;
  border-radius: 3px 3px 6px 6px;
  background: linear-gradient(90deg, #fff7 0%, var(--c) 28%, var(--c) 75%, #0005 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-bottle .lbl {
  font-family: Georgia, serif;
  font-size: 7px;
  line-height: 1.1;
  text-align: center;
  color: #f7ead3;
  text-shadow: 0 1px 1px #0008;
  padding: 2px;
  max-width: 26px;
}
.art-bottle.square .body { border-radius: 2px; width: 30px; }
.art-bottle.fat .body { width: 36px; height: 50px; border-radius: 4px 4px 10px 10px; }
.art-carton {
  width: 40px;
  height: 68px;
  background: linear-gradient(180deg, #f7ead3, var(--c));
  border-radius: 2px 2px 4px 4px;
  position: relative;
  box-shadow: 0 2px 3px #0005;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.art-carton::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 12px;
  background: #efe0c0;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.art-carton .lbl { font-size: 8px; color: #2a1810; text-align: center; font-family: system-ui, sans-serif; font-weight: 700; }
.art-soda {
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 2px 2px #0006);
}
.art-soda .n { width: 12px; height: 12px; background: #cfd6dc; border-radius: 3px 3px 0 0; }
.art-soda .body {
  width: 30px;
  height: 56px;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(90deg, #fff6, var(--c), #0005);
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-soda .lbl { font-size: 7px; color: #f7ead3; text-align: center; font-family: system-ui, sans-serif; }
.art-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
  filter: drop-shadow(0 2px 2px #0005);
}
.art-glass .cup {
  background: linear-gradient(180deg, #f0f8ff99, #b8d0e0aa);
  border: 2px solid #eef6ffcc;
  box-shadow: inset 0 -10px 0 #e8c87a44;
  position: relative;
}
.art-glass.highball .cup { width: 22px; height: 62px; border-radius: 2px 2px 6px 6px; }
.art-glass.shot .cup { width: 22px; height: 28px; border-radius: 2px 2px 4px 4px; }
.art-glass.rocks .cup { width: 34px; height: 32px; border-radius: 2px 2px 8px 8px; }
.art-glass.mug .cup { width: 28px; height: 42px; border-radius: 3px 3px 8px 8px; }
.art-glass.mug .cup::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 8px;
  width: 12px;
  height: 18px;
  border: 3px solid #eef6ffcc;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.drag-ghost {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  transform: translate(-50%, -70%) scale(1.08);
  filter: drop-shadow(0 8px 10px #0008);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--strip-h) + 24px + var(--safe-bot));
  transform: translateX(-50%);
  z-index: 30;
  max-width: 86%;
  background: #f7ead3;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 8px 20px #0007;
  text-align: center;
}
#app:not(.strip-open) .toast { bottom: calc(28px + var(--safe-bot)); }

/* Pour / garnish / result screens */
.screen-pour, .screen-garnish, .screen-result {
  position: fixed;
  inset: 0;
  z-index: 40;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, #5a3118, transparent 60%),
    linear-gradient(180deg, #2c1910, #140c08);
  display: flex;
  flex-direction: column;
  padding: calc(var(--safe-top) + 6px) 14px calc(12px + var(--safe-bot));
}
.pour-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3a2418;
  border: 1px solid #c4894c55;
  font-size: 18px;
}
.pour-titles { flex: 1; min-width: 0; }
.pour-drink { font-size: 16px; color: var(--amber-2); }
.pour-step { font-family: system-ui, sans-serif; font-size: 12px; color: var(--cream-dim); margin-top: 2px; }

.pour-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}
.glass-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 280px;
}
.glass-wrap.small { height: 180px; }
.scale {
  width: 42px;
  height: 100%;
  position: relative;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  color: #d8c19a;
}
.scale-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #c4894c88;
  padding-left: 2px;
  transform: translateY(50%);
}
.scale-band {
  position: absolute;
  left: 28px;
  right: 0;
  background: rgba(232, 168, 76, .35);
  border: 1px dashed #e8a84c;
  border-radius: 2px;
  pointer-events: none;
}
.glass-vessel {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.vessel {
  position: relative;
  border: 3px solid rgba(230, 240, 255, .7);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(180,210,230,.08));
  overflow: hidden;
  box-shadow:
    inset 3px 0 0 rgba(255,255,255,.25),
    inset -4px 0 8px rgba(0,0,0,.25),
    0 8px 18px #0006;
}
.vessel.highball { width: 92px; height: 260px; border-radius: 4px 4px 18px 18px; }
.vessel.shot { width: 86px; height: 130px; border-radius: 4px 4px 14px 14px; align-self: flex-end; }
.vessel.rocks { width: 130px; height: 140px; border-radius: 4px 4px 22px 22px; }
.vessel.mug { width: 110px; height: 180px; border-radius: 6px 6px 22px 22px; }
.liquid-stack {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  top: 3px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}
.liq-layer {
  width: 100%;
  position: relative;
  box-shadow: inset 0 2px 0 #fff3;
  transition: height .05s linear;
}
.liq-layer .foam {
  position: absolute;
  left: 0; right: 0; top: -5px;
  height: 8px;
  background: #fff8;
  border-radius: 4px;
  opacity: .5;
}
.spill {
  position: absolute;
  top: -6px;
  left: 20%;
  right: 20%;
  height: 8px;
  background: var(--spill, #c87c2a);
  border-radius: 8px;
  opacity: .8;
  filter: blur(1px);
}
.ice-cubes span {
  position: absolute;
  width: 18px;
  height: 14px;
  background: linear-gradient(135deg, #fff9, #cfe8f866);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #fff5;
}
.lemon-slice {
  position: absolute;
  top: 8px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #f5e56b, #e8c84a, #f7f0a8, #e8c84a, #f5e56b);
  box-shadow: 0 2px 4px #0005;
  border: 2px solid #d4a028;
  z-index: 3;
}
.pour-readout {
  margin-top: 10px;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  color: var(--cream);
  text-align: center;
  min-height: 22px;
}
.pour-readout b { color: var(--amber-2); font-weight: 700; }
.pour-readout.ok b { color: #9ee0a0; }
.pour-readout.over b { color: #f0b090; }

.pour-zone {
  flex: 0 0 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  touch-action: none;
  padding-bottom: 4px;
  overflow: visible;
}
.held-bottle {
  transform-origin: 50% 15%;
  transition: transform .05s linear;
  min-height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.held-bottle.pouring { filter: drop-shadow(0 0 10px #fff4); }
.held-bottle .art-bottle .body { height: 74px; width: 40px; }
.held-bottle .art-bottle .neck { height: 20px; }
.stream {
  position: fixed;
  width: 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 45;
  opacity: .92;
  filter: blur(.3px);
  transform-origin: top center;
}
.pour-hint {
  margin: 8px 0 0;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--cream-dim);
  text-align: center;
  line-height: 1.3;
  max-width: 280px;
}
.next-btn { margin-top: 10px; flex: 0 0 auto; }

/* Garnish */
.garnish-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.garnish-lead {
  text-align: center;
  color: var(--cream-dim);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  margin: 0;
  max-width: 280px;
}
.garnish-actions { display: flex; gap: 16px; }
.garnish-item {
  width: 120px;
  padding: 14px 8px;
  border-radius: 16px;
  background: #3a2418;
  border: 2px solid #c4894c55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
.garnish-item.on {
  border-color: #9ee0a0;
  background: #2a3a24;
  box-shadow: 0 0 12px #9ee0a044;
}
.g-art { width: 44px; height: 36px; position: relative; display: block; }
.ice-art {
  background:
    linear-gradient(135deg, #fff 0 40%, #cfe8f8 100%);
  border-radius: 6px;
  transform: rotate(-12deg);
  box-shadow: 12px 8px 0 #d8eef8cc;
}
.lemon-art {
  border-radius: 50%;
  background: conic-gradient(#f5e56b, #e8c84a, #f7f0a8, #e8c84a, #f5e56b);
  border: 3px solid #d4a028;
}

/* Result */
.screen-result { align-items: center; justify-content: center; }
.result-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #4a2e1c, #2a1810);
  border: 1px solid #c4894c66;
  border-radius: 22px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 16px 40px #0008;
}
.result-guest { height: 120px; position: relative; display: flex; justify-content: center; }
.result-guest .guest-body { position: relative; }
.result-badge {
  display: inline-block;
  margin: 8px 0 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .03em;
}
.result-badge.perfect { background: #e8a84c; color: #2a1608; }
.result-badge.good { background: #7da86a; color: #10200c; }
.result-badge.ok { background: #8a6a48; color: #f3e2c5; }
.result-line { font-size: 16px; margin: 8px 0 4px; }
.result-detail {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: var(--cream-dim);
  margin: 0 0 10px;
  min-height: 36px;
}
.result-tips { font-size: 20px; color: var(--amber-2); margin-bottom: 16px; }

/* Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #140c08ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.intro-card {
  text-align: center;
  max-width: 340px;
}
.intro-card h1 {
  font-weight: 600;
  font-size: 28px;
  color: var(--amber-2);
  margin: 0 0 8px;
}
.intro-card p {
  font-family: system-ui, sans-serif;
  color: var(--cream-dim);
  line-height: 1.45;
  margin: 0 0 22px;
}
.intro-art {
  width: 90px;
  height: 110px;
  margin: 0 auto 12px;
  background:
    linear-gradient(180deg, #e8a84c 0 8px, transparent 8px),
    linear-gradient(90deg, #fff6, #c87c2a, #0004);
  background-repeat: no-repeat;
  background-size: 22px 18px, 54px 80px;
  background-position: 50% 0, 50% 18px;
  border-radius: 0 0 16px 16px;
  filter: drop-shadow(0 8px 10px #0008);
  position: relative;
}
.intro-art::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: linear-gradient(90deg, #fff8, #e8d8a8);
}

/* Target band glow on the glass itself */
.vessel .target-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: 0 -2px 0 0 #e8a84c, 0 -8px 14px #e8a84c66;
  pointer-events: none;
  z-index: 2;
}
.vessel .target-band::after {
  content: "цель";
  position: absolute;
  right: 4px;
  top: -13px;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  color: #e8a84c;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-height: 720px) {
  .guest-row { min-height: 124px; }
  .guest-body { height: 110px; width: 92px; }
  .glass-wrap { height: 230px; }
  .vessel.highball { height: 210px; }
  .pour-zone { flex-basis: 170px; }
  :root { --strip-h: 190px; }
}

.coin-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: -2px;
  background: radial-gradient(circle at 35% 30%, #ffe7a8, #e8a84c 55%, #a86a18);
  box-shadow: inset 0 0 0 2px #c4894c88, 0 1px 1px #0006;
}
.tray-hint { padding-top: 4px; border-top: 1px solid #c4894c22; }
.shelves { justify-content: space-evenly; }
.guest-art .mouth {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 14px;
  height: 7px;
  margin-left: -7px;
  border-bottom: 2px solid #2a1810;
  border-radius: 0 0 10px 10px;
}
.art-bottle .lbl, .art-soda .lbl { font-size: 8px; max-width: 30px; }
.window { opacity: 1; box-shadow: inset 0 0 0 3px #5a3824, 0 0 18px #0004, 0 0 24px #6a80c022; }
