:root {
  --fondo: #f6f2ec;
  --inchiostro: #17120e;
  --grigio: #7a716a;
  --grigio-chiaro: #aaa29a;
  --linea: rgba(23, 18, 14, 0.08);
  --accento: #c9813f;
  --finestra: #fbf8f3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.order {
  display: grid;
  gap: clamp(14px, 3.4vh, 22px);
  width: min(372px, calc(100vw - 32px));
}

.order__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding-left: 4px;
}
.order__shop { font-weight: 640; font-stretch: 105%; letter-spacing: -0.01em; }
.order__where { color: var(--grigio); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the pill: the glass sits in a round window that pokes out above and below */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(60px, 15vh, 68px);
  width: 100%;
  margin-top: clamp(14px, 4vh, 22px);
  margin-bottom: clamp(10px, 3vh, 16px);
  padding: 0 22px 0 clamp(92px, 25vw, 100px);
  border-radius: 999px;
  background: var(--inchiostro);
  color: #f7efe4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 26px -12px rgba(23, 18, 14, 0.55), 0 2px 5px rgba(23, 18, 14, 0.18);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.btn:focus-visible { box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--accento); }

.btn__glass {
  position: absolute;
  left: -6px;
  top: 50%;
  width: clamp(86px, 24vw, 96px);
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, var(--finestra) 55%, #efe8de 100%);
  box-shadow: 0 0 0 3px var(--inchiostro), 0 8px 18px -8px rgba(23, 18, 14, 0.45);
  overflow: hidden;
}
.glass {
  position: absolute;
  left: 17%;
  top: 6%;
  width: 66%;
  height: 86%;
  overflow: visible;
}

.glass__ombra { fill: rgba(23, 18, 14, 0.14); }
.glass__corpo { fill: rgba(222, 232, 236, 0.35); }
.glass__vetro { fill: url(#vetro); stroke: rgba(40, 52, 58, 0.42); stroke-width: 0.7; stroke-linejoin: round; }
.glass__base { fill: url(#fondo-vetro); stroke: rgba(40, 52, 58, 0.25); stroke-width: 0.4; }
.glass__bordo { fill: none; stroke: rgba(40, 52, 58, 0.5); stroke-width: 0.6; }
.glass__luce { fill: none; stroke: #ffffff; stroke-opacity: 0.85; stroke-width: 1.5; stroke-linecap: round; }
.glass__luce--fine { stroke-width: 0.7; stroke-opacity: 0.6; }
.glass__pelo { fill: none; stroke: rgba(255, 238, 214, 0.55); stroke-width: 0.5; }

.ice__cubo { fill: rgba(236, 246, 250, 0.42); stroke: rgba(255, 255, 255, 0.85); stroke-width: 0.45; }
.ice__luce { fill: none; stroke: #ffffff; stroke-width: 0.6; stroke-linecap: round; stroke-opacity: 0.9; }
.ice__ombra { fill: rgba(30, 40, 46, 0.18); }

.straw { stroke: #efe4d2; stroke-width: 2.4; stroke-linecap: round; }
.straw__righe { stroke: var(--accento); stroke-width: 2.4; stroke-dasharray: 1.3 2.6; stroke-linecap: butt; }
.straw--sotto { opacity: 0.75; }

.drop { fill: rgba(255, 255, 255, 0.38); stroke: rgba(40, 52, 58, 0.16); stroke-width: 0.16; }
.drop__luce { fill: #ffffff; }
.drop__scia { stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.5; stroke-linecap: round; fill: none; }

.btn__words {
  position: relative;
  flex: 1;
  height: 1.4em;
  font-size: clamp(15px, 4.2vw, 16px);
}
.btn__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  font-weight: 560;
  font-stretch: 100%;
}
.btn__price { color: rgba(247, 239, 228, 0.6); font-weight: 480; }
.btn__label--busy, .btn__label--done { justify-content: flex-start; gap: 0.3em; }
.btn__label--done { color: #fff6ea; }

.roll {
  position: relative;
  display: inline-block;
  height: 1.25em;
  width: 0.66em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  vertical-align: middle;
}
.roll__col { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; color: var(--accento); font-weight: 680; }
.roll__col span { height: 1.25em; line-height: 1.25em; text-align: center; width: 0.66em; }

.order__note {
  position: relative;
  height: 1.4em;
  font-size: 12.5px;
  color: var(--grigio);
  padding-left: 4px;
}
.order__state { position: absolute; inset: 0 auto auto 4px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.order__state--done { color: var(--inchiostro); }
.tick { width: 15px; height: 15px; fill: none; stroke: var(--accento); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -3px 0 0 -4px;
  fill: #ffffff;
  stroke: #17120e;
  stroke-width: 1.4;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  z-index: 5;
}

@media (hover: hover) {
  .btn:hover .btn__price { color: rgba(247, 239, 228, 0.85); }
}
