/* Wallsend Seafood & Takeaway — "The Lunch Order"
   Sky-drenched tuckshop world: kraft bags, marker ink, cut-out food on colour fields. */

:root {
  --sky: #3fb8f0;
  --sky-deep: #0e86d4;
  --sky-pale: #c8ecfc;
  --sun: #ffce2e;
  --sun-deep: #f2a900;
  --sauce: #d8321f;
  --sauce-deep: #b8261c;
  --ink: #0b2545;
  --ink-soft: #1d3d66;
  --kraft: #cfa26b;
  --kraft-light: #e2c190;
  --kraft-dark: #9d7240;
  --white: #ffffff;
  --foam: #f2fbff;

  --f-display: "Caprasimo", "Cooper Black", serif;
  --f-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --f-body: "Rethink Sans", system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-lift: 0 18px 30px -12px rgb(11 37 69 / .35), 0 4px 10px -4px rgb(11 37 69 / .25);
  --paper-grain: url("assets/paper-grain.png");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.reviews :focus-visible, .foot :focus-visible { outline-color: var(--sun); }
html { scrollbar-color: var(--ink) var(--sky-pale); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sky-pale); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; border: 3px solid var(--sky-pale); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* Full-measure bands: JS sets font-size so each line fills its container */
.fit { display: block; max-width: 100%; white-space: nowrap; line-height: .92; font-size: 12vw; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; min-width: 0; }
.dollar-copy, .visit-copy, .rv-score, .board-side, .board-sticky { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1.0625rem/1 var(--f-body); letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 6px 0 -1px rgb(11 37 69 / .9), 0 12px 18px -8px rgb(11 37 69 / .45);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 -1px rgb(11 37 69 / .9), 0 4px 8px -6px rgb(11 37 69 / .4); }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--white); }
.btn-sauce { --bg: var(--sauce); --fg: var(--white); }
.btn-ghost { --bg: var(--white); --fg: var(--ink); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.btn-line:active { box-shadow: inset 0 0 0 3px var(--ink); }
.btn-wide { width: 100%; justify-content: space-between; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--pad);
  background: rgb(63 184 240 / .0);
  transition: background-color .3s, box-shadow .3s;
}
.nav.scrolled { background: var(--sky); box-shadow: 0 10px 24px -18px rgb(11 37 69 / .6); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 54px; height: auto; transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) translateY(-2px); }
.brand-word { display: grid; line-height: .95; }
.brand-word b { font: 400 1.6rem/1 var(--f-display); letter-spacing: -.01em; }
.brand-word small { font: 800 .7rem/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 99px; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.nav-links a:hover { background: rgb(255 255 255 / .45); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.open-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px; background: var(--white);
  font: 700 .875rem/1 var(--f-body); white-space: nowrap;
}
.open-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa9b8; }
.open-pill.is-open::before { background: #1db954; box-shadow: 0 0 0 0 rgb(29 185 84 / .6); animation: ping 2s infinite; }
.open-pill.is-closed::before { background: var(--sauce); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(29 185 84 / 0); } 100% { box-shadow: 0 0 0 0 rgb(29 185 84 / 0); } }

.bag-btn {
  position: relative; width: 56px; height: 56px; border: 0; border-radius: 18px;
  background: var(--ink); display: grid; place-items: center;
  transition: transform .3s var(--ease-spring);
}
.bag-btn:hover { transform: rotate(-6deg) scale(1.05); }
.bag-btn svg { width: 30px; height: 33px; }
.bag-btn .bag-body { fill: var(--kraft); }
.bag-btn .bag-crimp { fill: none; stroke: var(--kraft-dark); stroke-width: 2.5; stroke-linejoin: round; }
.bag-count {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 99px; background: var(--sauce); color: var(--white);
  font: 800 .8125rem/24px var(--f-body); text-align: center;
  transform: scale(0); transition: transform .35s var(--ease-spring);
}
.bag-count.has { transform: scale(1); }
.bag-btn.bump { animation: bump .4s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.25, .8); } 60% { transform: scale(.9, 1.12) rotate(-6deg); } 100% { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  margin-top: -76px; padding: 110px var(--pad) 170px;
  overflow: hidden;
  background: var(--sky);
}
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; will-change: translate; fill: var(--white); filter: drop-shadow(0 18px 24px rgb(14 134 212 / .25)); }
.cloud.c1 { width: min(34vw, 480px); left: 26vw; bottom: -3%; animation: drift 38s linear infinite alternate; }
.cloud.c2 { width: min(30vw, 380px); right: -4vw; top: 12%; animation: drift 30s linear infinite alternate-reverse; opacity: .95; }
.cloud.c3 { width: min(24vw, 300px); left: 42%; bottom: 20%; animation: drift 44s linear infinite alternate; opacity: .9; }
@keyframes drift { to { translate: 6vw 0; } }

