/* Café Tomorrow. A café at night: deep blue sky, dawn on the horizon, and
   the receipt as the one lit object on the page. The primary button is the sun.
   Receipt colours are mirrored in src/receipt-image.js: change both together. */

@font-face { font-family: "Onest"; src: url(/fonts/Onest.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Yeseva One"; src: url(/fonts/YesevaOne-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/IBMPlexMono-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(/fonts/Oswald-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/fonts/Caveat-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* the night */
  --night-1: #0c1536;
  --night-2: #111f4d;
  --night-3: #1a2d68;
  --text: #f4f1e8;
  --muted: rgba(244, 241, 232, .68);
  --faint: rgba(244, 241, 232, .42);
  --hair: rgba(244, 241, 232, .14);
  --glass: rgba(244, 241, 232, .06);
  --glass-2: rgba(244, 241, 232, .11);
  /* the sun */
  --yolk: #ffc940;
  --yolk-soft: rgba(255, 201, 64, .14);
  --coral: #ff7a55;
  /* the receipt */
  --paper: #f8f6f1;
  --ink: #1f1e27;
  --soft: #65636f;
  --pen: #2438a6;
  /* statuses: stamp ink on paper, and brighter twins for the night */
  --hot: #d2301f;
  --cooling: #bf6f00;
  --cold: #2b62b0;
  --eaten: #18783f;
  --house: #4a3fa8;
  --unpaid: #b3261e;
  --hot-n: #ff8a66;
  --cooling-n: #ffc24a;
  --cold-n: #8bb8ff;
  --eaten-n: #6bd9a2;

  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --stampface: "Oswald", "Arial Narrow", Impact, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { background: var(--night-1); color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 30px;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The sky stays put while the page scrolls: stars above, dawn below. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 9% 12%, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 22% 31%, rgba(255, 255, 255, .55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 38% 7%, rgba(255, 255, 255, .6) 50%, transparent 52%),
    radial-gradient(1px 1px at 57% 19%, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(2px 2px at 81% 9%, rgba(255, 255, 255, .75) 50%, transparent 52%),
    radial-gradient(1px 1px at 91% 27%, rgba(255, 255, 255, .5) 50%, transparent 52%),
    radial-gradient(1px 1px at 70% 41%, rgba(255, 255, 255, .4) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 15% 52%, rgba(255, 255, 255, .45) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 46%, rgba(255, 255, 255, .35) 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, .35) 50%, transparent 52%),
    radial-gradient(130% 46% at 50% 108%, var(--horizon), var(--horizon-soft) 55%, transparent 78%),
    linear-gradient(var(--night-1), var(--night-2) 55%, var(--night-3));
}

.bar, main, .foot { max-width: 440px; margin-inline: auto; }
body.wide main { max-width: 900px; }

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 6px; }
h1, h2, p { margin: 0; }
h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; }
h2 { font-size: 17px; font-weight: 650; line-height: 1.3; }
[hidden] { display: none !important; }

/* ---- Top bar and footer ----------------------------------------------------- */

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 4px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-size: 20px; line-height: 1; }
.egg { flex: none; }
.egg .egg__white { fill: #fff; }
.egg .egg__yolk { fill: var(--yolk); }
.egg--bar { width: 32px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--hair); border-radius: 999px; background: var(--glass); }
.lang a { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--muted); text-decoration: none; }
.lang a[aria-current] { background: var(--text); color: var(--ink); }

.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.5; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-weight: 600; color: var(--text); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* ---- Shared pieces ---------------------------------------------------------- */

