:root{
  --espresso:#14100d;
  --crema-shadow:#6e3b1f;
  --crema:#b4713a;
  --foam:#f7f1e6;
  --steel:#b9bfc6;
  --paper:#ede6da;
  --stamp:#b8342b;

  --s: 380px;
  --ink:#413b33;
  --rail-w: clamp(214px, 22vw, 356px);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.33,.02,.18,1);
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{height:100%;-webkit-tap-highlight-color:transparent}
body{
  margin:0;
  background:#3a3b3d;
  color:var(--foam);
  font-family:'Be Vietnam Pro',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
  user-select:none;
  -webkit-user-select:none;
}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none}
button:focus-visible{outline:2px solid var(--foam);outline-offset:3px}
img{display:block}
.steel-bg{
  position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  pointer-events:none;
}
.shade{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(120% 90% at 18% 6%, rgba(255,255,255,.10), transparent 46%),
    radial-gradient(130% 110% at 50% 50%, transparent 48%, rgba(10,9,8,.42) 100%),
    linear-gradient(180deg, rgba(10,9,8,.16), transparent 22%, transparent 72%, rgba(10,9,8,.30));
}
#app{
  position:relative;z-index:1;
  height:100dvh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
}

/* ---------- top bar ---------- */
.topbar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:2vw;
  padding:clamp(8px,1.6vh,18px) clamp(14px,2.4vw,34px) 0;
  position:relative;z-index:30;
}
.brand{display:flex;align-items:center;gap:clamp(8px,1vw,14px);min-width:0}
.mark{
  width:clamp(26px,4vh,44px);height:auto;flex:none;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.5));
}
.brand h1{
  margin:0;font-family:'Fraunces',Georgia,serif;font-weight:600;
  font-size:clamp(22px,3.6vh,44px);line-height:1;letter-spacing:.005em;
  color:var(--foam);
  text-shadow:0 1px 0 rgba(0,0,0,.22),0 5px 16px rgba(0,0,0,.5);
  white-space:nowrap;
}
.tabs{display:flex;align-items:baseline;gap:clamp(7px,.8vw,14px);padding-top:clamp(2px,.7vh,10px);flex:none}
.tab{
  font-family:'Fraunces',Georgia,serif;font-weight:500;
  font-size:clamp(12px,2vh,20px);
  color:rgba(247,241,230,.42);
  text-shadow:0 2px 6px rgba(0,0,0,.45);
  transition:color .5s ease, opacity .5s ease;
  letter-spacing:.01em;
}
.tab.active{color:var(--foam)}
.tabsep{color:rgba(247,241,230,.24);font-size:clamp(11px,1.8vh,17px);font-family:'Fraunces',serif}

/* ---------- layout ---------- */
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--rail-w);
  min-height:0;
  padding:0 clamp(10px,1.6vw,26px) 0 clamp(6px,1vw,18px);
}
.workzone{
  position:relative;min-height:0;min-width:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  padding:clamp(2px,.6vh,8px) 0 clamp(2px,.6vh,8px);
}
.work{
  position:relative;
  width:calc(var(--s) * 1.85);
  height:calc(var(--s) * 1.28);
  flex:none;
  isolation:isolate;
}
.mat{position:absolute;inset:0;filter:drop-shadow(0 10px 18px rgba(15,12,10,.34))}
.mat > img{width:100%;height:100%;object-fit:fill;border-radius:2px}
.tape{
  position:absolute;display:block;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, rgba(120,104,80,.05) 3px 6px),
    linear-gradient(180deg, rgba(226,211,183,.94), rgba(209,192,160,.88));
  box-shadow:0 2px 3px rgba(20,16,13,.25), inset 0 0 0 1px rgba(255,255,255,.25);
  border-radius:1px;
  mix-blend-mode:multiply;
  opacity:.92;
}
.tape-a{
  width:17%;height:5.2%;
  left:1.4%;top:1.2%;
  transform:rotate(-29deg) translate(-8%,-40%);
  transform-origin:left top;
}
.tape-b{
  width:15%;height:5%;
  right:2%;bottom:2.6%;
  transform:rotate(-31deg) translate(10%,40%);
  transform-origin:right bottom;
}

