:root {
  --text: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --glass: rgba(28, 28, 30, .62); --solid: #161618; --solid-2: #2c2c2e; --field: rgba(118, 118, 128, .22);
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .2);
  --blue: #0a84ff; --link: #2997ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --purple: #bf5af2;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --r: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100dvh; background: #000; color: var(--text); }
a { color: var(--link); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

/* ---------- background: slow aurora, transform-only */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .9) 95%); }
.orb { position: absolute; border-radius: 50%; }
.o1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax; background: radial-gradient(circle, rgba(10, 132, 255, .5), transparent 62%); animation: drift-a 26s var(--ease-in-out) infinite alternate; }
.o2 { width: 62vmax; height: 62vmax; right: -24vmax; top: -22vmax; background: radial-gradient(circle, rgba(191, 90, 242, .42), transparent 62%); animation: drift-b 32s var(--ease-in-out) infinite alternate; }
.o3 { width: 50vmax; height: 50vmax; left: 24vw; top: 26vh; background: radial-gradient(circle, rgba(255, 55, 95, .2), transparent 62%); animation: drift-c 38s var(--ease-in-out) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(16vmax, 9vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-18vmax, 12vmax, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-14vmax, -12vmax, 0) scale(1.2); } }

/* ---------- floating glass nav */
.top { position: fixed; inset: 12px 12px auto; z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.bar { pointer-events: auto; width: min(1080px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); border-top-color: var(--line-strong);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .7); }
.logo { color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
#nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
#nav a, #nav .link { color: var(--muted); font-size: .9rem; font-weight: 500; padding: 7px 13px; border-radius: 999px; white-space: nowrap; background: none; border: 0;
  transition: color 180ms ease, background-color 180ms ease, transform 140ms var(--ease-out); }
#nav a.on { color: var(--text); background: rgba(255, 255, 255, .12); }
#nav a:active, #nav .link:active { transform: scale(.97); }
#nav .who { color: var(--text); font-size: .9rem; font-weight: 600; padding: 0 10px; white-space: nowrap; }
#nav .who i { font-style: normal; color: var(--muted); font-weight: 500; }
#nav a.cta { background: var(--text); color: #000; font-weight: 600; }

