:root {
  --slate: #496067;
  --ink: #2f3f44;
  --mint: #84c1ab;
  --yellow: #eab345;
  --orange: #f5804b;
  --cream: #faf4f0;
  --sand: #f1e2cf;
  --pink: #fac5b5;
  --green: #9bb56d;
  --wood: #e0bd94;
  --muted: #6b7f84;
  --head: 'Englebert', 'Quicksand', sans-serif;
  --body: 'Quicksand', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--slate); font: 500 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.08; }
em { font-style: normal; color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* header */
.header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(250, 244, 240, .94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--sand); }
.logo img { display: block; height: 56px; width: auto; }
nav { display: flex; gap: clamp(14px, 3vw, 34px); font-weight: 700; font-size: 15px; }
nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
nav a:hover { border-color: var(--mint); }
.passport-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--slate); color: var(--cream); font-weight: 700; font-size: 14px; }
.passport-btn b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 12px; }
.passport-btn.pop { animation: pop .5s; }

/* shared */
.bunting, .street-bunting { height: 64px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='64' viewBox='0 0 320 64'%3E%3Cpath d='M0 6Q160 34 320 6' fill='none' stroke='%239bb56d' stroke-width='2'/%3E%3Cpath d='M24 11L56 11L40 47Z' fill='%23f5804b'/%3E%3Cpath d='M104 18L136 18L120 54Z' fill='%2384c1ab'/%3E%3Cpath d='M184 18L216 18L200 54Z' fill='%23eab345'/%3E%3Cpath d='M264 11L296 11L280 47Z' fill='%23fac5b5'/%3E%3C/svg%3E") repeat-x; transform-origin: top center; }
.bunting { position: absolute; top: 0; left: 0; right: 0; animation: sway 6s ease-in-out infinite alternate; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: var(--slate); color: var(--cream); font-weight: 700; text-decoration: none; border: 2px solid var(--slate); transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px) rotate(-1deg); background: var(--ink); }
.button.ghost { background: transparent; color: var(--slate); }
.button.ghost:hover { background: var(--sand); }
.button.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--orange); }
.section-head { max-width: 700px; margin: 0 auto 32px; text-align: center; padding: 0 20px; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head p:last-child { margin: 14px 0 0; color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 120px 20px 90px; text-align: center; background: radial-gradient(circle at 20% 30%, #fde9df 0 18%, transparent 40%), radial-gradient(circle at 85% 70%, #e3f1ea 0 20%, transparent 45%), var(--cream); }
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.eyebrow { display: inline-block; margin: 0 0 22px; padding: 7px 16px; border-radius: 99px; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); letter-spacing: .01em; }
.lead { max-width: 560px; margin: 24px auto 32px; font-size: 18px; color: var(--ink); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 38px 0 0; }
.hero-facts li { padding: 8px 18px; border-radius: 99px; background: #fff; border: 2px solid var(--sand); font-weight: 700; font-size: 14px; }
.hero-facts b { font-family: var(--head); font-weight: 400; font-size: 22px; color: var(--orange); margin-right: 3px; }
.doodle { position: absolute; font-size: 38px; animation: float 5s ease-in-out infinite alternate; pointer-events: none; }
.d1 { top: 26%; left: 8%; color: var(--yellow); font-size: 48px; }
.d2 { top: 60%; left: 14%; color: var(--orange); animation-delay: -1s; }
.d3 { top: 22%; right: 12%; color: var(--mint); animation-delay: -2s; }
.d4 { top: 66%; right: 10%; color: var(--pink); font-size: 52px; animation-delay: -3s; }
.d5 { top: 80%; left: 40%; color: var(--green); font-size: 26px; animation-delay: -1.5s; }
.d6 { top: 40%; right: 5%; color: var(--orange); font-size: 26px; animation-delay: -2.5s; }

/* market map */
.street-section { padding: 70px 0 90px; background: var(--sand); }
.kbd-text { font-weight: 700; color: var(--slate); }
.map-shell { width: calc(100% - 20px); max-width: 1240px; margin: 0 auto; }
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.open-pill { padding: 9px 18px; border-radius: 99px; background: var(--mint); color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: 0 4px 0 #49606722; }
.map-frame { position: relative; width: 100%; height: min(72vh, 680px); min-height: 360px; margin: 0 auto; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; border-radius: 30px; background: #bcd89a; box-shadow: 0 0 0 4px #fff, 0 18px 0 -2px #e4d0b8, 0 30px 50px #49606733; }
.map-space { position: relative; margin: 0 auto; }
.map { position: absolute; left: 0; top: 0; transform-origin: 0 0; --ps: .62; background: radial-gradient(circle at 20px 20px, #cde3ab 4px, transparent 5px) 0 0 / 46px 46px, #bcd89a; }
.decor, .stalls, .crowd { position: absolute; inset: 0; }
.plaza { position: absolute; border-radius: 44px; background: radial-gradient(circle at 10px 10px, #e6d0b2 2.5px, transparent 3.5px) 0 0 / 26px 26px, #f6ead8; border: 6px solid #e8cfa9; }
.rug { position: absolute; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 5px dashed var(--mint); color: var(--slate); font: 30px/1 var(--head); opacity: .9; }
.rug small { display: block; margin-top: 6px; font: 700 12px var(--body); letter-spacing: .2em; color: var(--orange); text-align: center; }
.deco { position: absolute; line-height: 1; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 0 #4960671a); }
.map .street-bunting { position: absolute; top: 40px; left: 0; right: 0; opacity: .95; }
.gate { position: absolute; left: 50%; top: 0; z-index: 3; transform: translateX(-50%); display: grid; place-items: center; width: 220px; height: 44px; border-radius: 0 0 20px 20px; background: var(--slate); border-bottom: 6px solid var(--yellow); color: var(--cream); font: 18px/1 var(--head); letter-spacing: .08em; }

/* stalls */
.stall { --c: var(--orange); position: absolute; z-index: 2; transition: transform .25s; }
.stall.c1 { --c: var(--mint); } .stall.c2 { --c: var(--yellow); } .stall.c3 { --c: var(--pink); } .stall.c4 { --c: var(--green); }
.stall.near { transform: translateY(-4px); }
.stall-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stall.big::before { content: ''; position: absolute; inset: -16px -14px -10px; z-index: -1; border-radius: 28px; background: #eab34538; box-shadow: 0 0 0 3px #eab34566; }
.stall.big::after { content: '✦'; position: absolute; top: -34px; left: 50%; z-index: 5; transform: translateX(-50%); color: var(--yellow); font-size: 24px; text-shadow: 0 2px 0 #c99a2c; animation: sparkle 1.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes sparkle { from { transform: translateX(-50%) scale(.85); } to { transform: translateX(-50%) translateY(-4px) scale(1.15); } }
.stall.big .sign { box-shadow: 0 0 0 3px var(--yellow); }
.sign { position: absolute; top: 0; left: 14px; right: 14px; height: 30px; display: grid; place-items: center; padding: 0 8px; border-radius: 10px; background: var(--slate); color: var(--cream); font: 15px/1 var(--head); white-space: nowrap; z-index: 3; transition: box-shadow .25s; }
.stall.near .sign { box-shadow: 0 0 0 3px var(--orange); }
.tag { position: absolute; top: -14px; right: -12px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 14px var(--head); transform: rotate(12deg); box-shadow: 0 3px 0 #d96a38; }
.stamp-ok { position: absolute; top: -8px; left: -8px; z-index: 4; display: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--ink); font: 700 14px var(--body); box-shadow: 0 0 0 3px var(--cream); }
.stall.stamped .stamp-ok { display: grid; }
.awning { position: absolute; top: 28px; left: -6px; right: -6px; height: 36px; display: flex; z-index: 2; filter: drop-shadow(0 3px 0 #49606722); }
.awning span { flex: 1; height: 100%; border-radius: 0 0 16px 16px; background: var(--c); }
.awning span:nth-child(even) { background: #fff; }
.booth { position: absolute; top: 58px; left: 6px; right: 6px; bottom: 0; background: linear-gradient(#fff9f3, #fdeede); border-radius: 6px 6px 0 0; z-index: 1; }
.booth::before, .booth::after { content: ''; position: absolute; top: -4px; bottom: 0; width: 6px; background: #c99f74; }
.booth::before { left: 0; } .booth::after { right: 0; }
.counter { position: absolute; left: -4px; right: -4px; bottom: 0; height: 30px; border-radius: 8px 8px 0 0; background: var(--wood); border-top: 6px solid #efd5b4; }
.goods { position: absolute; left: 58px; right: 10px; bottom: 28px; display: flex; justify-content: space-around; font-size: 24px; line-height: 1; }
.goods span { display: inline-block; }
.stall.near .goods span { animation: hop .7s ease-in-out infinite alternate; }
.stall.near .goods span:nth-child(2) { animation-delay: .15s; } .stall.near .goods span:nth-child(3) { animation-delay: .3s; }
.vendor { position: absolute; left: 12px; bottom: 26px; width: 56px; height: 90px; transform: scale(.45); transform-origin: bottom left; }
.vendor i { position: absolute; display: block; }
.v-hair { top: 2px; left: 8px; width: 40px; height: 24px; border-radius: 20px 20px 6px 6px; background: var(--slate); }
.v-head { top: 10px; left: 11px; width: 34px; height: 34px; border-radius: 50%; background: #f6c9a4; }
.v-head::before, .v-head::after { content: ''; position: absolute; top: 15px; width: 4px; height: 5px; border-radius: 50%; background: var(--ink); }
.v-head::before { left: 9px; } .v-head::after { right: 9px; }
.v-body { top: 44px; left: 4px; width: 48px; height: 50px; border-radius: 22px 22px 0 0; background: var(--c); }
.v-arm { top: 50px; right: -2px; width: 12px; height: 30px; border-radius: 8px; background: #f6c9a4; transform-origin: top center; }
.stall.near .vendor .v-arm, .stall.chat .vendor .v-arm { animation: wave .6s ease-in-out infinite alternate; }
.bubble { position: absolute; bottom: 100%; left: 50%; margin-bottom: 8px; z-index: 6; width: max-content; max-width: 13em; padding: .6em 1em; border-radius: 1.2em; background: #fff; color: var(--ink); font-size: calc(13px / var(--s, 1) / var(--k, 1)); font-weight: 700; line-height: 1.3; text-align: center; opacity: 0; transform: translate(-50%, 8px) scale(.9); transition: .25s; pointer-events: none; box-shadow: 0 4px 0 #49606722; }
.bubble::after { content: ''; position: absolute; bottom: -6px; left: 50%; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.stall.near .bubble, .stall.chat .bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
.stall.edge-l .bubble { left: 0; transform: translate(0, 8px) scale(.9); }
.stall.edge-r .bubble { left: auto; right: 0; transform: translate(0, 8px) scale(.9); }
.stall.edge-l.near .bubble, .stall.edge-l.chat .bubble, .stall.edge-r.near .bubble, .stall.edge-r.chat .bubble { transform: translate(0, 0) scale(1); }
.stall.edge-l .bubble::after { left: 40px; } .stall.edge-r .bubble::after { left: auto; right: 40px; transform: rotate(45deg); }
.stall-hit { position: absolute; inset: 0; z-index: 7; border: 0; background: none; border-radius: 12px; }
.stall-hit:hover { background: #ffffff22; }

/* people */
.person { position: absolute; width: 48px; height: 92px; z-index: 10; pointer-events: none; transform: scale(var(--ps)); transform-origin: bottom center; --bodyc: var(--orange); --hairc: var(--slate); }
.person::before { content: ''; position: absolute; left: 4px; bottom: -4px; width: 40px; height: 12px; border-radius: 50%; background: #2f3f4426; }
.person .flip { position: absolute; inset: 0; }
.person .flip.left { transform: scaleX(-1); }
.person i { position: absolute; display: block; }
.p-hair { top: 4px; left: 6px; width: 36px; height: 22px; border-radius: 18px 18px 6px 6px; background: var(--hairc); z-index: 2; }
.p-head { top: 12px; left: 9px; width: 30px; height: 30px; border-radius: 50%; background: #f6c9a4; z-index: 1; }
.p-head::after { content: ''; position: absolute; top: 14px; left: 18px; width: 4px; height: 5px; border-radius: 50%; background: var(--ink); box-shadow: -9px 0 0 var(--ink); }
.p-body { top: 42px; left: 8px; width: 32px; height: 38px; border-radius: 15px 15px 8px 8px; background: var(--bodyc); }
.p-basket { top: 56px; left: -4px; width: 20px; height: 15px; border-radius: 3px 3px 10px 10px; background: var(--yellow); border-top: 3px solid #c99a2c; }
.p-leg { top: 78px; width: 9px; height: 15px; border-radius: 4px; background: var(--slate); transform-origin: top center; }
.p-leg.l { left: 13px; } .p-leg.r { left: 26px; }
.person.walking .flip { animation: bob .35s ease-in-out infinite alternate; }
.person.walking .p-leg.l { animation: step .35s ease-in-out infinite alternate; }
.person.walking .p-leg.r { animation: step .35s ease-in-out infinite alternate-reverse; }
.visitor .p-hair { background: var(--ink); }
.visitor { width: 48px; }
.visitor::before { display: none; }
.m-shadow { left: 0; bottom: -4px; width: 100px; height: 12px; border-radius: 50%; background: #2f3f4426; }
.p-bun { top: -4px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); z-index: 1; }
.p-skirt { top: 66px; left: 3px; width: 42px; height: 18px; border-radius: 6px 6px 18px 18px; background: var(--bodyc); z-index: 2; filter: brightness(.94); }
.visitor { --bodyc: var(--orange); }
.visitor .p-body { width: 34px; left: 7px; }
.m-arm { top: 50px; left: 30px; width: 30px; height: 8px; border-radius: 5px; background: linear-gradient(90deg, var(--bodyc) 0 40%, #f6c9a4 40%); z-index: 4; }
.m-handle { top: 50px; left: 56px; width: 12px; height: 5px; border-radius: 3px; background: var(--slate); transform: rotate(-12deg); transform-origin: left center; z-index: 5; }
.m-hood { top: 40px; left: 58px; width: 28px; height: 24px; border-radius: 28px 28px 0 0; background: repeating-linear-gradient(90deg, var(--yellow) 0 7px, #fff 7px 14px); z-index: 3; }
.m-baby { top: 50px; left: 78px; width: 15px; height: 15px; border-radius: 50%; background: #f6c9a4; border-top: 5px solid var(--mint); box-sizing: border-box; z-index: 2; }
.m-pram { top: 60px; left: 58px; width: 42px; height: 18px; border-radius: 6px 6px 20px 20px; background: var(--mint); border-bottom: 4px solid #5ea68e; box-sizing: border-box; z-index: 3; }
.m-wheel { top: 76px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--slate); box-sizing: border-box; z-index: 4; }
.m-wheel::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--slate); }
.m-wheel.b { left: 62px; } .m-wheel.f { left: 86px; }
.visitor.walking .m-wheel { animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.visitor.walking .m-baby { animation: hop .35s ease-in-out infinite alternate; }
.visitor::after { content: 'Te'; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; background: var(--orange); color: var(--ink); font: 700 18px/1.2 var(--body); box-shadow: 0 3px 0 #d96a38; }
.map-prompt { position: absolute; z-index: 40; padding: 9px 16px; border: 0; border-radius: 99px; background: var(--slate); color: var(--cream); font-weight: 700; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 0) scale(calc(.8 / var(--s, 1))); transform-origin: top center; transition: opacity .2s; box-shadow: 0 4px 0 var(--ink); }
.map-prompt.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(calc(1 / var(--s, 1))); }

/* hud */
.progress-chip { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border: 0; border-radius: 99px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 4px 0 #49606722; }
.progress-chip b { color: var(--orange); }
.progress-bar { width: 80px; height: 8px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--mint); transition: width .5s; }
.hint { position: absolute; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%); padding: 9px 18px; border-radius: 99px; background: var(--slate); color: var(--cream); font-weight: 700; font-size: 14px; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.hint.gone { opacity: 0; }
@media (hover: none) { .kbd-text { display: none; } }

/* navigation tools */
.finder-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.finder { position: relative; flex: 1 1 320px; z-index: 60; }
.finder-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 99px; background: #fff; box-shadow: 0 4px 0 #49606722, 0 0 0 3px transparent; transition: box-shadow .2s; }
.finder-search:focus-within { box-shadow: 0 4px 0 #49606722, 0 0 0 3px var(--orange); }
.finder-search span { color: var(--orange); font-size: 22px; font-weight: 700; }
.finder-search input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; color: var(--ink); font: 600 16px var(--body); }
.finder-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px; list-style: none; max-height: 360px; overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px #49606740, 0 0 0 3px var(--sand); }
.finder-results[hidden] { display: none; }
.finder-count { padding: 6px 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.finder-results button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: 600 15px var(--body); text-align: left; cursor: pointer; }
.finder-results button:hover, .finder-results button:focus-visible { background: var(--sand); outline: 0; }
.finder-results button span { font-size: 22px; }
.finder-results button small { margin-left: auto; color: var(--muted); font-weight: 700; }
.tool-btn { height: 50px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--slate); color: var(--cream); font: 700 15px var(--body); cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .15s; }
.tool-btn:hover { transform: translateY(-2px); }
.tool-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.zone-chips { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.zone-chips::-webkit-scrollbar { display: none; }
.zone-chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font: 700 14px var(--body); white-space: nowrap; cursor: pointer; box-shadow: 0 3px 0 #49606722, inset 0 -4px 0 var(--zc); transition: transform .15s; }
.zone-chip:hover { transform: translateY(-2px); }
.zone-chip small { padding: 1px 8px; border-radius: 99px; background: var(--sand); color: var(--muted); font-size: 12px; }
.zone-chip.here { background: var(--slate); color: var(--cream); }
.zone-chip.here small { background: #ffffff26; color: var(--cream); }
.map-wrap { position: relative; }
.minimap { position: absolute; right: 14px; bottom: 14px; z-index: 30; padding: 6px; border-radius: 16px; background: #fffffff0; box-shadow: 0 6px 20px #49606740; }
.minimap[hidden] { display: none; }
.mini-inner { position: relative; overflow: hidden; border-radius: 10px; background: #bcd89a; cursor: crosshair; touch-action: none; }
.mini-zone { position: absolute; left: 0; right: 0; opacity: .38; }
.mini-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--slate); }
.mini-inner.filtering .mini-dot { opacity: .25; }
.mini-inner .mini-dot.match { opacity: 1; width: 9px; height: 9px; margin: -4.5px; background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.mini-inner .mini-dot.main { width: 8px; height: 8px; margin: -4px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--slate); }
.mini-view { position: absolute; border: 2px solid var(--orange); border-radius: 4px; background: #f5804b22; pointer-events: none; }
.mini-me { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; pointer-events: none; z-index: 2; }
.zone-banner { position: absolute; z-index: 1; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 22px; border-radius: 99px; background: var(--slate); color: var(--cream); font: 24px/1 var(--head); box-shadow: 0 5px 0 #2f3f44, inset 0 -5px 0 var(--zc); }
.zone-banner.main { background: #2f3f44; font-size: 28px; box-shadow: 0 5px 0 #1e2a2e, inset 0 -5px 0 var(--yellow); }
.zone-banner small { margin-left: auto; color: var(--yellow); font: 700 14px var(--body); }
.zone-banner.flash { animation: zoneFlash 1.2s ease-out; }
@keyframes zoneFlash { 0%, 40% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--orange), 0 5px 0 #2f3f44; } 100% { transform: scale(1); } }
.map.filtering .stall:not(.match) { opacity: .3; filter: grayscale(.7); }
.map.filtering .stall.match .sign { background: var(--orange); color: var(--ink); animation: matchPulse 1s ease-in-out infinite alternate; }
@keyframes matchPulse { to { transform: translateY(-4px); } }
@media (max-width: 800px) {
  .tool-btn { flex: 1; height: 44px; padding: 0 12px; font-size: 14px; }
  .finder { flex-basis: 100%; }
  .zone-banner { font-size: 20px; height: 42px; padding: 0 16px; }
}

/* directory */
.directory { padding: 90px clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 18px; border: 2px solid var(--sand); border-radius: 99px; background: #fff; font-weight: 700; font-size: 14px; }
.filter:hover { border-color: var(--mint); }
.filter.active { background: var(--slate); border-color: var(--slate); color: var(--cream); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 2px solid var(--sand); border-radius: 99px; background: #fff; }
.search input { width: 210px; padding: 10px 0; border: 0; outline: 0; background: none; font: inherit; color: var(--slate); }
.search:focus-within { border-color: var(--mint); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { --c: var(--orange); overflow: hidden; border-radius: 26px; background: #fff; border: 2px solid var(--sand); transition: transform .25s, box-shadow .25s; }
.card.c1 { --c: var(--mint); } .card.c2 { --c: var(--yellow); } .card.c3 { --c: var(--pink); } .card.c4 { --c: var(--green); }
.card.feat { box-shadow: 0 0 0 4px var(--yellow); }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 14px 0 -6px var(--c); }
.card-top { position: relative; display: grid; place-items: center; height: 120px; background: var(--c); font-size: 54px; }
.card-top .badge { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 99px; background: #fff; color: var(--ink); font: 15px var(--head); }
.card-body { padding: 18px 20px 22px; }
.category { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); }
.card h3 { margin: 6px 0; font-size: 26px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.walk-btn { padding: 10px 18px; border: 2px solid var(--slate); border-radius: 99px; background: none; font-weight: 700; font-size: 13px; }
.walk-btn:hover { background: var(--slate); color: var(--cream); }
.days { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.empty, .demo-note { text-align: center; color: var(--muted); font-size: 13px; }
.empty { font-size: 16px; padding: 30px 0; }
.demo-note { margin-top: 36px; }

/* how */
.how { padding: 90px clamp(16px, 4vw, 48px); background: var(--slate); color: var(--cream); }
.how .section-head p:last-child { color: #cfdcdd; }
.how em { color: var(--yellow); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.steps article { padding: 28px; border-radius: 26px; background: #ffffff12; border: 2px dashed #ffffff40; }
.step-no { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 24px var(--head); }
.steps article:nth-child(2) .step-no { background: var(--mint); } .steps article:nth-child(3) .step-no { background: var(--orange); } .steps article:nth-child(4) .step-no { background: var(--pink); }
.steps h3 { font-size: 25px; margin-bottom: 8px; }
.steps p { margin: 0; color: #dbe5e6; font-size: 15px; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; padding: 30px clamp(16px, 4vw, 48px); background: var(--cream); }
footer .logo img { height: 60px; }
footer p { margin: 0; font-weight: 700; }
footer small { color: var(--muted); }

/* dialogs */
dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 0; border-radius: 30px; background: var(--cream); color: var(--slate); box-shadow: 0 30px 80px #2f3f4455; overflow: auto; }
dialog[open] { animation: dialogIn .35s cubic-bezier(.2, 1.3, .4, 1); }
dialog::backdrop { background: #2f3f4499; backdrop-filter: blur(3px); }
.close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; }
.inside-head { --c: var(--orange); position: relative; padding: 30px 30px 26px; text-align: center; background: var(--c); }
.inside-head .awning-line { position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: radial-gradient(circle at 15px 0, var(--c) 14px, transparent 15px) 0 0 / 30px 14px repeat-x; }
.inside-emoji { display: inline-grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: #fff; font-size: 48px; }
.inside-head .category { display: block; margin-top: 12px; color: var(--ink); }
.inside-head h2 { font-size: 40px; color: var(--ink); }
.inside-body { padding: 34px 30px 30px; }
.vendor-quote { position: relative; margin: 0 0 20px; padding: 14px 18px; border-radius: 18px; background: #fff; font-weight: 600; }
.vendor-quote::before { content: '“'; font: 40px/0 var(--head); color: var(--orange); margin-right: 6px; vertical-align: -12px; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.shelf div { padding: 14px 6px; border-radius: 18px; background: var(--sand); text-align: center; font-size: 13px; font-weight: 700; }
.shelf span { display: block; font-size: 34px; margin-bottom: 4px; }
.coupon { padding: 20px; border: 3px dashed var(--orange); border-radius: 22px; background: #fff; text-align: center; }
.coupon small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.coupon-code { margin: 8px 0 14px; font: 36px var(--head); letter-spacing: .06em; }
.copy-button { padding: 12px 24px; border: 0; border-radius: 99px; background: var(--orange); color: var(--ink); font-weight: 700; box-shadow: 0 4px 0 #d96a38; }
.copy-button:active { transform: translateY(3px); box-shadow: none; }
.stamp-note { margin: 18px 0; padding: 10px 16px; border-radius: 99px; background: #def0e8; text-align: center; font-weight: 700; font-size: 14px; }
.inside-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fine-print { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.passport { padding: 30px; }
.passport h2 { font-size: 38px; margin-bottom: 6px; }
.passport > p { margin: 0 0 20px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.slot { display: grid; place-items: center; aspect-ratio: 1; border: 3px dashed #cdb89d; border-radius: 50%; color: #b9a58b; font-size: 11px; font-weight: 700; text-align: center; line-height: 1.1; padding: 4px; }
.slot span { font-size: 30px; filter: grayscale(1); opacity: .35; }
.slot.got { border: 3px solid var(--c); background: #fff; color: var(--slate); transform: rotate(-6deg); }
.slot.got span { filter: none; opacity: 1; }
.slot.got:nth-child(even) { transform: rotate(5deg); }
.bonus { padding: 20px; border-radius: 22px; background: var(--sand); text-align: center; margin-bottom: 18px; }
.bonus.unlocked { background: var(--yellow); color: var(--ink); }
.bonus h3 { font-size: 24px; margin-bottom: 6px; }
.bonus p { margin: 0 0 10px; font-size: 14px; }
.code-list { display: grid; gap: 8px; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; font-size: 14px; }
.code-row strong { font-family: var(--head); font-weight: 400; letter-spacing: .05em; font-size: 18px; }
.code-row button { padding: 6px 14px; border: 2px solid var(--slate); border-radius: 99px; background: none; font-weight: 700; font-size: 12px; }
.code-row button:hover { background: var(--slate); color: var(--cream); }
.code-row span { display: block; font-size: 12px; color: var(--muted); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translate(-50%, 30px); padding: 13px 24px; border-radius: 99px; background: var(--slate); color: var(--cream); font-weight: 700; opacity: 0; pointer-events: none; transition: .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }

@keyframes sway { to { transform: rotate(1deg) scaleX(1.01); } }
@keyframes float { to { transform: translateY(-14px) rotate(8deg); } }
@keyframes hop { to { transform: translateY(-6px); } }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(35deg); } }
@keyframes bob { to { transform: translateY(-4px); } }
@keyframes step { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
@keyframes pop { 40% { transform: scale(1.18); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 800px) {
  nav { display: none; }
  .logo img { height: 46px; }
  .street-section { padding: 50px 0 70px; }
  .map-frame { border-radius: 22px; }
  .hint { font-size: 12px; white-space: normal; text-align: center; width: 86%; }
  .progress-bar { width: 50px; }
  .hero { padding-top: 100px; }
  .d2, .d6, .d1 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* brand logos */
.logo-tile { display: grid; place-items: center; overflow: hidden; background: #fff; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.logo-tile.dark { background: var(--slate); }
.stall-logo { position: absolute; left: -14px; top: -17px; z-index: 5; width: 72px; height: 48px; border-radius: 12px; border: 3px solid var(--slate); box-shadow: 0 3px 0 #2f3f4433; font-size: 22px; }
.stall-logo img { padding: 2px 3px; }
.sign { padding-left: 52px; padding-right: 16px; }
.stall .tag { top: -14px; right: -12px; width: 36px; height: 36px; font-size: 16px; }
.sign-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; white-space: normal; text-align: center; line-height: 1.05; }
.stamp-ok { top: 44px; left: -14px; }
.card-top { font-size: 54px; }
.card-logo { width: 170px; height: 92px; border-radius: 20px; box-shadow: 0 4px 0 #49606722; }
.card-logo.emoji { width: 88px; border-radius: 50%; }
.inside-logo { width: 150px; height: 96px; border-radius: 24px; font-size: 48px; box-shadow: 0 4px 0 #49606722; }
.inside-logo.emoji { width: 96px; border-radius: 50%; }
.finder-results .logo-tile.mini { flex: none; width: 52px; height: 34px; border-radius: 9px; border: 2px solid var(--sand); font-size: 20px; }
.shop-link { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; }
.shop-link:hover { color: var(--orange); }
