/* From scan to settled bill. The scene sits above the five steps in one glass card. Inside the
   stage everything is sized in --s, one unit of a canvas that keeps its composition at any
   width: 1000 wide with the phone beside the board, or 460 wide with the board above the
   phone on a narrow screen. The stage is its own size container, so --u has no meaning in it.

   This sheet draws the one frame the scene rests on without motion. The motion layer sets
   everything else; anything marked is-rest is what that frame shows. */
.vamora-serve-process {
	padding: var(--serve-block) var(--serve-inset);
	background:
		radial-gradient(46% 40% at 8% 50%, #efe0fd 0%, transparent 100%),
		radial-gradient(46% 40% at 92% 70%, #ebdcfd 0%, transparent 100%);
}

.vamora-serve-story {
	position: relative;
	margin-top: 1.5rem;
	overflow: clip;
	border: 1px solid var(--serve-glass-edge);
	border-radius: 1.5rem;
	background:
		radial-gradient(50% 44% at 22% 18%, #efe1fe 0%, transparent 100%),
		radial-gradient(54% 50% at 84% 30%, #e6d7fc 0%, transparent 100%),
		linear-gradient(160deg, #fcf9ff 0%, #f4edfd 100%);
	box-shadow: 0 0 0 1px rgb(214 196 248 / 0.5), 0 24px 50px -28px rgb(90 40 190 / 0.45);
}

.vamora-serve-story__stage {
	position: relative;
	container-type: inline-size;
}

.vamora-serve-story__defs {
	position: absolute;
}

.vamora-serve-story__canvas {
	--s: calc(100cqw / 460);

	position: relative;
	height: calc(878 * var(--s));
	color: var(--home-ink);
	font-size: calc(12 * var(--s));
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* The supplied ribbon, whole, running behind both screens. */
.vamora-serve-story__ribbon {
	position: absolute;
	top: calc(650 * var(--s));
	left: -46%;
	width: 192%;
	pointer-events: none;
	opacity: 0.62;
}

.vamora-serve-story__ribbon-image {
	width: 100%;
	height: auto;
}

/* The routes an order and its updates take. Only the motion layer ever draws them. */
.vamora-serve-story__routes {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.vamora-serve-story__route {
	fill: none;
	stroke: none;
}

.vamora-serve-story__tag {
	--icon-size: calc(12 * var(--s));

	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: calc(5 * var(--s));
	padding: calc(4 * var(--s)) calc(9 * var(--s)) calc(4 * var(--s)) calc(7 * var(--s));
	border: calc(1 * var(--s)) solid var(--serve-glass-edge);
	border-radius: 999px;
	background: var(--home-glass-strong);
	box-shadow: 0 calc(6 * var(--s)) calc(14 * var(--s)) calc(-6 * var(--s)) rgb(90 40 190 / 0.4);
	color: var(--home-violet-ink);
	font-size: calc(10.6 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

/* The table card the phone reads. */
.vamora-serve-story__tent {
	position: absolute;
	top: calc(684 * var(--s));
	left: calc(306 * var(--s));
	display: grid;
	justify-items: center;
	gap: calc(5 * var(--s));
	width: calc(112 * var(--s));
	padding: calc(9 * var(--s)) calc(9 * var(--s)) calc(10 * var(--s));
	border: calc(1 * var(--s)) solid var(--serve-glass-edge);
	border-radius: calc(12 * var(--s));
	background: linear-gradient(170deg, #fff 0%, #f3ecfe 100%);
	box-shadow: 0 calc(14 * var(--s)) calc(22 * var(--s)) calc(-12 * var(--s)) rgb(70 30 170 / 0.5);
	transform: rotate(-3deg);
}

.vamora-serve-story__tent-title {
	font-size: calc(9.6 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

.vamora-serve-story__tent-code {
	width: calc(74 * var(--s));
	height: calc(74 * var(--s));
	fill: #5a14d8;
}

.vamora-serve-story__tent-table {
	padding: calc(2 * var(--s)) calc(9 * var(--s));
	border-radius: 999px;
	background: linear-gradient(180deg, #8d36ef, #5a12c8);
	color: var(--home-white);
	font-size: calc(9.4 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

/* The food reaching the table, beside its card. Only the motion layer ever serves it. */
.vamora-serve-story__served {
	position: absolute;
	top: calc(690 * var(--s));
	left: calc(230 * var(--s));
	display: grid;
	gap: calc(6 * var(--s));
}

.vamora-serve-story__plate {
	width: calc(58 * var(--s));
	height: calc(58 * var(--s));
	border: calc(3 * var(--s)) solid var(--home-white);
	border-radius: 50%;
	box-shadow: 0 calc(10 * var(--s)) calc(16 * var(--s)) calc(-8 * var(--s)) rgb(70 30 170 / 0.6);
	object-fit: cover;
	opacity: 0;
}

.vamora-serve-story__device {
	position: absolute;
	z-index: 1;
}

.vamora-serve-story__device--phone {
	top: calc(458 * var(--s));
	left: calc(14 * var(--s));
	width: calc(196 * var(--s));
	height: calc(404 * var(--s));
}

.vamora-serve-story__tag--phone {
	top: calc(6 * var(--s));
	left: calc(212 * var(--s));
}

.vamora-serve-story__device--board {
	top: calc(64 * var(--s));
	left: calc(8 * var(--s));
	width: calc(444 * var(--s));
	height: calc(372 * var(--s));
}

.vamora-serve-story__tag--board {
	top: calc(-27 * var(--s));
	left: calc(4 * var(--s));
}

/* A tap, and the place it lands: the wrapper is exactly as big as what it sits in, so the
   motion layer can move it there as a share of its own size, at any width. */
.vamora-serve-story__tap {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.vamora-serve-story__ring {
	position: absolute;
	top: calc(-19 * var(--s));
	left: calc(-19 * var(--s));
	width: calc(38 * var(--s));
	height: calc(38 * var(--s));
	border: calc(2.4 * var(--s)) solid #7a22f0;
	border-radius: 50%;
	background: rgb(122 34 240 / 0.18);
	opacity: 0;
}

/* The guest's phone */
.vamora-serve-phone {
	position: relative;
	height: 100%;
	padding: calc(7 * var(--s));
	border-radius: calc(34 * var(--s));
	background: linear-gradient(150deg, #2c2755 0%, #0e0b2a 60%);
	box-shadow: 0 calc(20 * var(--s)) calc(34 * var(--s)) calc(-14 * var(--s)) rgb(40 15 110 / 0.6), inset 0 0 0 calc(1.4 * var(--s)) rgb(255 255 255 / 0.22);
}

.vamora-serve-phone__notch {
	position: absolute;
	top: calc(11 * var(--s));
	left: 50%;
	z-index: 3;
	width: calc(62 * var(--s));
	height: calc(15 * var(--s));
	border-radius: 999px;
	background: #0e0b2a;
	translate: -50% 0;
}

.vamora-serve-phone__screen {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: calc(27 * var(--s));
	background: #fbf9ff;
}

.vamora-serve-phone__view {
	position: absolute;
	inset: 0;
	padding: calc(30 * var(--s)) calc(10 * var(--s)) calc(10 * var(--s));
	background: #fbf9ff;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-phone__view.is-rest {
	opacity: 1;
	visibility: visible;
}

/* Scan */
.vamora-serve-phone__view--scan {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-bottom: calc(20 * var(--s));
	background: radial-gradient(78% 52% at 50% 44%, #5230a8 0%, #1b1145 100%);
	color: var(--home-white);
	text-align: center;
}

.vamora-serve-phone__lens {
	position: relative;
	flex: none;
	width: calc(136 * var(--s));
	height: calc(136 * var(--s));
	padding: calc(16 * var(--s));
	overflow: hidden;
	border-radius: calc(14 * var(--s));
	background: #fff;
}

.vamora-serve-phone__code {
	display: block;
	width: 100%;
	height: 100%;
	fill: #1d1140;
}

.vamora-serve-phone__corners {
	--corner: calc(22 * var(--s));
	--corner-weight: calc(3.4 * var(--s));
	--corner-ink: #7a22f0;

	position: absolute;
	inset: calc(5 * var(--s));
	background:
		linear-gradient(var(--corner-ink) 0 0) 0 0 / var(--corner) var(--corner-weight),
		linear-gradient(var(--corner-ink) 0 0) 0 0 / var(--corner-weight) var(--corner),
		linear-gradient(var(--corner-ink) 0 0) 100% 0 / var(--corner) var(--corner-weight),
		linear-gradient(var(--corner-ink) 0 0) 100% 0 / var(--corner-weight) var(--corner),
		linear-gradient(var(--corner-ink) 0 0) 0 100% / var(--corner) var(--corner-weight),
		linear-gradient(var(--corner-ink) 0 0) 0 100% / var(--corner-weight) var(--corner),
		linear-gradient(var(--corner-ink) 0 0) 100% 100% / var(--corner) var(--corner-weight),
		linear-gradient(var(--corner-ink) 0 0) 100% 100% / var(--corner-weight) var(--corner);
	background-repeat: no-repeat;
}

/* A line at its foot with its glow trailing above it, so it sweeps by moving whole. */
.vamora-serve-phone__beam {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgb(143 43 255 / 0.28) 97%, #8f2bff 97%);
	opacity: 0;
}

.vamora-serve-phone__hint {
	margin-top: calc(20 * var(--s));
	font-size: calc(11 * var(--s));
	font-weight: 600;
}

.vamora-serve-phone__found {
	--icon-size: calc(14 * var(--s));

	display: inline-flex;
	align-items: center;
	gap: calc(5 * var(--s));
	margin-top: calc(14 * var(--s));
	padding: calc(6 * var(--s)) calc(12 * var(--s)) calc(6 * var(--s)) calc(9 * var(--s));
	border-radius: 999px;
	background: #1f9d4d;
	font-size: calc(12 * var(--s));
	font-weight: 800;
	opacity: 0;
}

.vamora-serve-phone__found .vamora-icon {
	stroke-width: 3.2;
}

/* Menu */
.vamora-serve-phone__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(6 * var(--s));
}

.vamora-serve-phone__heading {
	font-size: calc(15 * var(--s));
	font-weight: 850;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.vamora-serve-phone__pill {
	padding: calc(2 * var(--s)) calc(7 * var(--s));
	border-radius: 999px;
	background: #ece1fb;
	color: #4a1bb8;
	font-size: calc(9.2 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

.vamora-serve-phone__chips {
	display: flex;
	gap: calc(4 * var(--s));
	margin-top: calc(7 * var(--s));
}

.vamora-serve-phone__chip {
	padding: calc(3 * var(--s)) calc(8 * var(--s));
	border-radius: 999px;
	background: #f0eafb;
	color: var(--home-soft);
	font-size: calc(9.2 * var(--s));
	font-weight: 700;
}

.vamora-serve-phone__chip.is-on {
	background: #6a1fe0;
	color: var(--home-white);
}

.vamora-serve-phone__dishes {
	display: grid;
	gap: calc(5 * var(--s));
	margin-top: calc(7 * var(--s));
}

.vamora-serve-phone__dish {
	display: grid;
	grid-template-columns: calc(38 * var(--s)) minmax(0, 1fr) auto;
	gap: calc(6 * var(--s));
	align-items: center;
	padding: calc(4 * var(--s));
	border-radius: calc(10 * var(--s));
	background: #fff;
	box-shadow: 0 calc(3 * var(--s)) calc(10 * var(--s)) calc(-5 * var(--s)) rgb(70 40 170 / 0.35);
}

.vamora-serve-phone__thumb {
	display: block;
	width: calc(38 * var(--s));
	height: calc(38 * var(--s));
	border-radius: calc(8 * var(--s));
	object-fit: cover;
}

.vamora-serve-phone__dish--lava .vamora-serve-phone__thumb {
	opacity: 0.55;
}

.vamora-serve-phone__dish-copy {
	display: grid;
	gap: calc(1 * var(--s));
	min-width: 0;
}

.vamora-serve-phone__dish-name {
	font-size: calc(10.4 * var(--s));
	font-weight: 800;
	line-height: 1.12;
}

.vamora-serve-phone__dish-price {
	color: var(--home-soft);
	font-size: calc(9.6 * var(--s));
	font-weight: 700;
}

.vamora-serve-phone__add {
	display: grid;
	width: calc(34 * var(--s));
	height: calc(21 * var(--s));
}

.vamora-serve-phone__add-label,
.vamora-serve-phone__add-done {
	display: grid;
	grid-area: 1 / 1;
	place-items: center;
	border-radius: calc(7 * var(--s));
	font-size: calc(9 * var(--s));
	font-weight: 800;
}

.vamora-serve-phone__add-label {
	border: calc(1.2 * var(--s)) solid #8d4bf0;
	color: #5a14d8;
}

.vamora-serve-phone__add-done {
	--icon-size: calc(12 * var(--s));

	background: #1f9d4d;
	color: var(--home-white);
	opacity: 0;
}

.vamora-serve-phone__add-done .vamora-icon {
	stroke-width: 3.4;
}

.vamora-serve-phone__out {
	width: calc(34 * var(--s));
	color: var(--serve-rose);
	font-size: calc(7.8 * var(--s));
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
}

.vamora-serve-phone__cart {
	position: absolute;
	right: calc(9 * var(--s));
	bottom: calc(9 * var(--s));
	left: calc(9 * var(--s));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: calc(5 * var(--s));
	padding: calc(5 * var(--s)) calc(5 * var(--s)) calc(5 * var(--s)) calc(10 * var(--s));
	border-radius: calc(13 * var(--s));
	background: linear-gradient(175deg, #8d36ef, #5a12c8);
	box-shadow: 0 calc(8 * var(--s)) calc(16 * var(--s)) calc(-8 * var(--s)) rgb(90 30 205 / 0.8);
	color: var(--home-white);
}

.vamora-serve-phone__cart-sum {
	display: grid;
}

.vamora-serve-phone__cart-line {
	grid-area: 1 / 1;
	font-size: calc(9.2 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

.vamora-serve-phone__cart-go {
	padding: calc(5 * var(--s)) calc(9 * var(--s));
	border-radius: calc(9 * var(--s));
	background: var(--home-white);
	color: #5a14d8;
	font-size: calc(9.6 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

/* The guest's order */
.vamora-serve-phone__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: calc(2 * var(--s));
	border-bottom: calc(1 * var(--s)) solid #e3d8f7;
}

.vamora-serve-phone__tab {
	padding-bottom: calc(6 * var(--s));
	color: var(--home-soft);
	font-size: calc(10.4 * var(--s));
	font-weight: 700;
	text-align: center;
}

.vamora-serve-phone__tab.is-on {
	box-shadow: 0 calc(2 * var(--s)) 0 #6a1fe0;
	color: #5a14d8;
	font-weight: 800;
}

.vamora-serve-phone__banner {
	display: grid;
	margin-top: calc(10 * var(--s));
	padding: calc(12 * var(--s)) calc(10 * var(--s));
	border-radius: calc(12 * var(--s));
	background: linear-gradient(95deg, #f0e6fe, #e7dafc);
}

.vamora-serve-phone__banner-line {
	--icon-size: calc(14 * var(--s));

	display: flex;
	grid-area: 1 / 1;
	align-items: center;
	gap: calc(6 * var(--s));
	color: var(--home-violet-ink);
	font-size: calc(11.4 * var(--s));
	font-weight: 800;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-phone__banner-line.is-rest {
	opacity: 1;
	visibility: visible;
}

.vamora-serve-phone__lines {
	display: grid;
	gap: calc(6 * var(--s));
	margin-top: calc(9 * var(--s));
}

.vamora-serve-phone__line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: calc(6 * var(--s));
	padding: calc(10 * var(--s));
	border-radius: calc(10 * var(--s));
	background: #fff;
	box-shadow: 0 calc(3 * var(--s)) calc(10 * var(--s)) calc(-5 * var(--s)) rgb(70 40 170 / 0.35);
}

.vamora-serve-phone__line-name {
	font-size: calc(10.6 * var(--s));
	font-weight: 800;
}

.vamora-serve-phone__line-price {
	color: var(--home-soft);
	font-size: calc(10 * var(--s));
	font-weight: 700;
}

.vamora-serve-phone__total {
	display: flex;
	justify-content: space-between;
	margin-top: calc(11 * var(--s));
	padding-inline: calc(10 * var(--s));
	font-size: calc(12 * var(--s));
	font-weight: 800;
}

.vamora-serve-phone__total strong {
	font-weight: 900;
}

.vamora-serve-phone__pay {
	display: grid;
	gap: calc(3 * var(--s));
	margin-top: calc(9 * var(--s));
	padding: calc(9 * var(--s));
	border: calc(1 * var(--s)) solid #dcc9fa;
	border-radius: calc(11 * var(--s));
	background: #f6f0fe;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-phone__pay-no {
	color: var(--home-soft);
	font-size: calc(8.8 * var(--s));
	font-weight: 700;
	letter-spacing: 0.02em;
}

.vamora-serve-phone__pay-how {
	font-size: calc(10.2 * var(--s));
	font-weight: 700;
	line-height: 1.22;
}

/* Paid */
.vamora-serve-phone__view--paid {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: calc(3 * var(--s));
	text-align: center;
}

.vamora-serve-phone__tick {
	width: calc(68 * var(--s));
	height: calc(68 * var(--s));
	margin-bottom: calc(6 * var(--s));
	fill: none;
	stroke: #1f9d4d;
	stroke-width: 3.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vamora-serve-phone__tick-ring {
	fill: var(--serve-green-soft);
}

.vamora-serve-phone__paid-title {
	font-size: calc(15 * var(--s));
	font-weight: 850;
	letter-spacing: -0.03em;
}

.vamora-serve-phone__paid-text {
	color: var(--home-soft);
	font-size: calc(11.4 * var(--s));
	font-weight: 600;
}

/* The status chips, shared by both screens. A stack, so a change never moves its neighbours. */
.vamora-serve-story__badges {
	display: inline-grid;
	justify-items: start;
}

.vamora-serve-phone__line .vamora-serve-story__badges {
	grid-column: 1 / -1;
}

.vamora-serve-story__badge {
	grid-area: 1 / 1;
	padding: calc(2.5 * var(--s)) calc(7 * var(--s));
	border-radius: 999px;
	font-size: calc(9.2 * var(--s));
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-story__badge.is-rest {
	opacity: 1;
	visibility: visible;
}

.vamora-serve-story__badge--placed {
	background: #e6dcfa;
	color: #4a1bd0;
}

.vamora-serve-story__badge--preparing {
	background: var(--serve-orange-soft);
	color: var(--serve-orange);
}

.vamora-serve-story__badge--delivered {
	background: var(--serve-green-soft);
	color: var(--serve-green);
}

.vamora-serve-story__badge--unpaid {
	background: var(--serve-rose-soft);
	color: var(--serve-rose);
}

.vamora-serve-story__badge--paid {
	background: #1f9d4d;
	color: var(--home-white);
}

.vamora-serve-story__badge--away {
	background: #e2e9fe;
	color: #2743c9;
}

/* What the step is, beside the phone. Only a narrow screen shows it: there the numbered steps
   have scrolled away by the time the phone is in view. */
.vamora-serve-story__now {
	position: absolute;
	top: calc(504 * var(--s));
	left: calc(224 * var(--s));
	width: calc(226 * var(--s));
	height: calc(160 * var(--s));
}

.vamora-serve-story__now-item {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: start;
	gap: calc(4 * var(--s));
	opacity: 0;
}

.vamora-serve-story__now-item.is-rest {
	opacity: 1;
}

.vamora-serve-story__now-count {
	color: var(--home-violet);
	font-size: calc(12 * var(--s));
	font-weight: 800;
}

.vamora-serve-story__now-title {
	font-size: calc(22 * var(--s));
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.vamora-serve-story__now-text {
	color: var(--home-soft);
	font-size: calc(13.4 * var(--s));
	font-weight: 500;
	line-height: 1.3;
}

/* The live board */
.vamora-serve-board {
	position: relative;
	height: 100%;
	padding: calc(11 * var(--s)) calc(12 * var(--s));
	border: calc(8 * var(--s)) solid #15113a;
	border-radius: calc(22 * var(--s));
	background: #f8f5fe;
	background-clip: padding-box;
	box-shadow: 0 calc(22 * var(--s)) calc(40 * var(--s)) calc(-18 * var(--s)) rgb(40 15 110 / 0.6), 0 0 0 calc(1.2 * var(--s)) rgb(255 255 255 / 0.25);
}

.vamora-serve-board__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vamora-serve-board__brand {
	--icon-size: calc(15 * var(--s));

	display: inline-flex;
	align-items: center;
	gap: calc(6 * var(--s));
	font-size: calc(15 * var(--s));
	font-weight: 850;
	letter-spacing: -0.03em;
}

.vamora-serve-board__brand .vamora-icon {
	color: var(--home-violet);
	stroke-width: 2.6;
}

.vamora-serve-board__bell {
	--icon-size: calc(18 * var(--s));

	position: relative;
	display: grid;
	place-items: center;
	width: calc(26 * var(--s));
	height: calc(26 * var(--s));
	color: var(--home-ink);
}

.vamora-serve-board__chime {
	position: absolute;
	inset: 0;
	border: calc(2 * var(--s)) solid #8f2bff;
	border-radius: 50%;
	opacity: 0;
}

.vamora-serve-board__alert {
	position: absolute;
	top: calc(3 * var(--s));
	right: calc(4 * var(--s));
	width: calc(7 * var(--s));
	height: calc(7 * var(--s));
	border-radius: 50%;
	background: #ef2b45;
	opacity: 0;
}

.vamora-serve-board__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: calc(8 * var(--s));
	margin-top: calc(7 * var(--s));
}

.vamora-serve-board__stat {
	display: flex;
	align-items: center;
	gap: calc(7 * var(--s));
	padding: calc(7 * var(--s)) calc(10 * var(--s));
	border-radius: calc(11 * var(--s));
	background: #fff;
	box-shadow: 0 calc(3 * var(--s)) calc(10 * var(--s)) calc(-5 * var(--s)) rgb(70 40 170 / 0.3);
}

.vamora-serve-board__figure {
	display: grid;
	flex: none;
	overflow: hidden;
	font-size: calc(19 * var(--s));
	font-weight: 850;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.vamora-serve-board__digit {
	grid-area: 1 / 1;
	justify-self: center;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-board__digit.is-rest {
	opacity: 1;
	visibility: visible;
}

.vamora-serve-board__stat-label {
	color: var(--home-soft);
	font-size: calc(9.4 * var(--s));
	font-weight: 600;
	line-height: 1.1;
}

.vamora-serve-board__orders {
	display: grid;
	gap: calc(7 * var(--s));
	margin-top: calc(9 * var(--s));
}

.vamora-serve-board__order {
	position: relative;
	display: grid;
	grid-template-columns: calc(38 * var(--s)) minmax(0, 1fr) auto calc(88 * var(--s));
	gap: calc(9 * var(--s));
	align-items: center;
	height: calc(54 * var(--s));
	padding-inline: calc(9 * var(--s));
	border-radius: calc(12 * var(--s));
	background: #fff;
	box-shadow: 0 calc(4 * var(--s)) calc(12 * var(--s)) calc(-6 * var(--s)) rgb(70 40 170 / 0.32);
}

.vamora-serve-board__flash {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgb(138 60 245 / 0.2);
	box-shadow: 0 0 0 calc(1.6 * var(--s)) #a160f2;
	opacity: 0;
	pointer-events: none;
}

.vamora-serve-board__tile {
	--icon-size: calc(18 * var(--s));

	display: grid;
	place-items: center;
	width: calc(38 * var(--s));
	height: calc(38 * var(--s));
	border-radius: calc(10 * var(--s));
	background: var(--serve-tile);
	color: #4a1bb8;
	font-size: calc(13 * var(--s));
	font-weight: 850;
}

.vamora-serve-board__who {
	display: grid;
	gap: calc(1 * var(--s));
	min-width: 0;
}

.vamora-serve-board__name {
	font-size: calc(12.4 * var(--s));
	font-weight: 800;
	white-space: nowrap;
}

.vamora-serve-board__items {
	overflow: hidden;
	color: var(--home-soft);
	font-size: calc(9.4 * var(--s));
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.vamora-serve-board__actions {
	display: grid;
}

.vamora-serve-board__action {
	display: grid;
	grid-area: 1 / 1;
	place-items: center;
	height: calc(25 * var(--s));
	border-radius: calc(8 * var(--s));
	background: linear-gradient(175deg, #8d36ef, #5a12c8);
	color: var(--home-white);
	font-size: calc(9.8 * var(--s));
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-board__action.is-rest {
	opacity: 1;
	visibility: visible;
}

.vamora-serve-board__toast {
	--icon-size: calc(12 * var(--s));

	position: absolute;
	top: calc(10 * var(--s));
	right: calc(44 * var(--s));
	display: flex;
	align-items: center;
	gap: calc(5 * var(--s));
	padding: calc(5 * var(--s)) calc(10 * var(--s));
	border-radius: calc(10 * var(--s));
	background: #1c1250;
	color: var(--home-white);
	font-size: calc(10 * var(--s));
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-board__pointer {
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.vamora-serve-board__arrow {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(24 * var(--s));
	height: calc(24 * var(--s));
	overflow: visible;
	fill: #15113a;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linejoin: round;
	filter: drop-shadow(0 calc(3 * var(--s)) calc(4 * var(--s)) rgb(30 10 90 / 0.45));
}

/* What travels between the two: the order one way, each update the other. */
.vamora-serve-story__flyer {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.vamora-serve-story__ticket {
	--icon-size: calc(13 * var(--s));

	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: calc(5 * var(--s));
	padding: calc(6 * var(--s)) calc(11 * var(--s)) calc(6 * var(--s)) calc(8 * var(--s));
	border: calc(1.4 * var(--s)) solid #a160f2;
	border-radius: 999px;
	background: var(--home-white);
	box-shadow: 0 calc(12 * var(--s)) calc(22 * var(--s)) calc(-8 * var(--s)) rgb(90 30 205 / 0.75);
	color: #2c0b8a;
	font-size: calc(11 * var(--s));
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	translate: -50% -50%;
}

.vamora-serve-story__ticket .vamora-icon {
	color: var(--home-violet);
}

.vamora-serve-story__pulse {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(14 * var(--s));
	height: calc(14 * var(--s));
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 calc(5 * var(--s)) calc(2 * var(--s)) #d9b8ff, 0 0 calc(16 * var(--s)) calc(6 * var(--s)) rgb(160 64 255 / 0.75);
	opacity: 0;
	visibility: hidden;
	translate: -50% -50%;
}

/* The steps */
.vamora-serve-story__toggle {
	--icon-size: 1.25rem;

	position: absolute;
	top: 0.25rem;
	right: 0.25rem;
	z-index: 6;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--serve-glass-edge);
	border-radius: 50%;
	background: var(--home-glass-strong);
	box-shadow: 0 6px 14px -6px rgb(90 40 190 / 0.45);
	color: var(--home-violet);
	cursor: pointer;
}

.vamora-serve-story__toggle[hidden] {
	display: none;
}

.vamora-serve-story__play,
.vamora-serve-story__toggle[aria-pressed="true"] .vamora-serve-story__pause {
	display: none;
}

.vamora-serve-story__toggle[aria-pressed="true"] .vamora-serve-story__play {
	display: block;
}

.vamora-serve-story__steps {
	--story-node: 2.125rem;
	--story-pad: 1rem;

	position: relative;
	display: grid;
	grid-auto-rows: 1fr;
	gap: 0.25rem;
	padding: var(--story-pad) 1.25rem;
	border-top: 1px solid rgb(122 60 235 / 0.14);
	background: rgb(255 255 255 / 0.52);
}

/* The rail. The motion layer adds a second run over it, for how far the order has come. */
.vamora-serve-story__steps::before,
.vamora-serve-story__steps::after {
	position: absolute;
	top: calc(var(--story-pad) + var(--story-node) / 2);
	bottom: calc(var(--story-pad) + var(--story-node) / 2);
	left: calc(1.25rem + var(--story-node) / 2 - 1.5px);
	width: 3px;
	border-radius: 2px;
}

.vamora-serve-story__steps::before {
	background: linear-gradient(180deg, #e0d0fb, #cfb8f8);
	content: "";
}

.vamora-serve-story__step {
	position: relative;
	display: grid;
	grid-template-columns: var(--story-node) minmax(0, 1fr);
	column-gap: 0.75rem;
	align-content: start;
	padding-bottom: 0.5rem;
}

.vamora-serve-story__number {
	position: relative;
	z-index: 1;
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: var(--story-node);
	height: var(--story-node);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 25%, #9a42f2 0%, #5f18cf 62%, #4f10b8 100%);
	color: var(--home-white);
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
}

.vamora-serve-story__title {
	align-self: center;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: var(--home-track-snug);
}

.vamora-serve-story__text {
	grid-column: 2;
	margin-top: 0.125rem;
	color: var(--home-soft);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.vamora-serve-process {
		padding-inline: 1rem;
	}
}

@media (min-width: 48em) {
	.vamora-serve-story__canvas {
		--s: calc(100cqw / 1000);

		height: calc(424 * var(--s));
	}

	.vamora-serve-story__ribbon {
		top: calc(60 * var(--s));
		left: -9%;
		width: 118%;
		opacity: 0.8;
	}

	.vamora-serve-story__now {
		display: none;
	}

	.vamora-serve-story__tent {
		top: calc(226 * var(--s));
		left: calc(22 * var(--s));
	}

	.vamora-serve-story__served {
		top: calc(130 * var(--s));
		left: calc(32 * var(--s));
		display: flex;
	}

	.vamora-serve-story__plate {
		width: calc(52 * var(--s));
		height: calc(52 * var(--s));
	}

	.vamora-serve-story__device--phone {
		top: calc(12 * var(--s));
		left: calc(150 * var(--s));
		width: calc(196 * var(--s));
		height: calc(400 * var(--s));
	}

	.vamora-serve-story__tag--phone {
		top: calc(64 * var(--s));
		left: calc(-122 * var(--s));
	}

	.vamora-serve-story__device--board {
		top: calc(42 * var(--s));
		left: calc(420 * var(--s));
		width: calc(550 * var(--s));
		height: calc(366 * var(--s));
	}

	.vamora-serve-story__tag--board {
		top: calc(-28 * var(--s));
		left: calc(4 * var(--s));
	}

	.vamora-serve-story__steps {
		grid-auto-rows: auto;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0;
		padding-inline: 0;
	}

	.vamora-serve-story__steps::before,
	.vamora-serve-story__steps::after {
		right: 10%;
		bottom: auto;
		left: 10%;
		width: auto;
		height: 3px;
		translate: 0 -50%;
	}

	.vamora-serve-story__steps::before {
		background: linear-gradient(90deg, #e0d0fb, #cfb8f8);
	}

	.vamora-serve-story__step {
		display: block;
		padding: 0 0.5rem;
		text-align: center;
	}

	.vamora-serve-story__number {
		margin-inline: auto;
	}

	.vamora-serve-story__title {
		margin-top: 0.375rem;
		font-size: 0.875rem;
	}

	.vamora-serve-story__text {
		font-size: 0.75rem;
	}
}

@media (min-width: 64em) {
	.vamora-serve-process {
		padding-block: calc(26 * var(--u));
	}

	.vamora-serve-story {
		--serve-tall: 503;

		width: calc(948 * var(--u));
		margin: calc(16 * var(--u)) auto 0;
		border-radius: calc(26 * var(--u));
	}

	.vamora-serve-story__toggle {
		--icon-size: calc(16 * var(--u));

		top: calc(10 * var(--u));
		right: calc(10 * var(--u));
		width: max(calc(30 * var(--u)), 2.25rem);
		height: max(calc(30 * var(--u)), 2.25rem);
	}

	.vamora-serve-story__steps {
		--story-node: calc(27 * var(--u));
		--story-pad: calc(12 * var(--u));
	}

	.vamora-serve-story__step {
		padding-inline: calc(10 * var(--u));
	}

	.vamora-serve-story__number {
		font-size: calc(11 * var(--u));
	}

	.vamora-serve-story__title {
		margin-top: calc(5 * var(--u));
		font-size: max(calc(13 * var(--u)), 0.8125rem);
		line-height: calc(16 * var(--u));
	}

	.vamora-serve-story__text {
		margin-top: calc(2 * var(--u));
		font-size: max(calc(10.2 * var(--u)), 0.6875rem);
		line-height: calc(13 * var(--u));
	}
}