.hero-type { position: relative; z-index: 2; max-width: 1440px; margin: 0 auto; }
.hero-where {
  display: inline-block; margin: 0 0 18px; padding: 8px 16px; border-radius: 99px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: .95rem;
  rotate: -2deg;
}
#hero-title { font-family: var(--f-display); color: var(--white); max-width: 1180px; }
#hero-title .fit {
  -webkit-text-stroke: .035em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .06em 0 var(--ink), 0 .12em .16em rgb(11 37 69 / .35);
  letter-spacing: -.02em;
}
#hero-title .band-b { color: var(--sun); margin-top: .02em; }
.hero-sub { max-width: 36ch; margin: 22px 0 24px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fl {
  position: absolute; width: var(--w); height: auto; will-change: transform, translate;
  filter: drop-shadow(0 26px 22px rgb(11 37 69 / .35));
  animation: bob var(--dur, 6s) ease-in-out infinite alternate;
  translate: var(--px, 0) var(--py, 0);
  transition: translate .6s var(--ease-out);
}
.fl-burger { --w: clamp(180px, 23vw, 350px); right: 26%; top: 50%; --dur: 5.5s; rotate: 8deg; }
.fl-hake { --w: clamp(150px, 19vw, 300px); left: 39%; bottom: 11%; --dur: 7s; rotate: -14deg; }
.fl-chips { --w: clamp(120px, 13vw, 210px); right: calc(7% + 4px); bottom: calc(112px + clamp(120px, 11vw, 176px)); --dur: 6.2s; rotate: 6deg; z-index: -1; }
.fl-pluto { --w: clamp(100px, 11vw, 170px); right: 17%; bottom: 7%; --dur: 5s; rotate: 18deg; }
.fl-calamari { --w: clamp(80px, 9vw, 150px); right: 36%; top: 30%; --dur: 8s; rotate: 20deg; }
@keyframes bob { from { transform: translateY(-10px) rotate(-2deg); } to { transform: translateY(12px) rotate(3deg); } }
.fl.missing { display: none; }

.sticker {
  position: absolute; z-index: 6; left: calc(var(--pad) + 320px); bottom: 104px; rotate: -8deg;
  width: clamp(104px, 9vw, 150px); aspect-ratio: 1; display: grid; place-items: center;
  text-decoration: none; transition: scale .3s var(--ease-spring);
}
.sticker:hover { scale: 1.08; }
.sticker svg { position: absolute; inset: 0; animation: spin 18s linear infinite; will-change: transform; }
.sticker-bg { fill: var(--sauce); }
.sticker-ring { font: 800 15.5px var(--f-body); letter-spacing: 1.6px; fill: var(--white); }
.sticker-num { position: relative; font: 400 clamp(2rem, 3.2vw, 3rem)/1 var(--f-display); color: var(--sun); }
.sticker-num svg { position: static; width: .5em; height: .5em; vertical-align: .55em; margin-left: 3px; fill: var(--sun); animation: none; }
@keyframes spin { to { rotate: 360deg; } }

.hero-bag {
  position: absolute; z-index: 4; right: 7%; bottom: 112px;
  width: clamp(150px, 13vw, 200px); aspect-ratio: .85; padding: 0; border: 0; background: none;
  display: grid; place-items: center; transition: rotate .4s var(--ease-spring), translate .4s var(--ease-spring);
  rotate: -4deg;
}
.hero-bag:hover { rotate: 3deg; translate: 0 -6px; }
.hb-bag {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .14), transparent 12% 88%, rgb(0 0 0 / .14)), var(--paper-grain), var(--kraft);
  border-radius: 4px 4px 12px 12px;
  --crimp: 18px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--crimp) calc(var(--crimp) / 2) repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--crimp) / 2 + 1px) no-repeat;
  filter: drop-shadow(0 20px 18px rgb(11 37 69 / .35));
}
.hb-label { position: relative; font: 400 clamp(1.3rem, 1.7vw, 1.7rem)/1.05 var(--f-marker); color: var(--ink); rotate: -5deg; text-align: center; margin-top: 18%; }

