/* ===== PIZZA HUT: HUT REWARDS (tools/builder/kits/ph_rewards.py, motion assets/js/ph-rewards.js with GSAP). His
   ProtoPie flow, rebuilt live: layout measured from his 750 x 1624 recording in --p (one iPhone point of the shared .ip
   frame), motion measured frame by frame (tools/pizzahut/motion/rewards.md). GSAP owns every moving property, so nothing
   here has a transition on a property the script tweens. */
.phr-stage .phr-phone { justify-self: center; }
.phr-app { position: absolute; inset: 0; overflow: hidden; background: #fff; font-size: calc(var(--a-subhead) * var(--p)); line-height: 1.3; }
.phr-app b { font-weight: 700; }
.phr-app i { font-style: normal; }
.phr-slice, .phr-logo, .phr-pattern { display: inline-block; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.phr-slice { width: calc(15 * var(--p)); height: calc(18 * var(--p)); color: var(--pa-red); flex: none; }

/* odometer reels: one column per digit, twenty digits tall, the script moves each column */
.phr-reel { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.phr-col { display: flex; flex-direction: column; will-change: transform; }
.phr-col span { display: block; height: 1em; line-height: 1; text-align: center; }

/* home */
.phr-home { position: absolute; inset: 0; }
.phr-top { position: absolute; left: calc(16 * var(--p)); right: calc(16 * var(--p)); top: calc(58 * var(--p)); display: flex; gap: calc(8 * var(--p)); }
.phr-pill { display: inline-flex; align-items: center; gap: calc(6 * var(--p)); height: calc(42 * var(--p)); padding: 0 calc(14 * var(--p)); border-radius: calc(8 * var(--p)); background: #F2F2F2; font-size: calc(var(--a-callout) * var(--p)); white-space: nowrap; }
.phr-loc { flex: none; margin-right: auto; padding-right: calc(18 * var(--p)); }
.phr-loc b { font-weight: 500; color: var(--pa-red); }
.phr-chev { width: calc(15 * var(--p)); height: calc(15 * var(--p)); fill: none; stroke: var(--pa-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-left: calc(4 * var(--p)); }
/* his points pill grows out from behind the profile button, then the slice gives a little wiggle */
.phr-pts { padding: 0; }
.phr-pts-in { display: inline-flex; align-items: center; padding: 0 calc(12 * var(--p)); }
.phr-pts-in .phr-slice { margin-left: calc(6 * var(--p)); }
.phr-pts b { font-weight: 500; display: inline-block; }
.phr-pts .phr-slice { transform-origin: 50% 70%; }
.phr-me { width: calc(42 * var(--p)); justify-content: center; padding: 0; position: relative; z-index: 1; }
.phr-user { width: calc(24 * var(--p)); height: calc(24 * var(--p)); fill: none; stroke: var(--pa-ink); stroke-width: 1.6; }
.phr-hello { position: absolute; top: calc(118 * var(--p)); left: calc(16 * var(--p)); right: 0; height: calc(90 * var(--p)); }
.phr-hello p { font-size: calc(var(--a-title-l) * var(--p)); font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; }
.phr-hello img { position: absolute; right: 0; top: calc(-18 * var(--p)); width: calc(178 * var(--p)); height: auto; }
.phr-tabs { position: absolute; top: calc(203 * var(--p)); left: calc(16 * var(--p)); display: flex; gap: calc(8 * var(--p)); }
.phr-tabs .pa-chip { position: relative; height: calc(40 * var(--p)); padding: 0 calc(16 * var(--p)); border-radius: calc(6 * var(--p)); font-size: calc(var(--a-callout) * var(--p)); font-weight: 500; }
.phr-content { position: absolute; top: calc(259 * var(--p)); left: 0; right: 0; bottom: 0; overflow: hidden; }
.phr-list { position: absolute; inset: 0; padding: 0 calc(16 * var(--p)); }
.phr-pizzas { opacity: 0; visibility: hidden; }
.phr-deal { overflow: hidden; border-radius: calc(10 * var(--p)); position: relative; }
.phr-deal img { width: 100%; height: auto; }
.phr-deal-t { padding: calc(4 * var(--p)) calc(16 * var(--p)) calc(16 * var(--p)); font-size: calc(var(--a-subhead) * var(--p)); }
.phr-price { margin-top: calc(4 * var(--p)) !important; font-size: calc(var(--a-subhead) * var(--p)); }
.phr-price s { color: #8A8A8A; }
.phr-price b { color: var(--pa-red); }
.phr-fam { position: absolute; right: calc(16 * var(--p)); bottom: calc(16 * var(--p)); padding: calc(5 * var(--p)) calc(9 * var(--p)); border-radius: calc(4 * var(--p)); background: #222; color: #fff; font-size: calc(var(--a-footnote) * var(--p)); font-weight: 600; }
.phr-banner { display: flex; align-items: center; gap: calc(14 * var(--p)); height: calc(74 * var(--p)); padding: 0 calc(16 * var(--p)); border-radius: calc(6 * var(--p)); }
.phr-banner .phr-slice { width: calc(26 * var(--p)); height: calc(30 * var(--p)); }
.phr-banner b { display: block; font-size: calc(var(--a-subhead) * var(--p)); font-weight: 700; }
.phr-banner span { color: var(--pa-red); font-size: calc(var(--a-footnote) * var(--p)); }
.phr-plist { margin-top: calc(14 * var(--p)); }
.phr-pcard { overflow: hidden; border-radius: calc(8 * var(--p)); padding-bottom: calc(16 * var(--p)); text-align: center; }
.phr-pcard + .phr-pcard { margin-top: calc(14 * var(--p)); }
.phr-pimg { position: relative; }
.phr-pimg img { display: block; width: 100%; height: auto; }
/* his "x1" badge on the card once it is in the basket */
.phr-x1 { position: absolute; left: calc(8 * var(--p)); top: calc(8 * var(--p)); display: grid; place-items: center; width: calc(36 * var(--p)); height: calc(32 * var(--p)); border-radius: calc(6 * var(--p));
  background: #C8102E; color: #fff; font-size: calc(var(--a-callout) * var(--p)); font-weight: 700; opacity: 0; transform: scale(0); }
.phr-tags { display: flex; justify-content: center; gap: calc(6 * var(--p)); margin-top: calc(10 * var(--p)) !important; }
.phr-tags i { padding: calc(4 * var(--p)) calc(8 * var(--p)); border-radius: calc(3 * var(--p)); font-size: calc(var(--a-micro) * var(--p)); font-weight: 700; letter-spacing: 0.01em; }
.phr-tags .t-new { color: #D0011B; background: #FDECEC; } .phr-tags .t-spicy { color: #E18A00; background: #FFF2D1; } .phr-tags .t-gf { color: #4D3B25; background: #EEE5D7; }
.phr-pname { margin-top: calc(10 * var(--p)) !important; font-size: calc(var(--a-callout) * var(--p)); font-weight: 700; }
.phr-from { font-size: calc(var(--a-footnote) * var(--p)); }
/* his Review order bar: rises on a white footer once the pizza is in the basket */
.phr-robw { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(108 * var(--p)); padding: calc(13 * var(--p)) calc(16 * var(--p)) 0; background: #fff;
  box-shadow: 0 calc(-6 * var(--p)) calc(18 * var(--p)) rgba(0, 0, 0, 0.06); transform: translateY(105%); }
.phr-rob { position: relative; height: calc(60 * var(--p)); border-radius: calc(6 * var(--p)); justify-content: center; font-size: calc(var(--a-body) * var(--p)); font-weight: 700; }
.phr-rob b { position: absolute; right: calc(18 * var(--p)); font-weight: 500; }

/* his order tracker on home, after checkout: ORDER CONFIRMED on one line, the rider poking over the top */
.phr-track { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(188 * var(--p)); border-radius: calc(20 * var(--p)) calc(20 * var(--p)) 0 0; background: #fff;
  box-shadow: 0 calc(-4 * var(--p)) calc(22 * var(--p)) rgba(0, 0, 0, 0.1); transform: translateY(115%); }
/* his lines, measured on his frame: cap heights 24pt, 10.5pt and 19pt, all from his 2x pixels */
.phr-t { position: absolute; display: block; background-repeat: no-repeat; }
.phr-t-order { left: calc(28 * var(--p)); top: calc(26.7 * var(--p)); width: calc(52.2 * var(--p)); height: calc(25 * var(--p)); background-size: calc(121.6 * var(--p)) auto; background-position: calc(-5.44 * var(--p)) calc(-32 * var(--p)); }
.phr-t-conf { left: calc(85.2 * var(--p)); top: calc(26.7 * var(--p)); width: calc(94.1 * var(--p)); height: calc(25 * var(--p)); background-size: calc(121.6 * var(--p)) auto; background-position: calc(-5.44 * var(--p)) calc(-58.24 * var(--p)); }
.phr-t-eta { left: calc(28.5 * var(--p)); top: calc(60.9 * var(--p)); width: calc(138.5 * var(--p)); height: calc(13.2 * var(--p)); background-size: calc(147.8 * var(--p)) auto; background-position: calc(-7 * var(--p)) calc(-115.1 * var(--p)); }
.phr-t-time { left: calc(28.5 * var(--p)); top: calc(85 * var(--p)); width: calc(80.6 * var(--p)); height: calc(18.5 * var(--p)); background-size: calc(88 * var(--p)) auto; background-position: calc(-4.2 * var(--p)) calc(-3 * var(--p)); }
.phr-track .phr-rider { position: absolute; right: calc(29.7 * var(--p)); top: calc(18.6 * var(--p)); width: calc(85.1 * var(--p)); height: calc(89.1 * var(--p)); }

/* the rewards card, sliding up over home */
.phr-sheet { position: absolute; inset: 0; z-index: 5; overflow: hidden; background: #fff; transform: translateY(102%); }
.phr-bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: calc(104 * var(--p)); background: #1C1C1C; box-shadow: 0 2px 0 #1C1C1C; color: #fff; text-align: center; }
.phr-sh-t { padding-top: calc(66 * var(--p)); font-size: calc(var(--a-callout) * var(--p)); font-weight: 600; }
.phr-dark { height: calc(172 * var(--p)); padding-top: calc(16 * var(--p)); background: #1C1C1C; color: #fff; text-align: center; }
.phr-x { position: absolute; right: calc(18 * var(--p)); top: calc(60 * var(--p)); width: calc(30 * var(--p)); height: calc(30 * var(--p)); display: grid; place-items: center; }
.phr-x svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.phr-earn { margin-top: 0 !important; font-size: calc(var(--a-title-l) * var(--p)); font-weight: 700; line-height: 1.3; }
.phr-scroll { position: absolute; top: 0; left: 0; right: 0; padding-top: calc(104 * var(--p)); }
.phr-rcard { position: relative; overflow: hidden; height: calc(196 * var(--p)); margin: calc(-62 * var(--p)) calc(15 * var(--p)) 0; padding: calc(10 * var(--p)) calc(26 * var(--p)); border-radius: calc(12 * var(--p)); background: #C8102E; color: #fff;
  transform-origin: 50% 50%; will-change: transform; }
.phr-logo { display: block; width: calc(172 * var(--p)); height: calc(34 * var(--p)); color: #fff; -webkit-mask-position: left center; mask-position: left center; }
.phr-pattern { position: absolute; right: calc(-36 * var(--p)); top: calc(-26 * var(--p)); width: calc(206 * var(--p)); height: calc(262 * var(--p)); color: rgba(255, 255, 255, 0.16); }
.phr-you { margin-top: calc(12 * var(--p)) !important; color: rgba(255, 255, 255, 0.6); font-size: calc(var(--a-subhead) * var(--p)); font-weight: 600; }
.phr-big { display: flex; align-items: baseline; gap: calc(6 * var(--p)); margin-top: calc(14 * var(--p)) !important; }
.phr-big .phr-reel { font-family: 'PH Display', 'PH Sans', sans-serif; font-size: calc(84 * var(--p)); font-weight: 700; letter-spacing: -0.02em; height: 0.92em; line-height: 0.92; }
.phr-big .phr-col span { height: 0.92em; line-height: 0.92; }
.phr-big > span { font-size: calc(var(--a-title-m) * var(--p)); font-weight: 700; }
.phr-skel, .phr-tiers { padding: 0 calc(15 * var(--p)); }
.phr-below { position: relative; }
.phr-skel { position: absolute; left: 0; right: 0; top: 0; }
.phr-skel i, .phr-skel b { display: block; border-radius: calc(10 * var(--p)); background: #F1F1F1; }
.phr-skel i { width: 42%; height: calc(24 * var(--p)); margin: calc(20 * var(--p)) 0 calc(14 * var(--p)); }
.phr-skel b { height: calc(78 * var(--p)); margin-left: calc(4 * var(--p)); }
.phr-tier { opacity: 0; }
.phr-tier-h { margin: calc(34 * var(--p)) 0 calc(17 * var(--p)) !important; font-size: calc(var(--a-body) * var(--p)); font-weight: 700; }
/* the five-point tier is a row you can swipe (his: wedges peek in from the right) */
.phr-row { display: flex; gap: calc(8 * var(--p)); margin-right: calc(-15 * var(--p)); }
.phr-reward { flex: none; display: flex; align-items: center; gap: calc(16 * var(--p)); width: 100%; height: calc(78 * var(--p)); padding: 0 calc(18 * var(--p)) 0 calc(10 * var(--p)); border-radius: calc(8 * var(--p)); }
.phr-row .phr-reward:first-child:not(:last-child) { width: calc(324 * var(--p)); }
.phr-row .phr-reward:only-child { width: calc(100% - 15 * var(--p)); }
.phr-reward p { flex: 1; }
.phr-reward b { display: block; font-size: calc(var(--a-callout) * var(--p)); font-weight: 700; }
.phr-reward span { color: var(--pa-red); font-size: calc(var(--a-subhead) * var(--p)); }
.phr-app img.phr-th-sq { width: calc(80 * var(--p)) !important; height: calc(58 * var(--p)) !important; object-fit: cover; border-radius: calc(4 * var(--p)); }
.phr-app img.phr-th-ro { width: calc(72 * var(--p)) !important; height: calc(72 * var(--p)) !important; object-fit: cover; border-radius: 50%; margin: 0 calc(4 * var(--p)); }
.phr-plus { width: calc(24 * var(--p)); height: calc(24 * var(--p)); fill: none; stroke: var(--pa-red); stroke-width: 1.8; stroke-linecap: round; }

/* the pizza: his container transform grows it out of its card (the script scales and clips .phr-prod from the card) */
.phr-veil { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; }
.phr-prod { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: #fff; text-align: center; visibility: hidden; transform-origin: 0 0; }
.phr-pg { position: absolute; inset: 0; }
.phr-hero { position: relative; height: calc(262 * var(--p)); overflow: hidden; }
.phr-hero img { display: block; width: 100%; height: auto; transform-origin: 50% 0; }
.phr-prod .phr-ptxt { margin-top: calc(-6 * var(--p)); }
.phr-x-l { top: calc(55 * var(--p)); right: calc(25 * var(--p)); width: calc(36 * var(--p)); height: calc(36 * var(--p)); padding: calc(8 * var(--p)); border-radius: 50%; background: #fff; color: var(--pa-ink); box-shadow: 0 calc(2 * var(--p)) calc(8 * var(--p)) rgba(0, 0, 0, 0.18); }
.phr-desc { margin-top: calc(14 * var(--p)) !important; font-size: calc(var(--a-subhead) * var(--p)); line-height: 1.32; color: #333; }
.phr-cust { display: inline-flex; align-items: center; gap: calc(6 * var(--p)); margin-top: calc(22 * var(--p)) !important; padding: calc(11 * var(--p)) calc(16 * var(--p)); border-radius: calc(8 * var(--p)); background: #F5F6F8; font-size: calc(var(--a-subhead) * var(--p)); }
.phr-tom { width: calc(21 * var(--p)); height: calc(21 * var(--p)); fill: none; stroke: var(--pa-red); stroke-width: 1.7; }
.phr-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(15 * var(--p)); margin: calc(30 * var(--p)) calc(15 * var(--p)) 0; }
.phr-size { position: relative; display: grid; gap: calc(3 * var(--p)); padding: calc(18 * var(--p)) 0; border-radius: calc(6 * var(--p)); background: #F5F6F8; box-shadow: inset 0 0 0 1.5px transparent; }
.phr-size b { font-size: calc(var(--a-callout) * var(--p)); font-weight: 700; }
.phr-size i { font-size: calc(var(--a-footnote) * var(--p)); color: #8A8A8A; }
.phr-size i + i { font-weight: 600; }
.phr-size i + i { color: var(--pa-ink); }
.phr-size.on { background: #F5F6F8; box-shadow: inset 0 0 0 1.5px #A3A6B4; }
.phr-size em, .phr-crust em { position: absolute; top: calc(4 * var(--p)); right: calc(4 * var(--p)); width: calc(15 * var(--p)); height: calc(15 * var(--p)); border-radius: calc(3 * var(--p)); background: var(--pa-red); display: grid; place-items: center; }
.phr-size em svg, .phr-crust em svg { width: 80%; fill: none; stroke: #fff; stroke-width: 3; }
.phr-crust { position: relative; display: flex; align-items: center; gap: calc(12 * var(--p)); height: calc(70 * var(--p)); margin: calc(34 * var(--p)) calc(15 * var(--p)) 0; overflow: hidden; border-radius: calc(6 * var(--p)); background: #F5F6F8; box-shadow: inset 0 0 0 1.5px #A3A6B4; text-align: left; }
.phr-crust img { width: calc(78 * var(--p)); height: 100%; object-fit: cover; object-position: 70% 70%; }
.phr-crust b { display: block; font-size: calc(var(--a-callout) * var(--p)); font-weight: 700; }
.phr-crust span { font-size: calc(var(--a-footnote) * var(--p)); color: #8A8A8A; }
.phr-foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: calc(14 * var(--p)) calc(16 * var(--p)) calc(28 * var(--p)); background: #fff; box-shadow: 0 calc(-6 * var(--p)) calc(18 * var(--p)) rgba(0, 0, 0, 0.07); }
.phr-use { display: flex; align-items: center; gap: calc(8 * var(--p)); height: calc(42 * var(--p)); text-align: left; padding: 0 calc(2 * var(--p)); }
.phr-use .phr-slice { width: calc(18 * var(--p)); height: calc(21 * var(--p)); }
.phr-use b { font-size: calc(var(--a-callout) * var(--p)); font-weight: 600; }
/* his checkbox: the tick is always drawn, white on grey; ticking fades the grey to red */
.phr-box { margin-left: auto; width: calc(26 * var(--p)); height: calc(26 * var(--p)); border-radius: calc(4 * var(--p)); background: #E9EAEC; display: grid; place-items: center; }
.phr-box svg { width: 76%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phr-add { justify-content: space-between; height: calc(60 * var(--p)); margin-top: calc(10 * var(--p)) !important; padding: 0 calc(26 * var(--p)) 0 calc(30 * var(--p)); border-radius: calc(8 * var(--p)); font-size: calc(var(--a-body) * var(--p)); }
.phr-add > span:first-child { flex: 1; text-align: center; padding-left: calc(30 * var(--p)); }
.phr-amt { position: relative; display: block; width: calc(70 * var(--p)); height: 1.3em; text-align: right; }
.phr-amt b { position: absolute; right: 0; top: 0; font-weight: 600; transform-origin: 100% 60%; }
.phr-amt .a-free { opacity: 0; letter-spacing: 0.02em; }
.phr-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phr-confetti-p { z-index: 3; }
.phr-confetti-s { z-index: 1; }

/* the points pop-up: his dark veil, the card springs in, the number rolls */
.phr-pop { position: absolute; inset: 0; z-index: 8; background: rgba(43, 43, 43, 0.96); opacity: 0; visibility: hidden; }
.phr-pcard2 { position: absolute; left: calc(21.5 * var(--p)); right: calc(21.5 * var(--p)); top: calc(132 * var(--p)); height: calc(545 * var(--p)); border-radius: calc(14 * var(--p)); background: #fff; text-align: center; }
.phr-logo-red { position: absolute; left: 50%; top: calc(48 * var(--p)); width: calc(162 * var(--p)); height: calc(38 * var(--p)); margin-left: calc(-81 * var(--p)); color: var(--pa-red); -webkit-mask-position: center; mask-position: center; }
.phr-pop-t { position: absolute; left: 0; right: 0; top: calc(108 * var(--p)); font-size: calc(var(--a-title-m) * var(--p)); font-weight: 700; line-height: 1.48; }
.phr-pop-n { position: absolute; left: 50%; top: calc(201.5 * var(--p)); width: calc(190 * var(--p)); height: calc(190 * var(--p)); margin-left: calc(-95 * var(--p)); }
.phr-app .phr-pop-pat { position: absolute; inset: 0; width: 100%; height: 100%; }
.phr-pop-n .phr-reel { position: absolute; left: 0; right: 0; justify-content: center; top: calc(28 * var(--p)); font-family: 'PH Display', 'PH Sans', sans-serif; font-size: calc(92 * var(--p)); font-weight: 700; height: 1em; line-height: 1; color: var(--pa-red); }
.phr-pop-n .phr-col span { height: 1em; line-height: 1; }
.phr-pop-n > span { position: absolute; left: 0; right: 0; top: calc(116 * var(--p)); font-size: calc(var(--a-title-m) * var(--p)); font-weight: 700; }
.phr-claim { position: absolute; left: 50%; top: calc(430 * var(--p)); width: calc(214 * var(--p)); height: calc(60 * var(--p)); margin-left: calc(-107 * var(--p)) !important; border-radius: calc(5 * var(--p)); font-size: calc(var(--a-body) * var(--p)); }
/* the touch marker: GSAP presses it (his ProtoPie shows a soft white disc while the finger is down) */
.phr-phone .ip-touch, .phr-phone .ip-touch.press { animation: none; }
@media (max-width: 999px) { .phr-stage .phr-phone { width: min(320px, 82%); padding: calc(min(320px, 82%) * 0.034); } }

/* the stage on a light ground: the shared beats are drawn for dark stages, so they get ink here and Pizza Hut red */
.phr-stage .nx-track { background: rgba(28, 28, 28, 0.12); }
.phr-stage .nx-track i { background: #C8102E; }
.phr-stage .nx-beat:focus-visible { outline-color: #C8102E; }
.phr-stage .nx-beat .ph-num, .phr-stage .nx-beat .ph-name { color: rgba(28, 28, 28, 0.55); }
.phr-stage .nx-beat .ph-small { color: rgba(28, 28, 28, 0.45); }
.phr-stage .nx-beat.on .ph-num { color: #C8102E; }
.phr-stage .nx-beat.on .ph-name, .phr-stage .nx-beat:hover .ph-name { color: #1C1C1C; }
.phr-stage .nx-beat.on .ph-small { color: rgba(28, 28, 28, 0.72); }

/* beat 04, his review, checkout and confirmation (Hut Rewards recording, 57 to 75s) */
.phr-rev, .phr-done { position: absolute; inset: 0; z-index: 6; background: #fff; text-align: left; transform: translateY(102%); }
.phr-done { z-index: 7; }
/* his close buttons on these screens: a white disc with a soft warm shadow */
.phr-xc { right: calc(25 * var(--p)); width: calc(36 * var(--p)); height: calc(36 * var(--p)); padding: calc(8 * var(--p)); border-radius: 50%; background: #fff; box-shadow: calc(4 * var(--p)) calc(6 * var(--p)) calc(16 * var(--p)) rgba(200, 16, 46, 0.1); }
.phr-rbar { position: relative; height: calc(110 * var(--p)); padding-top: calc(57 * var(--p)); text-align: center; }
.phr-rbar::after { content: ""; position: absolute; left: calc(13 * var(--p)); right: calc(13 * var(--p)); bottom: 0; height: 1px; background: #F3E4E7; }
.phr-rbar p { font-size: calc(var(--a-body) * var(--p)); font-weight: 500; line-height: calc(30 * var(--p)); }
.phr-rbar .phr-x, .phr-done > .phr-x { top: calc(55 * var(--p)); color: var(--pa-ink); }
.phr-line { display: flex; justify-content: space-between; gap: calc(10 * var(--p)); padding: calc(16 * var(--p)) calc(20 * var(--p)) 0; font-size: calc(var(--a-callout) * var(--p)); }
.phr-line p { font-weight: 500; }
.phr-line p span { display: block; margin-top: calc(6 * var(--p)); padding-left: calc(28 * var(--p)); color: var(--pa-soft); font-size: calc(var(--a-subhead) * var(--p)); font-weight: 400; }
.phr-line > b { font-weight: 500; }
.phr-q { display: inline-block; width: calc(28 * var(--p)); color: var(--pa-red); font-weight: 700; }
.phr-q small { font-size: 0.7em; margin-left: calc(3 * var(--p)); vertical-align: 0.1em; }
.phr-ruse { display: flex; align-items: center; gap: calc(8 * var(--p)); margin: calc(20 * var(--p)) calc(13 * var(--p)) 0 !important; padding: 0 calc(7 * var(--p)) calc(20 * var(--p)); border-bottom: 1px solid #F3E4E7; font-size: calc(var(--a-subhead) * var(--p)); }
.phr-ruse b { font-weight: 700; }
.phr-ruse .phr-box { margin-left: auto; }
.phr-box-off { background: #EEEFF1 !important; }
.phr-info { width: calc(15 * var(--p)); height: calc(15 * var(--p)); flex: none; }
.phr-info circle { fill: var(--pa-ink); }
.phr-info path { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.phr-more { display: flex; justify-content: space-between; margin: calc(72 * var(--p)) calc(18 * var(--p)) 0 calc(21 * var(--p)) !important; font-size: calc(var(--a-callout) * var(--p)); }
.phr-more b { font-weight: 500; }
.phr-more span { color: var(--pa-red); }
.phr-ups { display: flex; gap: calc(10 * var(--p)); margin: calc(18 * var(--p)) 0 0 calc(18 * var(--p)); }
.phr-up { flex: none; display: flex; align-items: center; gap: calc(10 * var(--p)); width: calc(302 * var(--p)); height: calc(84 * var(--p)); padding: 0 calc(14 * var(--p)) 0 calc(4 * var(--p)); border-radius: calc(8 * var(--p)); background: #F5F6F8; font-size: calc(var(--a-callout) * var(--p)); }
.phr-up img { width: calc(92 * var(--p)); height: calc(70 * var(--p)); object-fit: contain; }
.phr-up p { flex: 1; }
.phr-up b { display: block; font-weight: 700; }
.phr-up span { color: var(--pa-soft); }
.phr-up .phr-plus { width: calc(24 * var(--p)); stroke: var(--pa-red); stroke-width: 1.8; fill: none; }
.phr-opt { display: flex; gap: calc(14 * var(--p)); align-items: flex-start; margin: calc(56 * var(--p)) calc(17 * var(--p)) 0 calc(21 * var(--p)); font-size: calc(var(--a-callout) * var(--p)); }
.phr-opt b { font-weight: 500; }
.phr-opt span { display: block; margin-top: calc(6 * var(--p)); font-size: calc(var(--a-footnote) * var(--p)); line-height: 1.35; }
.phr-tg { position: relative; flex: none; width: calc(50 * var(--p)); height: calc(30 * var(--p)); border-radius: 99px; background: #E3E3E7; }
.phr-tg::after { content: ""; position: absolute; left: calc(2 * var(--p)); top: calc(2 * var(--p)); width: calc(26 * var(--p)); height: calc(26 * var(--p)); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.phr-tg.on { background: #34C759; }
.phr-tg.on::after { left: auto; right: calc(2 * var(--p)); }
.phr-coupon { display: flex; justify-content: space-between; align-items: center; margin: calc(38 * var(--p)) calc(20 * var(--p)) 0 calc(21 * var(--p)) !important; font-size: calc(var(--a-callout) * var(--p)); }
.phr-coupon b { font-weight: 500; }
.phr-chevr { width: calc(16 * var(--p)); height: calc(16 * var(--p)); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phr-coupon .phr-chevr { stroke: var(--pa-red); }
.phr-tot { margin-top: calc(30 * var(--p)); padding: calc(16 * var(--p)) calc(22 * var(--p)) calc(140 * var(--p)); background: #F5F6F8; font-size: calc(var(--a-subhead) * var(--p)); line-height: 1.3; color: #555; }
.phr-tot p { display: flex; justify-content: space-between; }
/* his footer: Checkout waits pale until the order is priced, then what it earns slides in above it */
.phr-rfoot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(162 * var(--p)); padding: calc(24 * var(--p)) calc(16 * var(--p)) 0; border-radius: calc(18 * var(--p)) calc(18 * var(--p)) 0 0; background: #F8F8F9;
  box-shadow: 0 calc(-6 * var(--p)) calc(20 * var(--p)) rgba(0, 0, 0, 0.08); }
.phr-earnrow { display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--p)); height: calc(24 * var(--p)); font-size: calc(var(--a-subhead) * var(--p)); }
.phr-earnrow b { font-weight: 700; }
.phr-earnrow .phr-slice { width: calc(18 * var(--p)); height: calc(21 * var(--p)); }
.phr-checkout { position: relative; margin-top: calc(20 * var(--p)) !important; height: calc(60 * var(--p)); border-radius: calc(8 * var(--p)); justify-content: center; font-size: calc(var(--a-body) * var(--p)); }
.phr-checkout b { position: absolute; right: calc(18 * var(--p)); font-weight: 500; }
.phr-n { position: absolute; left: calc(8 * var(--p)); top: calc(7 * var(--p)); bottom: calc(7 * var(--p)); width: calc(45 * var(--p)); display: grid; place-items: center; border-radius: calc(6 * var(--p)); background: rgba(0, 0, 0, 0.16); font-weight: 700; }
.phr-dim2 { position: absolute; inset: 0; z-index: 6; background: rgba(0, 0, 0, 0.62); opacity: 0; pointer-events: none; }
.phr-chk { position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(-40 * var(--p)); top: calc(170 * var(--p)); border-radius: calc(20 * var(--p)) calc(20 * var(--p)) 0 0; background: #fff; transform: translateY(102%); }
.phr-chk .phr-rbar { height: calc(112 * var(--p)); padding-top: calc(47 * var(--p)); }
.phr-chk .phr-rbar::after { display: none; }
.phr-chk .phr-rbar .phr-x { top: calc(42 * var(--p)); right: calc(25 * var(--p)); width: calc(36 * var(--p)); height: calc(36 * var(--p)); padding: calc(8 * var(--p)); border-radius: 50%; box-shadow: calc(4 * var(--p)) calc(6 * var(--p)) calc(16 * var(--p)) rgba(200, 16, 46, 0.1); }
.phr-crow { display: flex; align-items: center; gap: calc(12 * var(--p)); margin: 0 calc(16 * var(--p)) !important; height: calc(66 * var(--p)); padding: 0 calc(10 * var(--p)); border-bottom: 1px solid #F3E4E7; font-size: calc(var(--a-body) * var(--p)); font-weight: 500; }
.phr-crow span { flex: 1; }
.phr-crow .phr-chevr { color: #999; }
.phr-ic { width: calc(27 * var(--p)); height: calc(27 * var(--p)); fill: none; stroke: var(--pa-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.phr-apay-ic { width: calc(28 * var(--p)); stroke-width: 1.2; }
.phr-apay-ic text { fill: var(--pa-ink); stroke: none; font: 600 7.4px 'PH Sans', sans-serif; }
.phr-apay-ic .ap { fill: var(--pa-ink); stroke: none; }
.phr-cless { border: 0; padding: 0 calc(10 * var(--p)) 0 calc(6 * var(--p)); height: calc(88 * var(--p)); }
.phr-cless span { flex: none; }
.phr-cless .phr-tg { margin-left: auto; }
.phr-applepay { position: absolute; left: calc(16 * var(--p)); right: calc(16 * var(--p)); bottom: calc(70 * var(--p)); display: flex; align-items: center; justify-content: center; gap: calc(4 * var(--p)); height: calc(60 * var(--p));
  border-radius: calc(6 * var(--p)); background: #000; color: #fff; font-size: calc(var(--a-title-l) * var(--p)); font-weight: 600; letter-spacing: -0.01em; }
.phr-apple { width: calc(19 * var(--p)); height: calc(23 * var(--p)); fill: #fff; margin-top: calc(-4 * var(--p)); }
.phr-paying { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; }
/* ORDER CONFIRMED: his type and time as his pixels, his rider as his 76-frame kick loop */
.phr-conf { position: relative; height: calc(278 * var(--p)); margin-top: calc(101 * var(--p)); }
.phr-app .phr-c-head { position: absolute; left: calc(10 * var(--p)); top: 0; width: calc(190 * var(--p)); height: auto; }
.phr-app .phr-c-time { position: absolute; left: calc(10 * var(--p)); top: calc(175 * var(--p)); width: calc(190 * var(--p)); height: auto; }
.phr-conf .phr-rider { position: absolute; right: calc(4 * var(--p)); top: calc(48.5 * var(--p)); width: calc(172 * var(--p)); height: calc(180 * var(--p)); }
.phr-rider { background-repeat: no-repeat; background-size: 1000% 800%; background-position: 0 0; }
.phr-you2 { margin: calc(-12 * var(--p)) calc(21 * var(--p)) 0 !important; font-size: calc(var(--a-body) * var(--p)); }
.phr-line2 { margin: calc(12 * var(--p)) calc(17 * var(--p)) 0; padding: calc(16 * var(--p)); border-radius: calc(4 * var(--p)); background: #F5F6F8; }
.phr-line2 p b { font-weight: 700; }
.phr-line2 > b { font-size: calc(var(--a-subhead) * var(--p)); font-weight: 500; }
.phr-line2 p span { padding-left: 0; }
/* the order adds up: the free pizza shows what it would have cost, the saving is its own line (Arash 2026-11-16) */
.phr-freeb { display: flex; gap: calc(6 * var(--p)); align-items: baseline; color: var(--pa-red, #D0011B); font-weight: 700 !important; }
.phr-freeb s { color: var(--pa-soft); font-weight: 400; }
.phr-box-on { background: #D0011B !important; }
.phr-save { color: var(--pa-red, #D0011B); font-weight: 600; }
.phr-n { overflow: hidden; }
.phr-n1, .phr-n2 { grid-area: 1 / 1; display: block; }
