/* 晚些再说 — drink detail. A small painted cup on paper, its two names and the core ingredients. */
.drink-link{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.drink-link:before{content:'';position:absolute;inset:0}
.drink-link>div{min-width:0}
/* The number shares the name's line and sits on its baseline, whatever size either is set at. */
.drink-text{flex:1}
.drink-line{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.drink-line h3{min-width:0}
.drink-number{font-variant-numeric:tabular-nums}
body.detail-mode{display:block;min-height:100svh;background:var(--page)}
.detail-mode .masthead,.detail-mode .page-controls{display:none}
.detail-mode main{display:block;min-height:0}
.drink-detail{display:flex;flex-direction:column;min-height:100svh;padding:max(4px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));color:var(--ink);background:var(--page)}
.drink-detail svg{display:block;overflow:visible}
.icon-button{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--ink);transition:background .25s,opacity .25s}
.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.icon-button:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.icon-button:active{transform:scale(.94)}
.detail-top{display:flex;align-items:center;justify-content:space-between;flex:none;height:52px}
.detail-brand{display:grid;place-items:center;min-width:44px;min-height:44px}
.detail-brand svg{height:28px;width:auto}
/* While switching drinks the outgoing and incoming marks share one cell. */
.detail-brand>svg{grid-area:1/1}
.detail-motion{opacity:.62}
.detail-body{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:460px;margin:0 auto;min-height:0;padding-bottom:4svh}
.drink-stage{position:relative;flex:none;height:clamp(200px,40svh,380px);cursor:default}
.drink-canvas{position:absolute;inset:0;display:block}
.detail-heading{text-align:center;position:relative;z-index:1;margin-top:2px;padding:0 8%;animation:detail-in .6s .08s cubic-bezier(.2,.7,.2,1) both}
.detail-name{margin:0;font-weight:400;font-size:clamp(22px,5.8vw,26px);line-height:1.4;letter-spacing:.09em;outline:none}
.detail-english{margin:4px 0 0;font-size:clamp(14px,3.8vw,15px);line-height:1.35;letter-spacing:.015em;opacity:.6}
/* Two lines are always reserved, so a long list does not push the cup and name up on that one drink. */
.detail-ingredients{margin:18px auto 0;max-width:23em;text-wrap:balance;font-weight:400;font-size:14px;line-height:1.9;letter-spacing:.035em;opacity:.8;min-height:3.8em}
.detail-ingredients .ing{white-space:nowrap}
.detail-ingredients .sep{opacity:.55;margin:0 .1em}
.detail-pager{display:flex;align-items:center;justify-content:space-between;flex:none;height:56px;width:100%;max-width:520px;margin:0 auto}
.detail-step{opacity:.55}.detail-step:hover,.detail-step:focus-visible{opacity:1}
/* Switching drinks: the words slide in from the side the finger moved toward. */
.detail-body.is-sliding .detail-heading{animation:detail-slide .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes detail-in{from{opacity:0;transform:translateY(6px)}}
@keyframes detail-slide{from{opacity:0;transform:translateX(calc(var(--dir,1)*22px))}}
/* Wide or short-and-wide screens put the cup beside its name; the page scrolls rather than clipping. */
@media(min-aspect-ratio:5/4) and (min-width:640px){
 .detail-body{flex-direction:row;align-items:center;max-width:980px;gap:2vw;padding-bottom:0}
 .drink-stage{flex:1 1 55%;height:clamp(220px,calc(100svh - 132px),560px)}
 .detail-heading{text-align:left;flex:1 1 45%;margin:0;padding:0 4% 0 0;max-width:400px}
 .detail-name{font-size:clamp(25px,2.6vw,34px)}
  .detail-english{font-size:clamp(15px,1.3vw,17px)}
  .detail-ingredients{font-size:15px;margin:22px 0 0;text-wrap:pretty}
 .detail-pager{max-width:980px}
}
@media(max-height:500px) and (min-aspect-ratio:5/4){
 .detail-top{height:46px}.detail-pager{height:46px}
 .drink-stage{height:max(180px,calc(100svh - 112px))}
 .detail-ingredients{margin-top:14px;font-size:14px}
}
@media(max-width:360px){.detail-name{font-size:22px;letter-spacing:.07em}.detail-heading{padding:0 6%}}
@media(prefers-reduced-motion:reduce){.drink-detail *{animation:none!important;transition:none!important}}
body.motion-paused .drink-detail *{animation:none!important}
@media print{.detail-top,.detail-pager{display:none!important}.drink-detail{min-height:0;color:#222}}
