/* Home page only: scroll-driven shop entrance, marquee, tabbed menu, live status, join the team. */
html, body.home { overflow-x: clip; }
.home .site-header { position: fixed; inset: 0 0 auto; }

.enter, .marquee, .tmenu { --ln: #1d1d1b; --mustard: #d9a23b; --chalk: #232b33; --gold: #ffd25e; }

/* ---------- live open / closed badge ---------- */
.open-status { display: none; align-items: center; gap: 8px; text-decoration: none; font-size: .9rem; font-weight: 500; padding: 6px 14px; border: 1.5px solid var(--green-ink); border-radius: 999px; white-space: nowrap; }
.open-status i, .live i { width: 10px; height: 10px; border-radius: 50%; background: #999; flex: none; }
.is-open .open-status i, .live.open i { background: #3f9a3a; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(63 154 58 / .6); } 70%, 100% { box-shadow: 0 0 0 9px rgb(63 154 58 / 0); } }
#mobile-menu .open-status { display: inline-flex; align-self: flex-start; margin-top: 16px; }
@media (min-width: 1100px) { .header-row > .open-status { display: inline-flex; } }
.live { display: inline-flex; align-items: center; gap: 10px; font: 400 1.5rem/1 var(--display); margin-bottom: 14px; }
.hours tr.today th, .hours tr.today td { font-weight: 700; background: var(--green-ink); color: var(--cream); }
.hours tr.today th { padding-left: 10px; border-radius: 4px 0 0 4px; }
.hours tr.today td { padding-right: 10px; border-radius: 0 4px 4px 0; }

/* ---------- entrance ---------- */
.enter { --pave: clamp(100px, 16vh, 170px); height: 520vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.street, .inside { position: absolute; inset: 0; }
.sky { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 70%, #fffdf7 0%, var(--cream) 55%, #eadfc2 100%); }
.pavement { position: absolute; inset: auto 0 0; height: var(--pave); background: #d8cfbd; border-top: 4px solid var(--ln); }
.pavement span { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 118px, rgb(29 29 27 / .25) 118px 121px); }
.scene-wrap { position: absolute; left: 50%; bottom: calc(var(--pave) - 2px); width: min(100vw, calc((100svh - var(--pave) - 300px) * 1.1433)); transform: translate(-50%, 5%); perspective: 1400px; }
.scene { position: relative; aspect-ratio: 1341 / 1173; transform-origin: 50% 50%; opacity: 0; transition: opacity .7s ease; }
.scene.ready { opacity: 1; }
.facade { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.doorway, .door { position: absolute; }
.doorway { overflow: hidden; clip-path: inset(0); background: #ffe9b5; }
.doorway svg { width: 100%; height: 100%; display: block; }
.doorway .spill { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 40%, rgb(255 226 150 / .7), rgb(255 206 110 / .15) 70%); mix-blend-mode: screen; }
.door { border: 0; padding: 0; margin: 0; background: none; cursor: pointer; overflow: hidden; clip-path: inset(0); transform-origin: 100% 50%; backface-visibility: hidden; }
.door img { position: absolute; max-width: none; pointer-events: none; }
.door-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.door:focus-visible { outline: 4px solid var(--mustard); outline-offset: 4px; }
.door.wiggle { animation: wiggle .7s ease; }
@keyframes wiggle { 30% { transform: rotateY(-14deg); } 60% { transform: rotateY(-6deg); } 100% { transform: rotateY(0); } }

.bubble { position: absolute; padding: 4px 12px; border: 3px solid var(--ln); border-radius: 16px; background: #fff; font: 400 clamp(13px, 1.5vw, 19px) var(--display); white-space: nowrap; transform: translate(-50%, -100%) scale(.6); opacity: 0; transition: .25s cubic-bezier(.3, 1.6, .6, 1); pointer-events: none; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: #fff; border: solid var(--ln); border-width: 0 3px 3px 0; transform: translateX(-50%) rotate(45deg); }
.bubble.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.twinkles i { position: absolute; left: var(--x); top: var(--y); width: 3.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .85), rgb(255 255 255 / 0) 65%); animation: twinkle 3.2s var(--d, 0s) infinite ease-in-out; pointer-events: none; mix-blend-mode: screen; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }

/* hero copy sits over the street, fades as you scroll */
.hero-copy { position: absolute; left: 16px; right: 16px; top: 96px; text-align: center; }
.hero-copy h1 { font-size: clamp(2.7rem, 11vw, 3.4rem); margin: 0; }
.hero-copy .lead, .hero-copy .btn-row { display: none; }

.cue { position: absolute; left: 0; right: 0; bottom: calc(2vh + var(--bar, 0px)); text-align: center; pointer-events: none; display: grid; justify-items: center; gap: 2px; }
.cue p { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.cue strong { font: 400 clamp(1.4rem, 2.4vw, 1.8rem) var(--display); }
.mouse { width: 22px; height: 34px; border: 2.5px solid var(--ln); border-radius: 12px; position: relative; margin-top: 4px; }
.mouse span { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--ln); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.skip { position: absolute; right: clamp(16px, 4vw, 40px); bottom: calc(3vh + var(--bar, 0px)); font-size: .9rem; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .75); border: 1.5px solid rgb(0 0 0 / .2); }

/* inside */
.inside { z-index: 2; opacity: 0; visibility: hidden; background: #f4e9cd; }
.flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff8e4 0%, #ffe4a3 60%, #f7cf7a 100%); }
.room { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 70%; will-change: transform; }
.lamp { transform-origin: var(--o); animation: sway 5s var(--d, 0s) ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(1.6deg); } 50% { transform: rotate(-1.6deg); } }
.glows circle { animation: flicker 6s infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .9; } 50% { opacity: .75; } 53% { opacity: .95; } }
.steam path { animation: steam 2.4s linear infinite; opacity: 0; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px); } }
.zzz text { animation: zzz 3s infinite; opacity: 0; }
.zzz text:nth-child(2) { animation-delay: .5s; }
.zzz text:nth-child(3) { animation-delay: 1s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -18px); } }
.hs { cursor: pointer; outline: none; transition: filter .2s; }
.hs:hover, .hs:focus-visible { filter: drop-shadow(0 0 10px rgb(255 200 90 / .9)) brightness(1.05); }
.markers { pointer-events: none; opacity: 0; transition: opacity .5s; }
.markers.on { opacity: 1; }
.marker > circle { fill: var(--gold); stroke: var(--ln); stroke-width: 4; }
.marker .ring { fill: none; stroke: var(--gold); stroke-width: 4; animation: ring 1.8s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.marker .lbl { opacity: 0; transform: translateY(6px); transition: .2s; }
.marker .lbl rect { fill: var(--ln); }
.marker .lbl text { fill: #fff; font: 400 22px var(--display); text-anchor: middle; }
.marker.hot .lbl { opacity: 1; transform: none; }
.woof { opacity: 0; transform-box: fill-box; pointer-events: none; transition: opacity .2s; }
.woof.show { opacity: 1; animation: pop .4s cubic-bezier(.3, 1.8, .6, 1); }
@keyframes pop { from { transform: translate(1170px, 610px) scale(.5); } to { transform: translate(1170px, 600px) scale(1); } }
.dog.bounce { animation: hop .5s; transform-box: fill-box; transform-origin: bottom; }
@keyframes hop { 40% { transform: translateY(-14px) scaleY(1.04); } }

.welcome { position: absolute; left: 50%; top: clamp(84px, 12vh, 120px); transform: translateX(-50%); width: min(560px, calc(100% - 32px)); text-align: center; opacity: 0; pointer-events: none; background: rgb(247 241 227 / .88); backdrop-filter: blur(6px); border: 3px solid var(--ln); border-radius: 22px; padding: 14px 22px 12px; box-shadow: 6px 6px 0 var(--ln); }
.welcome .jp { margin: 0; font-size: .9rem; letter-spacing: .2em; color: var(--red); font-weight: 700; }
.welcome h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 2px 0 6px; }
.welcome .sub { margin: 0 0 8px; font-size: clamp(.9rem, 1.6vw, 1.05rem); }
.welcome .hint { margin: 0; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; opacity: .75; }
.welcome .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--ln); }

