@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #c8803a;
}

:root {
  transition: --accent 0.8s ease;
  color-scheme: dark;
  --bg: #0d0b0a;
  --ink: #f3ede4;
  --muted: rgba(243, 237, 228, 0.55);
  --line: rgba(243, 237, 228, 0.14);
  --accent: #c8803a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* every number on the page: a monospaced serif */
  --num: "Xanh Mono", "Courier Prime", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; }

/* ambient colour pulled from the front drink */
.glow {
  position: fixed;
  inset: -20%;
  /* eased falloff (many stops along a smoothstep) so the fade has no visible rings */
  background:
    radial-gradient(45% 40% at 50% 62%,
      color-mix(in srgb, var(--accent) 55.0%, transparent) 0.0%,
      color-mix(in srgb, var(--accent) 53.92%, transparent) 5.8%,
      color-mix(in srgb, var(--accent) 50.93%, transparent) 11.7%,
      color-mix(in srgb, var(--accent) 46.41%, transparent) 17.5%,
      color-mix(in srgb, var(--accent) 40.74%, transparent) 23.3%,
      color-mix(in srgb, var(--accent) 34.31%, transparent) 29.2%,
      color-mix(in srgb, var(--accent) 27.5%, transparent) 35.0%,
      color-mix(in srgb, var(--accent) 20.69%, transparent) 40.8%,
      color-mix(in srgb, var(--accent) 14.26%, transparent) 46.7%,
      color-mix(in srgb, var(--accent) 8.59%, transparent) 52.5%,
      color-mix(in srgb, var(--accent) 4.07%, transparent) 58.3%,
      color-mix(in srgb, var(--accent) 1.08%, transparent) 64.2%,
      transparent 70.0%),
    radial-gradient(80% 60% at 50% 110%,
      color-mix(in srgb, var(--accent) 30.0%, transparent) 0.0%,
      color-mix(in srgb, var(--accent) 29.41%, transparent) 5.8%,
      color-mix(in srgb, var(--accent) 27.78%, transparent) 11.7%,
      color-mix(in srgb, var(--accent) 25.31%, transparent) 17.5%,
      color-mix(in srgb, var(--accent) 22.22%, transparent) 23.3%,
      color-mix(in srgb, var(--accent) 18.72%, transparent) 29.2%,
      color-mix(in srgb, var(--accent) 15.0%, transparent) 35.0%,
      color-mix(in srgb, var(--accent) 11.28%, transparent) 40.8%,
      color-mix(in srgb, var(--accent) 7.78%, transparent) 46.7%,
      color-mix(in srgb, var(--accent) 4.69%, transparent) 52.5%,
      color-mix(in srgb, var(--accent) 2.22%, transparent) 58.3%,
      color-mix(in srgb, var(--accent) 0.59%, transparent) 64.2%,
      transparent 70.0%);
  opacity: 0.75;
  pointer-events: none;
  /* its own layer, so the drinks moving above it never make it redraw */
  will-change: transform;
  transform: translateZ(0);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06; /* also dithers the glow, so it doesn't band */
  will-change: transform;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.title em { font-style: italic; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); transition: color .4s; }

.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.stage.dragging { cursor: grabbing; }

.wheel {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform-origin: 0 0;
  transition: transform .75s cubic-bezier(.2, .8, .2, 1);
}
/* zoomed into the front drink: the rest fall back */
.card .ph { transition: opacity .45s ease; }
.stage.focus .card:not(.front) .ph { opacity: .14; }
.stage.focus .card .tick, .stage.focus .card .num { opacity: 0; }
.stage.focus { cursor: zoom-out; }
.stage.focus::after { opacity: 0 !important; }

