:root {
  --space: #0b0712;
  --space-2: #160e22;
  --card: #1b1228;
  --line: #2e2240;
  --cream: #f3e9d2;
  --mute: #a99bb8;
  --tomato: #ff4b2b;
  --tomato-2: #c2261b;
  --saffron: #ffb627;
  --basil: #3fbf7f;
  --radius: 22px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--space); color: var(--cream);
  font: 16px/1.55 var(--text); overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* starfield: two layers of tiny radial dots, slowly drifting */
.stars, .stars::after {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 160px, #ffd9a0aa 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 40px, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 220px, #fff7 50%, transparent 51%);
  background-size: 340px 260px;
  animation: drift 160s linear infinite;
}
.stars::after { content: ""; inset: 0; background-size: 520px 410px; opacity: .6; animation-duration: 260s; }
@keyframes drift { to { transform: translate3d(-340px, -260px, 0); } }
body::before { /* warm nebula */
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 85% 10%, #ff4b2b26, transparent 60%),
    radial-gradient(50vw 40vw at 0% 70%, #6b2fbf22, transparent 60%);
}

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--space) 78%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font: 900 20px/1 var(--display); letter-spacing: .08em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--mute); font-weight: 600; }
.nav a:hover { color: var(--cream); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--cream); background: transparent; color: var(--cream);
  padding: 9px 14px; border-radius: 999px; font-weight: 800;
}
.cart-btn b {
  min-width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--tomato); color: #fff; border-radius: 99px; font-size: 13px;
}
.cart-btn.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { transform: scale(1.15) rotate(-4deg); } }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
  min-height: calc(100vh - 70px); padding: 40px clamp(16px, 4vw, 48px);
  max-width: 1320px; margin: 0 auto;
}
.kicker {
  font: 700 12px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--saffron); margin: 0 0 18px;
}
h1 {
  font: 900 clamp(46px, 8.4vw, 124px)/.92 var(--display); letter-spacing: -.03em; margin: 0 0 26px;
  text-wrap: balance;
}
h1 em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 2px var(--tomato); text-stroke: 2px var(--tomato);
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 0; text-decoration: none;
  font: 800 15px/1 var(--text); letter-spacing: .02em; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: var(--tomato); color: #fff; box-shadow: 0 10px 30px -10px var(--tomato); }
.btn-hot:hover { box-shadow: 0 16px 40px -10px var(--tomato); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }

