/* After Hours, direction A "Night shift ticket": stamped cobalt, thermal receipts, line-drawn regulars. */
@font-face { font-family: "Anton"; src: url("assets/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Doto"; src: url("assets/fonts/doto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0e1120;
  --night-2: #171b30;
  --cobalt: #1d3fe0;
  --cobalt-bright: #4d6bff;
  --butter: #ffe45c;
  --paper: #f3efe6;
  --paper-shade: #e2dccd;
  --ink: #15151a;
  --muted: #5a5a66;
  --error: #c4261d;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --dots: "Doto", "Courier New", monospace;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 4vw, 56px);
  /* Torn receipt edge: a zigzag mask along the top and bottom. */
  --tear: linear-gradient(#000 0 0) center / 100% calc(100% - 16px) no-repeat,
          conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 8px repeat-x,
          conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* Film grain over the whole page. */
body::before { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .09; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
/* Tilted stickers and bands may poke past the edge; never let them cause sideways scrolling. */
main, .site-footer { overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.dots { font-family: var(--dots); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dots.small { font-size: 14px; font-weight: 700; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--butter); color: var(--ink); }
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); padding: 12px var(--gutter); background: rgb(14 17 32 / 88%); backdrop-filter: blur(8px); border-bottom: 1px dashed rgb(243 239 230 / 25%); }
.wordmark { display: block; padding: 5px 7px; background: var(--paper); transform: rotate(-3deg); transition: transform 300ms var(--ease); box-shadow: 0 6px 14px rgb(0 0 0 / 40%); }
.wordmark img { width: 92px; }
.wordmark:hover { transform: rotate(0deg) scale(1.04); }
.now-serving { display: flex; align-items: baseline; gap: 10px; font-family: var(--dots); text-transform: uppercase; font-weight: 700; font-size: 13px; color: rgb(243 239 230 / 70%); }
.now-serving strong { font-size: 22px; font-weight: 900; color: var(--butter); }
.site-header nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--butter); }
.cart-button { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; background: var(--butter); color: var(--ink); font: 700 15px var(--body); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 70%, 6px 50%, 0 30%); transition: transform 160ms var(--ease); }
.cart-button:active { transform: scale(.96); }
.cart-button span { min-width: 26px; padding: 2px 6px; background: var(--ink); color: var(--butter); font: 900 14px var(--dots); text-align: center; }

/* Buttons that look like tear-off tickets */
.ticket-button, .primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 56px; padding: 0 24px; border: 0; background: var(--butter); color: var(--ink); font: 400 22px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; transition: transform 160ms var(--ease), background-color 200ms var(--ease); }
.ticket-button:hover, .primary:hover { background: #fff07f; transform: rotate(-1.5deg); }
.ticket-button:active, .primary:active { transform: rotate(-1.5deg) scale(.97); }
.ticket-button span:not([data-place-total]), .primary span:not(#product-price) { font-size: 26px; }
[data-place-total], #product-price { font: 900 18px var(--dots); }

/* Hero: a stamp, a receipt and a sticker on a night desk */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(820px, 92vh); padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(80px, 9vw, 140px); }
.hero-stamp { display: grid; gap: clamp(18px, 2.4vw, 30px); justify-items: start; }
.hero-stamp h1 { width: min(100%, 720px); padding: clamp(18px, 3vw, 40px); background: var(--paper) linear-gradient(180deg, transparent 0 96%, rgb(0 0 0 / 4%) 96%) 0 0 / 100% 26px; -webkit-mask: var(--tear); mask: var(--tear); transform: rotate(-4deg); margin-left: -1%; box-shadow: 0 30px 60px rgb(0 0 0 / 45%); animation: stamp-in 700ms var(--ease) both; }
.hero-stamp h1 img { width: 100%; }
.hero-line { font: 400 clamp(26px, 3vw, 42px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.hours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font: 900 clamp(28px, 3vw, 40px) var(--dots); color: var(--butter); }
.hours-days { font-size: 14px; font-weight: 700; color: rgb(243 239 230 / 70%); text-transform: uppercase; }
.hero-receipt { position: relative; justify-self: center; width: min(360px, 100%); }
.receipt { position: relative; display: grid; gap: 6px; padding: 36px 30px 40px; background: var(--paper) linear-gradient(180deg, transparent 0 96%, rgb(0 0 0 / 4%) 96%) 0 0 / 100% 26px; color: var(--ink); text-align: center; -webkit-mask: var(--tear); mask: var(--tear); box-shadow: 0 30px 60px rgb(0 0 0 / 45%); }
.receipt hr { width: 100%; margin: 10px 0; border: 0; border-top: 2px dashed rgb(21 21 26 / 45%); }
.receipt .dots { font-size: 18px; }
.receipt .big { font-size: 46px; font-weight: 900; color: var(--cobalt); }
.receipt .huge { font-size: clamp(64px, 7vw, 92px); font-weight: 900; line-height: .95; color: var(--cobalt); }
.hero-receipt .receipt { transform: rotate(5deg); animation: receipt-print 900ms 150ms var(--ease) both; }
.sticker { position: absolute; filter: drop-shadow(0 12px 18px rgb(0 0 0 / 45%)); pointer-events: none; }
.sticker-slice { width: 64%; right: -18%; bottom: -16%; transform: rotate(14deg); animation: sticker-in 600ms 600ms var(--ease) both; }
.sticker-moon { width: 34%; left: -22%; top: -10%; transform: rotate(-12deg); filter: brightness(1.6) drop-shadow(0 8px 14px rgb(0 0 0 / 40%)); }

/* Crossed ticker bands */
.tickers { position: relative; height: 150px; margin: -60px 0 30px; overflow: hidden; }
.ticker { position: absolute; left: -5%; width: 110%; padding: 12px 0; overflow: hidden; white-space: nowrap; font: 400 clamp(22px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.ticker-butter { top: 18px; background: var(--butter); color: var(--ink); transform: rotate(-3deg); z-index: 2; box-shadow: 0 10px 30px rgb(0 0 0 / 40%); }
.ticker-cobalt { top: 74px; background: var(--cobalt); color: var(--paper); transform: rotate(2deg); }
.ticker-track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker-cobalt .ticker-track { animation-direction: reverse; animation-duration: 40s; }
.ticker-track span { padding: 0 22px; }
.ticker-track span::after { content: "✶"; margin-left: 44px; }

/* Regulars */
.regulars { padding: clamp(40px, 6vw, 96px) var(--gutter); }
.regulars h2, .menu h2, .window h2 { font: 400 clamp(56px, 9vw, 150px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.regulars h2 span { color: var(--butter); }
.regulars-intro { max-width: 30ch; margin: 22px 0 0; font-size: 19px; color: rgb(243 239 230 / 80%); }
.regular-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(32px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.regular { position: relative; display: grid; gap: 6px; padding: 20px 20px 28px; margin: 0 -10px; background: var(--paper); color: var(--ink); -webkit-mask: var(--tear); mask: var(--tear); box-shadow: 0 20px 40px rgb(0 0 0 / 40%); transition: transform 400ms var(--ease); }
.regular:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.regular:nth-child(2) { transform: rotate(2deg) translateY(-14px); z-index: 2; }
.regular:nth-child(3) { transform: rotate(-1.5deg) translateY(18px); }
.regular:nth-child(4) { transform: rotate(3deg) translateY(-6px); z-index: 2; }
.regular:hover { transform: rotate(0) translateY(-12px) scale(1.03); z-index: 3; }
.regular img { margin: 0 auto 6px; width: 100%; max-width: 260px; }
.regular .dots { font-size: 16px; color: var(--cobalt); }
.regular p:last-child { font-size: 15px; line-height: 1.4; color: var(--muted); }

/* Menu as a long receipt */
.menu { position: relative; padding: clamp(40px, 6vw, 96px) var(--gutter); }
.menu-sheet { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 72px) clamp(44px, 5vw, 72px); background: var(--paper); color: var(--ink); -webkit-mask: var(--tear); mask: var(--tear); transform: rotate(-.8deg); box-shadow: 0 40px 80px rgb(0 0 0 / 50%); }
.menu-head { display: grid; gap: 8px; justify-items: center; text-align: center; padding-bottom: 26px; border-bottom: 3px dashed rgb(21 21 26 / 50%); }
.menu-head h2 { color: var(--cobalt); font-size: clamp(54px, 8vw, 120px); }
.menu-items { margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: grid; grid-template-columns: clamp(120px, 18vw, 220px) minmax(0, 1fr) auto; grid-template-areas: "photo copy price" "photo copy add"; gap: 6px clamp(18px, 3vw, 40px); align-items: center; padding: clamp(20px, 3vw, 34px) 0; border-bottom: 3px dashed rgb(21 21 26 / 35%); }
.menu-item:last-child { border-bottom: 0; }
.slice-photo { grid-area: photo; padding: 0; border: 0; background: none; transition: transform 400ms var(--ease); }
.menu-item:nth-child(odd) .slice-photo { transform: rotate(-10deg); }
.menu-item:nth-child(even) .slice-photo { transform: rotate(9deg); }
.slice-photo:hover { transform: rotate(0deg) scale(1.08); }
.slice-photo img { filter: drop-shadow(0 10px 14px rgb(0 0 0 / 30%)); }
.menu-copy { grid-area: copy; display: grid; gap: 4px; }
.menu-copy .dots { color: var(--cobalt); }
.menu-copy h3 { font: 400 clamp(34px, 4.5vw, 64px)/.95 var(--display); text-transform: uppercase; }
.menu-copy p:last-child { max-width: 38ch; color: var(--muted); }
.price { grid-area: price; justify-self: end; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; color: var(--cobalt); }
.add { grid-area: add; justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border: 2px solid var(--ink); background: transparent; font: 700 15px var(--body); text-transform: uppercase; letter-spacing: .04em; transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.add span { font-size: 22px; line-height: 1; }
.add:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--paper); transform: rotate(-2deg); }
.add:active { transform: scale(.96); }
.menu-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.sticker-cup { width: clamp(110px, 13vw, 190px); right: max(2%, calc(50% - 650px)); top: 10px; transform: rotate(10deg); filter: brightness(1.7) drop-shadow(0 8px 14px rgb(0 0 0 / 40%)); }

/* The window: story and queue */
.window { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 110px) var(--gutter); }
.window-art { padding: clamp(14px, 2vw, 26px); background: var(--paper); transform: rotate(-2deg); box-shadow: 0 30px 60px rgb(0 0 0 / 45%); }
.window-copy { display: grid; gap: 18px; }
.window h2 { font-size: clamp(48px, 6.4vw, 104px); }
.window-copy p { max-width: 42ch; color: rgb(243 239 230 / 85%); }
.fiction-note { font-size: 13px; color: rgb(243 239 230 / 55%) !important; }
.queue { grid-column: 1 / -1; display: flex; justify-content: center; gap: 0; margin: clamp(10px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.queue li { padding: 18px 22px; background: var(--paper); color: var(--ink); font: 900 clamp(20px, 2.4vw, 32px) var(--dots); border-right: 2px dashed rgb(21 21 26 / 40%); transition: transform 300ms var(--ease); }
.queue li:nth-child(odd) { transform: rotate(-2deg); }
.queue li:nth-child(even) { transform: rotate(1.5deg); }
.queue li:hover { transform: translateY(-10px) rotate(-4deg); }
.queue .current { background: var(--butter); transform: rotate(-4deg) scale(1.12); z-index: 1; box-shadow: 0 12px 24px rgb(0 0 0 / 45%); }

/* Footer */
.site-footer { display: grid; justify-items: center; gap: 14px; padding: clamp(56px, 8vw, 110px) var(--gutter) 40px; text-align: center; border-top: 1px dashed rgb(243 239 230 / 25%); }
.footer-stamp { width: min(420px, 70vw); padding: clamp(14px, 2vw, 24px); background: var(--paper); transform: rotate(3deg); box-shadow: 0 20px 40px rgb(0 0 0 / 45%); }
.site-footer .dots { color: var(--butter); font-size: 20px; }
.site-footer p:not(.dots) { max-width: 46ch; font-size: 13px; color: rgb(243 239 230 / 60%); }

/* Order dialog: one mounted surface, builder in the centre, bag as a receipt from the right */
body:has(dialog[open]) { overflow: hidden; }
#order-dialog { position: fixed; inset: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
#order-dialog[open] { display: grid; place-items: center; }
#order-dialog::backdrop { background: rgb(5 7 18 / 70%); backdrop-filter: blur(4px); }
#order-dialog[open]::backdrop { animation: backdrop-in 300ms ease-out both; }
#order-dialog.leaving::backdrop { animation: backdrop-out 180ms ease-in both; }
.close { position: absolute; right: 14px; top: 16px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 34px; line-height: 1; }
#product-view { position: relative; width: min(500px, calc(100vw - 28px)); max-height: 90dvh; overflow: auto; background: var(--paper); -webkit-mask: var(--tear); mask: var(--tear); box-shadow: 0 30px 80px rgb(0 0 0 / 40%); }
.product-body { padding: 44px 30px 34px; }
.product-body > .dots { color: var(--cobalt); }
.product-body h2 { margin: 6px 0 12px; font: 400 48px/.95 var(--display); text-transform: uppercase; }
.product-body > p:not(.dots) { color: var(--muted); }
#product-form fieldset { margin: 18px 0 0; padding: 14px 0; border: 0; border-top: 2px dashed rgb(21 21 26 / 40%); border-bottom: 2px dashed rgb(21 21 26 / 40%); }
#product-form legend { padding: 0 0 4px; font: 400 22px var(--display); text-transform: uppercase; }
#product-form fieldset label { display: flex; align-items: center; gap: 12px; min-height: 46px; font-size: 16px; cursor: pointer; }
#product-form fieldset label span { margin-left: auto; font: 800 16px var(--dots); }
#product-form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); }
.quantity-label { display: block; margin-top: 16px; font: 400 22px var(--display); text-transform: uppercase; }
.quantity { display: flex; margin: 10px 0 20px; }
.quantity button { width: 46px; height: 46px; border: 2px solid var(--ink); background: transparent; font-size: 20px; }
.quantity input { width: 64px; border: 2px solid var(--ink); border-inline: 0; background: transparent; text-align: center; font: 900 20px var(--dots); -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
#product-form .primary { width: 100%; }
.fine { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }

#cart-view { position: absolute; inset: 0 0 0 auto; width: min(460px, 100%); height: 100%; background: var(--paper) linear-gradient(180deg, transparent 0 96%, rgb(0 0 0 / 4%) 96%) 0 0 / 100% 26px; -webkit-mask: linear-gradient(#000 0 0) right / calc(100% - 9px) 100% no-repeat, conic-gradient(from -135deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 9px 18px repeat-y; mask: linear-gradient(#000 0 0) right / calc(100% - 9px) 100% no-repeat, conic-gradient(from -135deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 9px 18px repeat-y; box-shadow: -16px 0 60px rgb(0 0 0 / 30%); overflow: hidden; }
#cart-view .product-body { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; padding: 46px 28px max(24px, env(safe-area-inset-bottom)) 36px; overflow: hidden; }
#cart-view h2 { font-size: 64px; color: var(--cobalt); border-bottom: 3px dashed rgb(21 21 26 / 45%); padding-bottom: 12px; }
#cart-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
#cart-items > p { padding: 22px 0 16px; color: var(--muted); }
.cart-item { padding: 18px 0; border-bottom: 2px dashed rgb(21 21 26 / 30%); }
.cart-item > div { display: flex; justify-content: space-between; gap: 16px; font: 400 24px/1 var(--display); text-transform: uppercase; }
.cart-item > div span { font: 900 20px var(--dots); }
.cart-item p { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.cart-controls { display: flex; align-items: center; gap: 10px; }
.cart-controls button { min-width: 36px; min-height: 36px; border: 2px solid var(--ink); background: none; color: var(--ink); }
.cart-controls span { font: 900 18px var(--dots); }
.cart-controls .remove { margin-left: auto; border: 0; text-decoration: underline; font-size: 13px; }
#cart-summary { display: grid; gap: 14px; padding-top: 16px; border-top: 3px dashed rgb(21 21 26 / 50%); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font: 400 26px var(--display); text-transform: uppercase; }
.subtotal strong { font: 900 30px var(--dots); color: var(--cobalt); }
#go-to-checkout { width: 100%; }

/* Checkout page, on the night desk */
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 80px; }
.checkout-form { display: grid; gap: 30px; }
.checkout-head { display: grid; gap: 10px; justify-items: start; }
.checkout-head .dots { color: var(--butter); }
.checkout-head h2 { font: 400 clamp(52px, 7vw, 104px)/.9 var(--display); text-transform: uppercase; outline: none; }
.back-link { padding: 0; min-height: 36px; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
.checkout-step { display: grid; gap: 14px; margin: 0; padding: 22px 0 0; border: 0; border-top: 2px dashed rgb(243 239 230 / 35%); }
.checkout-step legend { padding: 0 0 4px; font: 400 30px var(--display); text-transform: uppercase; }
.checkout-step legend .dots { margin-right: 10px; color: var(--butter); font-size: 26px; }
.step-note { font-size: 15px; color: rgb(243 239 230 / 70%); }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field small, .totals small { font-weight: 400; font-size: 13px; color: rgb(243 239 230 / 60%); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); font: 17px/1.4 var(--body); box-shadow: inset 0 -3px 0 var(--cobalt); transition: box-shadow 160ms var(--ease); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 -3px 0 var(--cobalt), 0 0 0 3px var(--butter); }
.field input[aria-invalid="true"] { box-shadow: inset 0 -3px 0 var(--error), 0 0 0 2px var(--error); }
.field-error { margin-top: -6px; color: #ff8a80; font-size: 14px; }
.field-error:empty { display: none; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 2px solid rgb(243 239 230 / 35%); cursor: pointer; font-weight: 600; }
.choice:has(input:checked) { border-color: var(--butter); background: rgb(255 228 92 / 10%); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--butter); }
.provider-slot { display: grid; gap: 8px; padding: 18px; border: 2px dashed rgb(243 239 230 / 40%); font-size: 15px; color: rgb(243 239 230 / 80%); }
.demo-note { font-size: 13px; color: rgb(243 239 230 / 60%); }
.order-summary { position: sticky; top: 100px; display: grid; gap: 16px; padding: 34px 28px 38px; background: var(--paper) linear-gradient(180deg, transparent 0 96%, rgb(0 0 0 / 4%) 96%) 0 0 / 100% 26px; color: var(--ink); -webkit-mask: var(--tear); mask: var(--tear); transform: rotate(1.5deg); box-shadow: 0 30px 60px rgb(0 0 0 / 45%); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 3px dashed rgb(21 21 26 / 45%); }
.summary-head h3 { font-size: 26px; color: var(--cobalt); }
.summary-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.summary-lines li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 2px dashed rgb(21 21 26 / 25%); }
.summary-lines li > div { display: flex; justify-content: space-between; gap: 16px; }
.summary-lines strong { font: 400 20px var(--display); text-transform: uppercase; }
.summary-lines span { font: 900 18px var(--dots); }
.summary-lines p { font-size: 13px; color: var(--muted); }
.totals { display: grid; gap: 6px; margin: 0; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals small { color: var(--muted); }
.totals dd { margin: 0; font-size: 18px; }
.totals .total { padding-top: 10px; border-top: 3px dashed rgb(21 21 26 / 45%); font: 400 26px var(--display); text-transform: uppercase; }
.totals .total dd { font-size: 26px; color: var(--cobalt); }
.place-bar .ticket-button { width: 100%; }
.mobile-place-bar { display: none; }
.order-confirmed { display: grid; justify-items: center; gap: 32px; padding: clamp(40px, 7vw, 100px) var(--gutter) 96px; outline: none; }
.confirm-receipt { width: min(440px, 100%); transform: rotate(-2deg); animation: receipt-print 900ms var(--ease) both; }
.confirm-receipt h2 { margin-top: 6px; font: 400 40px/.95 var(--display); text-transform: uppercase; }
.confirmed-detail { font-size: 16px; color: var(--muted); }
.confirm-receipt .summary-lines { text-align: left; }
.confirm-receipt .demo-note { color: var(--muted); }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.25) rotate(4deg); } 60% { opacity: 1; transform: scale(.97); } }
@keyframes receipt-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sticker-in { from { opacity: 0; transform: rotate(40deg) scale(.6); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }

@media (max-width: 1000px) {
  .regular-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .site-header nav { display: none; }
  .now-serving { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero, .window { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-bottom: 110px; }
  .hero-receipt { width: min(300px, 78%); margin-top: 10px; }
  .checkout { grid-template-columns: 1fr; padding-bottom: 24px; }
  .order-summary { position: static; transform: none; }
  .place-bar { display: none; }
  .mobile-place-bar { display: block; position: sticky; bottom: 0; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom)); background: rgb(14 17 32 / 94%); border-top: 1px dashed rgb(243 239 230 / 30%); }
  .mobile-place-bar .ticket-button { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .now-serving span { display: none; }
  .wordmark img { width: 84px; }
  .tickers { height: 120px; margin-top: -50px; }
  .ticker-cobalt { top: 62px; }
  .regular { margin: 0 -4px; padding: 14px 12px 22px; }
  .regular p:last-child { font-size: 13px; }
  .menu-item { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "photo copy" "price add"; }
  .price { justify-self: start; }
  .queue li { padding: 14px 12px; }
  .sticker-cup { display: none; }
  .hero-line br { display: none; }
  .sticker-moon { left: auto; right: -12%; top: -14%; width: 30%; }
  #product-view { align-self: end; width: 100%; max-height: 92dvh; }
  #cart-view .product-body { padding: 46px 20px max(20px, env(safe-area-inset-bottom)) 28px; }
  #cart-view h2 { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