.wave { will-change: translate; position: absolute; left: 0; bottom: -1px; width: 200%; height: 120px; z-index: 6; animation: roll 14s linear infinite; }
.wave-back { fill: var(--sky-deep); opacity: .7; }
.wave-front { fill: var(--sauce); }
@keyframes roll { to { translate: -50% 0; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--sauce); color: var(--white); overflow: hidden; padding: 6px 0 22px; margin-top: -1px; }
.ticker-track { will-change: transform; display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font: 400 clamp(1.25rem, 2.4vw, 2rem)/1 var(--f-display); padding: 0 .9em; white-space: nowrap; display: inline-flex; align-items: center; gap: .9em; }
.ticker span::after { content: ""; width: .55em; height: .55em; background: var(--sun); border-radius: 50%; margin-left: .9em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Chips by the dollar ---------- */
.dollar {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: clamp(56px, 6vw, 96px) var(--pad);
  background: var(--sun);
}
.dollar h2 { font-family: var(--f-display); color: var(--ink); }
.dollar h2 .fit + .fit { color: var(--sauce); }
.dollar-copy p { max-width: 40ch; font-size: 1.25rem; margin: 26px 0 0; }
.dollar-machine { display: grid; justify-items: center; gap: 22px; }
.scoop-wrap { display: grid; justify-items: center; gap: 14px; }
.scoop { --fill: .1; position: relative; width: clamp(300px, 40vw, 560px); aspect-ratio: 1.1; display: grid; place-items: end center; }
.scoop img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 20px rgb(11 37 69 / .3));
  scale: calc(.58 + var(--fill) * .42);
  transition: scale .6s var(--ease-spring);
  transform-origin: bottom center;
}
.scoop.thud img { animation: thud .5s var(--ease-spring); }
@keyframes thud { 0% { transform: scale(1); } 35% { transform: scale(1.08, .9); } 70% { transform: scale(.97, 1.04) rotate(-2deg); } 100% { transform: none; } }
.scoop-amount { margin: 0; text-align: center; }
.scoop-amount span { display: block; font: 400 clamp(4rem, 9vw, 8rem)/1 var(--f-display); letter-spacing: -.02em; }
.scoop-amount small { font-weight: 700; font-size: 1rem; }
.coins { display: flex; align-items: center; gap: 18px; padding: 14px 22px; border-radius: 999px; background: rgb(11 37 69 / .08); box-shadow: inset 0 3px 8px rgb(11 37 69 / .18); }
.coin {
  width: 96px; height: 96px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  font: 400 1.35rem/1 var(--f-display);
  background: radial-gradient(circle at 35% 30%, #fff1b0, #f4c542 45%, #c9901a 100%);
  box-shadow: inset 0 0 0 5px rgb(157 104 20 / .35), inset 0 0 0 9px rgb(255 240 180 / .4), 0 8px 0 -2px #9d6814, 0 14px 18px -8px rgb(11 37 69 / .5);
  transition: transform .25s var(--ease-spring);
}
.coin-1 { width: 104px; height: 104px; font-size: 1.6rem; }
.coin-2 { width: 88px; height: 88px; font-size: 1.4rem; }
.coin:hover { transform: translateY(-4px) rotate(-12deg); }
.coin:active { transform: translateY(6px) scale(.94); }
.coin-minus { width: 60px; height: 60px; background: var(--white); box-shadow: inset 0 0 0 3px var(--ink); }
.coin-minus svg, .line-qty svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.line-qty svg { width: 14px; height: 14px; }
.line-qty button { display: grid; place-items: center; }
.coin[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.dollar-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.coin-fly { position: fixed; z-index: 90; width: 44px; height: 44px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #f4c542 45%, #c9901a 100%); box-shadow: inset 0 0 0 4px rgb(157 104 20 / .35); }

/* ---------- Packs (paper bags) ---------- */
.packs { padding: clamp(64px, 9vw, 130px) var(--pad); background: var(--sky); position: relative; }
.packs-title { font-family: var(--f-display); color: var(--white); }
.packs-title .fit { -webkit-text-stroke: .03em var(--ink); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--ink); }
.packs-sub { font-size: 1.25rem; font-weight: 600; margin: 18px 0 clamp(40px, 6vw, 80px); max-width: 40ch; }
.pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); align-items: end; }
.pack { position: relative; padding-top: clamp(120px, 12vw, 190px); }
.pack:nth-child(2) { translate: 0 -34px; }
.pack-img {
  will-change: translate; position: absolute; z-index: 1; left: 50%; top: 0; width: 86%; translate: -50% 0;
  filter: drop-shadow(0 20px 18px rgb(11 37 69 / .35));
  transition: translate .6s var(--ease-spring), rotate .6s var(--ease-spring);
}
.pack:hover .pack-img { translate: -50% -22px; rotate: -4deg; }
.paperbag {
  position: relative; z-index: 2;
  padding: 58px clamp(18px, 2vw, 30px) 26px;
  background: linear-gradient(180deg, rgb(0 0 0 / .08), transparent 22%), var(--paper-grain), var(--kraft);
  border-radius: 6px 6px 16px 16px;
  box-shadow: var(--shadow-lift), inset 12px 0 18px -14px rgb(0 0 0 / .35), inset -12px 0 18px -14px rgb(0 0 0 / .35);
  --crimp: 22px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--crimp) calc(var(--crimp) / 2) repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--crimp) / 2 + 1px) no-repeat;
}
.paperbag::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 2px; background: rgb(0 0 0 / .12); }
.pb-name { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--f-display); margin: 0 0 12px; }
.pb-list { list-style: none; margin: 0 0 18px; padding: 0; font: 400 1.05rem/1.35 var(--f-marker); color: var(--ink); }
.pb-list li { padding: 2px 0; }
.pb-list li { display: flex; gap: 8px; align-items: baseline; }
.pb-list li::before { content: ""; flex: none; width: 14px; height: 12px; background: var(--sauce-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 6.5l3.6 3.6L12.5 1.8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-sticker {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--sun); rotate: -10deg; box-shadow: 0 6px 12px -6px rgb(11 37 69 / .5);
  font: 400 1.35rem/1 var(--f-display);
}
.pack .opts { margin-bottom: 14px; }

/* ---------- Menu ---------- */
.menu { overflow-anchor: none; background: var(--foam); padding: clamp(64px, 8vw, 120px) 0 0; }
.menu-head { padding: 0 var(--pad); display: grid; gap: 24px; }
.menu-head h2 { font-family: var(--f-display); color: var(--ink); }
.search {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 0 20px; min-height: 60px; border-radius: 99px;
  background: var(--white); box-shadow: inset 0 0 0 3px var(--ink);
}
.search svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 1.125rem var(--f-body); color: var(--ink); caret-color: var(--sauce); }
.search input::placeholder { color: #51688a; }
.search:focus-within { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 5px var(--sun); }

.rail {
  position: sticky; top: 70px; z-index: 30;
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  margin-top: 28px; padding: 14px var(--pad);
  background: var(--foam);
  box-shadow: 0 12px 16px -16px rgb(11 37 69 / .5);
}
.rail::-webkit-scrollbar { display: none; }
.rail a {
  flex: none; padding: 10px 16px; border-radius: 12px;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--ink);
  font: 700 .95rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, rotate .3s var(--ease-spring);
}
.rail a:hover { rotate: -3deg; }
.rail a[aria-current="true"] { background: var(--ink); color: var(--white); }