.panel { margin: 16px 0; padding: 18px 16px; border: 1px solid var(--hair); border-radius: 22px; background: var(--glass); }
.panel > h2 + * { margin-top: 10px; }
.lead { margin-top: 8px; font-size: 15px; color: var(--muted); }
.hint { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.title { margin: 18px 2px 0; }
.title p { margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 4px 0; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.back svg { width: 16px; height: 16px; }

.plate { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--night-1); box-shadow: inset 0 0 0 1px var(--hair); }
.plate svg { width: 31px; height: 31px; }
.plate .w { fill: #fff; }
.plate .a { fill: var(--yolk); }
.plate .k { fill: var(--night-1); }
.plate .ws, .plate .as, .plate .ks { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.plate .ws { stroke: #fff; }
.plate .as { stroke: var(--yolk); stroke-width: 3.6; }
.plate .ks { stroke: var(--night-1); stroke-width: 3; }

/* ---- Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--glass-2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:hover { background: rgba(244, 241, 232, .17); }
.btn:active { transform: scale(.97); }
.btn--primary, .btn--big { color: var(--ink); background: var(--yolk); border-color: transparent; }
.btn--primary:hover, .btn--big:hover { background: #ffd35f; }
.btn--hot { color: var(--ink); background: var(--coral); border-color: transparent; }
.btn--hot:hover { background: #ff8c6b; }
/* The big one is the sun: there is exactly one per screen. */
.btn--big {
  display: flex;
  width: 100%;
  min-height: 58px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 12px 34px rgba(255, 170, 50, .34);
}
.btn--block { display: flex; width: 100%; margin-top: 16px; }
.textbtn { justify-self: start; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sticks to the bottom of the screen until the page ends. */
.dock { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 24px; }
.dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -44px -16px -44px;
  background: linear-gradient(rgba(12, 21, 54, 0), rgba(12, 21, 54, .9) 38%, rgba(12, 21, 54, .9) 66%, rgba(12, 21, 54, 0));
  pointer-events: none;
}

/* ---- Home: hero and menu ------------------------------------------------------ */

.hero { padding: 26px 0 6px; text-align: center; }
.egg--hero { width: 104px; margin-bottom: 6px; filter: drop-shadow(0 0 26px rgba(255, 201, 64, .5)); }
.hero h1 { font-size: 44px; line-height: 1.04; }
.hero__tag { margin-top: 10px; font-size: 15px; color: var(--muted); }
.hero__intro { max-width: 32ch; margin: 18px auto 0; font-size: 16px; line-height: 1.45; }

.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.dish {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 172px;
  padding: 14px 14px 13px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--glass);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, border-color .15s ease, background-color .15s ease;
}
.dish:hover { border-color: rgba(255, 201, 64, .7); background: var(--glass-2); }
.dish:active { transform: scale(.975); }
.dish__body { display: flex; flex-direction: column; min-width: 0; }
.dish__name { margin-top: 12px; font-family: var(--display); font-size: 20px; line-height: 1.12; overflow-wrap: anywhere; }
.dish__kind { margin-top: 5px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.dish__price { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--yolk); }
/* The house special gets the sun. */
.dish--star { color: var(--ink); background: var(--yolk); border-color: transparent; box-shadow: 0 10px 34px rgba(255, 170, 50, .25); }
.dish--star:hover { background: #ffd35f; border-color: transparent; }
.dish--star .dish__kind { color: rgba(31, 30, 39, .76); }
.dish--star .dish__price { color: var(--ink); }
/* The bill comes last and takes the whole row. */
.dishes li:last-child { grid-column: 1 / -1; }
.dishes li:last-child .dish { flex-direction: row; align-items: center; gap: 14px; min-height: 0; }
.dishes li:last-child .dish__body { flex: 1; }
.dishes li:last-child .dish__name { margin-top: 0; }
.dishes li:last-child .dish__price { padding-top: 6px; }

.doors { display: grid; gap: 10px; margin-top: 26px; }
.door { display: block; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 18px; text-decoration: none; }
.door:hover { background: var(--glass); }
.door b { display: block; font-size: 15.5px; font-weight: 650; }
.door span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* ---- Lists (your receipts, tab, board) ------------------------------------- */

.list { margin: 6px 0 0; padding: 0; list-style: none; }
.list li + li { border-top: 1px solid var(--hair); }
.list__link, .list__row { display: block; padding: 12px 0; text-decoration: none; }
.list__main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.list__main b { font-weight: 650; color: var(--text); }
.list__text { display: block; margin: 3px 0; font-size: 15.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.list__meta { display: block; font-size: 13px; color: var(--muted); }
.list__meta a { margin-left: 8px; color: var(--text); }
.list__row form { margin-top: 4px; }

.pill {
  --c: var(--muted);
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 17%, transparent);
}
.pill--hot { --c: var(--hot-n); }
.pill--cooling { --c: var(--cooling-n); }
.pill--cold { --c: var(--cold-n); }
.pill--eaten { --c: var(--eaten-n); }

/* ---- Order form -------------------------------------------------------------- */

.order-head { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.order-head .plate { width: 58px; height: 58px; }
.order-head .plate svg { width: 36px; height: 36px; }
.order-head p { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.order-tag { margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

.order { display: grid; gap: 18px; margin-top: 18px; }
.order > * { min-width: 0; }
.field { display: block; min-width: 0; }
.field__label { display: block; margin-bottom: 7px; padding: 0; font-size: 13.5px; font-weight: 600; }
.field small { display: block; margin-top: 7px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair--stack { grid-template-columns: 1fr; }

.inp {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into focused fields */
  color: var(--text);
  background: rgba(244, 241, 232, .08);
  border: 1.5px solid var(--hair);
  border-radius: 14px;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.inp::placeholder { color: var(--faint); }
.inp:focus { border-color: var(--yolk); background: rgba(244, 241, 232, .12); }
textarea.inp { resize: vertical; line-height: 1.4; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--yolk); }

/* You write straight onto the receipt. */
.order .receipt-wrap { width: 100%; max-width: none; margin: 0; }
.receipt--form { padding: 26px 22px 30px; }
.receipt--form .r-dish { margin-bottom: 2px; }
.ticket__q { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--soft); }
.ticket__re { margin: 0 0 8px; font-family: var(--hand); font-weight: 600; font-size: 25px; line-height: 1; text-align: right; color: var(--pen); transform: rotate(-2deg); }
.pinp {
  display: block;
  width: 100%;
  padding: 0;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  caret-color: var(--hot);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
}
textarea.pinp { min-height: 4.3em; resize: none; }
.pinp::placeholder { color: #a9a7b1; }
.lines { display: grid; gap: 6px; margin: 0; padding-left: 26px; font-family: var(--mono); font-weight: 700; }
.lines .pinp { padding: 7px 0; font-size: 15.5px; border-bottom: 1.5px dashed rgba(31, 30, 39, .3); }
.lines .pinp:focus { border-bottom-color: var(--ink); }
.receipt-wrap:focus-within { filter: drop-shadow(0 0 2px var(--yolk)) drop-shadow(0 0 1px var(--yolk)) drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.receipt--form .textbtn { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); }

.examples-label { margin-bottom: -10px; }
.examples {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.examples::-webkit-scrollbar { display: none; }
.examples li { flex: 0 0 70%; max-width: 290px; scroll-snap-align: start; }
.ex {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ex:hover { background: var(--glass-2); }
.ex.is-picked { background: var(--yolk-soft); border-color: var(--yolk); }
.ex__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ex__ny { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 650; color: var(--yolk); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text); background: var(--glass); border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip.is-on { color: var(--ink); background: var(--text); border-color: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check small { display: block; margin-top: 1px; font-size: 13px; color: var(--muted); }
.error { padding: 12px 14px; border: 1px solid var(--coral); border-radius: 14px; font-size: 14.5px; font-weight: 500; color: #ffd9cd; background: rgba(255, 122, 85, .14); }

/* ---- The receipt -------------------------------------------------------------- */

.receipt-wrap { max-width: 372px; margin: 0 auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.receipt {
  --z: 10px;
  position: relative;
  /* The stamp lands from 2.6x its size; without clipping, that moment would
     widen the page and make phones zoom the whole card out. */
  overflow: hidden;
  overflow: clip;
  padding: 30px 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 30, 39, .07), transparent 7%, transparent 93%, rgba(31, 30, 39, .08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .14 0 0 0 0 .18 0 0 0 .3 -.12'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
}
.r-head { text-align: center; }
.egg--receipt { display: block; width: 58px; margin: 0 auto 6px; }
.egg--receipt .egg__white { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.egg--receipt .egg__yolk { fill: var(--ink); }
.r-cafe { font-family: var(--display); font-size: 31px; line-height: 1.1; }
.r-tagline { margin-top: 3px; font-size: 11px; color: var(--soft); }
.r-rule { height: 1.5px; margin: 12px 0; background: repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px); opacity: .75; }
.r-rule--double {
  height: 5.5px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px) top / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 5px, transparent 5px 9px) bottom / 100% 1.5px no-repeat;
}
.r-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; }
.r-row > :last-child:not(:first-child) { margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.r-row--soft { margin-bottom: 2px; font-size: 11.5px; color: var(--soft); }
.r-dish b { font-size: 14.5px; text-transform: uppercase; }
.r-dish span { font-size: 12.5px; }
.r-short { margin-top: 1px; font-size: 11px; color: var(--soft); }
.r-said { margin: 16px 0 18px; font-size: 19px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.r-lines { margin: 14px 0; padding-left: 26px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.r-lines li + li { margin-top: 8px; }
.r-lines li::marker { font-weight: 700; }
.r-source { margin: 0 0 14px; font-size: 11.5px; color: var(--soft); overflow-wrap: anywhere; }
.r-source a { color: var(--ink); }
.r-stamprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 84px; padding: 4px 0; }
.r-due { display: flex; flex-direction: column; gap: 1px; }
.r-due span { font-size: 11px; color: var(--soft); }
.r-due b { font-size: 14.5px; }
.r-total b:first-child { font-size: 17px; text-transform: uppercase; }
.r-total b:last-child, .r-pay b { font-size: 14px; }
.r-pay b:first-child { text-transform: uppercase; }
.r-signed { margin: 12px 2px 4px; font-family: var(--hand); font-weight: 600; font-size: 28px; line-height: 1; text-align: right; color: var(--pen); transform: rotate(-2.5deg); }
.barcode { display: block; width: 68%; height: 34px; margin: 16px auto 4px; fill: var(--ink); }
.r-url { text-align: center; font-size: 11px; overflow-wrap: anywhere; }
.r-thanks { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--soft); }

/* ---- Stamps ------------------------------------------------------------------- */

.stamp {
  --c: var(--house);
  display: inline-block;
  flex: none;
  max-width: 100%;
  margin-left: auto;
  padding: 3px;
  color: var(--c);
  border: 3px solid var(--c);
  border-radius: 6px;
  opacity: .9;
  mix-blend-mode: multiply;
  transform: rotate(-7deg);
  /* Uneven inking: a noise mask eats small holes into the stamp. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 3.5'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23w)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 3.5'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23w)'/%3E%3C/svg%3E");
}
.stamp__in { display: flex; flex-direction: column; align-items: center; padding: 5px 12px 6px; border: 1.2px solid var(--c); border-radius: 3px; font-family: var(--stampface); font-weight: 700; line-height: 1; text-transform: uppercase; }
.stamp b { font-size: clamp(19px, 7.2vw, 27px); letter-spacing: .07em; white-space: nowrap; }
.stamp i { margin-top: 4px; font-size: 11px; font-style: normal; letter-spacing: .1em; white-space: nowrap; }
.stamp--hot { --c: var(--hot); }
.stamp--cooling { --c: var(--cooling); }
.stamp--cold { --c: var(--cold); }
.stamp--eaten { --c: var(--eaten); }
.stamp--unpaid { --c: var(--unpaid); }

/* ---- Card page: the receipt on stage ------------------------------------------ */

.flash { margin: 14px 0 0; padding: 11px 16px; font-size: 14.5px; font-weight: 600; text-align: center; color: var(--ink); background: var(--text); border-radius: 14px; }
.served { margin: 20px 0 16px; text-align: center; }
.served h1 { font-size: 36px; }
.served p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Light falls on the receipt in the colour of its status. */
.stage { --glow: var(--yolk); position: relative; z-index: 0; margin-top: 18px; }
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -16px auto;
  height: 460px;
  background: radial-gradient(58% 50% at 50% 42%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 72%);
  pointer-events: none;
}
.stage--hot { --glow: var(--hot-n); }
.stage--cooling { --glow: var(--cooling-n); }
.stage--cold { --glow: var(--cold-n); }
.stage--eaten { --glow: var(--eaten-n); }

/* The till: a slot the receipt feeds out of, line by line. */
.printer { position: relative; max-width: 404px; margin: 0 auto; padding: 5px 16px 34px; overflow: hidden; }
.printer::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 8px;
  right: 8px;
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(#060b20, #101c47);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16), inset 0 -3px 4px rgba(0, 0, 0, .7);
}

.status { --c: var(--muted); display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: -8px; font-size: 15px; font-weight: 500; text-align: center; }
.status__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 0 14px var(--c); }
.status--hot { --c: var(--hot-n); }
.status--cooling { --c: var(--cooling-n); }
.status--cold { --c: var(--cold-n); }
.status--eaten { --c: var(--eaten-n); }
.actions, .tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.actions form { display: contents; }
.tools__url { flex: 1 1 100%; font-size: 14px; }
.ownerlink { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.ownerlink summary { cursor: pointer; }
.ownerlink .inp { margin-top: 10px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: the receipt prints, then the stamp lands. */
  .printer--run .receipt-wrap { animation: feed 1.05s steps(24, end) .15s both; }
  .printer--run .stamp { animation: thunk .42s cubic-bezier(.2, 1.4, .4, 1) 1.35s both; }
  @keyframes feed {
    from { transform: translateY(-102%); }
    to { transform: none; }
  }
  @keyframes thunk {
    0% { opacity: 0; transform: rotate(-7deg) scale(2.6); }
    55% { opacity: .95; transform: rotate(-7deg) scale(.93); }
    100% { opacity: .9; transform: rotate(-7deg) scale(1); }
  }
}

/* ---- Reheat (mock payment) ------------------------------------------------------ */

.quote { margin: 18px 0 0; padding: 14px 16px; font-family: var(--mono); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); background: var(--paper); border-radius: 4px; overflow-wrap: anywhere; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }
.quote span { display: block; font-size: 12px; font-weight: 400; color: var(--soft); }
.options { display: grid; gap: 10px; margin: 20px 0 0; }
.option { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1.5px solid var(--hair); border-radius: 16px; background: var(--glass); cursor: pointer; }
.option:has(input:checked) { border-color: var(--yolk); background: var(--yolk-soft); }
.option input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--faint); border-radius: 50%; background: transparent; }
.option input:checked { border-color: var(--yolk); background: radial-gradient(circle, var(--yolk) 0 44%, transparent 50%); }
.option__label { font-weight: 600; }
.option__price { margin-left: auto; font-family: var(--mono); font-weight: 500; }
.demo { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.checkout .btn--big { margin-top: 20px; }
.checkout .textbtn { display: block; margin: 16px auto 0; }

/* ---- Group tab ------------------------------------------------------------------- */

.rank { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rank th, .rank td { padding: 10px 4px; border-top: 1px solid var(--hair); font-weight: 400; text-align: right; }
.rank thead th { padding-top: 0; border-top: 0; font-size: 12px; color: var(--muted); }
.rank th[scope="row"] { text-align: left; font-weight: 650; }
.rank td, .rank thead th:not(:first-child) { width: 1%; padding-left: 10px; white-space: nowrap; }
.rank__title { display: block; font-family: var(--hand); font-weight: 600; font-size: 22px; line-height: 1; color: var(--yolk); transform: rotate(-1.5deg); transform-origin: left; }
.rank__worst td:first-of-type { font-weight: 700; color: var(--cold-n); }

/* ---- Public board: slips of paper pinned up at night ---------------------------- */

.slips { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.slip { padding: 14px 16px 13px; font-family: var(--mono); color: var(--ink); background: var(--paper); border-radius: 4px; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); }
.slip__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.slip__head b { font-size: 15px; }
.slip .stamp { padding: 2px; border-width: 2px; transform: rotate(-3deg); }
.slip .stamp__in { padding: 3px 7px; }
.slip .stamp b { font-size: 12px; }
.slip .r-lines { margin: 10px 0; padding-left: 0; list-style: none; }
.slip__meta { font-size: 12px; color: var(--soft); overflow-wrap: anywhere; }
.slip__meta a { color: var(--ink); }

/* ---- Stats ---------------------------------------------------------------------- */

.hero-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 16px 0 20px; }
.hero-stat__num { font-family: var(--display); font-size: 80px; line-height: 1; }
.hero-stat__label { flex: 1 1 220px; font-size: 17px; font-weight: 500; }
.hero-stat__label small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.tiles > div { padding: 14px 16px; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass); }
.tiles dt { font-size: 13px; color: var(--muted); }
.tiles dd { margin: 2px 0; font-size: 32px; font-weight: 700; line-height: 1.15; }
.tiles small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.stats h2 { margin-top: 28px; }
.scroll { overflow-x: auto; }
.data { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); font-weight: 400; text-align: right; white-space: nowrap; }
.data th:first-child { text-align: left; }
.data thead th { font-size: 12px; color: var(--muted); }
.data th[scope="row"] { font-weight: 500; }
.data small { margin-left: 4px; color: var(--muted); }
.meter { display: inline-block; width: 64px; height: 6px; margin-left: 8px; border-radius: 4px; background: var(--glass-2); vertical-align: middle; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--yolk); }
.stats > .hint { margin-top: 20px; }

/* ---- Engagement: tips, one-tap replies, thread, seasonal banner ---------------- */

.group { margin-top: 26px; text-align: center; }
.group__title { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.quicks { display: grid; gap: 8px; margin-top: 10px; }
.quick { display: block; padding: 12px 14px; font-size: 14.5px; line-height: 1.4; text-align: left; text-decoration: none; border: 1px solid var(--hair); border-radius: 16px; background: var(--glass); -webkit-tap-highlight-color: transparent; }
.quick:hover { border-color: var(--yolk); background: var(--yolk-soft); }
.seen { margin-top: 8px; font-size: 13.5px; text-align: center; color: var(--muted); }
.thread { margin-top: 26px; }
.thread .list__meta { font-size: 12px; }
.r-tips { margin: 8px 2px 2px; font-family: var(--hand); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--pen); transform: rotate(-1.2deg); }

.banner { display: block; margin-top: 22px; padding: 14px 16px; text-decoration: none; border: 1px solid rgba(255, 201, 64, .5); border-radius: 18px; background: linear-gradient(120deg, rgba(255, 201, 64, .2), rgba(255, 122, 85, .14)); }
.banner b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.banner span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.banner + .dishes { margin-top: 12px; }
.hero__count { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--yolk); }
.dishes + .btn--block { margin-top: 12px; }

.examples-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: -10px; }
.gender { display: flex; align-items: center; gap: 6px; }
.seg { padding: 4px 11px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--hair); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg.is-on { color: var(--ink); background: var(--text); border-color: transparent; }
.confetti { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

/* The main share button takes a full row; the channels sit under it. */
.tools .btn--primary { flex: 1 1 100%; }

/* ---- The sky follows the reader's clock ----------------------------------------- */

:root { --horizon: rgba(255, 138, 76, .42); --horizon-soft: rgba(255, 138, 76, .12); }
html[data-sky="dawn"] { --horizon: rgba(255, 190, 92, .62); --horizon-soft: rgba(255, 150, 90, .2); }
html[data-sky="day"] { --horizon: rgba(126, 176, 255, .34); --horizon-soft: rgba(126, 176, 255, .12); --night-3: #223a80; }
html[data-sky="dusk"] { --horizon: rgba(255, 112, 110, .46); --horizon-soft: rgba(255, 112, 110, .14); }


/* ---- Front door variants --------------------------------------------------------- */

.hero--pitch h1 { font-size: 38px; }
.hero__cta { display: grid; gap: 10px; margin-top: 22px; }
.hero__cta .btn--block { margin-top: 0; }
.rowtitle { margin: 30px 2px 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.rowtitle + .dishes { margin-top: 12px; }
.door--me { border-color: rgba(255, 201, 64, .5); background: var(--yolk-soft); }

/* ---- The year's receipt ----------------------------------------------------------- */

.r-lines--year { padding-left: 0; list-style: none; }
.r-lines--year li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mark { flex: none; margin-top: 1px; padding: 1px 7px 2px; border: 2px solid currentColor; border-radius: 4px; font-family: var(--stampface); font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; transform: rotate(-3deg); mix-blend-mode: multiply; }
.mark--eaten { color: var(--eaten); }
.mark--cold { color: var(--cold); }
.r-note { margin: 0 0 10px; font-size: 11.5px; color: var(--soft); }

.ylines { padding-left: 0; list-style: none; }
.ylines li { display: flex; align-items: center; gap: 10px; }
.ylines .pinp { flex: 1; min-width: 0; }
.ymark { flex: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ymark input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ymark span { display: inline-block; min-width: 78px; padding: 4px 8px 5px; text-align: center; color: var(--cold); border: 2px solid var(--cold); border-radius: 5px; font-family: var(--stampface); font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; transform: rotate(-3deg); transition: transform .12s ease; }
.ymark span::after { content: attr(data-cold); }
.ymark input:checked + span { color: var(--eaten); border-color: var(--eaten); transform: rotate(3deg) scale(1.04); }
.ymark input:checked + span::after { content: attr(data-kept); }
.ymark input:focus-visible + span { outline: 3px solid var(--yolk); outline-offset: 2px; }

/* The stamp can be tapped; sharing tears the receipt off the roll. */
.printer .stamp { cursor: pointer; }
.printer.is-torn .receipt-wrap { transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); transform: translateY(14px) rotate(-1.4deg); }

/* ---- The regular's card ----------------------------------------------------------- */

.loyalty { margin: 18px 0; padding: 20px 18px 18px; color: var(--ink); background: linear-gradient(135deg, #fff8e0, #ffe7a3); border-radius: 22px; box-shadow: 0 16px 34px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .6); }
.loyalty__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.loyalty__top .egg { width: 56px; }
.loyalty .egg__white { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.loyalty__name { font-family: var(--display); font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.loyalty__title { margin-top: 6px; font-family: var(--hand); font-weight: 600; font-size: 25px; line-height: 1; color: var(--pen); transform: rotate(-1.5deg); transform-origin: left; }
.loyalty__stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0 12px; padding: 0; list-style: none; }
.loyalty__stamps li { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed rgba(31, 30, 39, .32); border-radius: 50%; }
.loyalty__stamps li.is-on { border: 2px solid var(--eaten); background: rgba(28, 130, 70, .1); transform: rotate(-8deg); }
.loyalty__stamps .egg { width: 68%; }
.loyalty__hint { font-size: 12.5px; line-height: 1.4; color: rgba(31, 30, 39, .72); }
.loyalty__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; text-align: center; }
.loyalty__nums dt { font-size: 11.5px; color: rgba(31, 30, 39, .66); }
.loyalty__nums dd { margin: 2px 0 0; font-family: var(--mono); font-size: 20px; font-weight: 700; }

/* ---- The lab ---------------------------------------------------------------------- */

.lab__row { display: flex; gap: 18px; margin-top: 14px; padding-bottom: 8px; overflow-x: auto; }
.lab__row--text { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; }
.lab__opt { flex: 0 0 250px; margin: 0; padding: 12px; border: 1.5px solid var(--hair); border-radius: 20px; }
.lab__opt.is-on { border-color: var(--yolk); background: var(--yolk-soft); }
.lab__opt figcaption, .lab__opt--text { display: grid; gap: 8px; align-content: start; }
.lab__opt figcaption { margin-top: 12px; }
.lab__opt b { font-size: 16px; }
.lab__opt span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.lab__on { justify-self: start; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--ink) !important; background: var(--yolk); }
.lab__notes { display: grid; gap: 8px; margin: 4px 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; }
.lab__notes span { font-family: var(--mono); font-size: 11px; color: var(--yolk); }
.lab__notes i { font-style: normal; color: var(--muted); }
.phone { width: 226px; height: 440px; overflow: hidden; border: 5px solid #050a1d; border-radius: 26px; background: var(--night-1); }
.phone iframe { width: 390px; height: 760px; border: 0; transform: scale(.58); transform-origin: 0 0; }

.lab__marks { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 12px; border-radius: 4px; background: var(--paper); }

/* ---- "More": everything that is not the next step ---------------------------- */

.more { margin-top: 22px; text-align: center; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { color: var(--ink); background: var(--text); }
.more__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.more__list form { display: contents; }
label.ownerlink { display: block; margin-top: 18px; }
label.ownerlink span { display: block; }
.flag { margin-top: 4px; }
.flag .textbtn { padding: 2px 0; font-size: 12px; color: var(--muted); }
.slip .flag .textbtn { font-family: var(--mono); color: var(--soft); }

/* ---- Small targets get a bigger touch area without changing how they look ---------- */

.brand, .lang a, .back, .textbtn, .seg, .ymark, .ownerlink summary, .foot a { position: relative; }
.brand::after, .lang a::after, .back::after, .textbtn::after, .seg::after, .ymark::after, .ownerlink summary::after, .foot a::after { content: ""; position: absolute; inset: -9px -3px; }
.foot a::after { inset: -11px -4px; }
.ownerlink summary::after { inset: -12px 0; }
.lang a { padding-inline: 12px; }
.chip, .lines .pinp { min-height: 40px; }

/* ---- Long unbroken names must not push a narrow phone sideways -------------------- */

.list__main b, .slip__head b, .rank th[scope="row"], .slip__meta, .loyalty__name { min-width: 0; overflow-wrap: anywhere; }
.slips { grid-template-columns: minmax(0, 1fr); }
.slip .r-lines li { overflow-wrap: anywhere; }

/* ---- Undo, offered on a group tab right after "mark as eaten" --------------------- */

.flash--undo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
.flash--undo .textbtn { color: var(--ink); font-weight: 700; }

/* The note under the stats headline saying how far it could be off */
.hero-stat + .hint { margin: 12px 0 16px; }