/* wide screens: copy on the left, shop on the right */
@media (min-aspect-ratio: 5/4) and (min-width: 900px) {
  .scene-wrap { left: 66%; width: min(56vw, calc((100svh - var(--pave) - 90px) * 1.1433)); }
  .hero-copy { left: clamp(24px, 5vw, 72px); right: auto; top: 50%; transform: translateY(-46%); width: min(36vw, 540px); text-align: left; }
  .hero-copy h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: .3em; }
  .hero-copy .lead, .hero-copy .btn-row { display: flex; }
  .hero-copy .lead { display: block; margin-bottom: 1.4rem; }
}
@media (max-width: 719px) {
  .enter { --bar: 76px; --pave: 190px; }
  .cue { bottom: calc(var(--bar) + 6px); }
  .mouse { display: none; }
  .skip { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar) + 66px); }
}

/* ---------- marquee ---------- */
.marquee { background: var(--red); color: #fff; border-block: 4px solid var(--ln); overflow: hidden; transform: rotate(-1.4deg); margin: -10px -20px 28px; position: relative; z-index: 2; }
.mq-track { display: flex; width: max-content; animation: marquee 30s linear infinite; font: 400 clamp(1.7rem, 3vw, 2.4rem) var(--display); padding: 10px 0; }
.mq-track span { padding: 0 18px; white-space: nowrap; }
.mq-track span:nth-child(even) { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tabbed menu ---------- */
.tmenu { background: var(--chalk); color: #f4efe2; padding-block: clamp(56px, 9vw, 104px); margin-top: 32px; }
.tmenu .eyebrow { color: var(--gold); text-align: center; }
.tmenu h2 { color: #f4efe2; text-align: center; font-size: clamp(3rem, 7vw, 4.6rem); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.tab { font: 400 1.4rem/1 var(--display); min-height: 48px; color: #f4efe2; background: transparent; cursor: pointer; border: 2.5px solid #f4efe2; border-radius: 999px; padding: 8px 22px; transition: .2s; }
.tab:hover { background: rgb(255 255 255 / .08); }
.tab[aria-selected="true"] { background: #f4efe2; color: var(--chalk); transform: rotate(-2deg); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item { border: 2px dashed rgb(244 239 226 / .45); border-radius: 12px; padding: 18px 20px; display: grid; gap: 4px; align-content: start; animation: rise .45s both cubic-bezier(.2, .8, .3, 1); animation-delay: calc(var(--i) * 50ms); transition: transform .2s, border-color .2s; }
.item:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--gold); }
.item svg { width: 40px; height: 40px; }
.item header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item h3 { font-size: 1.7rem; margin: 4px 0 0; color: #f4efe2; }
.item .price { font: 400 1.5rem/1 var(--display); color: var(--gold); white-space: nowrap; }
.item p { margin: 0; font-size: .95rem; opacity: .8; }
.item .tag { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--chalk); padding: 2px 8px; border-radius: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.tmenu .tnote { text-align: center; margin: 28px auto 0; max-width: 40em; font: 400 1.25rem/1.3 var(--display); opacity: .85; }
.tmenu .tkey { text-align: center; font-size: .85rem; opacity: .65; margin: 8px 0 20px; }
.tmenu .btn-outline { display: flex; width: max-content; margin-inline: auto; border-color: #f4efe2; color: #f4efe2; }
.tmenu .btn-outline:hover { background: #f4efe2; color: var(--chalk); }

@media (max-width: 560px) {
  .mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item { padding: 12px; }
  .item svg { display: none; }
  .item header { flex-direction: column; gap: 2px; }
  .item h3 { font-size: 1.45rem; margin: 0; }
}

/* ---------- join the team ---------- */
.team { padding-block: 0 56px; }
.team-card { max-width: 640px; margin-inline: auto; text-align: center; border: 2px solid var(--green-ink); border-radius: 4px; padding: 36px 24px; background: var(--paper); }
.team-card p:not(.eyebrow) { max-width: 30em; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  .enter *, .marquee *, .tmenu *, .open-status i, .live i { animation: none !important; transition: none !important; }
}
