/* Slicetown's own HTML over the play (src/bubbles.js): the brand's pills (brand.css's variables), small. */
.pizza-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pizza-bubble {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding-block: 0;
  padding-inline: 5px 10px;
  border-radius: var(--enjo-radius-pill);
  background: var(--enjo-surf);
  box-shadow: 0 3px 0 var(--enjo-surfSh);
  color: var(--enjo-ink);
  font: 700 15px/1 var(--enjo-font);
  white-space: nowrap;
  will-change: transform;
}
.pizza-bubble img { width: 22px; height: 22px; }
.pizza-bubble b { font-weight: 700; }
.pizza-bubble span { font-weight: 600; font-size: 13px; color: var(--enjo-mute); }

/* "No seats", a grumble: the brand's orange pill; MAX: the coral pill with its edge. */
.pizza-bubble--noseat,
.pizza-bubble--max,
.pizza-bubble--grumble {
  padding: 0 10px;
  background: var(--enjo-primary);
  box-shadow: 0 3px 0 var(--enjo-primaryEdge);
  color: #fff;
}
.pizza-bubble--max { height: 24px; font-size: 13px; letter-spacing: 0.04em; }
/* Letter spacing breaks Arabic's joined letters and Devanagari's conjuncts (as the shared UI's captions). */
:lang(ar) .pizza-bubble--max,
:lang(hi) .pizza-bubble--max { letter-spacing: 0; }
.pizza-bubble--grumble { height: 24px; padding: 0 9px; }
.pizza-bubble--doze { height: 24px; padding: 0 8px; color: var(--enjo-mute); }
.pizza-bubble--special { box-shadow: 0 0 0 2px var(--enjo-primary), 0 3px 0 2px var(--enjo-primaryEdge); }

/* How long the cook has stood by a caller or a sleeper: a ring filling in orange. */
.pizza-ring {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--enjo-primary) var(--p), var(--enjo-board) 0);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 5px);
  mask: radial-gradient(circle, transparent 4px, #000 5px);
}

/* A bonus paid: "+5" in the brand's gold, rising and fading. */
.pizza-float {
  position: absolute;
  transform: translate(-50%, -100%);
  color: var(--enjo-coin);
  font: 700 26px/1 var(--enjo-font);
  -webkit-text-stroke: 5px #da950b;
  paint-order: stroke fill;
  animation: pizza-rise 1.1s ease-out forwards;
}
@keyframes pizza-rise {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -100%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(1); }
}

/* Small phones (under 360px): the 12th station's chest (coins, a magnet and the Starry chef) on one row in every
   language, so the dialog and its badge stay under the status inset (at 320 x 568 the outfit wrapped onto a second row
   in 11 languages, English too, the badge at -1 to 10 px in the 20 px inset; Portuguese's "Chef estrelado" needs the
   items at 64px: the review, after Orchard Jar's). */
@media (max-width: 359px) {
  .enjo-ui-chest { gap: 6px; }
  .enjo-ui-chest__item { min-width: 64px; padding-inline: 6px; }
}

/* The outfits' screen on a short phone: its grid's cap (@enjo/ui's, the screen's height less 340px) less the status
   inset twice too (its badge sat at 6 to 12 px in the 20px inset at 320 x 568 in every language: the review). Taller
   screens keep @enjo/ui's sizes. */
.enjo-ui-skins__grid { max-height: min(48vh, 440px, calc(100vh - 340px - 2 * var(--enjo-safe-top))); }
