/* Valley Fork — mobile first. Tokens → base → chrome → home → menus → sheets → pages. */

:root {
  --paper: #FBF6EE; --paper-2: #F3EADB; --paper-3: #E9DDC8; --card: #FFFFFF;
  --ink: #1B1A2E; --ink-2: #4B4860; --ink-3: #6A667E;
  --line: rgba(27, 26, 46, .12); --line-2: rgba(27, 26, 46, .22);
  --indigo: #1B1A3A; --plum: #3B2F6B; --violet: #6A5AA8; --lilac: #9C8FCF;
  --ember: #B23A18; --peach: #F29E6B; --gold: #F2B84B; --leaf: #3F7D58;
  --shadow-1: 0 1px 2px rgba(27, 26, 46, .06), 0 6px 18px rgba(27, 26, 46, .07);
  --shadow-2: 0 2px 6px rgba(27, 26, 46, .08), 0 20px 44px rgba(27, 26, 46, .16);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --p-bg: var(--indigo); --p-mid: var(--violet); --p-pop: var(--gold); --p-cream: #FBF6EE;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131220; --paper-2: #1D1B2D; --paper-3: #29263B; --card: #1D1B2D;
    --ink: #F3EEE3; --ink-2: #C5C0D3; --ink-3: #918CA3;
    --line: rgba(243, 238, 227, .13); --line-2: rgba(243, 238, 227, .24);
    --ember: #FF7A52; --leaf: #5FAE80;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 44px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.06; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
/* On the coloured heroes an ember ring all but disappears (it is red on red at Luce): white holds on every one. */
[data-hero="dark"] .top :focus-visible, .phero :focus-visible, .thero :focus-visible, .hero :focus-visible, .itemshell :focus-visible, .tastecard :focus-visible, .sharesec :focus-visible, .pbox :focus-visible, .foot :focus-visible { outline-color: #fff; }
/* A heading given focus by script, so a screen reader starts reading there, needs no ring of its own. */
h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible, .panel[tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
/* The gutter is 16px plus the notch inset, so nothing sits under the notch with the phone held sideways. */
.wrap { width: min(100% - 32px - 2 * max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
p > .i, a > .i:only-child, small > .i { display: inline-block; vertical-align: -.18em; }
.i--fill { fill: currentColor; stroke: none; }
.i--gold { color: var(--gold); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.kicker--light { color: var(--gold); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.loading { padding: 48px 0; color: var(--ink-3); text-align: center; }
/* These pages are filled in by script. Holding a screen's height keeps the footer from sitting under the
   one-line placeholder and then jumping away. */
#me-root, #taste-root, #packs { min-height: 100vh; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; }

@view-transition { navigation: auto; }

/* ───────── buttons, chips ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; background: none; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, filter .2s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; color: #1B1A2E; }
.btn--pop { background: var(--p-pop); color: var(--p-bg); }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--sm { height: 40px; font-size: 14px; padding: 0 16px; }
.btn--lg { height: 56px; font-size: 17px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pill--glass { background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.fchips::-webkit-scrollbar, .secnav::-webkit-scrollbar, .stkrow::-webkit-scrollbar, .stkpick::-webkit-scrollbar, .fy::-webkit-scrollbar, .tabs::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Touch targets: at least 44px to hit. min-* wins over the fixed heights set on each control. */
.tchip, .fchip, .seg button, .quick a, .btn--sm, .secnav a, .mebtn, .linkbox, .msearch, .sublink { min-height: 44px; }
.iconbtn, .toolbtn, .item__love, .swatches button { min-width: 44px; min-height: 44px; }

/* ───────── header ───────── */
.top { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
[data-hero="dark"] .top { position: absolute; inset: 0 0 auto 0; color: #fff; border: 0; }
.top__in { display: flex; align-items: center; gap: 10px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.015em; }
.brand__name { white-space: nowrap; }
.brand em { font-style: italic; font-weight: 500; }
.brand--light { color: #fff; }
.logo-mark { border-radius: 10px; flex: none; }
.top__nav { display: none; gap: 24px; margin-left: 28px; }
.top__nav a { font-size: 15px; font-weight: 600; text-decoration: none; opacity: .86; }
.top__nav a:hover { opacity: 1; text-decoration: underline; }
.top__acts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; font-size: 19px; text-decoration: none; }
.iconbtn:hover { background: rgba(127, 127, 127, .16); }
.mebtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px; margin-left: 4px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; background: var(--ink); color: var(--paper); }
[data-hero="dark"] .mebtn { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mebtn__av { width: 26px; height: 26px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--c, var(--violet)); }
.mebtn { white-space: nowrap; }
.mebtn__name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .top__stk { display: none; } }
@media (min-width: 860px) { .top__nav { display: flex; } .top__stk { display: none; } }

/* ───────── home hero ───────── */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-top: 104px; background: linear-gradient(180deg, #0D0C29 0%, #1F1852 30%, #54307A 55%, #B9577E 76%, #F3A26D 96%); }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 72%; z-index: -3; }
.star { fill: #fff; opacity: .75; animation: twinkle 5s ease-in-out infinite; }
.star.s1 { animation-delay: 1.2s; } .star.s2 { animation-delay: 2.4s; opacity: .5; } .star.s3 { animation-delay: 3.6s; }
@keyframes twinkle { 50% { opacity: .15; } }
.hero-moon { position: absolute; z-index: -2; right: max(22px, 8vw); top: 78px; width: clamp(30px, 5vw, 56px); aspect-ratio: 1; border-radius: 50%; background: #FCEBCB; box-shadow: 0 0 44px 6px rgba(252, 235, 203, .45); }
.hero-art { position: absolute; z-index: -1; left: 50%; bottom: -1px; transform: translateX(-50%); width: max(100%, 940px); height: clamp(230px, 40vw, 430px); }
.ridge.r1 { fill: #9E86CF; opacity: .7; } .ridge.r2 { fill: #7460B6; } .ridge.r3 { fill: #4F4298; } .ridge.r4 { fill: #2D2767; } .ridge.r5 { fill: var(--paper); }
.hero__in { padding-bottom: clamp(190px, 34vw, 380px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .88; margin-bottom: 18px; }
.hero__title { font-size: clamp(46px, 12.4vw, 108px); font-weight: 560; letter-spacing: -.035em; line-height: .94; max-width: 12ch; }
.hero__title em { font-style: italic; font-weight: 400; color: #FFD7A1; }
.hero__sub { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.45; max-width: 46ch; margin-top: 20px; opacity: .92; }
.searchbar { margin-top: 28px; width: min(100%, 540px); display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font-size: 17px; text-align: left; transition: background-color .2s, transform .2s var(--ease); }
.searchbar:hover { background: rgba(255, 255, 255, .22); }
.searchbar .i { font-size: 20px; }
.searchbar span { flex: 1; }
.searchbar kbd { font: 600 13px var(--body); border: 1px solid rgba(255, 255, 255, .4); border-radius: 7px; padding: 2px 8px; opacity: .8; }
@media (hover: none) { .searchbar kbd { display: none; } }
.hero__towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .2s; }
.tchip:hover { background: rgba(255, 255, 255, .24); }
.tchip span { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 12px; }

/* ───────── sections ───────── */
.sec { padding-top: clamp(44px, 7vw, 88px); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.sec h2 { font-size: clamp(30px, 5vw, 46px); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; }
.nomatch { padding: 28px 0; color: var(--ink-2); }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10.5; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--p-cream); background: var(--p-bg); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .7s var(--ease); }
.card::after { content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1; background: linear-gradient(180deg, transparent, var(--p-bg) 88%); opacity: .8; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover .card__art { transform: scale(1.06); }
.card__top { padding: 14px; }
.card__body { display: flex; flex-direction: column; gap: 5px; padding: 16px 62px 17px 18px; }
.card__name { font-family: var(--display); font-weight: 600; font-size: clamp(27px, 3.3vw, 33px); line-height: 1; letter-spacing: -.022em; text-wrap: balance; }
.card__meta { font-size: 13.5px; font-weight: 500; opacity: .9; }
.card__go { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--p-pop); color: var(--p-bg); display: grid; place-items: center; font-size: 18px; transition: transform .3s var(--ease); }
.card:hover .card__go { transform: translateX(3px); }

.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tgrid .tcard:first-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.tgrid--sm .tcard:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
@media (min-width: 820px) { .tgrid { grid-template-columns: repeat(5, 1fr); gap: 16px; } .tgrid .tcard:first-child { grid-column: auto; aspect-ratio: 3 / 4; } .tgrid .tcard { aspect-ratio: 3 / 4; } .tgrid--sm { grid-template-columns: repeat(4, 1fr); } .tgrid--sm .tcard, .tgrid--sm .tcard:first-child { aspect-ratio: 4 / 3; } }
.tcard { position: relative; isolation: isolate; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--indigo); box-shadow: var(--shadow-1); transition: transform .35s var(--ease); }
.tcard:hover { transform: translateY(-4px); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.tcard__body { padding: 14px 16px; display: grid; gap: 2px; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.tcard__name { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.6vw, 26px); letter-spacing: -.02em; line-height: 1.05; }
.tcard__meta { font-size: 13px; font-weight: 600; opacity: .92; }

.promo { display: grid; gap: 26px; padding: clamp(24px, 5vw, 48px); border-radius: var(--r-xl); background: var(--paper-2); overflow: hidden; }
.promo h2 { font-size: clamp(28px, 4.4vw, 42px); }
.promo p { color: var(--ink-2); margin: 14px 0 22px; max-width: 46ch; font-size: 17px; }
.promo__art { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.tastechip { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--c); color: #fff; font-family: var(--display); font-size: 19px; font-weight: 600; box-shadow: var(--shadow-1); }
.tastechip:nth-child(odd) { transform: rotate(-3deg); } .tastechip:nth-child(even) { transform: rotate(2.5deg) translateY(4px); }
@media (min-width: 820px) { .promo { grid-template-columns: 1.3fr 1fr; align-items: center; } }

.sharesec { margin-top: clamp(48px, 8vw, 96px); padding: clamp(48px, 8vw, 96px) 0; color: #F3EEE3; background: radial-gradient(120% 90% at 85% 0%, #54307A 0%, transparent 60%), var(--indigo); }
.sharesec__in { display: grid; gap: 36px; }
.sharesec h2 { font-size: clamp(34px, 6vw, 58px); }
.sharesec__text > p { font-size: 18px; opacity: .9; margin-top: 16px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .i { color: var(--gold); font-size: 18px; }
.sharesec__demo { display: grid; gap: 10px; align-content: center; max-width: 380px; width: 100%; justify-self: center; }
.bubble { max-width: 78%; padding: 11px 16px; border-radius: 22px; font-size: 16px; line-height: 1.35; }
.bubble--me { justify-self: end; background: #3B82F6; color: #fff; border-bottom-right-radius: 6px; }
.bubble--them { justify-self: start; background: rgba(255, 255, 255, .14); border-bottom-left-radius: 6px; }
.linkcard { justify-self: end; width: 86%; border-radius: 20px; overflow: hidden; background: #fff; color: #1B1A2E; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: rotate(1.2deg); }
.linkcard img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.linkcard__body { padding: 11px 14px 13px; display: grid; gap: 2px; font-size: 14.5px; }
.linkcard__body span { color: #5d5a70; font-size: 13.5px; }
@media (min-width: 860px) { .sharesec__in { grid-template-columns: 1.15fr 1fr; align-items: center; } }

.stkrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 6px 16px 12px; }
.stkrow .stk { flex: none; width: clamp(118px, 22vw, 168px); background: transparent; }
.fbcta { display: grid; gap: 20px; padding: clamp(24px, 5vw, 44px); border-radius: var(--r-xl); border: 2px dashed var(--line-2); }
.fbcta h2 { font-size: clamp(26px, 4vw, 38px); }
.fbcta p { color: var(--ink-2); margin-top: 10px; font-size: 17px; }
.fbcta__acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 820px) { .fbcta { grid-template-columns: 1fr auto; align-items: center; } }

/* For-you strip */
.fy { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 14px; scroll-snap-type: x proximity; }
.fycard { position: relative; isolation: isolate; flex: none; width: min(74vw, 270px); min-height: 168px; padding: 16px; border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-cream); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow-1); transition: transform .3s var(--ease); }
.fycard:hover { transform: translateY(-3px); }
.fycard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -1; }
.fycard__place { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--p-pop); }
.fycard__name { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.08; letter-spacing: -.015em; }
.fycard__why { font-size: 13px; opacity: .9; }

/* ───────── footer ───────── */
.foot { margin-top: clamp(56px, 9vw, 110px); }
.ridge-strip { width: 100%; height: clamp(56px, 9vw, 120px); margin-bottom: -1px; }
.ridge-strip .r3 { fill: var(--violet); opacity: .45; }
.ridge-strip .r4 { fill: var(--indigo); opacity: 1; }
.foot__body { background: var(--indigo); color: #E9E4F5; padding: 26px 0 calc(40px + env(safe-area-inset-bottom)); }
[data-page="place"] .foot__body { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot__brand { grid-column: 1 / -1; }
.foot__brand p { margin-top: 12px; opacity: .8; max-width: 36ch; }
.foot__col { display: grid; gap: 9px; align-content: start; }
.foot__col h2 { font: 700 12.5px var(--body); letter-spacing: .09em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.foot__col a { text-decoration: none; font-weight: 500; opacity: .92; }
.foot__col a:hover { text-decoration: underline; }
.foot__fine { grid-column: 1 / -1; font-size: 13px; opacity: .6; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; max-width: 80ch; }
@media (min-width: 820px) { .foot__in { grid-template-columns: 2fr 1fr 1fr; } .foot__brand { grid-column: auto; } }

/* ───────── place hero ───────── */
.phero, .thero { position: relative; isolation: isolate; overflow: hidden; color: var(--p-cream); background: var(--p-bg); padding: 88px 0 28px; }
.thero { color: #fff; background: var(--indigo); padding-bottom: 44px; }
.phero__art, .thero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, .55) 100%); }
.thero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, transparent 30%, rgba(13, 12, 41, .55) 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 600; opacity: .88; margin-bottom: clamp(44px, 10vw, 104px); }
.crumbs a { text-decoration: none; padding: 12px 6px; margin: -12px -6px; } .crumbs a:hover { text-decoration: underline; }
.phero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-pop); margin-bottom: 10px; }
.thero .phero__eyebrow { color: #FFD7A1; }
.phero__name { font-size: clamp(46px, 11.5vw, 96px); font-weight: 600; letter-spacing: -.035em; line-height: .93; }
.phero__blurb { font-size: clamp(16.5px, 2vw, 19.5px); line-height: 1.45; max-width: 54ch; margin-top: 16px; opacity: .93; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.phero__cta .btn { flex: 1 1 0; min-width: 0; max-width: 250px; height: 52px; padding: 0 12px; gap: 7px; font-size: 15px; }
.quick { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.quick a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.quick a:hover { background: rgba(255, 255, 255, .26); }

/* ───────── menu tools ───────── */
.tools { position: sticky; top: 0; z-index: 15; background: var(--paper); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); border-bottom: 1px solid var(--line); padding: 9px 0; }
.tools__row { display: flex; align-items: center; gap: 8px; }
.toolbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; display: grid; place-items: center; font-size: 17px; }
.toolbtn[aria-expanded="true"], .toolbtn.has-filter { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.secnav { position: relative; flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.secnav a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: background-color .25s, color .25s; }
.secnav a[aria-current="true"] { background: var(--p-bg); color: var(--p-cream); }
.filters { display: none; align-items: center; gap: 8px; margin: 9px -16px 0; padding: 0 16px 1px; overflow-x: auto; scrollbar-width: none; }
.tools[data-open] .filters { display: flex; }
.msearch { flex: 0 0 auto; width: 200px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.msearch input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; color: var(--ink); }
.msearch input::-webkit-search-cancel-button { filter: grayscale(1); }
.tools .fchips { margin: 0; padding: 0; overflow: visible; }
.tools .fchip { height: 40px; }
@media (min-width: 860px) {
  .toolbtn { display: none; }
  .filters { display: flex; overflow: visible; margin: 9px 0 0; padding: 0; }
  .msearch { width: 280px; }
}

/* ───────── the menu ───────── */
.menu { padding-bottom: 8px; }
.msec { padding-top: 38px; }
.msec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.msec__head h2 { font-size: clamp(29px, 4.6vw, 42px); letter-spacing: -.025em; }
.msec__count { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msec__note { flex-basis: 100%; font-family: var(--display); font-style: italic; font-size: 15.5px; color: var(--ink-2); line-height: 1.4; margin-top: 4px; }
.menunote { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.menunote .i { margin-top: 3px; }
.menunote--price .i { color: var(--ember); }
.msec__note--price { font-family: var(--body); font-style: normal; font-size: 13.5px; font-weight: 600; display: flex; align-items: flex-start; gap: 6px; }
.msec__note--price .i { margin-top: 2px; color: var(--ember); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.item { display: flex; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--line); transition: background-color .5s; }
.item__hit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 15px 0 15px; background: none; border: 0; text-align: left; border-radius: 8px; }
.item__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
.item__name { font-family: var(--display); font-weight: 600; font-size: 19.5px; line-height: 1.2; letter-spacing: -.012em; text-decoration-line: underline; text-decoration-color: transparent; -webkit-text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.item__hit:hover .item__name { text-decoration-color: currentColor; -webkit-text-decoration-color: currentColor; }
.item__code { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.fav { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); }
.item__desc { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.item__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-top: 3px; }
.diet { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--leaf); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.mark { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.mark--spicy { color: var(--ember); } .mark--leaf { color: var(--leaf); }
.mark--you { color: var(--violet); }
@media (prefers-color-scheme: dark) { .mark--you { color: var(--lilac); } }
.item__side { display: flex; align-items: center; gap: 2px; padding-top: 8px; }
.item__price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }
.item__price:empty { display: none; }
.item__love { width: 42px; height: 42px; margin-right: -9px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--ink-3); font-size: 20px; transition: transform .2s var(--ease), color .2s; }
.item__love:hover { color: var(--ember); }
.item__love[aria-pressed="true"] { color: var(--ember); }
.item__love[aria-pressed="true"] .i { fill: currentColor; animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.item.is-spot { background: rgba(242, 184, 75, .3); box-shadow: -10px 0 0 rgba(242, 184, 75, .3), 10px 0 0 rgba(242, 184, 75, .3); }
.tagnote { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 26px; max-width: 76ch; }
.tagnote .i { margin-top: 2px; }

.pending { margin: 34px 0 6px; padding: clamp(26px, 5vw, 48px); border-radius: var(--r-xl); border: 2px dashed var(--line-2); text-align: center; display: grid; justify-items: center; gap: 14px; }
.pending h2 { font-size: clamp(26px, 4.4vw, 38px); }
.pending p { color: var(--ink-2); max-width: 52ch; font-size: 16.5px; }
.pending__badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pending__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* ───────── place info ───────── */
.pinfo { padding: 60px 0 0; }
.pinfo__title { font-size: clamp(29px, 4.6vw, 42px); margin-bottom: 18px; }
.igrid { display: grid; gap: 14px; }
@media (min-width: 860px) { .igrid { grid-template-columns: 1.15fr 1fr 1fr; } }
.icard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 22px; }
.icard h3 { display: flex; align-items: center; gap: 8px; font: 700 12.5px var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.icard a { font-weight: 600; }
.icard--google { background: var(--indigo); color: #F3EEE3; border-color: transparent; }
.icard--google h3 { color: #FFD7A1; }
.icard--google p { opacity: .92; }
.icard__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.icard--google .btn--ink { background: #fff; color: #1B1A2E; }
.icard--google .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.hours div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.hours dt { font-weight: 600; }
.links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 9px; }
.links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.prov { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); margin-top: 20px; max-width: 86ch; }

/* ───────── sticky action bar ───────── */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left, 0px)); background: var(--paper); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--line); transform: translateY(115%); transition: transform .4s var(--ease); }
.actionbar.is-on { transform: none; }
.actionbar .btn { flex: 1; height: 48px; padding: 0 12px; }
.actionbar .btn--light { background: var(--ink); color: var(--paper); }
@media (min-width: 860px) { .actionbar { left: auto; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; padding: 8px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-2); } .actionbar .btn { flex: none; padding: 0 20px; } }
/* See-through bars and the tinted hero overlay, only where color-mix() works. Written as a plain second
   declaration they wiped out the solid fallback in browsers without it: a value that contains var() is
   kept at parse time and only fails later, taking the fallback with it. The test itself must not use var(). */
@supports (color: color-mix(in srgb, red, blue)) {
  .phero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, transparent 26%), linear-gradient(180deg, color-mix(in srgb, var(--p-bg) 30%, transparent) 0%, color-mix(in srgb, var(--p-bg) 94%, transparent) 78%, var(--p-bg) 100%); }
  .tools { background: color-mix(in srgb, var(--paper) 86%, transparent); }
  .actionbar { background: color-mix(in srgb, var(--paper) 84%, transparent); }
}

/* ───────── shared-with-you card ───────── */
/* Arriving from a shared link: shrink the hero so the note is the first thing on screen. */
.place.is-shared .phero { padding: 78px 0 62px; }
.place.is-shared .crumbs { margin-bottom: 12px; }
.place.is-shared .phero__eyebrow { margin-bottom: 6px; }
.place.is-shared .phero__name { font-size: clamp(32px, 8.4vw, 60px); }
.place.is-shared .phero__blurb, .place.is-shared .phero__cta, .place.is-shared .quick { display: none; }
.place.is-shared #shared-slot { margin-top: -44px; }
.place.is-shared .shared { margin-top: 0; }
.shared__item .tag { background: rgba(255, 255, 255, .16); color: inherit; }
.shared__item .tag--fav { color: var(--p-pop); }
.shared { position: relative; z-index: 3; margin-top: 18px; padding: 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.shared__from { display: flex; align-items: center; gap: 11px; font-weight: 700; padding-right: 96px; min-height: 42px; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; background: var(--c, var(--violet)); }
.avatar--lg { width: 68px; height: 68px; font-size: 30px; }
.shared__from small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.shared__note { position: relative; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(23px, 5.4vw, 32px); line-height: 1.22; margin-top: 14px; padding-left: 18px; border-left: 3px solid var(--p-pop); overflow-wrap: anywhere; }
.shared__item { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-cream); position: relative; overflow: hidden; isolation: isolate; }
.shared__item img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; z-index: -1; }
.shared__item .kick { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-pop); }
.shared__item h2 { font-size: clamp(28px, 6.4vw, 40px); margin-top: 6px; letter-spacing: -.025em; }
.shared__item p { margin-top: 8px; opacity: .93; font-size: 16px; }
.shared__stk { position: absolute; right: 12px; top: -30px; width: 104px; height: 104px; transform: rotate(9deg); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .22)); animation: slap .5s .25s var(--ease) both; pointer-events: none; }
@keyframes slap { from { opacity: 0; transform: rotate(-20deg) scale(1.7); } }
.shared__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.shared__acts .btn { flex: 1 1 140px; }
.shared__save { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

/* ───────── sheets, scrim, toast ───────── */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(13, 12, 34, .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s; }
.scrim.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 101; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -12px 50px rgba(0, 0, 0, .28); transform: translateY(102%); transition: transform .4s var(--ease); overflow: hidden; }
.sheet.is-on { transform: none; }
.sheet:focus, .sheet:focus-visible, .search:focus-visible { outline: none; }
.sheet__grab { flex: none; width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 10px auto 0; }
.sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 6px 20px; }
.sheet__title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(26px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: min(540px, calc(100% - 48px)); max-height: min(88vh, 820px); max-height: min(88dvh, 820px); border-radius: 28px; opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: transform .32s var(--ease), opacity .25s; }
  .sheet.is-on { opacity: 1; transform: translate(-50%, -50%); }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 16px; }
}
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 200; transform: translate(-50%, 24px); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* item sheet */
.isheet__kick { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.isheet__name { font-size: clamp(31px, 7.4vw, 40px); letter-spacing: -.028em; margin-top: 6px; overflow-wrap: anywhere; }
.isheet__desc { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 600; }
.tag--diet { background: var(--leaf); color: #fff; }
/* The dark theme lightens ember and leaf so they read as text on dark paper. Where they are a fill, white
   text on them drops to about 2.6:1, so the text turns dark instead. (Placed after the rules it overrides.) */
@media (prefers-color-scheme: dark) { .btn--ember, .diet, .tag--diet { color: #1B1A2E; } }
.tag--fav { background: rgba(217, 79, 42, .15); color: var(--ember); }
.sizes { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sizes div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sizes div:last-child { border: 0; }
.sizes b { font-variant-numeric: tabular-nums; }
.pricelock { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 14px; padding: 11px 14px; border: 0; border-radius: var(--r); background: var(--paper-2); font-size: 14px; color: var(--ink-2); text-align: left; text-decoration: none; }
.pricelock b { color: var(--ink); }
.pricenow { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.pricenow b { font-size: 22px; color: var(--ink); font-family: var(--display); margin-right: 6px; }
.isheet__cta { margin-top: 20px; display: grid; gap: 10px; }
.react { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.react button, .sharebtns > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 4px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: transparent; font-size: 12.5px; font-weight: 700; text-decoration: none; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
.react .i, .sharebtns .i { font-size: 21px; }
.react button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.react button[aria-pressed="true"] .i { fill: currentColor; }
.take { margin-top: 12px; }
.sublink { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-weight: 600; font-size: 14.5px; }

/* share sheet */
.sharecard { position: relative; isolation: isolate; overflow: hidden; padding: 18px; border-radius: var(--r-lg); background: var(--p-bg); color: var(--p-cream); min-height: 132px; }
.sharecard img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; z-index: -1; }
.sharecard__from { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-pop); padding-right: 88px; }
.sharecard__note { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.22; margin-top: 6px; padding-right: 88px; overflow-wrap: anywhere; }
.sharecard__note:empty, .sharecard__from:empty { display: none; }
.sharecard__what { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .24); display: grid; gap: 2px; }
.sharecard__what strong { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.sharecard__what span { font-size: 13.5px; opacity: .9; }
.sharecard__stk { position: absolute; right: 8px; top: 8px; width: 84px; height: 84px; transform: rotate(8deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.field em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field textarea, .field select { width: 100%; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(127, 127, 140, .28); }
.field--err input, .field--err textarea, .field--err input:focus, .field--err textarea:focus { border-color: var(--ember); }
.field__err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ember); }
.pbox .field__err { color: var(--peach); }
.stkpick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 4px 20px 6px; }
.stkpick button { flex: none; width: 66px; height: 66px; padding: 5px; border-radius: 18px; border: 2px solid transparent; background: var(--paper-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.stkpick button[aria-pressed="true"] { border-color: var(--ink); background: var(--card); }
.stkpick img { width: 100%; height: 100%; object-fit: contain; }
.linkbox { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--paper-2); font-size: 13px; color: var(--ink-2); }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.sharebtns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.qr { display: grid; justify-items: center; gap: 10px; margin-top: 14px; padding: 16px; border-radius: var(--r-lg); background: #fff; color: #1B1A2E; }
.qr svg, .qr img { width: min(220px, 60vw); height: auto; }
.qr p { font-size: 13px; font-weight: 600; }

/* search overlay */
.search { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--paper); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease); }
.search.is-on { opacity: 1; transform: none; }
.search__bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); font-size: 20px; }
.search__bar input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 18px; }
.search__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 40px; }
.search__body h3 { font: 700 12.5px var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 4px; }
.sres { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.sres img { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--p-bg); }
.sres strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.sres span { display: block; font-size: 13.5px; color: var(--ink-2); }
.sres:hover strong { text-decoration: underline; }
.search__hint { padding: 22px 2px; color: var(--ink-2); }
.search__hint .fchips { margin: 12px 0 0; padding: 0; flex-wrap: wrap; }
@media (min-width: 760px) { .search { inset: 9vh auto auto 50%; width: min(680px, 92vw); max-height: 78vh; border-radius: 26px; box-shadow: var(--shadow-2); transform: translate(-50%, 10px); overflow: hidden; } .search.is-on { transform: translate(-50%, 0); } }

