:root {
  --violet: #4b3bc4;
  --violet-deep: #2c2380;
  --ink: #1a1a1a;
  --cream: #f4ead5;
  --mustard: #f2b731;
  --tomato: #e0402b;
  --teal: #1f5c5a;
  --wood: #2a1810;
  --wood-light: #c9772f;
  --display: "Fraunces", Georgia, serif;
  --slab: "Alfa Slab One", "Rockwell", serif;
  --text: "Roboto Slab", Georgia, serif;
  --label: "Josefin Sans", "Futura", sans-serif;
  --topbar: 56px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { background: var(--wood); }
html.locked { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--wood);
  color: var(--cream);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 40px);
  background: linear-gradient(rgba(30, 20, 80, 0.45), rgba(44, 35, 128, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; }
.brand svg { width: 28px; height: 28px; }
.tools { display: flex; align-items: center; gap: 14px; }
.tool-link { color: var(--cream); font-family: var(--label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; text-decoration: none; }
.lang { display: flex; border: 2px solid var(--cream); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 10px 4px; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.sound { display: flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--cream); border-radius: 999px; padding: 4px 12px 4px 8px; min-height: 36px; }
.sound svg { width: 18px; height: 18px; }
.sound[aria-pressed="false"] svg { opacity: 0.55; }
.sound-state { font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; }

/* ---------- bar scene ---------- */
.bar { position: relative; }
.viewport {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  /* same wallpaper stripes as the stage background, so any band above the stage keeps the pattern */
  background:
    linear-gradient(transparent 0 55%, var(--wood) 55%),
    repeating-linear-gradient(90deg, rgb(59, 36, 128) 0 calc(var(--stripe, 41px) / 2), rgb(67, 41, 146) calc(var(--stripe, 41px) / 2) var(--stripe, 41px));
  background-position: 0 0, var(--stripe-x, 0px) 0;
}
.stage-clip { position: absolute; inset: 0; overflow: hidden; }
.stage {
  position: absolute; left: 0; top: 0;
  width: 1600px; height: 900px;
  transform-origin: 0 0;
  user-select: none;
}
.bg { position: absolute; left: 0; top: -600px; width: 1600px; height: auto; } /* image has 600 stage px of extra wall above the stage */
.counter-top { position: absolute; left: -10px; top: 292px; width: 1620px; height: auto; z-index: 2; pointer-events: none; }
.counter { position: absolute; left: -10px; top: 488px; width: 1620px; height: auto; z-index: 4; pointer-events: none; }
.keg { position: absolute; z-index: 2; left: 1000px; bottom: 436px; height: 118px; width: auto; transform-origin: 50% 100%; }
.keg.pull { animation: kegPull 0.5s ease-in-out 2; }
@keyframes kegPull { 50% { transform: rotate(-2deg) scale(1.03); } }
.in-hand { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -50%); animation: popIn 0.25s var(--ease-out); }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }

.bartender {
  position: absolute; z-index: 1;
  left: 815px; bottom: 392px; height: 380px; width: auto;
  transform: translateX(calc(var(--cx, 0.5) * -100%));
  transform-origin: 50% 100%;
  animation: breathe 3.6s ease-in-out infinite;
}
.bartender.is-shaking { animation: none; }
.bartender.pop { animation: popPose 0.18s var(--ease-out); }
@keyframes popPose { from { transform: translateX(calc(var(--cx, 0.5) * -100%)) scale(0.96, 1.05); } }
@keyframes breathe { 50% { transform: translateX(calc(var(--cx, 0.5) * -100%)) scaleY(1.012); } }
@keyframes shake { 25% { transform: translateX(calc(-50% - 4px)) rotate(-1.2deg); } 75% { transform: translateX(calc(-50% + 4px)) rotate(1.2deg); } }

.stage.cam { transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1); }
.flyer { position: fixed; z-index: 15; pointer-events: none; transform-origin: 50% 50%; }
.speedlines {
  position: absolute; z-index: 1; left: 815px; top: 260px; width: 2400px; height: 2400px;
  margin: -1200px 0 0 -1200px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(rgba(244, 234, 213, 0.22) 0 2.2deg, transparent 2.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 40%); mask: radial-gradient(circle, transparent 12%, #000 40%);
  transition: opacity 0.25s;
}
.speedlines.on { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-clip.quake { animation: quake 0.11s linear infinite; }
@keyframes quake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 3px); } }
.burst { position: fixed; z-index: 16; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mustard); }

.guest {
  position: absolute; z-index: 5;
  bottom: 18px; left: 0; height: 640px; width: auto;
  transform-origin: 50% 100%;
  will-change: transform;
}
.guest.is-walking { height: 620px; }
.guest.bob { animation: bob var(--bobT, 0.42s) ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 var(--bobY, -10px); } }

.glass { position: absolute; z-index: 3; left: 610px; bottom: 434px; transform: translateX(-50%); }
.glass.fill img { clip-path: inset(0 0 0 0); animation: fillUp 0.7s ease-out; }
@keyframes fillUp { from { clip-path: inset(100% 0 0 0); } }
.glass img { height: 128px; width: auto; position: relative; display: block; }
.glass::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 5px; border-radius: 50%; background: rgba(40, 14, 4, 0.3); z-index: -1; }
.glass.short img { height: 96px; }
.glass .liquid {
  position: absolute; inset: 0; z-index: 1;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  opacity: 0.82; mix-blend-mode: multiply;
}
@keyframes slideIn { from { transform: translateX(80%); opacity: 0; } }

/* ---------- hero copy ---------- */
.hero {
  position: absolute; z-index: 10;
  left: clamp(16px, 6vw, 96px); top: auto; bottom: calc(100% - var(--counter-y, 70vh) + clamp(20px, 4vh, 48px));
  max-width: min(46vw, 620px);
  transition: opacity 0.2s linear;
}
.hero-title {
  margin: 0;
  font-family: "Limelight", var(--display); font-weight: 400;
  font-size: clamp(38px, min(5vw, 9.5vh), 92px); line-height: 1; letter-spacing: 0;
  -webkit-text-stroke: 0.09em #1a1033; paint-order: stroke fill;
  text-shadow: 0.06em 0.07em 0 #1a1033, 0 0 0.5em rgba(20, 10, 50, 0.55);
  color: var(--cream);
  text-wrap: balance;
}
.hero-sub { margin: 18px 0 0; font-family: var(--label); font-size: clamp(15px, 1.5vw, 22px); letter-spacing: 0.14em; font-style: italic; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: clamp(16px, 3vh, 30px); }
.play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px 8px 12px; min-height: 44px;
  border: 2px solid var(--cream); border-radius: 999px;
  background: rgba(244, 234, 213, 0.12); color: var(--cream);
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: transform 0.16s var(--ease-out), background 0.2s, color 0.2s;
}
.play svg { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--cream); color: var(--ink); box-sizing: content-box; }
.play:active { transform: scale(0.97); }
.sax-keys { fill: var(--cream); }
@media (hover: hover) { .play:hover .sax-keys { fill: var(--ink); } }
.play:hover .sax, .play:focus-visible .sax { animation: sax-wiggle 0.5s ease-in-out; }
@keyframes sax-wiggle { 30% { rotate: -12deg; } 65% { rotate: 8deg; } }
@media (prefers-reduced-motion: reduce) { .play .sax { animation: none !important; } }
@media (hover: hover) { .play:hover { background: var(--cream); color: var(--ink); } .play:hover svg { background: var(--ink); color: var(--cream); } }
.scroll-hint { margin: clamp(10px, 2vh, 22px) 0 0; font-family: var(--label); font-size: 13px; letter-spacing: 0.12em; opacity: 0.85; }