main { padding-top: 84px; }
main.full { height: 100dvh; display: flex; padding: 84px 12px 12px; }
.page { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; animation: page-in 450ms var(--ease-out) both; }
.narrow { max-width: 440px; padding-top: 6vh; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- buttons: feedback on press, instantly */
button { font: inherit; font-size: .94rem; font-weight: 600; color: var(--text); background: rgba(72, 72, 74, .55); border: 1px solid var(--line); border-radius: 999px;
  padding: .58rem 1.15rem; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 250ms var(--ease-out), opacity 200ms ease; }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; pointer-events: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button.primary { background: var(--text); color: #000; border-color: transparent; position: relative; overflow: hidden; isolation: isolate; }
button.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(10, 132, 255, .38) 45%, rgba(191, 90, 242, .38) 55%, transparent 70%); transform: translateX(-130%); }
button.blue { background: var(--blue); border-color: transparent; color: #fff; }
button.ok { background: var(--green); border-color: transparent; color: #03240f; }
button.danger { color: var(--red); }
button.sm { padding: .36rem .8rem; font-size: .82rem; }
button.lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) {
  #nav a:hover, #nav .link:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
  #nav a.cta:hover { background: #fff; color: #000; }
  button:hover { background: rgba(99, 99, 102, .6); border-color: var(--line-strong); }
  button.primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 36px -8px rgba(255, 255, 255, .5); }
  button.primary:hover::after { transform: translateX(130%); transition: transform 750ms var(--ease-out); }
  button.blue:hover { background: #2b95ff; box-shadow: 0 10px 30px -10px rgba(10, 132, 255, .9); }
  button.ok:hover { background: #45e06c; }
  button.danger:hover { background: rgba(255, 69, 58, .16); border-color: rgba(255, 69, 58, .4); }
  .product:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .product:hover::before { opacity: 1; }
  .channel:hover { background: rgba(255, 255, 255, .05); }
  .chip:hover { color: var(--text); }
}

/* ---------- surfaces & forms */
.card { background: var(--solid); border: 1px solid var(--line); border-top-color: rgba(255, 255, 255, .14); border-radius: var(--r); padding: 1.5rem; }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
h2 { font-size: 1.35rem; letter-spacing: -.018em; line-height: 1.2; margin-bottom: .8rem; }
label { display: block; margin: 1rem 0 .35rem; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
input, textarea { font: inherit; width: 100%; color: var(--text); background: var(--field); border: 1px solid transparent; border-radius: 12px; padding: .7rem .9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 132, 255, .28); background: rgba(118, 118, 128, .14); }
.err { color: var(--red); font-size: .9rem; min-height: 1.4rem; margin-top: .8rem; }
.note { background: rgba(255, 159, 10, .12); border: 1px solid rgba(255, 159, 10, .35); color: #ffd28a; padding: .8rem 1rem; border-radius: 14px; margin-top: 1rem; font-size: .88rem; word-break: break-all; }
.inline { display: flex; gap: 8px; align-items: center; }

/* ---------- hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8vh 0 1rem; }
.hero .lede { margin-inline: auto; }
.hero .cta-row { justify-content: center; }
.display .line { display: block; }
/* rotating headline word: old one leaves upward, new one arrives from below */
.rotor { display: block; position: relative; height: 1.14em; width: min(100%, 92vw); margin-inline: auto; }
.word { position: absolute; left: 50%; top: 0; translate: -50% 0; white-space: nowrap; padding-bottom: .08em;
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), filter 450ms var(--ease-out); }
@starting-style { .word { opacity: 0; transform: translateY(45%); filter: blur(10px); } }
.word.out { opacity: 0; transform: translateY(-45%); filter: blur(10px); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 600; letter-spacing: .01em; color: var(--text); padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.display { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 700; line-height: 1.03; letter-spacing: -.035em; font-optical-sizing: auto; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #64d2ff, #0a84ff 25%, #bf5af2 55%, #ff375f 80%, #64d2ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 9s linear infinite; }
@keyframes hue { to { background-position: -200% 0; } }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.45; color: var(--muted); max-width: 34rem; margin: 1.4rem 0 2rem; letter-spacing: -.005em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rise { animation: rise 700ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* hero preview: a live order chat */
.preview-wrap { justify-self: center; animation: rise 900ms var(--ease-out) 180ms both; }
.preview { width: min(340px, 86vw); border-radius: 28px; padding: 1.1rem; border: 1px solid var(--line); border-top-color: var(--line-strong); animation: float 9s var(--ease-in-out) infinite alternate; }
@keyframes float { from { transform: translateY(-7px) rotate(-1.2deg); } to { transform: translateY(7px) rotate(.6deg); } }
.preview .p-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 600; }
.preview .p-time { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: .9rem; }
.preview .p-label { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.p-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin: .9rem 0 1.1rem; overflow: hidden; }
.p-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--purple)); transform-origin: left; transform: scaleX(.02); transition: transform 1s linear; }
.p-msgs { display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 82%; padding: .5rem .8rem; border-radius: 18px; font-size: .88rem; line-height: 1.35; background: var(--solid-2); align-self: flex-start; animation: rise 500ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; }
.typing { display: inline-flex; gap: 4px; padding: .7rem .8rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* marquee: constant motion, linear */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: .95rem 0; margin: 3.5rem 0 4.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: 0 1.6rem; }
.marquee span::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin-left: 3.2rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
.section-sub { color: var(--muted); margin-top: .5rem; font-size: 1.05rem; }
.how { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; margin: 1.8rem 0 5rem; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 3rem 1fr; column-gap: .6rem; align-items: start; padding: 1.2rem 1.4rem; }
.step h3 { margin-top: .1rem !important; }
.step .n { grid-row: span 2; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.12rem; letter-spacing: -.012em; margin: 1rem 0 .35rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* store */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 1.6rem 0; }
.chip { background: rgba(255, 255, 255, .07); color: var(--muted); font-size: .86rem; padding: .42rem .95rem; }
.chip.on { background: var(--text); color: #000; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.store-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.search { max-width: 280px; border-radius: 999px; padding-inline: 1.1rem; }
.product { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 0;
  transition: transform 260ms var(--ease-out), border-color 220ms ease; }
.product .media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 132, 255, .24), rgba(191, 90, 242, .2) 60%, rgba(255, 55, 95, .14)); }
.product .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.product .body { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.product .meta { font-size: .8rem; color: var(--faint); font-weight: 500; }
.flag { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; color: #ffc15c;
  background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.flag.out { color: #ff8078; }
.star { color: #ffd60a; letter-spacing: .05em; }
.star i { font-style: normal; color: rgba(255, 255, 255, .18); }
.review { display: flex; flex-direction: column; gap: .6rem; }
@media (hover: hover) and (pointer: fine) { .product:hover .media img { transform: scale(1.05); } }

/* pay-with list in the purchase sheet */
.methods { display: flex; flex-direction: column; gap: 8px; margin-top: .6rem; }
.method { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; border-radius: 14px; padding: .75rem .95rem; background: var(--field); }
.method::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); transition: border-color 160ms ease, box-shadow 160ms ease; }
.method.on { border-color: var(--blue); background: rgba(10, 132, 255, .16); }
.method.on::before { border-color: var(--blue); box-shadow: inset 0 0 0 4px #1c1c1e, inset 0 0 0 10px var(--blue); }

/* review bar in the order chat */
.review-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .9rem; animation: fade 300ms ease both; }
.review-bar input { flex: 1; min-width: 160px; border-radius: 999px; padding: .5rem 1rem; }
.stars { display: inline-flex; }
.stars button { background: none; border: 0; padding: 2px 3px; font-size: 1.35rem; line-height: 1; color: rgba(255, 255, 255, .22); }
.stars button.on { color: #ffd60a; }

/* manage: product editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.preview-col { position: sticky; top: 96px; }
.hint { font-size: .78rem; color: var(--faint); margin-top: .35rem; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
textarea { resize: vertical; min-height: 2.8rem; }
.drop { display: flex; align-items: center; gap: 1rem; padding: .9rem; border: 1.5px dashed var(--line-strong); border-radius: 16px; cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 140ms var(--ease-out); }
.drop:active { transform: scale(.99); }
.drop.over { border-color: var(--blue); background: rgba(10, 132, 255, .12); }
.drop > div:nth-child(2) { flex: 1; }
.thumb { flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--field); display: grid; place-items: center; font-size: 1.6rem; color: var(--faint); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm { display: grid; place-items: center; width: 60px; aspect-ratio: 16 / 10; border-radius: 8px; object-fit: cover; background: var(--field); }
.method-edit { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.method-edit textarea { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .drop:hover { border-color: var(--blue); } }
.product::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .1), transparent 60%); }
.product .emoji { font-size: 2.8rem; line-height: 1; }
.product .name { font-weight: 650; font-size: 1.08rem; letter-spacing: -.012em; line-height: 1.25; }
.product .desc { color: var(--muted); font-size: .9rem; flex: 1; }
.product .eta { font-size: .8rem; color: var(--faint); font-weight: 500; }
.product .row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.price { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.empty-store { text-align: center; padding: 4.5rem 1.5rem; border-style: dashed; background: rgba(22, 22, 24, .6); }
.empty-store h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.empty-store p { color: var(--muted); margin: .5rem auto 1.4rem; max-width: 26rem; }
.foot { color: var(--faint); font-size: .8rem; text-align: center; margin-top: 5rem; }

/* ---------- orders / chat */
.chat-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(1280px, 100%); margin: 0 auto;
  border: 1px solid var(--line); border-top-color: var(--line-strong); border-radius: 26px; overflow: hidden; background: rgba(14, 14, 16, .78);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); animation: fade 300ms ease both; }
.channels { border-right: 1px solid var(--line); background: rgba(0, 0, 0, .35); overflow-y: auto; padding: 8px; }
.channels h3 { padding: 12px 12px 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.channel { display: block; padding: 10px 12px; border-radius: 14px; color: var(--muted); transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.channel:active { transform: scale(.98); }
.channel.on { background: rgba(255, 255, 255, .1); }
.channel .t { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--text); }
.channel .s { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; margin-left: 7px; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chat-head .title { font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.chat-head .grow { flex: 1; min-width: 140px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; gap: .5rem; }
.timer::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.badge { font-size: .7rem; padding: .16rem .6rem; border-radius: 999px; font-weight: 600; white-space: nowrap; letter-spacing: .01em; }
.badge.unpaid { background: rgba(191, 90, 242, .18); color: #d9a3f7; }
.badge.pending { background: rgba(255, 159, 10, .18); color: #ffc15c; }
.badge.delivered { background: rgba(10, 132, 255, .2); color: #6cb6ff; }
.badge.completed { background: rgba(48, 209, 88, .18); color: #5fe085; }
.badge.cancelled { background: rgba(255, 69, 58, .18); color: #ff8078; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: min(72%, 560px); padding: .55rem .9rem; border-radius: 19px; background: var(--solid-2); white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; line-height: 1.4;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .msg { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.mine { align-self: flex-end; background: var(--blue); color: #fff; }
.msg.sys { align-self: center; background: none; color: var(--faint); font-size: .82rem; text-align: center; max-width: 90%; padding: .3rem .6rem; }
.msg .meta { font-size: .72rem; opacity: .7; margin-bottom: 1px; font-weight: 500; }
.msg .tag { background: rgba(255, 255, 255, .22); border-radius: 5px; padding: 0 5px; font-weight: 700; margin-left: 5px; font-size: .66rem; letter-spacing: .04em; }
.msg:not(.mine) .tag { background: var(--blue); color: #fff; }
.composer { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.composer input { border-radius: 999px; padding-inline: 1.1rem; }
.empty { display: grid; place-items: center; color: var(--faint); padding: 40px; text-align: center; }
.back { display: none; font-size: 1.3rem; padding-right: 4px; }

/* ---------- manage */
.tabs { display: flex; gap: 6px; margin: 1.4rem 0; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--faint); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: 76px 2fr 1fr 110px 130px; gap: 10px; align-items: end; }
.form-grid label { margin-top: 0; }
.stack > * + * { margin-top: 14px; }

/* ---------- modal: scrim + materialize */
dialog { color: var(--text); border: 1px solid var(--line); border-top-color: var(--line-strong); border-radius: 26px; padding: 1.6rem; max-width: 400px; width: calc(100% - 32px);
  background: rgba(30, 30, 32, .86); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 40px 120px -20px #000;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
dialog::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity 250ms ease; }
@starting-style { dialog[open] { opacity: 0; transform: scale(.96); } dialog[open]::backdrop { opacity: 0; } }
dialog .big { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: .3rem 0 .6rem; }

#toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 50; max-width: 90vw; padding: .7rem 1.2rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: rgba(44, 44, 46, .82); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 16px 50px -12px #000; transform: translate(-50%, 160%); opacity: 0; pointer-events: none; transition: transform 400ms ease, opacity 400ms ease; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive */
@media (max-width: 860px) {
  .hero { padding-top: 4vh; }
  .how { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .preview-col { position: static; max-width: 320px; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .table-scroll { overflow-x: auto; }
}
@media (max-width: 760px) {
  #nav .who { display: none; }
  .bar { padding-left: 14px; }
  main.full { padding: 76px 6px 6px; }
  .chat-wrap { grid-template-columns: 1fr; border-radius: 20px; }
  .chat-wrap.has-open .channels { display: none; }
  .chat-wrap:not(.has-open) .chat { display: none; }
  .back { display: inline; }
  .msg { max-width: 86%; }
}

/* ---------- accessibility: gentler, not zero */
@media (prefers-reduced-transparency: reduce) {
  .bar, .glass, .chat-wrap, dialog, #toast { background: #1c1c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .4); --muted: #d1d1d6; --faint: #aeaeb2; }
  .bar, .glass, .chat-wrap, dialog { background: #111; }
}

/* ================= storefront v3: cart, product page, categories, discord, footer ================= */
:root { --ease-drawer: cubic-bezier(.32, .72, 0, 1); }
.page > section { margin-bottom: 5rem; }
.how { margin-bottom: 0; }

/* scroll reveal: fades up once; fill-mode backwards so hover transforms still work afterwards */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise 750ms var(--ease-out) backwards; animation-delay: var(--d, 0ms); }

/* headline word glides in from the right and leaves to the left */
.word { transition: opacity 700ms var(--ease-drawer), transform 700ms var(--ease-drawer), filter 700ms var(--ease-drawer); }
@starting-style { .word { opacity: 0; transform: translateX(26%); filter: blur(12px); } }
.word.out { opacity: 0; transform: translateX(-26%); filter: blur(12px); }

/* cart button in the nav */
#nav .cart { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); font-weight: 600; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.fly { position: fixed; z-index: 60; margin: 0; border-radius: 14px; overflow: hidden; pointer-events: none; display: grid; place-items: center; background: #1c1c1e; box-shadow: 0 20px 60px -10px #000; }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.fly .flag { display: none; }

/* product card: wide rectangle, picture takes 60% */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); }
.product { display: grid; grid-template-columns: 60% 40%; cursor: pointer; text-align: left; }
.product .media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
.product .body { min-width: 0; padding: .85rem 1.1rem; gap: .25rem; }
.product .name { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .meta { font-size: .76rem; }
.product .row { flex-direction: column; align-items: stretch; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.product .price { font-size: 1.5rem; line-height: 1.1; }
.product .row button { width: 100%; }
.cat-label { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.preview-col .product { cursor: default; }
.editor { grid-template-columns: minmax(0, 1fr) 440px; }

/* categories: big tiles, not product cards */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 1.6rem; }
.cat { position: relative; overflow: hidden; height: 160px; padding: 1.1rem 1.2rem; border-radius: var(--r); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; white-space: normal;
  border: 1px solid var(--line); border-top-color: var(--line-strong);
  background: linear-gradient(140deg, hsl(var(--h) 85% 34%), hsl(calc(var(--h) + 55) 80% 16%)); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform 800ms var(--ease-out), opacity 300ms ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, .72)); }
.cat > span { position: relative; z-index: 1; }
.cat-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cat-count { font-size: .8rem; font-weight: 500; color: rgba(255, 255, 255, .72); margin-top: .15rem; }
.cat .cat-go { position: absolute; top: 1rem; right: 1.1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16);
  transition: transform 300ms var(--ease-out), background-color 200ms ease, color 200ms ease; }

/* cart sheet: slides in from the right, leaves the same way */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 41; top: 10px; right: 10px; bottom: 10px; width: min(420px, calc(100vw - 20px)); display: flex; flex-direction: column; border-radius: 26px;
  background: rgba(28, 28, 30, .9); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--line); border-top-color: var(--line-strong); box-shadow: 0 40px 120px -20px #000;
  transform: translateX(calc(100% + 24px)); transition: transform 320ms var(--ease-drawer); }
.sheet.open { transform: none; transition-duration: 450ms; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.3rem .8rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 1.3rem; }
.sheet-foot { padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); }
.sheet-foot:empty { display: none; }
.line { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.stepper { display: inline-flex; align-items: center; background: var(--field); border-radius: 999px; padding: 2px; }
.stepper button { width: 30px; height: 30px; padding: 0; border: 0; background: none; font-size: 1.1rem; }
.stepper span { min-width: 1.7rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .2rem; }
.total b { font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* product page */
.crumb { display: inline-block; margin-bottom: 1rem; color: var(--muted); font-weight: 500; }
.p-detail { display: grid; grid-template-columns: 60% minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.p-media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(10, 132, 255, .24), rgba(191, 90, 242, .2) 60%, rgba(255, 55, 95, .14)); animation: page-in 600ms var(--ease-out) both; }
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-media .emoji { font-size: 5rem; }
.p-price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p-desc { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 1.1rem 0 1.5rem; }
.p-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; font-size: .88rem; color: var(--muted); }
.p-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: .6rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 1.6rem; }
.review-form { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; max-width: 520px; }

/* discord */
.discord { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; padding: 2.2rem; border-radius: 28px;
  background: linear-gradient(135deg, #5865f2, #3b44c4 60%, #2a2f8f); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 90px -40px #5865f2; }
.discord > *:not(.d-orb) { position: relative; }
.discord p { color: rgba(255, 255, 255, .86); max-width: 34rem; margin-top: .5rem; }
.d-icon { flex: none; width: 84px; height: 84px; border-radius: 26px; overflow: hidden; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: rgba(255, 255, 255, .16); }
.d-icon img { width: 100%; height: 100%; object-fit: cover; }
.d-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; min-height: 1.3rem; margin-top: .9rem; font-size: .88rem; font-weight: 600; }
.d-stats i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); margin-right: .45rem; }
.d-stats i.on { background: #3ddc84; }
.d-orb { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .24), transparent 65%); }
.d-orb.a { width: 360px; height: 360px; right: -90px; top: -160px; animation: bob 16s var(--ease-in-out) infinite alternate; }
.d-orb.b { width: 300px; height: 300px; left: -110px; bottom: -190px; animation: bob 21s var(--ease-in-out) infinite alternate-reverse; }
@keyframes bob { to { transform: translate3d(50px, 36px, 0) scale(1.18); } }

/* footer + documents */
.footer { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.footer h4 { margin: 0 0 .8rem; font-size: .95rem; }
.footer a { display: block; width: fit-content; color: var(--muted); font-size: .9rem; padding: .25rem 0; transition: color 160ms ease; }
.f-brand p { color: var(--muted); font-size: .9rem; max-width: 22rem; margin: .6rem 0; }
.f-base { grid-column: 1 / -1; color: var(--faint); font-size: .8rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.doc { max-width: 720px; margin: 2rem auto 0; }
.doc h2 { margin: 2.2rem 0 .6rem; font-size: 1.2rem; }
.doc p { color: var(--muted); line-height: 1.6; margin-bottom: .7rem; }

@media (hover: hover) and (pointer: fine) {
  .cat:hover { background: linear-gradient(140deg, hsl(var(--h) 85% 38%), hsl(calc(var(--h) + 55) 80% 18%)); border-color: var(--line-strong); }
  .cat:hover img { transform: scale(1.08); opacity: .5; }
  .cat:hover .cat-go { transform: translateX(4px); background: #fff; color: #000; }
  .footer a:hover { color: var(--text); }
  .stepper button:hover { background: rgba(255, 255, 255, .12); }
}
@media (max-width: 860px) {
  .p-detail { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) { #nav .cart { order: -1; } }
@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
  .product .media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .product .row { flex-direction: row; align-items: center; justify-content: space-between; }
  .product .row button { width: auto; }
  .discord { padding: 1.5rem; }
}
@media (prefers-reduced-transparency: reduce) {
  .sheet { background: #1c1c1e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- "Reduce motion" switch in the footer (html.calm): gentler, not zero.
   Motion is on by default, whatever the operating system reports. */
html.calm .orb, html.calm .preview, html.calm .grad, html.calm .pulse::after, html.calm .typing i, html.calm .marquee .track, html.calm .d-orb { animation: none; }
html.calm .rise, html.calm .preview-wrap, html.calm .bubble, html.calm .page, html.calm .reveal.in, html.calm .p-media { animation: fade 300ms ease backwards; }
html.calm .product:hover, html.calm button:active, html.calm .channel:active, html.calm .product:hover .media img, html.calm .cat:hover img, html.calm .cat:hover .cat-go { transform: none; }
html.calm .word.out { transform: none; filter: none; }
html.calm #toast { transition: opacity 200ms ease; transform: translate(-50%, 0); }
html.calm .sheet { transition: opacity 200ms ease; transform: none; opacity: 0; }
html.calm .sheet.open { opacity: 1; }
@starting-style { html.calm .msg, html.calm dialog[open], html.calm .word { transform: none; filter: none; } }
.motion-toggle { font-size: .8rem; padding: .3rem .8rem; margin-top: .9rem; color: var(--muted); }

.stars.big button { font-size: 2.2rem; padding: 2px 5px; }
.line .thumb { width: 120px; }


/* ================= v4 art direction: departures board ================= */
:root {
  --ground: #09090a; --text: #f1efe8; --muted: #a3a098; --faint: #75726b;
  --accent: #ffb23f; --accent-ink: #1d1300; --link: var(--accent); --blue: var(--accent);
  --line: rgba(241, 239, 232, .09); --line-strong: rgba(241, 239, 232, .18);
  --f-text: "Archivo", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
html { font-family: var(--f-text); font-variation-settings: "wdth" 100; }
body { background: var(--ground); }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* background: the board's backing panel. dot grid, one warm light that breathes, vignette */
.bg { background: var(--ground); }
.bg::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(241, 239, 232, .11) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 28% 18%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 85% 65% at 28% 18%, #000 25%, transparent 80%); }
.bg::after { z-index: 2; background: radial-gradient(ellipse 120% 90% at 50% 0%, transparent 40%, rgba(0, 0, 0, .75)), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.o2, .o3 { display: none; }
.o1 { width: 75vmax; height: 55vmax; left: -18vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 178, 63, .2), rgba(255, 120, 40, .06) 55%, transparent);
  animation: board-light 12s ease-in-out infinite alternate; }
@keyframes board-light { from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; } to { transform: translate3d(6vmax, 2vmax, 0) scale(1.08); opacity: 1; } }

/* type */
.logo { font-variation-settings: "wdth" 115; font-weight: 800; letter-spacing: -.03em; }
.display { font-family: var(--f-text); font-variation-settings: "wdth" 112; font-weight: 800; font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  line-height: .95; letter-spacing: -.04em; margin-left: -.04em; }
.section-title { font-variation-settings: "wdth" 110; font-weight: 750; letter-spacing: -.03em; }
h2, h3 { font-variation-settings: "wdth" 106; }
.price, .p-price, .total b, .timer, .p-time, .clock, .count, .cat-count, .cat-label, .badge, .flag, .product .meta, .marquee span, .hint, th {
  font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.price, .p-price, .total b { letter-spacing: -.04em; font-weight: 600; }
.cat-label, .marquee span, th { letter-spacing: .08em; }
.product .meta, .cat-count { font-size: .7rem; }
.badge { font-weight: 600; font-size: .66rem; }

/* hero: left aligned on the grid, the flap row is the image */
.hero { align-items: flex-start; text-align: left; padding: 9vh 0 1rem; }
.hero .lede { margin-inline: 0; max-width: 36rem; }
.hero .cta-row { justify-content: flex-start; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding-bottom: .9rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--muted); }
.board-head > span:first-child { display: inline-flex; align-items: center; gap: .6rem; }
.board-head .pulse, .board-head .pulse::after { background: var(--accent); }
.clock { color: var(--accent); font-size: .8rem; letter-spacing: .04em; }
.rotor { display: block; position: relative; height: auto; width: 100%; margin: .14em 0 .2em; }
.display .line { display: block; padding: 0; border: 0; }
.hero > h1 { align-self: stretch; }
.flaps { --fit: 1; display: grid; gap: .07em; font-family: var(--f-mono); font-weight: 600; letter-spacing: 0; line-height: 1;
  font-size: calc(clamp(1.7rem, .9rem + 3.4vw, 3.9rem) * var(--fit)); width: max-content; perspective: 400px; }
.flap { position: relative; display: grid; place-items: center; width: .86em; height: 1.28em; border-radius: .09em; overflow: hidden;
  background: linear-gradient(180deg, #1d1d1f 0 50%, #161617 50% 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 .06em .14em rgba(0, 0, 0, .6); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: rgba(0, 0, 0, .75); }
.flap b { display: block; color: var(--accent); font-weight: 600; text-shadow: 0 0 .35em rgba(255, 178, 63, .35); transform-origin: 50% 50%; }
.word, .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; animation: none; }

/* accent instead of blue: dark ink on amber */
.msg.mine, .bubble.me, button.blue, .count, .msg:not(.mine) .tag { background: var(--accent); color: var(--accent-ink); }
.msg.mine .tag { background: rgba(0, 0, 0, .14); color: var(--accent-ink); }
.p-bar i { background: var(--accent); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 178, 63, .22); }
.method.on { background: rgba(255, 178, 63, .12); }
.drop.over { background: rgba(255, 178, 63, .1); }
.dot { background: var(--accent); }
.marquee span { color: var(--muted); font-size: .7rem; }
.marquee span::after { background: var(--accent); opacity: .6; }
.step .n { font-family: var(--f-mono); font-weight: 600; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); font-size: 1.6rem; }
.step { grid-template-columns: 3.2rem 1fr; }
.empty-store { background: rgba(14, 14, 15, .7); }
@media (hover: hover) and (pointer: fine) {
  button.blue:hover { background: #ffc266; box-shadow: 0 10px 30px -12px rgba(255, 178, 63, .8); }
  button.primary::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 178, 63, .45) 50%, transparent 70%); }
}
html.calm .o1 { animation: none; }
@media (max-width: 560px) {
  .board-head { font-size: .74rem; }
  .board-head > span:first-child { max-width: 65%; }
}


/* ================= v5 brand: black, white, electric blue from the logo + seasonal themes ================= */
:root {
  --ground: #050608; --text: #f4f6fa; --muted: #9ba3b2; --faint: #6e7584; --silver: #c9ced8;
  --accent: #4a86ff; --accent-fill: #1f5fff; --accent-ink: #ffffff; --glow: #2f6bff; --glow-2: #7aa6ff;
  --flap-ink: #e9edf5; --flap-glow: rgba(74, 134, 255, .55); --link: var(--accent); --blue: var(--accent);
  --line: rgba(200, 210, 230, .09); --line-strong: rgba(200, 210, 230, .18);
}
html[data-theme="christmas"] { --accent: #ff5f5f; --accent-fill: #c62828; --accent-ink: #fff; --glow: #d62f2f; --glow-2: #2fae6b; --flap-ink: #fff3f0; --flap-glow: rgba(255, 95, 95, .55); }
html[data-theme="halloween"] { --accent: #ff8a2a; --accent-fill: #ff8a2a; --accent-ink: #1a0a00; --glow: #7b2cff; --glow-2: #ff7a1a; --flap-ink: #ffb067; --flap-glow: rgba(255, 122, 26, .6); }
html[data-theme="autumn"] { --accent: #e8963c; --accent-fill: #b5541c; --accent-ink: #fff; --glow: #c2541a; --glow-2: #e3a032; --flap-ink: #ffe2c2; --flap-glow: rgba(232, 150, 60, .5); }
html[data-theme="summer"] { --accent: #ffcf4a; --accent-fill: #ffcf4a; --accent-ink: #1d1500; --glow: #18c6b8; --glow-2: #ffcf4a; --flap-ink: #fff6d6; --flap-glow: rgba(255, 207, 74, .55); }
body, .bg { background: var(--ground); }
::selection { background: var(--accent-fill); color: var(--accent-ink); }

/* background: logo-blue light, the dot panel, and the logo's orbit drawn across the page */
.o1 { background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), color-mix(in srgb, var(--glow-2) 9%, transparent) 55%, transparent); transition: background 600ms ease; }
.bg::before { background-image: radial-gradient(rgba(200, 210, 230, .1) 1px, transparent 1.3px); }
.orbit { position: absolute; z-index: 1; left: -12vw; top: 8vh; width: 124vw; height: 52vh; transform: rotate(-14deg); fill: none; overflow: visible; }
.o-track { stroke: rgba(200, 210, 230, .09); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.o-light { stroke: var(--glow-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 16 84; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow)); animation: orbit 16s linear infinite; }
@keyframes orbit { to { stroke-dashoffset: -100; } }
canvas.journey { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.orbit { opacity: calc(1 - var(--sp, 0)); transition: opacity 200ms linear; }
.o1 { opacity: calc(1 - var(--sp, 0) * .6); }
canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
html.calm .o-light { animation: none; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong), 0 0 18px -4px var(--glow); }

/* flap board: only the word's own tiles */
.flaps { display: flex; flex-direction: column; gap: .07em; }
.flap-row { display: flex; gap: .07em; }
.flap { background: linear-gradient(180deg, #171a20 0 50%, #101318 50% 100%); }
.flap.off { display: none; }
.flap.gap { background: transparent; box-shadow: none; }
.flap.gap::after { display: none; }
.flap b { color: var(--flap-ink); text-shadow: 0 0 .4em var(--flap-glow); }
.flap.q b { color: var(--accent); }

/* accent everywhere it was amber */
.msg.mine, .bubble.me, button.blue, .count, .msg:not(.mine) .tag { background: var(--accent-fill); color: var(--accent-ink); }
.msg.mine .tag { background: rgba(0, 0, 0, .18); color: var(--accent-ink); }
.p-bar i, .dot, .board-head .pulse, .board-head .pulse::after, .marquee span::after { background: var(--accent); }
.clock, .step .n, .ls-go { color: var(--accent); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.method.on, .drop.over { background: color-mix(in srgb, var(--accent) 14%, transparent); }
#nav a .count { margin-left: .4rem; display: inline-grid; vertical-align: 1px; }
@media (hover: hover) and (pointer: fine) {
  button.blue:hover { background: color-mix(in srgb, var(--accent-fill) 82%, #fff); box-shadow: 0 10px 30px -12px var(--glow); }
  button.primary::after { background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 45%, transparent) 50%, transparent 70%); }
  .board-head.live:hover { border-color: var(--accent); transform: translateY(-1px); }
  .board-head.live:hover .ls-go { transform: translateX(4px); }
  .note-card:hover { border-color: var(--accent); }
}

/* live order strip */
.board-head { text-decoration: none; }
.board-head.live { font-size: .95rem; color: var(--text); padding: .85rem 1.1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent-fill) 12%, rgba(10, 12, 16, .75)); box-shadow: 0 0 46px -20px var(--glow);
  transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.ls-main { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.ls-main > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-side { display: inline-flex; align-items: center; gap: .9rem; flex: none; }
.ls-go { font-weight: 600; transition: transform 200ms var(--ease-out); }
.board-head.live .clock { font-size: 1rem; font-weight: 600; }
.ls-go::after { content: " ›"; }

/* message notifications: bottom right, out of the way, gone after a few seconds */
#notes { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.note-card { pointer-events: auto; display: block; color: var(--text); padding: .75rem .95rem; border-radius: 16px; background: rgba(18, 20, 26, .92);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 50px -14px #000; transform: translateX(calc(100% + 24px)); opacity: 0; transition: transform 420ms var(--ease-drawer), opacity 300ms ease, border-color 160ms ease; }
.note-card.in { transform: none; opacity: 1; }
.nc-head { display: flex; justify-content: space-between; gap: .6rem; font-size: .76rem; color: var(--muted); }
.nc-head b { color: var(--text); }
.nc-body { font-size: .9rem; margin-top: .2rem; overflow-wrap: anywhere; }
html.calm .note-card { transform: none; }

/* theme picker */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: .9rem; }
.theme-opt { white-space: normal; text-align: left; border-radius: 16px; padding: .7rem; display: flex; flex-direction: column; align-items: stretch; gap: .45rem; background: var(--field); }
.theme-opt.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.swatch { height: 46px; border-radius: 10px; display: flex; overflow: hidden; border: 1px solid var(--line); }
.swatch i { flex: 1; }

@media (max-width: 600px) {
  #notes { top: 78px; bottom: auto; }
  .note-card { transform: translateY(-24px); }
  .board-head.live { flex-wrap: wrap; gap: .5rem; }
  .ls-side { width: 100%; justify-content: space-between; }
  .orbit { height: 34vh; top: 10vh; }
}


/* ================= product options (1 month / 3 months / Account) ================= */
.opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .35rem; }
.opt { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; line-height: 1; padding: .34rem .6rem; border-radius: 999px; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.opt.off { opacity: .45; text-decoration: line-through; }
.opt.more { background: transparent; color: var(--muted); border-color: var(--line-strong); }
.line .opt { margin: .25rem 0 .1rem; }
.price small { font-family: var(--f-text); font-size: .62em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: .15em; }
.p-opts-label { font-size: .8rem; font-weight: 600; color: var(--muted); margin: .2rem 0 .5rem; }
.p-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 1rem; }
.p-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; white-space: normal; border-radius: 14px; padding: .7rem .85rem; background: var(--field); }
.p-opt b { font-size: .95rem; }
.p-opt span { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.p-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 0 0 1px var(--accent) inset, 0 8px 30px -14px var(--glow); }
.p-opt.on span { color: var(--accent); }
.p-opt:disabled { opacity: .45; }
.opts-box { margin-top: 1rem; padding: .9rem; border: 1px dashed var(--line-strong); border-radius: 16px; }
.opts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.opts-edit { display: flex; flex-direction: column; gap: 8px; }
.opts-edit:not(:empty) { margin-top: .8rem; }
.opt-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
input:disabled { opacity: .5; }
@media (max-width: 560px) { .opt-row { grid-template-columns: 1fr 1fr; } .opt-row input:first-child { grid-column: 1 / -1; } }

/* order chat: one clear "order placed" card, every other event a quiet line */
.ev { align-self: center; width: min(100%, 480px); margin: .2rem auto .5rem; padding: .7rem .95rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.ev-t { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.ev-t b { font-size: .86rem; }
.ev-t time { font-family: var(--f-mono); font-size: .66rem; color: var(--faint); white-space: nowrap; }
.ev-b { margin-top: .25rem; font-size: .82rem; line-height: 1.45; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.ev-line { --c: var(--faint); align-self: center; display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--faint); padding: .1rem 0; }
.ev-line i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ev-line time { font-family: var(--f-mono); font-size: .66rem; opacity: .75; }
.ev-completed, .ev-paid { --c: var(--green); }
.ev-cancelled { --c: var(--red); }
.ev-delivered { --c: var(--accent); }
.ev-review { --c: #ffd60a; }
.note-card[class*="ev-"] { border-left: 3px solid var(--c, var(--accent)); }
.ev-ic.sm { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-size: .7rem; margin-right: .4rem;
  color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); }
.nc-ev { display: inline-flex; align-items: center; }
.msg.cont { margin-top: -5px; }
.review { position: relative; }
.rv-del { position: absolute; top: 10px; right: 10px; opacity: .55; }
.rv-del:hover, .rv-del:focus-visible { opacity: 1; }
.rv-discord { display: flex; gap: .8rem; align-items: center; margin-top: 1.1rem; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(88, 101, 242, .1); }
.rv-discord p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.rv-discord b { color: var(--text); display: block; font-size: .9rem; }
.rv-discord a.button { white-space: nowrap; }
.hero + section { margin-top: clamp(3.5rem, 9vw, 6.5rem); }/* in-chat review card for completed orders */
.chat { position: relative; overflow: hidden; }
.rv-pop { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 16%, rgba(0, 0, 0, .55)), rgba(0, 0, 0, .7));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rv-fade 280ms ease-out both; }
.rv-card { position: relative; width: min(420px, 100%); padding: 1.6rem 1.4rem 1.3rem; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, #121318), #0e0f13 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 40px 90px -30px var(--glow), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  animation: rv-in 620ms cubic-bezier(.2, 1.35, .35, 1) both; }
.rv-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rv-a, 0deg), transparent 0 70%, var(--accent) 85%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rv-spin 3.2s linear infinite; }
@property --rv-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.rv-check { width: 58px; height: 58px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; color: #03240f;
  background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent);
  animation: rv-pop 520ms 120ms cubic-bezier(.2, 1.6, .4, 1) both, rv-ring 1.6s 600ms ease-out 2; }
.rv-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rv-draw 420ms 420ms ease-out forwards; }
.rv-kicker { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.rv-card h2 { margin: .3rem 0 .35rem; font-size: 1.6rem; }
.rv-sub { color: var(--muted); font-size: .88rem; line-height: 1.45; margin: 0 auto 1rem; max-width: 34ch; }
.rv-card .stars { justify-content: center; margin-bottom: .9rem; }
.rv-card .stars button { animation: rv-star 480ms calc(380ms + var(--i) * 70ms) cubic-bezier(.2, 1.7, .4, 1) both; transition: transform 160ms ease, color 160ms ease; }
.rv-card .stars button:hover { transform: scale(1.18); }
.rv-card .stars button.on { text-shadow: 0 0 18px rgba(255, 214, 10, .55); }
.rv-card textarea { width: 100%; text-align: left; }
.rv-actions { display: flex; gap: 8px; justify-content: center; margin-top: .2rem; }
.rv-actions .primary { min-width: 9rem; }
.rv-card .rv-discord { text-align: left; margin-top: 1.1rem; background: rgba(88, 101, 242, .14); border-color: rgba(88, 101, 242, .35); animation: rv-up 420ms 650ms ease-out both; }
.rv-dc-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: #5865f2; }
.rv-pop.out { animation: rv-fade 240ms ease-in reverse forwards; }
.rv-pop.out .rv-card { animation: rv-out 240ms ease-in forwards; }
.rv-later { display: flex; justify-content: center; padding: 8px 14px 0; }
.rv-pill { display: inline-flex; gap: .45rem; align-items: center; border-radius: 999px; padding: .5rem 1rem; font-weight: 600;
  color: #1d1600; background: #ffd60a; border-color: transparent; animation: rv-glow 2.2s ease-in-out infinite; }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-in { from { opacity: 0; transform: translateY(26px) scale(.86); filter: blur(6px); } }
@keyframes rv-out { to { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes rv-pop { from { transform: scale(0); } }
@keyframes rv-draw { to { stroke-dashoffset: 0; } }
@keyframes rv-ring { to { box-shadow: 0 0 0 18px transparent; } }
@keyframes rv-star { from { opacity: 0; transform: scale(.2) rotate(-40deg); } }
@keyframes rv-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes rv-spin { to { --rv-a: 360deg; } }
@keyframes rv-glow { 50% { box-shadow: 0 0 0 6px rgba(255, 214, 10, .18), 0 0 24px rgba(255, 214, 10, .35); } }
html.calm .rv-pop, html.calm .rv-card, html.calm .rv-card::before, html.calm .rv-check, html.calm .rv-card .stars button, html.calm .rv-card .rv-discord, html.calm .rv-pill { animation: none; }
html.calm .rv-check path { animation: none; stroke-dashoffset: 0; }
.rv-card .err { min-height: 0; margin: .35rem 0 .45rem; }
.hook-box { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }

/* phones: Cart + menu button in the bar, everything else in a drop-down sheet */
.menu-btn, #msheet { display: none; }
@media (max-width: 760px) {
  .top { flex-direction: column; align-items: center; }
  #nav { overflow: visible; gap: 4px; }
  #nav > :not(.cart):not(.menu-btn) { display: none; }
  .menu-btn { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 44px; height: 40px; padding: 0 !important; }
  .burger { position: relative; width: 18px; height: 12px; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--text); transition: transform 220ms var(--ease-out, ease-out), top 220ms var(--ease-out, ease-out); }
  .burger i:first-child { top: 1px; } .burger i:last-child { top: 9px; }
  .top.open .burger i:first-child { top: 5px; transform: rotate(45deg); }
  .top.open .burger i:last-child { top: 5px; transform: rotate(-45deg); }
  .menu-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; }
  #nav .cart { padding: 9px 14px; }
  #msheet { pointer-events: auto; display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: 8px; padding: 8px; border-radius: 22px;
    background: var(--glass); border: 1px solid var(--line); border-top-color: var(--line-strong);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .8);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; visibility: hidden;
    transition: opacity 200ms ease, transform 240ms var(--ease-out, ease-out), visibility 0s 240ms; }
  .top.open #msheet { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms ease, transform 240ms var(--ease-out, ease-out); }
  #msheet a, #msheet .link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 14px;
    color: var(--text); font-size: 1rem; font-weight: 500; background: none; border: 0; text-align: left; width: 100%; }
  #msheet a.on { background: rgba(255, 255, 255, .1); }
  #msheet a.cta { background: var(--text); color: #000; justify-content: center; font-weight: 600; margin-top: 4px; }
  #msheet .who { padding: 10px 14px 4px; font-size: .8rem; color: var(--muted); }
  #msheet .who i { font-style: normal; }
  html.calm #msheet, html.calm .burger i { transition: none; }
}
.tabs { flex-wrap: wrap; row-gap: 6px; }
.chat-head .title { white-space: nowrap; flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 560px) {
  .chat-head { padding: 10px 12px; gap: 8px; }
  .chat-head .grow { min-width: 0; flex-basis: calc(100% - 40px); }
  .chat-head .timer { font-size: .78rem; padding: .3rem .7rem; }
  .msgs { padding: 12px; }
  .rv-card { padding: 1.3rem 1rem 1rem; }
  .rv-card h2 { font-size: 1.35rem; }
}
/* tablets: two stacked product cards per row instead of one huge one */
@media (min-width: 600px) and (max-width: 940px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
}
/* big monitors: use more of the width */
@media (min-width: 1600px) {
  .page { max-width: 1280px; }
  .bar { width: min(1280px, 100%); }
}
@media (min-width: 2200px) {
  html { font-size: 112.5%; }
  .page { max-width: 1440px; }
  .bar { width: min(1440px, 100%); }
}
/* side-by-side product cards: the image fills the full height of the card */
.product .media { aspect-ratio: auto; align-self: stretch; min-height: 11rem; }
.product .media img { position: absolute; inset: 0; }
@media (max-width: 560px), (min-width: 600px) and (max-width: 940px) {
  .product .media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* product cards: same size whatever the number of options, picture never cropped */
.product .opts { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.product .opt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.product .opt.more { flex-shrink: 0; }
.product .media { background: #07080b; }
.product .media img.main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.product .media img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) saturate(1.2) brightness(.55); transform: scale(1.2); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .product:hover .media img.fill { transform: scale(1.2); } .product:hover .media img.main { transform: scale(1.03); } }
.product .media .flag { z-index: 2; }
html.calm .product:hover .media img.main { transform: none; }