.circle{
  position:absolute;
  left:calc(var(--s) * .425);
  top:calc(var(--s) * .11);
  width:var(--s);height:var(--s);
  border-radius:50%;
}
.guide{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:1;
  opacity:1;transition:opacity .8s ease;
}
.guide .wheel{fill:none;stroke:#7d7466}
.guide .wheel-dot{stroke-dasharray:2 10;opacity:.6;stroke-width:3.4}
.guide .wheel-spoke{stroke-dasharray:9 9;opacity:.32;stroke-width:2.8}
.guide .wheel-cross{opacity:.38;stroke-width:2.8}
.guide .wheel-tick{opacity:.46;stroke-width:3}
.guide .wheel-hub{fill:#7d7466;opacity:.4;stroke:none}
.guide .sten{fill:none;stroke:#665e52;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .45s ease}
.guide .sten.on{opacity:.26}
.guideimg{
  position:absolute;left:50%;top:50%;max-width:62%;max-height:62%;
  transform:translate(-50%,-50%);opacity:0;
  transition:opacity .45s ease;pointer-events:none;z-index:1;
  filter:grayscale(1) brightness(.9);
}
.guideimg.on{opacity:.3}

.empty{
  position:absolute;left:0;right:0;top:70%;
  text-align:center;
  font-size:clamp(10px,1.5vh,14px);
  letter-spacing:.05em;
  color:#5d5548;opacity:.62;
  pointer-events:none;z-index:2;
  transition:opacity .35s ease;
}
.empty.hide{opacity:0}

.layer{
  position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%) scale(1);
  pointer-events:none;
  will-change:transform,opacity;
}
.saucer{width:130%;opacity:0;z-index:2}
.crema{width:100%;opacity:0;z-index:3}
.draw{
  position:fixed;inset:0;width:100%;height:100%;
  z-index:4;
  touch-action:none;
  cursor:none;
  transition:filter .35s ease;
}
.draw.soft{filter:blur(.45px)}
.milk{
  width:34%;height:auto;left:52%;top:50%;
  z-index:5;opacity:0;
  transform:translate(-50%,-50%) scale(1);
  filter:drop-shadow(0 2px 4px rgba(20,16,13,.35));
}
.rim{width:118%;z-index:6;opacity:0;filter:drop-shadow(0 4px 7px rgba(20,16,13,.22))}
.spec{
  position:absolute;inset:-4%;border-radius:50%;
  z-index:5;opacity:0;pointer-events:none;
  background:linear-gradient(116deg, transparent 36%, rgba(255,255,255,.42) 45%, rgba(255,255,255,.10) 53%, transparent 63%);
  mix-blend-mode:screen;
  filter:blur(3px);
  transform:translateX(0);
}
.steam{
  position:absolute;left:47%;top:-2%;width:55%;height:auto;
  z-index:7;opacity:0;pointer-events:none;
  transition:opacity 1.1s ease;
  filter:blur(1.4px);
}
.steam .wisp{
  fill:none;stroke:rgba(255,255,255,.8);stroke-width:6;stroke-linecap:round;
  opacity:0;
}
.steam .w1{animation:rise 8.5s linear infinite}
.steam .w2{animation:rise 10.5s linear infinite 1.8s}
@keyframes rise{
  0%{opacity:0;transform:translateY(14px) scaleX(.96)}
  18%{opacity:.42}
  62%{opacity:.3}
  100%{opacity:0;transform:translateY(-26px) scaleX(1.05)}
}
body[data-mode="real"] .steam{opacity:.7}

.caption{
  position:absolute;left:4%;right:4%;bottom:3.2%;
  margin:0;text-align:center;
  font-size:clamp(10px,1.55vh,15px);
  line-height:1.35;letter-spacing:.01em;
  color:#4e473c;
  pointer-events:none;
  transition:opacity .5s ease, color .5s ease;
  z-index:2;
}
.caption.headline{
  font-family:'Fraunces',Georgia,serif;
  font-weight:500;
  font-size:clamp(13px,2.15vh,21px);
  color:#342e27;
}
body[data-mode="busy"] .caption{opacity:0}

.brush{
  position:absolute;border-radius:50%;
  border:1.5px solid rgba(60,54,46,.75);
  box-shadow:0 0 0 1px rgba(255,255,255,.28) inset;
  transform:translate(-50%,-50%);
  pointer-events:none;z-index:20;opacity:0;
  transition:opacity .16s ease, width .16s ease, height .16s ease;
}
.brush.on{opacity:.85}
.brush.eraser{border-style:dashed;border-color:rgba(184,52,43,.8)}

/* ---------- rail ---------- */
.rail{
  position:relative;z-index:20;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  gap:clamp(4px,1vh,11px);
  min-height:0;overflow-y:auto;
  padding:clamp(2px,.8vh,10px) 0 clamp(2px,.8vh,10px) clamp(4px,.6vw,10px);
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{display:none}
.tools{display:grid;grid-template-columns:1fr 1fr;gap:clamp(4px,.8vh,9px) clamp(6px,1vw,14px);width:100%}
.tool{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  text-align:center;width:auto;min-width:0;
  padding:1px 0;
  opacity:.88;
  transition:opacity .2s ease, transform .12s ease;
}
.tool img{
  width:clamp(38px,6.2vh,60px);height:auto;flex:none;border-radius:50%;
  transition:box-shadow .22s ease, filter .22s ease, transform .12s ease;
  filter:drop-shadow(0 3px 4px rgba(20,16,13,.35));
}
.tool span{
  font-size:clamp(10px,1.7vh,15px);
  font-weight:500;letter-spacing:.01em;
  color:#f0ece5;
  text-shadow:0 1px 2px rgba(0,0,0,.55);
  transition:color .2s ease;
  white-space:nowrap;text-align:center;
}
.tool:hover{opacity:1}
.tool:hover img{filter:brightness(1.07) drop-shadow(0 3px 5px rgba(20,16,13,.4))}
.tool:active img{transform:scale(.97)}
.tool.active{opacity:1}
.tool.active img{
  box-shadow:0 0 0 3px rgba(247,241,230,.95), 0 0 22px rgba(247,241,230,.4);
}
.tool.active span{color:#fffdf8}
.tool[disabled]{opacity:.38;cursor:default}
.tool[disabled]:hover img{filter:drop-shadow(0 3px 4px rgba(20,16,13,.35))}

.foams{
  display:grid;grid-template-columns:repeat(4,1fr);gap:2px clamp(4px,.7vw,10px);
  width:100%;margin-top:clamp(2px,.8vh,8px);
  padding-top:clamp(4px,1.2vh,12px);
  border-top:1px solid rgba(247,241,230,.13);
}
.chip{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  opacity:.86;transition:opacity .2s ease;
}
.chip img{
  width:clamp(38px,6.2vh,62px);height:auto;border-radius:50%;
  transition:box-shadow .22s ease, filter .22s ease, transform .12s ease;
  filter:drop-shadow(0 3px 4px rgba(20,16,13,.4));
}
.chip span{
  font-size:clamp(9px,1.5vh,13px);color:#e9e4dc;
  text-shadow:0 1px 2px rgba(0,0,0,.55);white-space:nowrap;
}
.chip:hover{opacity:1}
.chip:hover img{filter:brightness(1.07) drop-shadow(0 3px 5px rgba(20,16,13,.4))}
.chip:active img{transform:scale(.97)}
.chip.active{opacity:1}
.chip.active img{box-shadow:0 0 0 2px rgba(247,241,230,.9), 0 0 16px rgba(247,241,230,.24)}
.chip.active span{color:#fffdf8}

.stencilblock{width:100%;margin-top:clamp(2px,.6vh,7px)}
.stencils{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(4px,.55vh,7px) clamp(5px,.7vw,9px);
  width:100%;
}
.stencil{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  opacity:.9;transition:opacity .2s ease;
  min-width:0;
}
.stencil img{
  width:100%;max-width:50px;height:auto;border-radius:12%;margin:0 auto;
  transition:box-shadow .22s ease, filter .22s ease, transform .12s ease;
  filter:drop-shadow(0 3px 4px rgba(20,16,13,.38));
}
.stencil span{
  font-size:clamp(8.5px,1.3vh,11.5px);color:#e9e4dc;
  text-shadow:0 1px 2px rgba(0,0,0,.55);white-space:nowrap;text-align:center;
}
.stencil:hover{opacity:1}
.stencil:hover img{filter:brightness(1.05) drop-shadow(0 3px 5px rgba(20,16,13,.42))}
.stencil:active img{transform:scale(.97)}
.stencil.active{opacity:1}
.stencil.active img{box-shadow:0 0 0 2px rgba(247,241,230,.9), 0 0 16px rgba(247,241,230,.22)}
.stencil.active span{color:#fffdf8}
.stencilnote{
  margin:clamp(2px,.5vh,5px) 0 0;
  font-size:clamp(8px,1.2vh,10px);
  letter-spacing:.06em;
  color:rgba(247,241,230,.48);
  text-align:right;
  text-transform:none;
  min-height:1em;
}

/* ---------- techniques ---------- */
.techrow{
  display:flex;align-items:center;gap:clamp(4px,.6vw,8px);
  width:100%;margin-top:clamp(3px,.7vh,8px);
}
.techlabel{
  font-family:'Be Vietnam Pro',system-ui,sans-serif;
  font-size:clamp(8px,1.2vh,10px);
  letter-spacing:.1em;
  color:rgba(247,241,230,.62);
  flex:none;
}
.techniques{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;flex:1;min-width:0}
.tech{
  font-family:'Be Vietnam Pro',system-ui,sans-serif;
  font-size:clamp(8px,1.15vh,10px);font-weight:500;letter-spacing:.01em;
  color:#e9e4dc;white-space:nowrap;text-align:center;
  border:1px solid rgba(247,241,230,.28);
  background:rgba(20,16,13,.16);
  border-radius:999px;padding:.32em .1em .36em;
  transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.tech:hover{border-color:rgba(247,241,230,.55)}
.tech.active{
  background:rgba(247,241,230,.92);color:#2b2620;border-color:transparent;
  box-shadow:0 0 14px rgba(247,241,230,.28);
}

/* ---------- tray footer ---------- */
.tray{
  position:relative;
  height:clamp(84px,11.5vh,120px);
  overflow:hidden;
  z-index:25;
}
.trayimg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:fill;
  pointer-events:none;
}
.tray::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(20,17,14,.35), transparent 18%, transparent 78%, rgba(10,9,8,.35));
}
.ticket{
  position:absolute;z-index:2;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.35));
  transition:transform .25s var(--ease-out), filter .25s ease;
}
.ticket img{width:100%;height:auto}
.ticket:hover{transform:translateY(-2px) rotate(-.4deg)}
.ticket-plain{left:2.1vw;bottom:6%;width:clamp(56px,6.4vw,122px);opacity:.95;cursor:default}
.ticket-stamped{left:calc(2.1vw + clamp(60px,6.8vw,130px));bottom:6%;width:clamp(58px,6.6vw,126px)}
.ticket-count{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-52%);
  font-family:'Space Mono',monospace;font-weight:700;
  font-size:clamp(13px,2.2vh,23px);
  color:var(--stamp);
  opacity:.9;
  letter-spacing:-.02em;
}
.ticket-count.zero{opacity:0}
.ticket-stamped.pulse{animation:ticketpulse .5s var(--ease-out)}
@keyframes ticketpulse{
  0%{transform:translateY(0) scale(1)}
  40%{transform:translateY(-4px) scale(1.05)}
  100%{transform:translateY(0) scale(1)}
}

.actionbar{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  z-index:3;display:flex;align-items:center;justify-content:center;
  width:max-content;max-width:calc(100% - 16px);
}
.btn{
  position:relative;
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  color:var(--foam);
  background:linear-gradient(180deg,#d7dbe0 0%,#b0b6bd 38%,#8b929a 52%,#aab0b7 68%,#c6cbd1 100%);
  border-radius:999px;
  border:1px solid rgba(68,73,79,.9);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.55),
    inset 0 -4px 7px rgba(30,32,35,.35),
    0 5px 0 rgba(40,42,45,.55),
    0 9px 18px rgba(0,0,0,.38);
  text-shadow:0 1px 0 rgba(0,0,0,.28),0 2px 5px rgba(0,0,0,.5);
  transition:filter .25s ease, transform .12s ease, opacity .3s ease, box-shadow .25s ease;
  letter-spacing:.005em;
  white-space:nowrap;
}
.btn-pour{
  font-size:clamp(16px,2.9vh,30px);
  padding:.62em 1.5em .66em;
  min-width:clamp(200px,24vw,370px);
}
.btn-pour::after{
  content:"";position:absolute;left:15%;right:15%;bottom:8px;height:2px;border-radius:2px;
  background:rgba(247,241,230,.92);
  transform:scaleX(var(--auto,0));transform-origin:left center;
  opacity:.8;pointer-events:none;
}
.btn-pour[disabled]::after{opacity:0}
.btn:hover:not([disabled]){filter:brightness(1.05)}
.btn:active:not([disabled]){transform:translateY(3px);box-shadow:
    inset 0 2px 0 rgba(255,255,255,.5),
    inset 0 -3px 6px rgba(30,32,35,.35),
    0 2px 0 rgba(40,42,45,.55),
    0 4px 10px rgba(0,0,0,.4);}
.btn[disabled]{filter:brightness(.72) saturate(.8);opacity:.85;cursor:default;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.done{display:flex;align-items:center;gap:clamp(8px,1vw,14px)}
.btn-save,.btn-revert{
  font-size:clamp(13px,2.25vh,22px);
  padding:.62em 1.35em .66em;
  min-width:clamp(94px,10vw,150px);
}
.btn-revert{
  background:linear-gradient(180deg,#c2c7cc 0%,#9aa1a8 42%,#7c838b 54%,#98a0a7 72%,#b6bcc2 100%);
  color:#3a3733;text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.btn-save{box-shadow:
    inset 0 2px 0 rgba(255,255,255,.6),
    inset 0 -4px 7px rgba(30,32,35,.3),
    0 5px 0 rgba(40,42,45,.5),
    0 9px 18px rgba(0,0,0,.35),
    0 0 0 2px rgba(247,241,230,.55);}
.toast{
  position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);
  margin:0;font-size:12px;letter-spacing:.06em;
  color:var(--foam);background:rgba(20,16,13,.72);
  padding:5px 12px;border-radius:999px;
  opacity:0;transition:opacity .3s ease;pointer-events:none;white-space:nowrap;
  z-index:5;
}
.toast.show{opacity:1}

/* ---------- narrow / portrait ---------- */
@media (max-width: 900px), (max-aspect-ratio: 4/3){
  .topbar{padding:8px 12px 0;align-items:center;gap:10px}
  .brand{gap:6px}
  .mark{width:clamp(20px,3.4vh,28px)}
  .brand h1{font-size:clamp(17px,2.7vh,21px)}
  .tabs{gap:7px;padding-top:0;flex:none;white-space:nowrap}
  .tab{font-size:clamp(10px,1.7vh,14px)}
  .tabsep{font-size:10px}

  .layout{
    grid-template-columns:1fr;
    grid-template-rows:minmax(0,1fr) auto;
    padding:0 8px;
    gap:0;
  }
  .workzone{padding:2px 0 0;overflow:hidden}
  .rail{
    display:grid;grid-template-columns:1fr;
    gap:4px;
    padding:6px 2px 4px;
    margin-top:2px;
    border-top:1px solid rgba(247,241,230,.16);
    overflow:visible;
    justify-content:stretch;
    align-items:start;
  }
  .tools{display:grid;grid-column:1;grid-template-columns:repeat(6,1fr);gap:2px}
  .tool{flex-direction:column;align-items:center;gap:1px;padding:0;text-align:center}
  .tool img{width:clamp(32px,9.6vw,42px)}
  .tool span{font-size:clamp(9px,2.1vw,10.5px);letter-spacing:0}
  .foams{grid-column:1;grid-template-columns:repeat(4,1fr);gap:3px;margin-top:0;padding-top:2px;border-top:0}
  .chip img{width:clamp(34px,10vw,44px)}
  .chip span{font-size:clamp(8px,2vw,10px)}
  .stencilblock{grid-column:1;margin-top:0;display:block;padding-top:2px;border-top:1px solid rgba(247,241,230,.10)}
  .stencils{grid-template-columns:repeat(7,1fr);gap:3px;justify-content:stretch}
  .stencil img{width:100%;max-width:40px;margin:0 auto}
  .stencil span{display:block;font-size:clamp(7.5px,2.1vw,9px)}
  .stencilnote{display:none}
  .techrow{gap:4px;margin-top:2px}
  .techlabel{font-size:7.5px;letter-spacing:.04em}
  .techniques{gap:3px}
  .tech{font-size:clamp(7.5px,1.8vw,9px);padding:.3em .05em .34em}

  .tray{height:clamp(64px,9.8vh,84px)}
  .ticket-plain{display:none}
  .ticket-stamped{left:8px;bottom:12%;width:clamp(54px,13vw,72px)}
  .ticket-count{font-size:clamp(11px,1.9vh,16px)}
  .btn-pour{min-width:0;padding:.62em 1.1em .66em;font-size:clamp(14px,2.4vh,19px)}
  .btn-save,.btn-revert{min-width:0;font-size:clamp(12px,2vh,17px);padding:.6em .95em .64em}
  .done{gap:6px}

  .caption{bottom:2.4%}
}

@media (max-height: 540px) and (min-aspect-ratio: 4/3){
  .topbar{padding:4px 12px 0}
  .mark{width:22px}
  .brand h1{font-size:clamp(18px,4.6vh,26px)}
  .tab{font-size:clamp(11px,2.4vh,15px)}
  .layout{grid-template-columns:minmax(0,1fr) clamp(180px,26vw,250px)}
  .rail{justify-content:flex-start;gap:3px;padding:2px 0 2px 6px}
  .tools{display:grid;grid-template-columns:1fr 1fr;gap:2px 4px}
  .tool{flex-direction:row;gap:5px}
  .tool img{width:clamp(26px,7vh,38px)}
  .tool span{font-size:clamp(8px,1.9vh,10px)}
  .foams{grid-template-columns:repeat(4,1fr);gap:2px;padding-top:3px;margin-top:2px}
  .chip img{width:clamp(28px,7.6vh,40px)}
  .chip span{font-size:8px}
  .stencils{grid-template-columns:repeat(7,1fr);gap:3px}
  .stencil img{width:100%;max-width:38px;margin:0 auto}
  .stencil span{display:none}
  .stencilnote{display:none}
  .tray{height:clamp(62px,15vh,84px)}
  .ticket-stamped{left:10px;bottom:10%;width:clamp(44px,8vw,60px)}
  .ticket-plain{display:none}
  .btn-pour{font-size:clamp(13px,2.9vh,18px);min-width:clamp(160px,22vw,240px)}
  .btn-save,.btn-revert{font-size:clamp(11px,2.3vh,15px);min-width:0}
  .caption{font-size:clamp(9px,2vh,11px)}
  .tech{padding:.32em .04em .36em}
}

@media (prefers-reduced-motion: reduce){
  .steam .wisp{animation:none;opacity:.3}
  .ticket-stamped.pulse{animation:none}
}