/* ───────── utility pages ───────── */
.uhero { padding: clamp(26px, 5vw, 56px) 0 6px; }
.uhero h1 { font-size: clamp(40px, 8.4vw, 72px); letter-spacing: -.035em; }
.uhero h1 em { font-style: italic; font-weight: 400; color: var(--ember); }
.uhero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin-top: 14px; max-width: 56ch; }
.prose { font-size: 17.5px; line-height: 1.65; }
.prose p { margin-top: 16px; }
.prose h2 { font-size: 27px; margin-top: 38px; }
.itemshell { min-height: 78vh; padding: 118px max(16px + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), calc((100% - var(--wrap)) / 2)) 48px; background: var(--p-bg); color: #fff; }
.itemshell .kicker { color: var(--p-pop); }
.itemshell h1 { font-size: clamp(40px, 9vw, 72px); margin-bottom: 14px; }
.itemshell p { margin-bottom: 18px; max-width: 52ch; opacity: .92; }
.itemshell .btn--ink { background: #fff; color: #1B1A2E; }
/* "See the full <place> menu" can be wider than a phone with a long place name: let this one button wrap. */
.itemshell .btn { max-width: 100%; height: auto; min-height: 50px; padding: 12px 22px; white-space: normal; text-align: center; line-height: 1.25; }

/* stickers */
.pack { margin-top: 38px; }
.pack__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.pack h2 { font-size: clamp(27px, 4vw, 36px); }
.pack__head p { color: var(--ink-2); margin-top: 6px; max-width: 52ch; }
.stkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 620px) { .stkgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 980px) { .stkgrid { grid-template-columns: repeat(6, 1fr); } }
.stk { position: relative; aspect-ratio: 1; padding: 8px; border: 0; border-radius: 24px; background: var(--paper-2); display: grid; place-items: center; transition: transform .3s var(--ease); }
.stk:hover { transform: rotate(-4deg) scale(1.06); }
.stk img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(27, 26, 46, .2)); }
.stk.is-loading { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.pack--locked .stk img { filter: blur(7px) grayscale(.3); opacity: .6; }
.pack--locked .stk::after { content: ""; position: absolute; inset: 0; }
.stkbig { display: grid; place-items: center; padding: 6px 0 14px; }
.stkbig img { width: min(280px, 70vw); filter: drop-shadow(0 12px 18px rgba(27, 26, 46, .25)); }

/* profile */
.mehead { display: flex; align-items: center; gap: 16px; padding: 30px 0 6px; }
.mehead h1 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.03em; }
.mehead p { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tabs button { flex: none; height: 46px; padding: 0 14px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.panel { padding-top: 22px; }
.panel h2 { font-size: 26px; margin: 26px 0 10px; }
.panel h2:first-child { margin-top: 0; }
.tastecard { position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px, 5vw, 34px); border-radius: var(--r-xl); color: #fff; background: linear-gradient(160deg, #1F1852 0%, #54307A 55%, #B9577E 100%); box-shadow: var(--shadow-2); }
.tastecard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 235, 203, .5), transparent 65%); z-index: -1; }
.tastecard__label { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #FFD7A1; }
.tastecard h2 { font-size: clamp(34px, 8vw, 54px); letter-spacing: -.03em; margin: 8px 0 0; }
.tastecard__sub { opacity: .9; margin-top: 10px; max-width: 44ch; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.trait { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 14.5px; }
.trait:first-child { background: var(--gold); color: #1B1A2E; }
.trait:nth-child(2) { background: #fff; color: #1B1A2E; }
.tastecard__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tastecard .btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.quiz { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-xl); background: var(--paper-2); }
.progress { height: 6px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.progress b { display: block; height: 100%; border-radius: inherit; background: var(--ember); transition: width .35s var(--ease); }
.quiz h2 { font-size: clamp(27px, 5vw, 38px); margin: 18px 0 6px; }
.quiz__sub { color: var(--ink-2); margin-bottom: 16px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 46px; padding: 0 17px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.opt:active { transform: scale(.95); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quiz__nav { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 10px; margin-top: 24px; }
.rowlist { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row img { flex: none; width: 48px; height: 48px; border-radius: 13px; object-fit: cover; background: var(--indigo); }
.row > div { flex: 1; min-width: 0; }
.row strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row span { display: block; font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__tag { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.empty { padding: 28px 20px; border-radius: var(--r-lg); border: 2px dashed var(--line-2); text-align: center; color: var(--ink-2); }
.empty a { font-weight: 700; }
.joincard { margin-top: 26px; padding: clamp(22px, 5vw, 40px); border-radius: var(--r-xl); background: var(--paper-2); display: grid; gap: 22px; }
.joincard h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -.03em; }
.joincard > div > p { color: var(--ink-2); margin-top: 12px; font-size: 17px; max-width: 48ch; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; background: var(--c); box-shadow: inset 0 0 0 2px var(--paper-2); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.perk { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.perk > .i { font-size: 24px; margin-top: 2px; color: var(--ember); }
.perk h3 { font-family: var(--body); font-size: 17px; font-weight: 700; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.perk p { color: var(--ink-2); margin-top: 3px; }
.soon { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: var(--paper-3); border-radius: 999px; padding: 2px 8px; }
.pbox { margin-top: 26px; padding: clamp(20px, 4vw, 30px); border-radius: var(--r-xl); background: var(--indigo); color: #F3EEE3; }
.pbox h2 { font-size: 27px; }
.pbox p { opacity: .9; margin-top: 8px; }
.pbox .field > span { color: #E9E4F5; }
.pbox .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.pbox__row { display: flex; gap: 8px; margin-top: 8px; }
.pbox__row input { flex: 1; min-width: 0; }
.danger { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }

/* forms */
.form { margin-top: 18px; }
.form__set { border: 0; padding: 0; margin: 0; }
.form__set legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2.5px solid var(--ember); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 22px; }
.done { margin-top: 26px; padding: clamp(24px, 5vw, 40px); border-radius: var(--r-xl); background: var(--paper-2); text-align: center; display: grid; justify-items: center; gap: 12px; }
.done h2 { font-size: 32px; }
.done p { color: var(--ink-2); max-width: 46ch; }
.done pre { text-align: left; white-space: pre-wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font: 14px/1.5 var(--body); width: 100%; max-height: 220px; overflow: auto; }

/* The narrowest phones (320px): rows of fixed-width pieces that would otherwise run off the right edge. */
@media (max-width: 359px) {
  .mebtn { padding: 0 12px; }
  .mebtn > span:not(.mebtn__av) { display: none; }
  .mebtn__av { margin: 0 -6px; }
  .actionbar .btn { padding: 0 8px; gap: 6px; font-size: 14px; }
}
@media (max-width: 389px) { .tcard__name { font-size: 17px; } }
@media (min-width: 820px) and (max-width: 1099px) { .tcard__name { font-size: 18px; } }
@media (max-width: 519px) {
  a.row { flex-wrap: wrap; row-gap: 2px; }
  a.row .row__tag { flex: 0 0 100%; padding-left: 60px; }
}

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