/* ---------- UI layer (dialogue + mixing) ---------- */
.ui {
  position: absolute; z-index: 20;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(1100px, calc(100% - 32px));
  transform: translateX(-50%);
}
.dialog {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 22px 18px 18px;
  background: var(--cream); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  animation: rise 0.35s var(--ease-out);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.portrait {
  width: 104px; height: 104px; border-radius: 50%;
  border: 4px solid var(--ink);
  background-color: var(--mustard);
  background-repeat: no-repeat; background-size: cover; background-position: center;
}
.dialog-body { min-width: 0; }
.nametag {
  display: inline-block; margin-bottom: 8px;
  padding: 4px 14px 2px; border-radius: 10px; border: 3px solid var(--ink);
  font-family: var(--slab); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); background: var(--ink);
}
.dialog-text { margin: 0; font-family: var(--text); font-weight: 700; font-size: clamp(18px, 2vw, 27px); line-height: 1.28; min-height: 2.56em; }
.next { align-self: end; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.next svg { width: 22px; height: 22px; animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- notebook: the order pad beside the bar ---------- */
.notebook {
  position: absolute; z-index: 22;
  top: calc(var(--topbar) + 12px); right: clamp(12px, 2.5vw, 36px); bottom: 20px;
  width: min(540px, 42vw);
  color: var(--ink);
  transform: rotate(1.4deg);
  animation: padIn 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
  filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.35));
}
@keyframes padIn { from { transform: translateX(120%) rotate(8deg); } }
.notebook .spiral {
  position: absolute; left: 18px; right: 18px; top: -10px; height: 26px; z-index: 2;
  background: radial-gradient(circle at 50% 60%, #2a2a2a 0 5px, transparent 6px) 0 0 / 26px 26px repeat-x;
}
.nb-page {
  height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: 26px 20px 18px 46px;
  border-radius: 6px 6px 14px 14px;
  background:
    linear-gradient(90deg, transparent 32px, rgba(224, 64, 43, 0.45) 32px 34px, transparent 34px),
    repeating-linear-gradient(#fbf4e2 0 29px, #cfd9e6 29px 30px);
  border: 3px solid var(--ink);
}
.nb-eyebrow { margin: 0; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.nb-title { margin: 2px 0 8px; font-family: var(--slab); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--tomato); }
.nb-label { margin: 10px 0 2px; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.nb-recipe { list-style: none; margin: 0; padding: 0; font-family: "Caveat", cursive; font-weight: 700; font-size: 25px; line-height: 30px; }
.nb-recipe li { display: flex; align-items: center; gap: 10px; }
.nb-recipe li::before { content: ""; width: 16px; height: 16px; border: 2.5px solid var(--ink); border-radius: 3px; flex: none; }
.nb-recipe li.done { color: #2e6b3f; }
.nb-recipe li.done::before { background: var(--mustard); box-shadow: inset 0 0 0 2px #fbf4e2; }
.nb-recipe li.done span { text-decoration: line-through 2px; }
.nb-recipe li.extra { color: var(--tomato); }
.nb-recipe li.extra::before { border-color: var(--tomato); }
.tray { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ing {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  min-height: 86px; padding: 6px 2px;
  background: rgba(255, 255, 255, 0.55); border: 2.5px solid rgba(26, 26, 26, 0.15); border-radius: 12px;
  transition: transform 0.16s var(--ease-out), border-color 0.16s, background 0.16s;
}
.ing img { height: 50px; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.2s var(--ease-out); }
.ing span { font-family: var(--label); font-weight: 700; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; text-align: center; }
.ing:active { transform: scale(0.94); }
@media (hover: hover) { .ing:hover img { transform: translateY(-4px) rotate(-5deg); } }
.ing[aria-pressed="true"] { border-color: var(--ink); background: var(--mustard); }
.in-glass { margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.in-list { font-weight: 700; }
.mix-actions { display: flex; gap: 10px; margin-top: 10px; }
.mix-actions .btn { flex: 1; }
.btn {
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--tomato); color: var(--cream);
  font-family: var(--slab); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 22px 8px; min-height: 48px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.big { font-size: 20px; padding: 14px 30px 12px; }

.continue { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--cream); font-family: var(--label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; text-shadow: 0 2px 0 var(--ink); }
.continue p { margin: 0; }
.continue svg { width: 30px; height: 30px; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ---------- reward: full-screen celebration ---------- */
.reward {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  display: grid; place-items: center; padding: 16px;
  background: var(--theme, var(--violet)); color: var(--theme-ink, var(--cream));
  animation: wipe 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes wipe { from { clip-path: circle(0% at 50% 60%); } to { clip-path: circle(150% at 50% 60%); } }
.rays {
  position: absolute; left: 50%; top: 52%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(var(--theme-ray, rgba(255, 255, 255, 0.09)) 0 7.5deg, transparent 7.5deg 15deg);
  animation: spin 22s linear infinite;
}
.reward::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, transparent 30%, rgba(0, 0, 0, 0.35) 100%); }
.reward-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(720px, 100%); }
.reward-kicker { margin: 0; font-family: var(--label); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: clamp(13px, 1.4vw, 16px); animation: rise 0.5s 0.35s var(--ease-out) both; }
.reward-shout {
  margin: 6px 0 0; font-family: var(--slab); font-size: clamp(40px, 8vw, 96px); line-height: 1;
  color: var(--theme-accent, var(--mustard)); text-shadow: 0 5px 0 var(--ink);
  transform: rotate(-4deg); animation: slam 0.55s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes slam { from { transform: scale(2.4) rotate(-12deg); opacity: 0; } }
.dancer { height: clamp(220px, 42vh, 460px); width: auto; margin: 6px 0 0; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.3)); animation: enter 0.7s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes enter { from { transform: translateY(60vh) scale(0.6); } }
.reward-title { margin: 4px 0 2px; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: 1; animation: rise 0.5s 0.7s var(--ease-out) both; }
.reward-ings { margin: 4px 0 0; font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; animation: rise 0.5s 0.8s var(--ease-out) both; }
.reward-note { margin: 10px 0 18px; font-family: var(--label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; opacity: 0.85; animation: rise 0.5s 0.9s var(--ease-out) both; }
.reward .btn { animation: rise 0.5s 1s var(--ease-out) both; }
.particles { position: absolute; inset: 0; pointer-events: none; }
.particles i { position: absolute; top: -40px; animation: fall linear infinite; }
.particles .petal { width: 16px; height: 11px; border-radius: 80% 0 80% 0; background: #ffb7c9; }
.particles .gear { width: 22px; height: 22px; border-radius: 50%; border: 5px dotted #c9c3b0; }
.particles .note { width: 10px; height: 10px; border-radius: 50%; background: var(--cream); box-shadow: 9px -16px 0 -3px var(--cream); }
.particles .star { width: 16px; height: 16px; background: var(--mustard); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.particles .leaf { width: 14px; height: 20px; border-radius: 0 100% 0 100%; background: #3e9b5b; }
.particles .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tomato); }
@keyframes fall { to { transform: translateY(115vh) rotate(540deg); } }

/* ---------- carta ---------- */
.carta { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--violet); padding: clamp(80px, 10vw, 120px) 16px; overflow: hidden; }
.carta::before { content: ""; position: absolute; left: 50%; top: 40%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(rgba(244, 234, 213, 0.05) 0 6deg, transparent 6deg 12deg); animation: spin 60s linear infinite; pointer-events: none; }
.carta-inner { position: relative; }
.carta-inner { max-width: 1240px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0; font-family: var(--label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; color: var(--mustard); }
.carta h2 { margin: 8px 0 6px; font-family: var(--display); font-weight: 900; font-size: clamp(48px, 8vw, 104px); line-height: 1; }
.carta-count { margin: 0 0 36px; font-size: 18px; }
.cards { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.cards li { position: relative; border-radius: 18px; overflow: hidden; border: 4px solid var(--ink); background: var(--ink); aspect-ratio: 720 / 956; }
.cards img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s; }
.cards li:not(.got) img { filter: grayscale(1) brightness(0.35); }
.cards li:not(.got)::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--slab); font-size: 64px; color: var(--cream); opacity: 0.8; }
.credits { margin-top: clamp(36px, 6vh, 64px); display: grid; gap: 6px; }
.credit-line { margin: 0; font-family: var(--label); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; }
.credit-line strong { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0; text-transform: none; color: var(--mustard); }
.credit-about { max-width: 46ch; margin: 18px auto 0; font-size: 16px; line-height: 1.5; opacity: 0.9; }
.foot { background: var(--ink); text-align: center; padding: 28px 16px; font-family: var(--label); font-size: 13px; letter-spacing: 0.06em; color: #d8cfba; }
.foot p { margin: 0; }

/* ---------- portrait phones / narrow ---------- */
@media (max-aspect-ratio: 1/1) {
  .viewport { background: var(--wood); }
  .hero { position: absolute; left: 16px; right: 16px; top: auto; bottom: 24px; max-width: none; }
  .hero-title { font-size: clamp(40px, 12vw, 72px); }
  .hero-cta { margin-top: 20px; }
  .ui { bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .dialog { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .dialog .next { position: absolute; right: 8px; bottom: 6px; }
  .portrait { width: 72px; height: 72px; }
  .nametag { font-size: 15px; }
  .notebook { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 60svh; transform: none; }
  @keyframes padIn { from { transform: translateY(110%); } }
  .tray { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sound-state, .tool-link { display: none; }
  .brand span { font-size: 11px; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 760px) {
  .ing { min-height: 70px; }
  .ing img { height: 38px; }
  .nb-recipe { font-size: 22px; line-height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .guest.bob { animation: none; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .tools { gap: 8px; }
  .sound { padding: 4px 8px; }
}

/* ---------- station: one bar scene, order + recipe book on the left ---------- */
.station { position: fixed; inset: 0; z-index: 45; overflow: hidden; background: #1c1440; color: var(--ink); animation: fade 0.35s ease-out; }
.st-scene { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); height: max(100vh, 56.25vw); transform: translate(-50%, -50%); container-type: size; }
.work-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.work-glass { position: absolute; left: 62%; bottom: 31.5%; height: 27%; transform: translateX(-50%); }
.work-glass img { position: relative; display: block; height: 100%; width: auto; }
.work-tool { position: absolute; z-index: 2; left: 70%; bottom: 31.5%; height: 24%; width: auto; transform: translateX(-50%); transform-origin: 50% 100%; }
.tech-hint { margin: 0; font-size: 12px; text-align: center; opacity: 0.75; }
.tech button:disabled { opacity: 0.4; cursor: not-allowed; }

.tech button img { filter: drop-shadow(0 0 0 transparent); }
.g-liquid { position: absolute; inset: 0; z-index: 1; opacity: 0.85; mix-blend-mode: multiply;
  -webkit-mask: var(--glass) center bottom / contain no-repeat; mask: var(--glass) center bottom / contain no-repeat;
  background: linear-gradient(transparent calc(var(--top) + (1 - var(--fill)) * (100% - var(--top) - var(--bot))), var(--liq) 0, var(--liq) calc(100% - var(--bot)), transparent 0); }
.g-liquid.pop { animation: slosh 0.35s ease-out; }
@keyframes slosh { 30% { transform: translateY(-2px) scaleY(1.02); } }
.hand { position: absolute; z-index: 3; left: 61.5%; bottom: 49%; height: 34%; width: auto; pointer-events: none; transform-origin: 100% 0; }
.hand.stir { left: 62%; bottom: 36%; height: 40%; translate: -50% 0; }
.hand.shake { left: 62%; bottom: 46%; height: 36%; translate: -50% 0; }
.work-items { position: absolute; inset: 0; }
.item { position: absolute; transform: translateX(-50%); background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.item .ph { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; }
.item img { height: 100%; width: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.18s var(--ease-out); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3)); }
.item:active img { transform: scale(0.94); }
@media (hover: hover) { .item:hover img { transform: translateY(-6px) rotate(-4deg); } }
.item .lbl { opacity: 0; transition: opacity 0.15s; white-space: nowrap; font-family: var(--label); font-weight: 700; font-size: clamp(10px, 1.6cqh, 14px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 0 var(--ink), 0 0 6px var(--ink); }
.item:hover .lbl, .item:focus-visible .lbl, .item.taps .lbl { opacity: 1; }
.pips { display: flex; gap: 3px; }
.pips:not(.has) { visibility: hidden; }
.pips i { width: clamp(8px, 1.3cqh, 12px); height: clamp(8px, 1.3cqh, 12px); border: 2px solid var(--cream); border-radius: 2px; background: rgba(0, 0, 0, 0.35); }
.pips i.on { background: var(--mustard); border-color: var(--ink); }
.item.bottle { bottom: 1%; height: 27%; width: 6.4%; }
.item.recipebook { bottom: 31%; height: 13%; width: 7%; }
.item.recipebook .lbl { opacity: 1; }
.item.extra { bottom: 31%; height: 13%; width: 4.2%; }
.item.extra[data-id="soda"] { height: 22%; width: 3.6%; }
.item.taps { left: auto; right: 1%; top: 28%; width: 17%; height: 38%; transform: none; justify-content: flex-end; }

.st-left { position: absolute; z-index: 5; left: 14px; top: 14px; bottom: 14px; width: clamp(230px, 20vw, 300px); display: flex; flex-direction: column; }
.st-left .clip { flex: 1; overflow: auto; }
.clip { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 12px; background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45); overflow: hidden; }
.st-k { margin: 0; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
#stGuest { display: block; margin-top: 2px; font-family: var(--slab); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.st-face { position: absolute; inset: 13%; border-radius: 50%; border: 4px solid var(--ink); background: var(--mustard) center / cover no-repeat; }
.st-order-pic { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.st-order-pic img { height: clamp(90px, 16vh, 150px); width: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.18)); }
.st-drink { margin: 0; text-align: center; overflow-wrap: anywhere; font-family: var(--slab); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1; color: var(--tomato); }
.st-stars { margin: 0; font-size: 26px; letter-spacing: 4px; color: var(--mustard); text-shadow: 0 2px 0 var(--ink); }
.st-stars .off { color: #cfc6b0; }
.clock { position: relative; width: min(150px, 82%); aspect-ratio: 1; }
.clock svg { display: block; width: 100%; transform: rotate(-90deg); }
.clk-track { fill: none; stroke: #e6dcc4; stroke-width: 9; }
.clk-ring { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; transition: stroke-dashoffset 0.25s linear, stroke 0.3s; }
.clk-ring.low { stroke: var(--tomato); }
.st-time { margin: -6px 0 0; font-family: var(--slab); font-size: 24px; color: var(--tomato); }

.book-modal { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 16px; background: rgba(20, 14, 50, 0.55); animation: fade 0.2s ease-out; }
.book-modal .book { position: relative; width: min(560px, 94vw); height: min(82vh, 780px); animation: bookIn 0.35s cubic-bezier(0.34, 1.3, 0.64, 1); }
@keyframes bookIn { from { transform: translateY(40px) rotate(-3deg) scale(0.9); opacity: 0; } }
.book-close { position: absolute; top: -16px; right: -16px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--tomato); color: var(--cream); font-size: 20px; font-weight: 700; box-shadow: 0 3px 0 var(--ink); }
.book { min-height: 0; display: flex; flex-direction: column; background: repeating-linear-gradient(#fbf4e2 0 29px, #e6dcc4 29px 30px); border: 4px solid var(--ink); border-left-width: 14px; border-radius: 8px 14px 14px 8px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45); padding: 10px 12px 12px; }
.book-tabs { display: flex; gap: 4px; }
.book-tabs button { flex: 1; border: 2.5px solid var(--ink); border-radius: 8px 8px 0 0; padding: 5px 2px 3px; font-family: var(--label); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; min-height: 32px; color: var(--ink); }
.book-tabs button:nth-child(1) { background: #fff8e8; } .book-tabs button:nth-child(2) { background: #f2b731; } .book-tabs button:nth-child(3) { background: #7cc9a0; } .book-tabs button:nth-child(4) { background: #ff9a7a; }
.book-tabs button[aria-selected="true"] { transform: translateY(-3px); box-shadow: 0 3px 0 var(--ink); }
.book-title { margin: 8px 0 4px; text-align: center; font-family: var(--slab); font-weight: 400; font-size: 22px; letter-spacing: 0.08em; color: var(--ink); }
.book-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow: auto; flex: 1; overscroll-behavior: contain; }
.book-list li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; align-items: center; padding: 8px 2px; border-bottom: 2px dashed rgba(26, 26, 26, 0.18); }
.book-list li > img { height: 52px; width: 40px; object-fit: contain; grid-row: span 2; }
.book-list .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.book-list .nm { font-family: var(--slab); font-size: 16px; line-height: 1.1; }
.book-list .how { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 2px 10px 0 4px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--label); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.book-list .how img { height: 20px; width: auto; }
.book-list .how.shake { background: #f2b731; } .book-list .how.stir { background: #7cc9a0; } .book-list .how.build { background: #ff9a7a; }
.book-list .chips { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--label); font-weight: 700; font-size: 12px; }
.book-list .chip { display: inline-flex; align-items: center; gap: 2px; }
.book-list .chip img { height: 24px; width: auto; }

.st-controls { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 10px; border-top: 2px dashed rgba(26, 26, 26, 0.25); }
.st-status { margin: 0; text-align: center; font-size: 14px; font-weight: 700; min-height: 1.3em; }
.tech { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tech button { border: 3px solid var(--ink); border-radius: 999px; background: #fff8e8; padding: 6px 14px 4px; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; min-height: 40px; }
.tech button[aria-checked="true"] { background: var(--teal); color: var(--cream); }
.work-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.work-actions #stServe { grid-column: 1 / -1; }
.work-actions .btn { padding: 8px 6px 6px; font-size: 15px; min-height: 42px; }
.tech button { justify-content: center; }
.btn.light { color: var(--ink); }
.mini { position: absolute; z-index: 6; right: 18px; bottom: 18px; width: clamp(110px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); background: var(--violet); overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }
.mini img { position: absolute; left: 50%; bottom: -4px; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.station.busy .work-items, .station.busy .work-actions, .station.busy .tech { pointer-events: none; opacity: 0.75; }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .st-scene { top: 56px; left: calc(-0.2 * 100vw / 0.8); transform: none; width: calc(100vw / 0.8); height: calc(100vw / 0.8 * 0.5625); }
  .st-left { top: calc(64px + 100vw / 0.8 * 0.5625); bottom: 8px; left: 8px; right: 8px; width: auto; }
  .clip { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 8px 10px; padding: 8px 10px; }
  .st-controls { border-top: 0; padding-top: 0; }
  .tech { grid-template-columns: repeat(3, 1fr); }
  .clip > .st-k { display: none; }
  .clock { width: 58px; flex: none; }
  .st-face { border-width: 3px; }
  .st-time { margin: 0; font-size: 18px; }
  .st-order-pic { flex-direction: row; flex: 1; width: auto; padding: 6px 10px; }
  .st-order-pic img { height: 42px; }
  .st-drink { font-size: 18px; text-align: left; }
  .st-stars { font-size: 16px; letter-spacing: 1px; }
  .st-status { font-size: 13px; }
  .tech button { padding: 4px 8px 2px; min-height: 34px; font-size: 11px; }
  .tech button img { height: 18px; }
  .work-actions .btn { padding: 6px 12px 4px; min-height: 38px; font-size: 14px; }
  .mini { display: none; }
}
@container (max-width: 700px) {
  .item .lbl { display: none; }
  .pips { gap: 2px; }
  .pips i { width: 6px; height: 6px; border-width: 1.5px; }
}
.tech button { display: inline-flex; align-items: center; gap: 6px; }
.tech button img { height: 24px; width: auto; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .st-left { bottom: auto; }
  .st-left .clip { flex: none; }
}

.cards li .badge { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px 1px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mustard); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; }
.cards li .badge.soft { background: var(--cream); font-size: 10px; }
.cards li.perfect { box-shadow: 0 0 0 4px var(--mustard), 0 0 24px rgba(242, 183, 49, 0.6); }

/* utensils under the bartender: the final serve actions */
.mini { bottom: 150px !important; }
.tech.tools { position: absolute; z-index: 6; right: 12px; bottom: 14px; display: flex; gap: 10px; grid-template-columns: none; }
.tech.tools button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 78px; }
.tech.tools .tool-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.45); transition: transform 0.15s var(--ease-out), background 0.15s; }
.tech.tools .tool-ic img { height: 52px; width: auto; }
.tech.tools .tool-lb { font-family: var(--label); font-weight: 700; font-size: 11px; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; color: var(--cream); text-shadow: 0 1px 0 var(--ink), 0 0 6px var(--ink); }
.tech.tools button:not(:disabled):hover .tool-ic { transform: translateY(-4px) rotate(-4deg); background: var(--mustard); }
.tech.tools button:disabled { cursor: not-allowed; opacity: 0.45; }
.tech.tools button:focus-visible .tool-ic { outline: 3px solid var(--mustard); outline-offset: 3px; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .tech.tools { position: absolute; left: 8px; right: 8px; bottom: 18px; top: auto; justify-content: space-around; }
  .tech.tools button { width: 96px; }
  .tech.tools .tool-ic { width: 76px; height: 76px; } .tech.tools .tool-ic img { height: 54px; }
  .tech.tools .tool-lb { font-size: 11px; }
  .tech.tools .tool-ic { width: 58px; height: 58px; } .tech.tools .tool-ic img { height: 40px; }
}
/* draft beer taps: colored medallion on each handle + subtle sign */
.item.tap { top: 31%; height: 22%; width: 4.4%; transform: translateX(-50%); justify-content: flex-start; gap: 4px; }
.item.tap .medal { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--tap), 0 3px 0 4px rgba(0, 0, 0, 0.35); display: grid; place-items: center; transition: transform 0.15s var(--ease-out); }
.item.tap .medal img { width: 72%; height: 72%; object-fit: contain; filter: none; }
.item.tap:hover .medal { transform: translateY(-4px) rotate(-6deg); }
.item.tap .lbl { opacity: 1; }
.draft-sign { position: absolute; left: 90.6%; top: 23%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; padding: 3px 12px 1px; border: 2px solid rgba(244, 234, 213, 0.75); border-radius: 6px; font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(14px, 2.6cqh, 24px); color: var(--cream); background: rgba(26, 18, 50, 0.35); pointer-events: none; }

/* end of night: red marquee with yellow bulbs */
.marquee { position: absolute; inset: 14px; border-radius: 24px; pointer-events: none;
  background:
    radial-gradient(circle, #ffe08a 0 5px, rgba(242, 183, 49, 0.55) 6px, transparent 11px) 0 0 / 34px 34px repeat-x,
    radial-gradient(circle, #ffe08a 0 5px, rgba(242, 183, 49, 0.55) 6px, transparent 11px) 0 100% / 34px 34px repeat-x,
    radial-gradient(circle, #ffe08a 0 5px, rgba(242, 183, 49, 0.55) 6px, transparent 11px) 0 0 / 34px 34px repeat-y,
    radial-gradient(circle, #ffe08a 0 5px, rgba(242, 183, 49, 0.55) 6px, transparent 11px) 100% 0 / 34px 34px repeat-y;
  animation: bulbs 1.1s steps(2) infinite; }
@keyframes bulbs { 50% { background-position: 17px 0, 17px 100%, 0 17px, 100% 17px; filter: brightness(1.2); } }
.carta .eyebrow { color: #ffe08a; }
.night { margin: 10px auto 26px; }
.night-title { margin: 0 0 12px; font-family: var(--label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 14px; color: #ffe08a; }
.night-cards { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.night-cards li { position: relative; width: clamp(110px, 13vw, 170px); }
.night-cards img { width: 100%; border-radius: 14px; border: 4px solid var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35); display: block; }
.night-cards li.miss img { filter: grayscale(1) brightness(0.6); }
.night-cards .ns { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px 1px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mustard); color: var(--ink); font-family: var(--label); font-weight: 700; font-size: 12px; }
.night-cards li.miss .ns { background: var(--cream); }
.carta-next { margin: -20px 0 30px; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.4vw, 30px); color: #ffe08a; }
.card-fly { position: fixed; z-index: 60; border-radius: 14px; border: 4px solid var(--ink); }
.cards li.got img { filter: none; }

.host { width: clamp(150px, 18vw, 230px); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; position: relative; background: radial-gradient(circle at 50% 40%, #fff3c8, #f2b731); border: 5px solid var(--ink); box-shadow: 0 0 0 6px #ffe08a, 0 10px 0 rgba(0, 0, 0, 0.35); }
.host img { position: absolute; left: 50%; bottom: -4px; height: 104%; width: auto; transform: translateX(-50%); }
.carta.seen .host { animation: hostPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes hostPop { from { transform: scale(0.3) rotate(-12deg); opacity: 0; } }

/* taps are drawn in the background; buttons are invisible hit areas */
.item.tap { top: 27% !important; height: 40%; width: 4.6%; justify-content: flex-end; }
.item.tap .tap-hit { flex: 1; width: 100%; border-radius: 12px; transition: background 0.15s; }
.item.tap:hover .tap-hit, .item.tap:focus-visible .tap-hit { background: rgba(255, 224, 138, 0.18); box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.6); }
.item.tap .lbl { opacity: 0; } .item.tap:hover .lbl { opacity: 1; }
.draft-sign { border: 0 !important; background: none !important; color: #3a2210 !important; text-shadow: none; }

.item.tap { top: 30% !important; height: 28%; width: 4.2%; }
.draft-sign { left: 91.2%; top: 24.6%; transform: translateX(-50%); font-size: clamp(12px, 2.3cqh, 22px); }
/* order card hugs its content instead of filling the height */
.st-left { bottom: auto !important; }
.st-left .clip { flex: none !important; }
.st-controls { margin-top: 10px !important; }

/* wider, compact order card + the recipe book lying below it */
.st-left { width: clamp(280px, 25vw, 380px) !important; gap: 14px; }
.st-left .clip { display: grid !important; grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: 6px 14px; padding: 14px 16px; }
.st-left .clip > .st-k { grid-column: 1 / -1; text-align: center; }
.st-left .clock { width: 104px; grid-row: span 2; }
.st-left .st-time { margin: 0; align-self: end; font-size: 26px; }
.st-left .st-order-pic { grid-column: 2; flex-direction: row; justify-content: flex-start; padding: 0; }
.st-left .st-order-pic img { height: 72px; }
.st-left .st-drink { text-align: left; font-size: clamp(20px, 1.7vw, 26px); }
.st-left .st-controls { grid-column: 1 / -1; }
.big-book { all: unset; cursor: pointer; position: relative; display: grid; place-items: center; padding: 6px 0 14px; transition: transform 0.2s var(--ease-out); }
.big-book img { width: 82%; height: auto; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.35)); transform: rotate(-6deg); }
.big-book span { position: absolute; bottom: 4px; font-family: var(--label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; color: var(--cream); text-shadow: 0 1px 0 var(--ink), 0 0 8px var(--ink); }
.big-book:hover { transform: translateY(-6px) rotate(2deg); }
.big-book:focus-visible img { outline: 3px solid var(--mustard); outline-offset: 6px; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .st-left { width: auto !important; }
  .st-left .clock { width: 58px; }
  .big-book { position: absolute; right: 10px; bottom: -120px; width: 110px; }
}
.st-left .clip { grid-template-columns: auto 1fr; padding: 18px 18px 16px; }
.st-left .clock { width: clamp(110px, 9vw, 140px); }
.st-left .st-time { font-size: clamp(26px, 2.4vw, 34px); }
.st-left .st-order-pic img { height: clamp(80px, 9vh, 110px); }
.st-left .st-drink { font-size: clamp(22px, 2vw, 30px); }
.big-book { margin-top: 8px; }
.big-book img { width: 74%; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .st-left .clock { width: 72px; }
  .st-left .st-order-pic img { height: 54px; }
  .big-book { position: static; width: auto; justify-self: center; }
  .big-book img { width: 120px; }
}
.st-left .st-order-pic { flex-direction: column; align-items: center; }
.st-left .st-drink { text-align: center; overflow-wrap: normal; word-break: keep-all; font-size: clamp(18px, 1.6vw, 26px); }
@media (max-width: 900px), (max-aspect-ratio: 1/1) { .st-left .st-order-pic { flex-direction: row; } .st-left .st-drink { text-align: left; } }

/* liquid: inner bowl only, translucent with a lighter surface line */
.g-liquid { opacity: 0.78; mix-blend-mode: multiply;
  background: linear-gradient(transparent calc(var(--top) + (1 - var(--fill)) * (100% - var(--top) - var(--bot))), rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) calc(var(--top) + (1 - var(--fill)) * (100% - var(--top) - var(--bot)) + 3px), var(--liq) 0) !important; }
.g-liquid[hidden] { display: none; }
.book-tabs button:nth-child(5) { background: #e8a93a; }
.book-tabs button { font-size: 10px; }

/* La carta: same rotating rays as before, now red with yellow rays */
/* same violets as the bar wallpaper */
.carta { background: rgb(67, 41, 146); }
.carta::before { background: repeating-conic-gradient(rgb(55, 33, 122) 0 6deg, transparent 6deg 12deg) !important; }
.marquee { display: none; }

.brand-logo { width: 36px; height: 36px; display: block; }
/* the countdown number is enough: no progress ring around the face */
.clock svg { display: none; }
.st-face { inset: 0 !important; }

/* ---- night flow ---- */
.hero { transition: opacity 0.6s ease, visibility 0.6s; }
.hero.hidden { opacity: 0; visibility: hidden; }
.viewport::after { content: ""; position: absolute; inset: 0; z-index: 15; pointer-events: none; background: radial-gradient(22% 34% at 44% 32%, rgba(10, 6, 30, 0.5), rgba(5, 3, 15, 0.88) 100%); opacity: 0; transition: opacity 1.4s ease; }
.viewport.lights-off::after { opacity: 1; }
.continue { cursor: pointer; }
/* shake / stir happen over the tool, beside the glass, never inside the empty glass */
.work-tool { display: block !important; left: 75% !important; bottom: 31.5% !important; height: 22% !important; }
.work-tool[hidden] { display: none !important; }
.hand.stir, .hand.shake { left: 75% !important; translate: -50% 0; }
.hand.stir { bottom: 36% !important; }
.hand.shake { bottom: 40% !important; }

/* ---------- entry gate + guIA NecTeon brand intro (same family as the other NecTeon pages) ---------- */
@property --intro-reveal { syntax: '<percentage>'; inherits: false; initial-value: 32.2%; }
.gate { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 45%, rgba(75, 59, 196, 0.45), transparent 60%), #120c26; color: var(--cream); transition: opacity 0.45s ease; }
.gate.closing { opacity: 0; pointer-events: none; }
.gate-card { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 440px; animation: rise 0.6s var(--ease-out) both; }
.gate-logo { width: 96px; height: 96px; }
.gate-title { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.gate-copy { margin: 0; font-size: 16px; opacity: 0.85; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.gate-mute { color: var(--cream) !important; border-color: var(--cream) !important; }
/* bar intro: the logo powers on like a neon sign, then a 1950s cartoon iris opens onto the bar */
@property --iris { syntax: "<length>"; inherits: false; initial-value: 0px; }
.brand-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at center, #1d1440 0%, #0d081c 70%);
  --iris: 0px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  mask-image: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  transition: --iris 900ms 300ms cubic-bezier(0.7, 0, 0.3, 1); }
.bi-stage { width: min(78vw, 520px); transition: opacity 320ms ease, transform 320ms ease; }
.bi-logo { display: block; width: 100%; height: auto; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, #000 var(--intro-reveal), transparent calc(var(--intro-reveal) + 6%));
  mask-image: linear-gradient(90deg, #000 var(--intro-reveal), transparent calc(var(--intro-reveal) + 6%));
  --intro-reveal: 32.2%; transform: translateX(34.13%);
  transition: --intro-reveal 800ms cubic-bezier(0.45, 0, 0.25, 1), transform 800ms cubic-bezier(0.45, 0, 0.25, 1); }
.bi-glow { opacity: 0; }
.brand-intro[data-phase] .bi-glow { animation: bi-neon 1100ms linear both; }
.brand-intro[data-phase="word"] .bi-logo, .brand-intro[data-phase="exit"] .bi-logo { --intro-reveal: 106%; transform: translateX(0); }
.brand-intro[data-phase="exit"] { --iris: 160vmax; pointer-events: none; }
.brand-intro[data-phase="exit"] .bi-stage { opacity: 0; transform: scale(0.94); }
@keyframes bi-neon {
  0% { opacity: 0; filter: none; }
  8% { opacity: 0.9; filter: drop-shadow(0 0 14px rgba(190, 170, 255, 0.9)); }
  12% { opacity: 0.1; filter: none; }
  20% { opacity: 1; filter: drop-shadow(0 0 18px rgba(190, 170, 255, 0.9)); }
  24% { opacity: 0.25; filter: none; }
  30%, 36% { opacity: 1; filter: drop-shadow(0 0 22px rgba(190, 170, 255, 0.95)); }
  39% { opacity: 0.55; }
  44%, 100% { opacity: 1; filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 16px rgba(170, 150, 255, 0.75)) drop-shadow(0 0 40px rgba(120, 90, 255, 0.45)); }
}
.credit-logo { display: block; margin: 8px auto 0; width: clamp(150px, 16vw, 210px); height: auto; }
@media (prefers-reduced-motion: reduce) { .bi-logo, .bi-stage, .brand-intro { transition: none; } .brand-intro[data-phase] .bi-glow { animation: none; opacity: 1; } }

/* rays must reach the bottom of a tall carta section */
.carta::before { width: 400vmax !important; height: 400vmax !important; margin: -200vmax 0 0 -200vmax !important; }

/* ===================== mobile / portrait pass (single source of truth) ===================== */
@media (max-aspect-ratio: 1/1) {
  /* the wall continues above the stage: no separate brown band */
  .viewport { background:
    repeating-linear-gradient(90deg, rgb(59, 36, 128) 0 calc(var(--stripe, 41px) / 2), rgb(67, 41, 146) calc(var(--stripe, 41px) / 2) var(--stripe, 41px)) !important;
    background-position: var(--stripe-x, 0px) 0 !important; }
  /* hero centred over the counter */
  .hero { left: 16px !important; right: 16px !important; max-width: none !important; text-align: center; bottom: calc(100% - var(--counter-y, 60vh) - 150px) !important; }
  .hero-title { font-size: clamp(44px, 13vw, 72px) !important; }
  .hero-cta { justify-content: center; }
  /* dialogue floats over the lower stage */
  .ui { bottom: max(14px, env(safe-area-inset-bottom)) !important; }
  .dialog { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }

  /* ---- station ---- */
  .station { --sw: calc(100vw / 0.78); --sh: calc(100vw / 0.78 * 0.5625); }
  .st-scene { top: calc(52px - var(--sh) * 0.16) !important; left: calc(var(--sw) * -0.19) !important; width: var(--sw) !important; height: var(--sh) !important; transform: none !important; }
  .work-items .item:not(.tap):not(.recipebook) { scale: 1.28; transform-origin: 50% 100%; }
  .work-items .item.tap { scale: 1.15; transform-origin: 50% 0; }
  .st-left { top: calc(52px + var(--sh) * 0.84 + 10px) !important; left: 10px !important; right: 10px !important; bottom: auto !important; width: auto !important; gap: 0 !important; }
  .st-left .clip { position: relative; display: grid !important; grid-template-columns: 52px 1fr; align-items: center; gap: 2px 10px !important; padding: 10px 76px 10px 12px !important; }
  .st-left .clock { width: 52px !important; grid-row: 1 / span 2; }
  .st-left .st-time { font-size: 15px !important; margin: 0; line-height: 1; }
  .st-left .st-order-pic { flex-direction: row !important; align-items: center; gap: 8px; padding: 0 !important; }
  .st-left .st-order-pic img { height: 34px !important; }
  .st-left .st-drink { font-size: 17px !important; text-align: left !important; }
  .st-left .st-controls { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
  .st-left .st-status { flex: 1; margin: 0; font-size: 12px; line-height: 1.25; }
  .st-left .work-actions .btn { min-height: 32px; padding: 4px 12px 2px; font-size: 12px; }
  .big-book { position: absolute !important; right: 18px; top: 8px; width: 62px !important; margin: 0 !important; z-index: 2; }
  .big-book img { width: 100% !important; }
  .big-book span { display: none !important; }
  .tech.tools { left: 10px !important; right: 10px !important; bottom: max(14px, env(safe-area-inset-bottom)) !important; justify-content: space-between !important; gap: 8px; }
  .tech.tools button { width: auto !important; flex: 1; padding: 6px 0; }
  .tech.tools .tool-ic { width: 60px !important; height: 60px !important; }
  .tech.tools .tool-ic img { height: 42px !important; }
}

/* empty stools in front of the counter; the guest's own stool replaces stool A while seated */
.stool { position: absolute; z-index: 4; bottom: 18px; height: 205px; width: auto; transform: translateX(-50%); pointer-events: none; }
.stool.taken { visibility: hidden; }
@media (max-aspect-ratio: 1/1) {
  /* station below the scene: same wood as the counter, tools right under the order card */
  .station { background: linear-gradient(#5a2a14, #3a1a0c 60%, #2a1208) !important; }
  .tech.tools { top: calc(52px + var(--sh) * 0.84 + 168px) !important; bottom: auto !important; }
  .tech.tools .tool-lb { color: var(--cream); }
}
@media (max-aspect-ratio: 1/1) {
  /* phone hero: title and button up top, under the menu bar */
  .hero { top: calc(64px + env(safe-area-inset-top)) !important; bottom: auto !important; }
}

/* the painting the painter admires: hangs just behind Mr. Bartini (desktop); phones keep the wall clear for the title */
.wall-art { position: absolute; z-index: 1; left: 700px; top: 40px; width: 213px; height: auto; filter: drop-shadow(8px 9px 0 rgba(20, 10, 50, 0.45)); pointer-events: none; }
@media (max-aspect-ratio: 1/1) { .wall-art { display: none; } }

.hero-sub { margin: 14px 0 0 !important; max-width: 30ch; font-family: var(--body, "Roboto Slab", serif) !important; font-style: normal !important; letter-spacing: 0 !important; font-size: clamp(15px, 1.25vw, 19px) !important; line-height: 1.45; color: var(--cream); text-shadow: 0 1px 0 #1a1033, 0 0 12px rgba(20, 10, 50, 0.7); text-wrap: pretty; }
@media (max-aspect-ratio: 1/1) { .hero-sub { margin: 8px auto 0 !important; font-size: 15px !important; } }

/* ===================== phone station: order bar · counter window · back-bar shelves · techniques ===================== */
.tap-ic { display: none !important; }
@media (max-aspect-ratio: 1/1) {
  .station { --top: max(10px, env(safe-area-inset-top)); --order: 70px; --sw: calc(100vw * 1.3); --sh: calc(var(--sw) * 0.5625);
    --win: calc(var(--sh) * 0.6); --tools: 92px; }
  /* order bar */
  .st-left { top: var(--top) !important; left: 10px !important; right: 10px !important; height: var(--order); }
  .st-left .clip { height: 100%; box-sizing: border-box; grid-template-columns: 48px auto 1fr !important; grid-template-rows: 1fr !important; padding: 8px 92px 8px 10px !important; gap: 0 10px !important; }
  .st-left .clock { width: 48px !important; grid-row: 1 !important; }
  .st-left .st-time { grid-column: 2; font-size: 17px !important; }
  .st-left .st-order-pic { grid-column: 3; min-width: 0; }
  .st-left .st-order-pic img { height: 38px !important; }
  .st-left .st-drink { font-size: 17px !important; line-height: 1.05; }
  .st-left .st-controls { display: none !important; }
  .big-book { right: 12px !important; top: -4px !important; width: 82px !important; }
  .big-book span { display: none !important; }
  /* counter window: the real scene, scaled and cropped, so glass, hand and pours stay where desktop puts them */
  .st-scene { left: calc(50vw - var(--sw) * 0.62) !important; top: calc(var(--top) + var(--order) + 8px - var(--sh) * 0.14) !important;
    width: var(--sw) !important; height: var(--sh) !important; transform: none !important; clip-path: inset(14% 0 26% 0); }
  /* back-bar shelves (the item buttons are moved out of the scene by JS on phones) */
  .station > .work-items { position: absolute; z-index: 4; left: 8px; right: 8px; top: calc(var(--top) + var(--order) + 16px + var(--win)); bottom: calc(var(--tools) + 8px);
    display: grid; grid-template-columns: repeat(42, 1fr); grid-template-rows: 1.45fr 1fr 0.9fr; column-gap: 0; row-gap: 10px; }
  .station > .work-items .item { position: relative; left: auto; top: auto; bottom: auto; width: auto; height: auto; transform: none; min-height: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 2px 16px;
    background: linear-gradient(transparent calc(100% - 13px), #1a0c05 calc(100% - 13px), #1a0c05 calc(100% - 11px), #9a5426 calc(100% - 11px), #6b3417); }
  .station > .work-items .item.bottle { grid-column: span 6; }
  .station > .work-items .item.extra { grid-column: span 7; }
  .station > .work-items .item.tap { grid-column: span 14; }
  .station > .work-items .item:first-child { border-radius: 0; }
  .station > .work-items .item .ph { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
  .station > .work-items .item .ph img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  .station > .work-items .item.bottle .ph img { max-height: 104px; }
  .station > .work-items .item.extra .ph img { max-height: 58px; }
  .station > .work-items .item.tap .ph img { max-height: 44px; }
  .station > .work-items .item .lbl { display: block !important; opacity: 1 !important; font-size: 9.5px !important; letter-spacing: 0.03em; }
  .station > .work-items .item.tap .tap-hit, .station > .work-items .item.tap .medal { display: none !important; }
  .station > .work-items .tap-ic { display: flex !important; }
  .station > .work-items .item.tap .ph { position: relative; }
  .station > .work-items .item.tap .ph::after { content: ""; position: absolute; bottom: -3px; left: 50%; width: 30px; height: 4px; translate: -50% 0; border-radius: 2px; background: var(--tap); }
  .station > .work-items .draft-sign, .station > .work-items .item.recipebook { display: none !important; }
  .station > .work-items .pips { gap: 2px; } .station > .work-items .pips i { width: 6px; height: 6px; }
  .station > .work-items .item:active .ph img { transform: scale(0.92); }
  /* techniques */
  .tech.tools { top: auto !important; bottom: max(10px, env(safe-area-inset-bottom)) !important; height: var(--tools); align-items: center; }
  .tech.tools .tool-ic { width: 58px !important; height: 58px !important; }
  .tech.tools .tool-ic img { height: 40px !important; }
  /* phone hero: left aligned, vertically centred on the wall above the counter */
  .hero { top: calc((64px + var(--counter-y, 60vh)) / 2) !important; bottom: auto !important; transform: translateY(-50%); text-align: left !important; left: 18px !important; right: auto !important; max-width: 64% !important; }
  .hero-title { font-size: clamp(40px, 11.5vw, 60px) !important; }
  .hero-sub { margin: 10px 0 0 !important; font-size: 14px !important; max-width: 24ch; }
  .hero-cta { justify-content: flex-start !important; }
}
@media (max-aspect-ratio: 1/1) {
  .station > .work-items { grid-template-columns: repeat(42, minmax(0, 1fr)) !important; grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.85fr) !important; }
  .station > .work-items .item { min-width: 0; overflow: hidden; }
  .station > .work-items .item .lbl { max-width: 100%; overflow: hidden; text-overflow: clip; font-size: 9px !important; letter-spacing: 0 !important; }
  .station > .work-items .item.tap .ph::after { display: none; }
  .station > .work-items .item.tap .lbl { color: var(--tap); filter: brightness(1.6); }
  .hero { max-width: 72% !important; }
}
@media (max-aspect-ratio: 1/1) {
  .station > .work-items .item { scale: none !important; }
  .station > .work-items { grid-template-rows: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) !important; }
  .station > .work-items .item.bottle .ph img { max-height: 96px; }
  .station > .work-items .item.tap .ph img { max-height: 64px !important; }
  .station > .work-items .item.tap .lbl { font-size: 11px !important; }
  /* hero: left aligned, a bit smaller, sitting lower on the wall */
  .hero { top: 40% !important; left: 18px !important; max-width: 62% !important; transform: translateY(-50%) !important; }
  .hero-title { font-size: clamp(34px, 9.6vw, 52px) !important; white-space: nowrap; }
  .hero-sub { font-size: 13.5px !important; max-width: 22ch; }
  .play { min-height: 40px; padding: 7px 16px 6px 10px; font-size: 12px; }
}
/* overflow:hidden still lets focus scroll the station sideways; clip never scrolls */
.station { overflow: clip; }
@media (max-aspect-ratio: 1/1) {
  .station > .work-items .item.tap[data-id="stout"] .lbl { color: var(--cream); filter: none; }
}
@media (max-aspect-ratio: 1/1) {
  /* the desktop scene positions each item with an inline left: cancel it on the shelves */
  .station > .work-items .item { left: auto !important; top: auto !important; bottom: auto !important; right: auto !important; transform: none !important; }
}
@media (max-aspect-ratio: 1/1) {
  /* back-bar wall: dark wood boards, and one continuous shelf per row */
  .station { background:
      linear-gradient(rgba(0, 0, 0, 0.25), transparent 30%, rgba(0, 0, 0, 0.35)),
      repeating-linear-gradient(90deg, #4a2412 0 54px, #3e1d0e 54px 56px, #45220f 56px 110px, #3a1b0c 110px 112px) !important; }
  .station > .work-items .item { padding: 0 0 18px !important;
    background: linear-gradient(transparent calc(100% - 16px), #e0a05a calc(100% - 16px), #e0a05a calc(100% - 13px), #a85a26 calc(100% - 13px), #7a3c18 calc(100% - 4px), rgba(0, 0, 0, 0.35) calc(100% - 4px)) !important; }
  .station > .work-items .item .ph img { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
  .station > .work-items .item .lbl { color: var(--cream); text-shadow: 0 1px 0 #000; }
}

/* closing pose: the chain hangs from the lamp shade, so crop the sprite there */
.bartender.on-chain { clip-path: inset(26.5% 0 0 0); }
/* lights off: the whole room goes dark */
.viewport::after { background: rgba(8, 4, 22, 0.86) !important; }
/* once the bar is closed the menu is the page: no way back up */
body.bar-closed .bar { display: none; }
.carta-next { white-space: pre-line; text-wrap: balance; }
.mini img { bottom: -12% !important; height: 108% !important; }
@media (max-aspect-ratio: 1/1) { .hero { top: 33% !important; } }

/* the brand always reads "Mr. Bartini", phones included */
@media (max-width: 480px) { .brand span { display: inline !important; font-size: 11px; } }
@media (max-aspect-ratio: 1/1) { .hero { max-width: 58% !important; } }
@media (max-aspect-ratio: 1/1) {
  /* order card: [big guest face][drink + name] ........ [time] */
  .station { --order: 84px; }
  .st-left .clip { grid-template-columns: 66px 1fr auto !important; padding: 8px 14px 8px 10px !important; gap: 0 12px !important; }
  .st-left .clock { width: 66px !important; grid-column: 1 !important; grid-row: 1 !important; }
  .st-left .st-order-pic { grid-column: 2 !important; grid-row: 1 !important; }
  .st-left .st-order-pic img { height: 46px !important; }
  .st-left .st-drink { font-size: 18px !important; }
  .st-left .st-time { grid-column: 3 !important; grid-row: 1 !important; font-size: 22px !important; justify-self: end; }
  /* recipe book lies on the counter, left of the glass */
  .big-book { position: fixed !important; right: auto !important; left: 18px !important; top: calc(var(--top) + var(--order) + 8px + var(--win) * 0.5) !important; width: 72px !important; z-index: 6; transform: rotate(-8deg); }
}
@media (max-aspect-ratio: 1/1) {
  .station > .big-book { position: absolute !important; left: 16px !important; right: auto !important; top: calc(var(--top) + var(--order) + 8px + var(--win) * 0.42) !important; width: 70px !important; z-index: 6; transform: rotate(-8deg); }
}
@media (max-aspect-ratio: 1/1) { .station > .big-book { bottom: auto !important; height: auto !important; padding: 0 !important; } }

/* entry gate: the bar itself, dimmed, behind a marquee card */
.gate { background: linear-gradient(rgba(14, 8, 34, 0.55), rgba(14, 8, 34, 0.82)), url("assets/bg/bar-flat.webp") 62% 72% / cover no-repeat, #120c26 !important; }
.gate-card { position: relative; padding: 34px 40px 26px; border-radius: 28px; background: rgba(22, 13, 52, 0.72); border: 3px solid rgba(244, 234, 213, 0.85); box-shadow: 0 0 0 6px rgba(242, 183, 49, 0.35), 0 18px 0 rgba(0, 0, 0, 0.35); backdrop-filter: blur(2px); }
.gate-card::before { content: ""; position: absolute; inset: -14px; border-radius: 34px; pointer-events: none;
  background: radial-gradient(circle, #ffe08a 0 3px, rgba(242, 183, 49, 0.5) 4px, transparent 7px) 0 0 / 26px 26px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 8px; animation: bulbs 1.2s steps(2) infinite; }
.gate-logo { width: 120px; height: 120px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); animation: gate-bob 2.6s ease-in-out infinite; }
@keyframes gate-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.gate-title { font-family: "Limelight", var(--display) !important; font-weight: 400 !important; font-size: clamp(40px, 6vw, 60px) !important; -webkit-text-stroke: 0.08em #1a1033; paint-order: stroke fill; text-shadow: 0.06em 0.07em 0 #1a1033; }
.gate-actions { flex-direction: column; align-items: center; gap: 10px; }
.gate-play { min-width: 200px; font-size: 20px !important; padding: 12px 28px 10px !important; background: var(--mustard) !important; color: var(--ink) !important; border: 3px solid var(--ink) !important; box-shadow: 0 6px 0 var(--ink); }
.gate-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.gate-quiet { all: unset; cursor: pointer; font-family: var(--label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); opacity: 0.7; text-decoration: underline; text-underline-offset: 3px; }
.gate-quiet:hover, .gate-quiet:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gate-logo, .gate-card::before { animation: none; } }
/* recipe book: tabs never run under the close button */
.book-tabs { padding-right: 56px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.book-tabs::-webkit-scrollbar { display: none; }
.book-close { z-index: 3; }
@media (max-aspect-ratio: 1/1) {
  .book-tabs { gap: 4px !important; }
  .book-tabs button { padding: 5px 7px 3px !important; font-size: 10px !important; letter-spacing: 0.04em !important; }
  /* book lies flat on the counter, bigger */
  .station > .big-book { width: 96px !important; transform: rotate(-4deg) !important; top: calc(var(--top) + var(--order) + 8px + var(--win) * 0.5) !important; left: 12px !important; }
  .station > .big-book img { filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.45)) !important; transform: none !important; }
}
@media (max-aspect-ratio: 1/1) { .book-tabs { flex-wrap: wrap !important; overflow: visible !important; padding-right: 40px !important; row-gap: 4px !important; } }
/* menu rays: pinned to the screen (a sunburst behind whatever is on view), clipped to the menu section */
.carta { clip-path: inset(0); }
.carta::before { position: fixed !important; left: 50% !important; top: 42% !important; width: 260vmax !important; height: 260vmax !important; margin: -130vmax 0 0 -130vmax !important; }

.credits { display: grid; justify-items: center; gap: 18px; }
.credit-line { margin: 0 !important; display: grid; justify-items: center; gap: 6px; }
.credit-dev { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); color: var(--mustard); text-decoration: none; letter-spacing: 0; text-transform: none; }
.credit-dev:hover, .credit-dev:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.credit-about { margin-top: 6px !important; }

/* recipe book index */
.book-list.index { display: grid; gap: 14px; }
.book-list.index li { display: block !important; border: 0 !important; padding: 0 !important; }
.ix-hint { font-family: "Caveat", cursive; font-size: 20px; text-align: center; opacity: 0.75; }
.ix-group h5 { margin: 0 0 6px; padding: 2px 12px 0; display: inline-block; border: 2px solid var(--ink); border-radius: 8px 8px 0 0; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.ix-group.shake h5 { background: #f2b731; } .ix-group.stir h5 { background: #7cc9a0; } .ix-group.build h5 { background: #f39a7f; } .ix-group.beer h5 { background: #e2a93b; }
.ix-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; border-top: 2px solid var(--ink); padding-top: 8px; }
.ix-item { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--ink); }
.ix-item img { height: 30px; width: 26px; object-fit: contain; }
.ix-item:hover, .ix-item:focus-visible { background: rgba(242, 183, 49, 0.35); }
.book-list li.flash { animation: ix-flash 1.2s ease-out; }
@keyframes ix-flash { 0%, 40% { background: rgba(242, 183, 49, 0.55); } 100% { background: transparent; } }
@media (max-aspect-ratio: 1/1) { .ix-items { grid-template-columns: 1fr 1fr; } .ix-item { font-size: 13px; } }

/* the served glass always sits in front of the guest */
.glass { z-index: 6 !important; }
@media (max-aspect-ratio: 1/1) { .bartender { left: 875px !important; } .lamp-cone, .bar-lamp { left: 875px; } }

/* stirring happens inside the serving glass */
.hand.stir-in { left: 62%; bottom: 33%; height: 46%; translate: -50% 0; z-index: 3; transform-origin: 50% 100%; }

.hand.stir-in { translate: -42% 0 !important; }
.st-picks { display: none; }
@media (max-aspect-ratio: 1/1) {
  .st-left .st-order-pic { align-items: center; }
  .st-namebox { min-width: 0; display: grid; gap: 3px; }
  .st-picks { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-family: var(--label); font-weight: 700; font-size: 12px; color: var(--ink); line-height: 1; }
  .st-picks .pk { display: inline-flex; align-items: center; gap: 1px; }
  .st-picks .pk img { height: 18px; width: auto; }
  .st-picks .pk-empty { font-weight: 400; font-size: 11px; opacity: 0.65; }
}