.board {
  --bg: var(--sky); --fg: var(--ink); --accent: var(--sun);
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(56px, 7vw, 110px) var(--pad);
  background: var(--bg); color: var(--fg);
}
.board[data-colour="yellow"] { --bg: var(--sun); --accent: var(--sauce); }
.board[data-colour="red"] { --bg: var(--sauce); --fg: var(--white); --accent: var(--sun); }
.board[data-colour="sky"] { --bg: var(--sky); --accent: var(--white); }
.board[data-colour="white"] { --bg: var(--white); --accent: var(--sky-deep); }
.board-side { position: relative; }
.board-sticky { position: sticky; top: 150px; }
.board h3 { font-family: var(--f-display); }
.board h3 .fit { line-height: .95; }
.board-real { margin: 14px 0 0; font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.board-blurb { max-width: 36ch; margin: 18px 0 0; font-size: 1.125rem; font-weight: 500; }
.board-img {
  width: min(100%, 460px); margin-top: 28px;
  filter: drop-shadow(0 26px 22px rgb(11 37 69 / .35));
  rotate: -6deg; transition: rotate .8s var(--ease-spring), scale .8s var(--ease-spring);
}
.board:hover .board-img { rotate: 3deg; scale: 1.04; }
.board-img.missing { display: none; }

.items { list-style: none; margin: 0; padding: 0; align-self: start; }
.item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 16px;
  padding: 16px 0; border-bottom: 2px dashed color-mix(in srgb, var(--fg) 35%, transparent);
}
.item:first-child { border-top: 2px dashed color-mix(in srgb, var(--fg) 35%, transparent); }
.item-name { margin: 0; font: 800 1.1875rem/1.2 var(--f-body); letter-spacing: -.01em; }
.item-name .tag {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 6px; vertical-align: 2px;
  font: 400 .8rem/1 var(--f-marker); background: var(--fg); color: var(--bg); rotate: -3deg;
}
.item-name .pop { background: var(--accent); color: var(--ink); }
.board[data-colour="red"] .item-name .pop { color: var(--ink); }
.board[data-colour="white"] .item-name .pop { color: var(--white); }
.item-desc { grid-column: 1 / -1; margin: 0; max-width: 62ch; font-size: .98rem; line-height: 1.45; opacity: .9; }
.item-quip { grid-column: 1 / -1; margin: -2px 0 0; font: 400 1.02rem/1.3 var(--f-marker); color: var(--fg); }
.board[data-colour="white"] .item-quip { color: var(--sauce-deep); }
.board[data-colour="yellow"] .item-quip { color: var(--ink); }
.board[data-colour="sky"] .item-quip { color: var(--ink); }
.item-price { font: 400 1.35rem/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-price small { font: 700 .75rem/1 var(--f-body); display: block; text-align: right; opacity: .8; margin-bottom: 3px; }
.add {
  width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none;
  background: var(--ink); color: var(--white); display: grid; place-items: center;
  transition: transform .3s var(--ease-spring), background-color .2s;
}
.board[data-colour="red"] .add { background: var(--white); color: var(--ink); }
.add svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.add:hover { transform: rotate(90deg) scale(1.08); }
.add:active { transform: scale(.88); }
.add.added { background: #1db954; color: var(--white); }
.item.is-off .item-name, .item.is-off .item-desc { opacity: .55; }
.stamp {
  justify-self: end; grid-column: 2 / 4;
  padding: 6px 10px; border: 3px solid currentColor; border-radius: 8px; rotate: -8deg;
  font: 400 1rem/1 var(--f-marker); letter-spacing: .04em; text-transform: uppercase; opacity: .85;
}
.opts { display: inline-flex; grid-column: 1 / -1; gap: 0; padding: 3px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 12%, transparent); width: max-content; }
.opts button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font: 700 .875rem/1 var(--f-body); color: inherit; }
.opts button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.board[data-colour="red"] .opts button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.item[hidden], .board[hidden] { display: none; }
.board.flip { animation: flip .38s var(--ease-out); }
.board.flip .board-img { animation: pop .5s var(--ease-spring); }
@keyframes flip { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { scale: .6; rotate: -30deg; opacity: 0; } }
.next-board {
  grid-column: 2; justify-self: end; margin-top: 26px;
  border: 0; background: none; padding: 10px 0; color: inherit;
  font: 700 1.05rem var(--f-body); text-decoration: underline; text-underline-offset: .25em;
}
.next-board b { font: 400 1.25rem var(--f-display); }
.next-board span { display: inline-block; transition: translate .3s var(--ease-spring); }
.next-board:hover span { translate: 6px 0; }
.empty-search { padding: 60px var(--pad); font: 400 1.5rem/1.3 var(--f-marker); margin: 0; background: var(--foam); }