/* under the zoomed-in drink (wheel and globe): number, name, rating, note */
.caption {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 4;
  width: min(40ch, calc(100vw - 32px));
  transform: translate(-50%, 6px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
body.cap-on .caption {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .4s, transform .4s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1);
}
.cap-num {
  font-family: var(--num);
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--muted);
}
.cap-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.cap-name em, .meta strong em { font-style: italic; color: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.cap-rate {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.cap-score { font-family: var(--num); font-size: 18px; letter-spacing: 0.04em; line-height: 1; }
.cap-score small { font-size: 13px; color: var(--muted); }
.cap-date { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cap-note {
  margin: 10px auto 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
/* the rating as ten ticks, like the ones under the drinks on the wheel */
.ticks { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.ticks i { width: 2px; height: 9px; background: var(--line); border-radius: 1px; }
.ticks i.on { height: 14px; background: var(--ink); }
.ticks i.half { height: 14px; background: linear-gradient(to top, var(--ink) 50%, var(--line) 50%); }
.wheel-photo {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  visibility: hidden;
  -webkit-user-drag: none;
}
.wheel-photo.cut { filter: drop-shadow(0 calc(16px * var(--k, 1)) calc(18px * var(--k, 1)) rgba(0, 0, 0, 0.6)); }
.wheel-photo:not(.cut) {
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.stage.photo-on .wheel-photo { visibility: visible; }
.stage.photo-on .card.lifted .ph { visibility: hidden; }

.card {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 50%;
}
/* Own GPU layers only on the close-up wheel, where a handful of cards are visible.
   With every drink on screen, 247 layers run phones out of graphics memory. */
.stage:not(.zoomed) .card { will-change: transform, opacity; }
/* zoomed in, the cards are redrawn at their new size instead of stretched */
.stage.focus .card { will-change: auto; }

/* each drink is a cutout floating on the page; .photo is the fallback for
   the few photos where the cutout failed, softened into the dark with a mask */
.card .ph { position: absolute; inset: 0; }
.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity .25s;
  -webkit-user-drag: none;
  pointer-events: none;
}
.card img.loaded { opacity: 1; }
.card img.hi { position: absolute; inset: 0; display: none; }
.card.sharp img.hi { display: block; }
.card.cut img { filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
.card.photo img {
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent);
  mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
/* shadows are filters, too costly on 247 drinks at once */
.stage.zoomed .card img { filter: none; }

.card .tick {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--line);
  transform: translateX(-50%);
}
.card.major .tick { height: 18px; width: 2px; background: rgba(243, 237, 228, 0.35); }
.card.major .num { color: var(--ink); }
.card.front .num { color: var(--ink); }
.card .num {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.card.front .ph { cursor: zoom-in; }

/* overview: the whole collection on a spiral, with the count underneath */
.hub {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.hub-num {
  font-family: var(--num);
  font-size: var(--hub-size, 48px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hub-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.card .tick, .card .num { transition: opacity .25s; }
.stage.zoomed .card .tick, .stage.zoomed .card .num { opacity: 0; }
.stage.overview .card .ph { cursor: pointer; }
/* outline around the current drink's silhouette in the overview */
.stage.overview .card.front img {
  filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 0 1px var(--ink)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.9));
}

/* the globe view: every drink on the inside of a sphere around you (globe.js) */
.globe {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  perspective-origin: 50% 50%;
  opacity: 0;
  transition: opacity .5s ease;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.globe.shown { opacity: 1; }
.globe.grabbing { cursor: grabbing; }
/* the far edges of the view fade into the dark, and the header stays readable */
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0, transparent 26%, transparent 74%, var(--bg) 100%),
    radial-gradient(closest-corner at 50% 50%, transparent 55%, rgba(13, 11, 10, 0.75) 100%);
}
.globe-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.ct {
  position: absolute;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 0;
  border-radius: var(--ct-r, 6px);
  background: none;
  cursor: inherit;
  transition: opacity .45s ease;
}
/* zoomed into one drink: the rest fall back */
.globe.focus .ct:not(.on) { opacity: .14; }
.globe.focus .ct.on { cursor: zoom-out; }
/* the zoomed drink's number moves into the caption */
.globe.focus .ct .ct-n { visibility: hidden; }
.globe-photo {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  visibility: hidden;
}
.globe.labelled .globe-photo { visibility: visible; }
.globe.labelled .ct.on img { visibility: hidden; }
.ct img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity .3s, transform .25s ease;
}
.ct img.loaded { opacity: 1; }
.ct-n {
  font-family: var(--num);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1%;
  text-align: center;
  font-size: var(--ct-fs, 10px);
  letter-spacing: 0.04em;
  color: var(--muted);
  pointer-events: none;
}
.globe.tiny .ct-n { display: none; }
.globe.tiny .ct img { height: 100%; }
@media (hover: hover) {
  .globe:not(.focus) .ct:hover img { transform: scale(1.06); }
  .ct:hover .ct-n { color: var(--ink); }
}
.ct:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
body.globe-mode .stage, body.globe-mode .hub { visibility: hidden; }
.btn-icon { width: 44px; padding: 0; display: grid; place-items: center; }
.btn-icon[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* pointer at the top of the wheel */
.stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--pointer-y, 50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--ink);
  transform: translateX(-50%);
  opacity: 0.8;
  z-index: 2;
  transition: opacity .3s;
}
.stage.zoomed::after { opacity: 0; }

/* the current drink's number, under the title; tap it for the overview */
.readout {
  position: fixed;
  left: 50%;
  top: calc(max(20px, env(safe-area-inset-top)) + clamp(44px, 8vw, 104px) * 0.9 + 12px);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  transition: opacity .2s;
}
.count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-out;
  pointer-events: auto;
  font-family: var(--num);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.count-row { display: flex; align-items: baseline; }
.count:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
.stage.overview ~ .readout .count { cursor: zoom-in; }
.count-cap {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.count:hover .count-cap { color: var(--ink); border-color: var(--ink); }
.count .of { font-family: var(--num); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin-left: 6px; }
/* on the globe the switch at the bottom is the way back */
body.globe-mode .count-cap { visibility: hidden; }
body.globe-mode .count { cursor: default; }
/* the current drink's name and rating, for screen readers; the caption shows them when zoomed in */
.meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meta strong { color: var(--ink); font-weight: 400; display: block; font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.meta-rate { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.meta-rate .ticks { height: 10px; gap: 2px; }
.meta-rate .ticks i { height: 6px; }
.meta-rate .ticks i.on, .meta-rate .ticks i.half { height: 10px; }
.meta-score { font-family: var(--num); font-size: 13px; color: var(--ink); }
.meta-date { display: block; margin-top: 4px; }
/* the note is in the caption when zoomed in; here it's only for screen readers */
.meta-note {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* zoomed in, the caption says it all */
body.cap-on .meta { opacity: 0; }
.meta { transition: opacity .3s; }

/* wheel or globe, centred at the bottom */
.modes {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 11, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] { background: var(--ink); color: var(--bg); cursor: default; }
.mode:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mode:active { transform: scale(0.96); }
#sound {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 2px);
  z-index: 5;
}
.btn {
  height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 11, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { border-color: rgba(243, 237, 228, 0.4); }
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn-sound { font-size: 11px; }



@media (max-width: 640px) {
  .readout { top: calc(max(20px, env(safe-area-inset-top)) + 50px); }
  .modes { bottom: max(16px, env(safe-area-inset-bottom)); }
  .btn-sound { display: none; }
  .count { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel { transition: none; }
}

/* ---- search ---------------------------------------------------------------- */
.search-btn {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 6;
}
/* the search bar sits under the title, in place of the drink counter,
   and stays while its results are on the globe. Clear brings every drink back. */
.search {
  position: fixed;
  left: 50%;
  top: calc(max(20px, env(safe-area-inset-top)) + clamp(44px, 8vw, 104px) * 0.9 + 8px);
  z-index: 7;
  width: min(520px, calc(100vw - 32px));
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: var(--muted);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.search[hidden], .search-empty[hidden] { display: none; }
.search.open { opacity: 1; transform: translate(-50%, 0); }
.search:focus-within { border-color: rgba(243, 237, 228, 0.35); }
.search svg { flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: .75; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-count {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.search-count:empty { display: none; }
.search-clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.search-clear:hover { border-color: rgba(243, 237, 228, 0.4); }
.search-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* while results are showing, the way back to every drink stands out */
.search.filtered .search-clear { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search.filtered .search-clear:hover { background: color-mix(in srgb, var(--accent) 35%, var(--ink)); }
/* the search bar takes the counter's place */
body.searching .readout { opacity: 0; visibility: hidden; }
.search-empty {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 44%;
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--muted);
  z-index: 4;
  pointer-events: none;
}
body:not(.globe-mode) .search-empty { display: none; }
@media (max-width: 640px) {
  .search-btn { top: max(16px, env(safe-area-inset-top)); right: 16px; }
  .search { top: calc(max(16px, env(safe-area-inset-top)) + 52px); padding-left: 14px; gap: 8px; }
  .search input { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .search { transition: none; } }

/* DA / EN, mirroring the search button */
.lang-btn {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  z-index: 6;
  font: 11px var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.lang-btn:hover { color: var(--ink); }
@media (max-width: 640px) { .lang-btn { top: max(16px, env(safe-area-inset-top)); left: 16px; } }

/* a drink with no review */
.cap-none, .sr-none { font-style: italic; opacity: .75; }

/* switching between the wheel and the globe (app.js setGlobe): the current
   drink flies from one view to the other while the rest crossfades */
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) { animation-duration: .45s; }
/* the switch stays put; changing words fade out, then in, instead of showing
   through each other */
.modes { view-transition-name: modes; }
.count-cap { view-transition-name: count-cap; }
::view-transition-old(count-cap) { animation: vt-out .2s ease both; }
::view-transition-new(count-cap) { animation: vt-in .25s ease .2s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* the globe's flat photo stands in for a tile while the drink flies */
.globe.morphing .globe-photo { visibility: visible; }
.globe .ct.morph img { visibility: hidden; }
::view-transition-group(drink) {
  animation-duration: .6s;
  animation-timing-function: cubic-bezier(.3, .7, .15, 1);
}
/* the two boxes differ in shape; keep the drink in proportion while it flies */
::view-transition-old(drink),
::view-transition-new(drink) {
  height: 100%;
  object-fit: contain;
  animation-duration: .6s;
}