.hero-planet { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.planet {
  position: absolute; inset: 14%; width: 72%; height: 72%;
  filter: drop-shadow(0 30px 80px #ff4b2b55); animation: spin 60s linear infinite;
}
.orbit {
  position: absolute; inset: 0; border: 1px dashed #f3e9d244; border-radius: 50%;
  transform: rotateX(70deg) rotateZ(0); animation: orbit 14s linear infinite;
}
.o2 { inset: 7%; animation-duration: 9s; animation-direction: reverse; border-color: #ffb62744; }
.o3 { inset: -6%; animation-duration: 22s; border-style: dotted; }
.sat { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; }
.sat-basil { background: var(--basil); box-shadow: 0 0 18px var(--basil); border-radius: 0 60% 0 60%; }
.sat-olive { background: #1d1a14; border: 3px solid var(--cream); }
.sat-chili { background: var(--tomato); width: 26px; height: 10px; border-radius: 10px 2px 10px 2px; }
@keyframes orbit { to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--tomato); color: #1a0b07;
  transform: rotate(-1.5deg) scale(1.02); margin: 20px 0 60px;
}
.marquee div {
  display: inline-block; white-space: nowrap; padding: 14px 0;
  font: 900 clamp(16px, 2.2vw, 26px)/1 var(--display); letter-spacing: .05em;
  animation: slide 40s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections */
section { scroll-margin-top: 80px; }
.menu, .how, .track { max-width: 1320px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 80px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; margin-bottom: 36px; }
.sec-head .kicker { width: 100%; margin: 0; }
h2 { font: 900 clamp(36px, 5.4vw, 72px)/1 var(--display); margin: 0; letter-spacing: -.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.chip {
  border: 1.5px solid var(--line); background: transparent; color: var(--mute);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.chip.on, .chip:hover { border-color: var(--cream); color: var(--cream); }
.chip.on { background: var(--cream); color: var(--space); }

/* ---------- menu grid: deliberately uneven, every 3rd card is wide */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.loading { color: var(--mute); }
.card {
  --h: 10;
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, hsl(var(--h) 40% 16%), var(--card) 55%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: hsl(var(--h) 70% 55% / .6); }
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 22px; }
.card.wide .pz { width: 46%; flex: none; margin: 0; }
.card.extra { --h: 260; }
.info { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.card h3 { font: 800 21px/1.15 var(--display); margin: 0; }
.card .tag { color: var(--saffron); font-weight: 700; font-size: 14px; margin: 0; }
.card .ing { color: var(--mute); font-size: 14px; margin: 0; flex: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #ffffff12; }
.badge.v { color: var(--basil); }
.badge.s { color: var(--tomato); }

/* CSS-drawn pizza: crust, sauce, cheese blobs and toppings coloured from the product hue */
.pz {
  position: relative; width: 66%; aspect-ratio: 1; margin: -6px auto 6px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 34%, hsl(var(--h) 75% 32%) 0 7%, transparent 7.5%),
    radial-gradient(circle at 64% 28%, hsl(var(--h) 75% 32%) 0 6%, transparent 6.5%),
    radial-gradient(circle at 70% 64%, hsl(var(--h) 75% 32%) 0 7.5%, transparent 8%),
    radial-gradient(circle at 36% 70%, hsl(var(--h) 75% 32%) 0 6%, transparent 6.5%),
    radial-gradient(circle at 50% 50%, hsl(calc(var(--h) + 120) 50% 40%) 0 3%, transparent 3.5%),
    radial-gradient(circle at 46% 42%, #fff4dccc 0 13%, transparent 13.5%),
    radial-gradient(circle at 60% 56%, #fff4dcbb 0 11%, transparent 11.5%),
    radial-gradient(circle at 34% 54%, #fff4dcaa 0 9%, transparent 9.5%),
    radial-gradient(circle at 50% 50%, #e0371f 0 64%, #f2b35f 65% 80%, #a9581f 92%, transparent 93%);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 18px 30px #0008);
}
.card:hover .pz { transform: rotate(160deg) scale(1.04); }
.pz::after { /* terminator shadow → planet look */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, transparent 55%, #0b071299 92%);
}
.extra .pz {
  width: 46%; background: radial-gradient(circle at 40% 35%, hsl(var(--h) 80% 70%), hsl(var(--h) 60% 35%) 70%);
}

.buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sizes { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; padding: 3px; }
.sizes button {
  border: 0; background: transparent; color: var(--mute); padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 13px;
}
.sizes button[aria-pressed="true"] { background: var(--cream); color: var(--space); }
.price { font: 800 22px/1 var(--display); margin-left: auto; }
.add {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--tomato); color: #fff;
  font-size: 26px; line-height: 1; display: grid; place-items: center; transition: transform .2s;
}
.add:hover { transform: rotate(90deg) scale(1.08); }

/* ---------- how */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { border-top: 2px solid var(--cream); padding-top: 18px; }
.steps b { font: 900 54px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--saffron); }
.steps h3 { font: 800 24px/1.2 var(--display); margin: 10px 0 6px; }
.steps p { color: var(--mute); margin: 0; }

/* ---------- track */
.track-form { max-width: 620px; }
.track-form label { font-weight: 700; color: var(--mute); }
.row { display: flex; gap: 10px; margin-top: 8px; }
input, textarea {
  width: 100%; font: inherit; color: var(--cream); background: var(--space-2);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
input:focus, textarea:focus { border-color: var(--saffron); outline: none; }
#trackCode { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
#trackOut { min-height: 1.5em; font-weight: 700; }

/* ---------- footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
  padding: 36px clamp(16px, 4vw, 48px) 60px; border-top: 1px solid var(--line); color: var(--mute);
}
.foot div { display: flex; gap: 14px; align-items: center; }
.foot b { color: var(--cream); }
.fine { font-size: 13px; max-width: 36em; margin: 0; }

/* ---------- cart drawer */
.scrim { position: fixed; inset: 0; background: #0009; z-index: 40; backdrop-filter: blur(2px); }
.cart {
  position: fixed; z-index: 50; top: 0; right: 0; height: 100dvh; width: min(460px, 100vw);
  background: var(--space-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(105%);
  transition: transform .45s cubic-bezier(.2, .9, .2, 1); box-shadow: -40px 0 80px #0008;
}
.cart.open { transform: none; }
.cart > header { display: flex; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart h2 { font-size: 28px; }
.x { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--cream); font-size: 24px; }
.cart-body { overflow-y: auto; padding: 18px 22px 40px; flex: 1; }
.empty { color: var(--mute); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-list .nm { font-weight: 800; }
.cart-list .sz { color: var(--mute); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--cream); font-weight: 800; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.line-total { font-weight: 800; text-align: right; }
.totals { margin: 18px 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; color: var(--mute); }
.totals .grand { color: var(--cream); font: 800 20px/1.3 var(--display); padding-top: 8px; border-top: 1px solid var(--line); }
.hint { color: var(--mute); font-size: 13px; margin: 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 800; margin-bottom: 8px; }
.day-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 190px; overflow-y: auto; padding: 2px; }
.slot {
  border: 1.5px solid var(--line); background: transparent; color: var(--cream);
  padding: 9px 0; border-radius: 12px; font-weight: 800; font-size: 14px;
}
.slot[aria-checked="true"] { background: var(--saffron); border-color: var(--saffron); color: #1a0b07; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.no-slots { color: var(--mute); grid-column: 1 / -1; }
form label { display: grid; gap: 6px; font-weight: 700; color: var(--mute); margin-bottom: 12px; font-size: 14px; }
.msg { color: var(--tomato); font-weight: 700; min-height: 1.4em; margin: 4px 0 10px; }
.done { text-align: center; padding-top: 30px; }
.done img { margin: 0 auto 10px; animation: spin 8s linear infinite; }
.done h3 { font: 900 26px/1.2 var(--display); }
.done b { font: 900 26px/1 var(--display); letter-spacing: .1em; color: var(--saffron); }

/* ---------- responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-planet { width: min(80vw, 420px); order: -1; }
  .card.wide { grid-column: auto; flex-direction: column; }
  .card.wide .pz { width: 66%; margin: -6px auto 6px; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .cart-btn span:not(.cart-ico) { display: none; }
  .row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- admin */
.admin-wrap { max-width: 1320px; margin: 0 auto; padding: 30px clamp(16px, 4vw, 48px) 80px; }
.login { max-width: 420px; margin: 10vh auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.login h1 { font-size: 34px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat span { color: var(--mute); font-size: 13px; font-weight: 700; }
.stat b { display: block; font: 900 30px/1.1 var(--display); margin-top: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar .btn { padding: 10px 16px; margin-left: auto; }
.orders { display: grid; gap: 12px; }
.order { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--saffron); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 150px 1fr auto; gap: 8px 22px; }
.order.st-baking { border-left-color: var(--tomato); }
.order.st-on_the_way { border-left-color: #7aa7ff; }
.order.st-delivered { border-left-color: var(--basil); opacity: .75; }
.order.st-cancelled { border-left-color: #666; opacity: .55; }
.order .when { font: 900 26px/1 var(--display); }
.order .when small { display: block; font: 700 12px/1.6 var(--text); color: var(--mute); }
.order .who b { font-size: 17px; }
.order .who p, .order ul { margin: 2px 0; color: var(--mute); font-size: 14px; }
.order ul { padding-left: 18px; color: var(--cream); }
.order .money { text-align: right; font: 800 20px/1.2 var(--display); }
.order select { font: inherit; font-weight: 700; background: var(--space-2); color: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.code { font-family: ui-monospace, monospace; letter-spacing: .08em; color: var(--saffron); }
@media (max-width: 760px) { .order { grid-template-columns: 1fr; } .order .money { text-align: left; } }
.top-tag { margin: 0 0 0 auto; }