/* ---------- Reviews ---------- */
.reviews {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  padding: clamp(72px, 10vw, 150px) var(--pad);
  background: var(--ink); color: var(--white);
  overflow: hidden;
}
.rv-big { margin: 0; font: 400 clamp(8rem, 18vw, 16rem)/.8 var(--f-display); color: var(--sun); letter-spacing: -.04em; }
.rv-stars svg { width: 220px; height: 40px; }
.rv-stars .st-off use { fill: var(--ink-soft); }
.rv-stars .st-on use { fill: var(--sun); }
.rv-stars { margin: 18px 0 6px; }
.rv-count { margin: 0; font-weight: 800; font-size: 1.25rem; }
.rv-lede { margin: 34px 0 14px; font: 400 1.35rem/1.2 var(--f-marker); color: var(--sky); }
.rv-topics { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rv-topics li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 99px;
  background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25);
  font-weight: 700; font-size: calc(.9rem + var(--w, 0) * .5rem);
}
.rv-topics b { font: 400 1em/1 var(--f-display); color: var(--sun); }
.rv-wall { position: relative; display: grid; align-content: center; justify-items: center; gap: 34px; min-width: 0; }
.deck { position: relative; width: min(520px, 100%); aspect-ratio: 1.25; }
.note {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.4vw, 44px) clamp(22px, 3vw, 34px);
  border-radius: 4px;
  background: var(--paper-grain), var(--kraft-light); color: var(--ink);
  box-shadow: 0 24px 30px -16px rgb(0 0 0 / .6);
  rotate: var(--r); translate: calc(var(--depth, 0) * 7px) calc(var(--depth, 0) * 9px);
  scale: calc(1 - var(--depth, 0) * .03);
  transition: translate .5s var(--ease-spring), scale .5s var(--ease-spring), rotate .5s var(--ease-spring);
  user-select: none;
}
.note:nth-child(3n+2) { background: var(--paper-grain), var(--white); }
.note:nth-child(3n) { background: var(--paper-grain), var(--sun); }
.note::before { content: ""; position: absolute; left: 50%; top: -12px; width: 110px; height: 28px; translate: -50% 0; rotate: -3deg; background: rgb(200 236 252 / .78); }
.note.top { cursor: grab; touch-action: pan-y; rotate: calc(var(--r) * .5); }
.note.dragging { cursor: grabbing; transition: none; box-shadow: 0 40px 50px -20px rgb(0 0 0 / .7); }
.note-stars { display: flex; gap: 4px; }
.note-stars svg { width: 20px; height: 20px; fill: var(--sauce); }
.note-text { margin: 14px 0 22px; font: 400 clamp(1.3rem, 2.2vw, 1.85rem)/1.25 var(--f-display); letter-spacing: -.01em; text-wrap: pretty; }
.note-who { margin: 0; font: 400 1.35rem/1 var(--f-marker); }
.note-who small { display: block; margin-top: 6px; font: 600 .85rem var(--f-body); opacity: .75; }
.deck-ctrl { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.deck-count { font: 400 1.25rem var(--f-display); color: var(--sun); font-variant-numeric: tabular-nums; }
.rv-hint { margin: 0; font: 400 1.05rem var(--f-marker); color: var(--sky); }

/* ---------- Visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(72px, 9vw, 140px) var(--pad);
  background: var(--sky);
}
.visit h2 { font-family: var(--f-display); color: var(--white); }
.visit h2 .fit { -webkit-text-stroke: .03em var(--ink); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--ink); }
address { font-style: normal; display: grid; gap: 14px; margin: 30px 0; }
.visit-line { font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--f-display); text-decoration: none; }
.visit-line:hover { text-decoration: underline; }
.visit-line.phone { color: var(--white); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hours-board {
  padding: 30px clamp(20px, 3vw, 36px) 26px; border-radius: 18px;
  background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-lift);
  rotate: 1.5deg;
}
.hb-title { margin: 0 0 16px; font: 400 1.75rem/1 var(--f-display); color: var(--sun); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgb(255 255 255 / .25); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours li.today { color: var(--ink); background: var(--sun); margin: 0 -14px; padding: 11px 14px; border-radius: 10px; border: 0; font-weight: 800; }
.hb-status { margin: 18px 0 0; font: 400 1.15rem/1.3 var(--f-marker); color: var(--sky); }

/* ---------- Footer ---------- */
.foot { background: var(--sauce); color: var(--white); padding: clamp(56px, 7vw, 100px) var(--pad) 36px; }
.foot-big { margin: 0; font-family: var(--f-display); color: var(--sun); }
.foot-big .fit + .fit { color: var(--white); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; padding-top: 24px; border-top: 2px dashed rgb(255 255 255 / .4); font-weight: 600; }
.foot-row p { margin: 0; }
.foot-fine { width: 100%; opacity: .85; font-size: .9rem; }

/* ---------- The bag (cart) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(11 37 69 / .5); opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.bag {
  will-change: translate; position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
  width: min(460px, 100vw); padding: 14px 14px 0;
  translate: 105% 0; rotate: 4deg; transform-origin: top right;
  visibility: hidden;
  transition: translate .42s var(--ease-out), rotate .42s var(--ease-out), visibility 0s linear .42s;
}
.bag.open { translate: 0 0; rotate: 0deg; visibility: visible; transition-delay: 0s; }
.bag-paper {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 44px 26px 30px;
  background: linear-gradient(90deg, rgb(0 0 0 / .1), transparent 8% 92%, rgb(0 0 0 / .1)), var(--paper-grain), var(--kraft);
  --crimp: 24px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--crimp) calc(var(--crimp) / 2) repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - var(--crimp) / 2 + 1px) no-repeat;
  box-shadow: -20px 0 40px -20px rgb(0 0 0 / .5);
  scrollbar-width: thin; scrollbar-color: var(--kraft-dark) transparent;
}
.bag-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bag-title { margin: 0; font: 400 2.5rem/1 var(--f-marker); color: var(--ink); rotate: -2deg; }
.bag-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); display: grid; place-items: center; }
.bag-close svg { width: 20px; height: 20px; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.bag-mode { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: rgb(11 37 69 / .14); margin-bottom: 20px; }
.bag-mode button { border: 0; background: none; min-height: 44px; border-radius: 99px; font-weight: 800; }
.bag-mode button small { font-weight: 600; opacity: .75; }
.bag-mode button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 10px 0; border-bottom: 1.5px solid rgb(11 37 69 / .18);
  font: 400 1.2rem/1.2 var(--f-marker); color: var(--ink);
}
.line.writing .line-text { animation: scrawl .45s steps(14) both; }
@keyframes scrawl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.line.striking .line-text { background: linear-gradient(var(--sauce), var(--sauce)) left 55% / 0 3px no-repeat; animation: strike .35s var(--ease-out) forwards; }
@keyframes strike { to { background-size: 100% 3px; } }
.line-qty { display: inline-flex; align-items: center; gap: 2px; }
.line-qty button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(11 37 69 / .12); font: 800 1.1rem/1 var(--f-body); color: var(--ink); }
.line-qty button:hover { background: var(--ink); color: var(--white); }
.line-qty span { min-width: 22px; text-align: center; font-family: var(--f-body); font-weight: 800; }
.line-text small { display: block; font: 600 .85rem/1.3 var(--f-body); opacity: .75; }
.line-price { font-variant-numeric: tabular-nums; }
.bag-empty { padding: 30px 0 10px; text-align: center; }
.bag-empty .marker { font: 400 2rem/1 var(--f-marker); margin: 0 0 8px; }
.bag-empty p { margin: 0; }
.bag-fee { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 1.2rem; color: var(--ink); }
.bag-fee[hidden] { display: none; }
.bag-total { display: flex; justify-content: space-between; padding: 16px 0 6px; font-size: 1.75rem; border-top: 2px solid var(--ink); margin-top: 8px; }
.marker { font-family: var(--f-marker); }
.bag-form { display: grid; gap: 14px; margin-top: 16px; }
.bag-form label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; }
.bag-form [hidden] { display: none; }
.bag-form .opt { font-weight: 500; opacity: .75; }
.bag-form input {
  min-height: 50px; padding: 0 16px; border-radius: 12px; border: 0;
  background: rgb(255 255 255 / .78); box-shadow: inset 0 0 0 2px rgb(11 37 69 / .5);
  font: 600 1.05rem var(--f-body); color: var(--ink); caret-color: var(--sauce);
}
.bag-form input::placeholder { color: #5a6d86; }
.bag-form input:focus { outline: 0; box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 4px var(--sun); }
.bag-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--sauce-deep); }
.form-error { margin: 0; min-height: 1.2em; color: var(--sauce-deep); font-weight: 800; }
.demo-note { margin: 0; font-size: .85rem; font-weight: 600; opacity: .8; text-align: center; }

/* Flying item on add */
.flyer { position: fixed; z-index: 95; pointer-events: none; width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 10px 10px rgb(11 37 69 / .4)); }
.flyer.dot { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 3px var(--ink); }

/* ---------- Docket ---------- */
.docket-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 40px 16px; background: rgb(11 37 69 / .6); overflow-y: auto; }
.docket-wrap[hidden] { display: none; }
.docket {
  width: min(380px, 100%); padding: 30px 26px 28px; background: #fffdf7;
  font: 500 .95rem/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: #1a1a1a;
  box-shadow: 0 30px 50px -20px rgb(0 0 0 / .6);
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 8px + 1px) no-repeat;
  animation: print .6s var(--ease-out) both;
}
.docket:focus { outline: none; }
@keyframes print { from { clip-path: inset(0 0 100% 0); translate: 0 -30px; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }
.dk-shop { margin: 0; text-align: center; font-weight: 800; letter-spacing: .06em; }
.dk-addr { margin: 2px 0 16px; text-align: center; font-size: .82rem; }
.dk-no { margin: 0 0 12px; padding: 10px 0; border-block: 1.5px dashed #1a1a1a; text-align: center; font-size: 1.1rem; }
.dk-no b { font-size: 1.5rem; }
.dk-lines { list-style: none; margin: 0; padding: 0; }
.dk-lines li { display: flex; justify-content: space-between; gap: 12px; }
.dk-total { display: flex; justify-content: space-between; margin: 12px 0; padding-top: 10px; border-top: 1.5px dashed #1a1a1a; font-weight: 800; font-size: 1.15rem; }
.dk-when { margin: 0 0 12px; text-align: center; font-weight: 700; }
.dk-demo { margin: 0 0 20px; text-align: center; font-size: .78rem; padding: 6px; background: #1a1a1a; color: #fffdf7; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .pack-row { grid-template-columns: 1fr 1fr; }
  .pack:nth-child(2) { translate: none; }
  .pack:nth-child(3) { grid-column: 1 / -1; max-width: 520px; justify-self: center; width: 100%; }
}
@media (max-width: 820px) {
  .hero { padding-top: 96px; padding-bottom: 110px; min-height: auto; }
  .hero-sub { max-width: 30ch; }
  .floaters { position: relative; inset: auto; height: 250px; margin-top: 6px; }
  .fl-burger { --w: 180px; right: auto; left: 18%; top: 0; }
  .fl-hake { --w: 170px; left: 0; right: auto; bottom: 0; top: auto; }
  .fl-chips { display: block; --w: 96px; right: 24px; bottom: 80px; left: auto; top: auto; }
  .fl-pluto { --w: 110px; left: 0; right: auto; top: 0; }
  .sticker { top: auto; left: auto; bottom: 262px; right: 18px; width: 96px; rotate: 10deg; }
  .cloud.c1 { left: -20vw; bottom: 6%; width: 60vw; }
  .hero-bag { right: 14px; bottom: 96px; width: 118px; }
  .hb-label { font-size: 1.05rem; }
  .dollar, .reviews, .visit { grid-template-columns: 1fr; }
  .board, .board:nth-of-type(even) { grid-template-columns: 1fr; }
  .board:nth-of-type(even) .board-side { order: 0; }
  .board-sticky { position: static; }
  .board-img { width: min(70%, 320px); margin: 22px auto 0; }
  .next-board { grid-column: 1; }
  .deck { aspect-ratio: .95; }
}
@media (max-width: 600px) {
  .open-pill { display: none; }
  .brand-word b { font-size: 1.35rem; }
  .brand img { width: 46px; }
  .pack-row { grid-template-columns: 1fr; }
  .pack:nth-child(3) { max-width: none; }
  .item { grid-template-columns: 1fr auto; }
  .item .add { grid-row: 1 / 3; grid-column: 2; }
  .item-price { grid-column: 1; grid-row: auto; justify-self: start; }
  .item-price small { text-align: left; }
  .item-desc { grid-column: 1; }
  .stamp { grid-column: 2; grid-row: 1 / 3; }
  .coin-1 { width: 84px; height: 84px; }
  .coin-2 { width: 72px; height: 72px; }
  .coin { width: 76px; height: 76px; }
  .ticker span { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .wave, .ticker-track { animation: none; }
}
.docket .btn-wide { justify-content: center; }
