*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--paper); font-family: var(--font); scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; overscroll-behavior-x: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ab3a2a; outline-offset: 4px; }
.is-dark :focus-visible { outline-color: var(--peach); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 17px; height: 17px; flex: none; stroke: currentColor; stroke-width: 1.85; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon.apple { fill: currentColor; stroke: none; }
.heart { width: 23px; height: 23px; fill: var(--visit-red); stroke: white; stroke-width: 2; stroke-linejoin: round; }
.glass { background: #fffaf1f2; border: 1px solid #fffc; box-shadow: 0 10px 30px #49332220, inset 0 1px 0 #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 0 18px; border: 0; border-radius: 100px; font-size: .79rem; font-weight: 800; white-space: nowrap; }
.button-coral { color: #fffaf3; background: var(--coral); box-shadow: 0 4px 14px #66201724, inset 0 1px #fff3; }
.button-coral:hover { background: var(--coral-hover); }
.replay-button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: 1px solid #7e4e3933; color: #59362a; background: #fff9; border-radius: 100px; padding: 0 11px; min-height: 35px; font-size: .73rem; font-weight: 800; white-space: nowrap; }
.replay-button:hover, .icon-button:hover { background: #fff; }
.replay-button .icon { width: 15px; height: 15px; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: var(--header-h); padding: 0 var(--edge); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #fff9edf0; border-bottom: 1px solid #77513b2e; }
.site-header.is-dark { color: #fff3e6; background: #100f17f2; border-color: #ffe1c726; }
.wordmark { display: inline-flex; justify-self: start; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 830; letter-spacing: -.045em; }
.wordmark img { border-radius: 25%; }
.header-chapter { display: grid; justify-items: center; gap: 5px; font-size: .71rem; font-weight: 800; }
.timeline { width: 104px; height: 2px; background: #aa7c6159; border-radius: 10px; overflow: hidden; }
.timeline span { display: block; width: 100%; height: 100%; background: var(--visit-red); transform: scaleX(0); transform-origin: left; will-change: transform; }
.header-cta { justify-self: end; min-height: 35px; padding: 0 12px; font-size: .72rem; }
.header-cta .icon { width: 13px; height: 13px; }

.scroll-runway { height: var(--scroll-runway); }
.cinema-stage { height: 100dvh; position: fixed; z-index: 1; inset: 0; overflow: clip; isolation: isolate; background: var(--paper); }
#world-3d-canvas, .world-fallback, .world-fallback svg, .atmosphere, .demo-scrim, #gacha-fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.world-fallback { background: linear-gradient(#f5e1ce, #c88462 52%, #546d74); }
#world-3d-canvas { visibility: hidden; }
#world-3d-canvas.has-world { visibility: visible; }
.atmosphere { opacity: 1; background: linear-gradient(180deg, #fff4e8 0, #fff1dece 19%, #ffebd188 36%, #fff0 71%); will-change: opacity; }
.demo-scrim { opacity: 0; background: radial-gradient(ellipse at 50% 44%, #fff8edee 0%, #fff3dfb9 36%, #f4e1cd4a 64%, transparent 90%); will-change: opacity; }
.cinema-stage.is-dark { color: var(--on-dark); }
.cinema-stage[data-act="3"]::before, .cinema-stage[data-act="4"]::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cinema-stage[data-act="3"]::before { background: linear-gradient(92deg, #080a15e8, #13122496 43%, #0e121b17 76%); }
.cinema-stage[data-beat="import-map"]::before { background: linear-gradient(180deg, #080913db, #0b0d196b 33%, transparent 66%); }
.cinema-stage[data-act="4"]::before { background: radial-gradient(ellipse at 50% 55%, #a85d252c, #2814113c 30%, #080708a3 68%, #070606e6); }

.beat, .badge-layout { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.beat.is-visible, .badge-layout.is-visible { visibility: visible; }
.beat.is-active > *, .badge-layout.is-active .badge-stage, .badge-layout.is-active button { pointer-events: auto; }
.beat.is-active > .map-intro, .beat.is-active > .count-stack, .beat.is-active > .friend-dock { pointer-events: auto; }
.beat { z-index: 3; }
h1, h2 { font-weight: 780; line-height: 1.02; letter-spacing: -.067em; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); color: var(--accent); font-weight: 400; font-size: 1.13em; letter-spacing: -.033em; }
.eyebrow { color: #823b2c; font-size: .7rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.is-dark .eyebrow { color: #ffad91; }
.center-copy { text-align: center; }
.center-copy h2 { font-size: clamp(40px, 4.3vw, 68px); margin: 9px 0 12px; }
.center-copy > p:last-child, .social-copy > p:nth-of-type(2), .import-landing-copy > p:nth-of-type(2) { font-size: clamp(.82rem, 1.25vw, 1.04rem); line-height: 1.55; font-weight: 580; text-wrap: pretty; }
.center-copy > p:last-child { margin-inline: auto; max-width: 560px; color: #553d32; }
.center-layout { inset: calc(var(--header-h) + 65px) var(--edge) 34px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(15px, 3dvh, 27px); }
.hero-copy, .finale-copy { position: absolute; width: min(1120px, calc(100% - var(--edge) * 2)); left: 50%; top: clamp(106px, 15dvh, 146px); translate: -50% 0; text-align: center; }
.hero-copy h1 { margin-top: 15px; font-size: clamp(50px, 6.2vw, 94px); }
.hero-lead { max-width: 560px; margin: 19px auto 0; color: #4d382e; font-size: 1rem; font-weight: 620; line-height: 1.55; text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 23px; }
.scroll-prompt { display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 0 10px; font-size: .79rem; font-weight: 810; }
.city-caption { position: absolute; left: var(--edge); bottom: 24px; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 50px; background: #fff9edd8; color: #573f31; font-size: .69rem; font-weight: 800; }
.city-caption span { width: 7px; height: 7px; border-radius: 50%; background: var(--visit-red); }

.beat-pills { position: absolute; top: calc(var(--header-h) + 14px); left: 50%; translate: -50% 0; z-index: 12; display: flex; gap: 3px; padding: 4px; border-radius: 99px; white-space: nowrap; }
.beat-pills button { border: 1px solid transparent; border-radius: 99px; background: none; padding: 0 11px; min-height: 33px; color: #644437; font-size: .70rem; font-weight: 780; display: flex; align-items: center; gap: 5px; }
.beat-pills button span { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #f1dbcf; color: #73392d; font-size: .64rem; }
.beat-pills button[aria-current="step"], .beat-pills button:hover { background: #f7ded1; border-color: #b66c523d; color: #713629; }
.beat-pills button[aria-current="step"] span { background: #a83d30; color: white; }
.is-dark .beat-pills { background: #211a21e8; border-color: #ffce9a38; }
.is-dark .beat-pills button { color: #f4dacb; }
.is-dark .beat-pills button span { color: #ffe3d0; background: #543331; }
.is-dark .beat-pills button[aria-current="step"], .is-dark .beat-pills button:hover { background: #502d2e; border-color: #ff986558; }
.is-dark .beat-pills button[aria-current="step"] span { background: #b84035; color: white; }
.chapter-rail { position: absolute; z-index: 13; right: 13px; top: 50%; translate: 0 -50%; display: grid; gap: 2px; }
.chapter-rail a { width: 22px; height: 24px; display: grid; place-items: center; }
.chapter-rail a::before { content: ""; width: 7px; height: 7px; background: #6d4840; border: 1px solid #fff9; border-radius: 50%; box-shadow: 0 1px 3px #0003; transition: scale .2s, background .2s; }
.chapter-rail a[aria-current], .chapter-rail a:hover { color: var(--coral); }
.chapter-rail a[aria-current]::before, .chapter-rail a:hover::before { background: var(--visit-red); scale: 1.45; }
.is-dark .chapter-rail a::before { background: #e6c4af; }
.is-dark .chapter-rail a[aria-current]::before { background: var(--visit-red); }

.photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(8px, 1.8vw, 25px); width: min(790px, 82vw); padding: 9px; }
.photo-slots img, .photo-flight img { width: 100%; height: clamp(200px, 27dvh, 245px); object-fit: cover; border: 5px solid #fff9eb; border-radius: 18px; box-shadow: 0 14px 39px #6c3e342f; }
.photo-slots img:first-child { rotate: -6deg; }
.photo-slots img:nth-child(2) { translate: 0 -6px; }
.photo-slots img:last-child { rotate: 6deg; }
.photo-meta { padding: 9px 15px; border-radius: 99px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.photo-flight { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.photo-flight img { position: absolute; left: 0; top: 0; }
#picker-pointer { position: absolute; z-index: 2; width: clamp(62px, 7vw, 112px); pointer-events: none; filter: drop-shadow(0 6px 10px #73271765); }
.confirmation-card { position: relative; display: grid; gap: 11px; width: min(430px, 100%); padding: 16px; border-radius: 25px; background: #fff9f1eb; }
.confirmation-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.confirmation-heading h3 { font-size: 1.02rem; font-weight: 830; letter-spacing: -.035em; }
.confirmation-heading p { color: var(--muted); font-size: .72rem; margin-top: 3px; }
.attitude-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; }
.attitude-button[aria-pressed="false"] .heart { fill: #80645d; }
.confirmation-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.confirmation-photos img { width: 100%; height: clamp(65px, 10dvh, 95px); object-fit: cover; border-radius: 9px; }
.nearby-places { display: grid; gap: 3px; font-size: .74rem; font-weight: 670; }
.nearby-places li { min-height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 8px; }
.nearby-places li span:last-child { margin-left: auto; white-space: nowrap; }
.nearby-places .picked-place { background: #ff66661a; color: var(--visit-red); }
.picked-place strong, .picked-place span { color: #a52d32; }
.save-visit { background: var(--visit-red); color: #421719; width: 100%; border-radius: 12px; }
.save-visit:hover { background: #ff8181; }

#memory-gacha, #gacha-overlay { --gacha-center: 58%; }
#memory-gacha .center-copy { position: absolute; z-index: 2; top: calc(var(--header-h) + 68px); inset-inline: var(--edge); text-shadow: 0 1px 3px #06070b, 0 0 12px #06070b; }
#memory-gacha .center-copy > p:last-child { color: #fff3e6; }
#memory-gacha h2 { color: #fffaf5; }
#memory-gacha h2 em { color: #ffbda6; }
.gacha-backdrop, #gacha-overlay::backdrop {
  background: radial-gradient(ellipse at 50% 54%, rgba(10, 12, 19, .78), rgba(4, 5, 10, .90) 76%);
  opacity: 0;
  transition: opacity .34s ease-out;
}
.gacha-backdrop { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.cinema-stage[data-beat="memory-gacha"] .gacha-backdrop, #gacha-overlay.is-visible::backdrop { opacity: 1; transition-duration: .24s; }
.gacha-playfield { position: absolute; inset: 0; pointer-events: none !important; }
.gacha-center { position: absolute; top: var(--gacha-center); left: 50%; }
.gacha-drop, .gacha-result { position: absolute; width: var(--capsule-size); height: var(--capsule-size); translate: -50% -50%; }
.gacha-drop { will-change: transform; }
.capsule-ball { position: relative; isolation: isolate; width: var(--capsule-size); height: var(--capsule-size); display: block; }
.map-capsule .capsule-ball { filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .28)); }
.ball-img, .ball-white, .reveal-color, .reveal-white { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ball-img, .reveal-color { opacity: 1; }
.ball-white, .reveal-white { filter: brightness(0) invert(1); opacity: 0; mix-blend-mode: plus-lighter; }
.gacha-floor-shadow {
  position: absolute; left: 0; top: 0; width: 100px; height: 100px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(ellipse, #000 10%, #0008 48%, #0000 73%);
  will-change: transform, opacity;
}
.capsule-rock { animation: capsule-rock 2s infinite; }
@keyframes capsule-rock {
  0%, 25%, 100% { transform: translateX(0) rotate(0); animation-timing-function: ease-in-out; }
  4.5% { transform: translateX(-3.2px) rotate(-10deg); animation-timing-function: ease-in-out; }
  10% { transform: translateX(2.6px) rotate(9deg); animation-timing-function: ease-in-out; }
  15.5% { transform: translateX(-1.5px) rotate(-5deg); animation-timing-function: ease-in-out; }
  20.5% { transform: translateX(.6px) rotate(2.5deg); animation-timing-function: ease-in-out; }
}
.gacha-result { --capsule-size: 120px; }
.reveal-art { position: absolute; inset: 0; isolation: isolate; }
.reveal-category { position: absolute; width: 200px; height: 48px; left: 50%; bottom: calc(100% - 11px); translate: -50% 0; overflow: visible; fill: var(--category-color, #5db2ff); font-size: 18px; font-weight: 800; }
.reveal-name { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; width: min(320px, calc(100vw - 32px)); color: #fff; font-size: .875rem; font-weight: 800; text-align: center; -webkit-text-stroke: 2.5px #1f1f1f; paint-order: stroke fill; }
.gacha-controls { position: absolute; z-index: 2; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; }
#memory-gacha .gacha-controls { top: calc(var(--gacha-center) + 131px); }
.gacha-secondary { color: #fff; background: #ffffff20; border: 1px solid #ffffff50; }
.gacha-secondary:hover { background: #ffffff34; }
.gacha-controls [aria-disabled="true"] { opacity: .5; cursor: default; }
html:has(#gacha-overlay[open]) { overflow: hidden; }
#gacha-overlay {
  --gacha-center: 50%;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: clip; background: transparent; color: white;
}
#gacha-overlay .gacha-playfield, #gacha-overlay .gacha-controls { opacity: 0; transition: opacity .34s ease-out; }
#gacha-overlay.is-visible .gacha-playfield, #gacha-overlay.is-visible .gacha-controls { opacity: 1; transition-duration: .24s; }
#gacha-overlay .gacha-controls { bottom: max(36px, env(safe-area-inset-bottom)); }
#gacha-close { width: 43px; padding: 0; }

.map-intro, .count-stack { position: absolute; top: calc(var(--header-h) + 18px); }
.map-intro { left: var(--edge); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; }
.map-intro .eyebrow { font-size: .59rem; }
.map-intro h2 { font-size: .93rem; letter-spacing: -.025em; margin-top: 3px; }
.count-stack { right: var(--edge); display: grid; justify-items: end; gap: 7px; }
.place-counter { display: block; min-width: 112px; padding: 8px 12px; border-radius: 15px; font-size: .75rem; font-weight: 750; }
.place-counter strong { font-size: 1.2rem; letter-spacing: -.045em; }
.place-counter small { display: block; font-size: .66rem; color: #714d3c; }
.gain { display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; white-space: nowrap; min-height: 30px; padding: 0 10px; font-size: .74rem; font-weight: 830; }
.gain-green { color: #17643d; border: 1px solid #ffffffa0; background: #e3f8e8; }
.gain-coral { color: #ffe5da; border: 1px solid #ff66667d; background: #ff666633; }

.map-overlay, #projected-pins, #projected-capsules, #import-pins { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pin-anchor, .map-capsule, .landing-pin { position: absolute; top: 0; left: 0; }
.dish-pin { pointer-events: auto; position: relative; width: var(--pin-width); height: var(--pin-height); padding: 0; display: block; border: 0; background: none; color: #382620; }
.dish-pin .dish-art { position: absolute; top: 21%; left: 50%; translate: -50% 0; width: 64%; height: 65%; object-fit: contain; filter: drop-shadow(0 4px 5px #2b241b70); }
.dish-pin .heart { position: absolute; width: 20%; height: 22%; top: 62%; right: 12%; }
.map-overlay.is-friends .heart { fill: var(--friend-blue); }
.dish-arcs { position: absolute; width: 128%; height: 127%; left: -14%; top: -9%; transform-origin: 50% 51%; rotate: var(--tilt); pointer-events: none; }
.dish-cuisine-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dish-ring-clip { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1; translate: -50% 0; overflow: hidden; clip-path: inset(0 12.5% 66.25% 12.5%); -webkit-mask-image: linear-gradient(90deg, transparent 12.5%, #000 26.75%, #000 73.25%, transparent 87.5%); mask-image: linear-gradient(90deg, transparent 12.5%, #000 26.75%, #000 73.25%, transparent 87.5%); }
.dish-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 50%; will-change: transform; }
.dish-arcs text { paint-order: stroke fill; stroke: #fffaf1; stroke-width: 2.6px; stroke-linejoin: round; font-weight: 850; }
.cuisine-text { fill: var(--pin-tone); font-size: 13.8px; }
.signature-text { fill: #472c22; font-size: 10.8px; }
.dish-title { position: absolute; inset: auto -8% 0; text-align: center; font-size: clamp(.59rem, 1vw, .76rem); line-height: 1.06; font-weight: 900; paint-order: stroke fill; -webkit-text-stroke: 3px #fffaf0; text-shadow: 0 2px 4px #4b2b2688; }
.dish-pin:hover .dish-art, .dish-pin:focus-visible .dish-art { filter: drop-shadow(0 3px 7px #fff3bc); }
.map-capsule { pointer-events: auto; display: grid; justify-items: center; gap: 4px; width: var(--pin-width); min-height: var(--pin-height); padding: 0; border: 0; background: none; }
.map-capsule .capsule-rock { animation-delay: var(--rock-delay); }
.capsule-label { border-radius: 8px; padding: 3px 5px; background: #fff7e6ea; border: 1px solid #fff8; color: #44271c; box-shadow: 0 3px 11px #34201e30; font-size: .64rem; font-weight: 860; line-height: 1.16; white-space: nowrap; }
.capsule-label small { display: block; font-size: .57rem; font-weight: 700; color: #74523f; }

.visit-memory { position: absolute; z-index: 6; left: var(--edge); bottom: 23px; display: flex; align-items: center; gap: 10px; max-width: min(430px, calc(100vw - 46px)); min-height: 58px; padding: 9px 35px 9px 9px; border-radius: 17px; pointer-events: auto; color: var(--ink); }
.visit-photos { display: flex; gap: 3px; flex: none; }
.visit-photos img { width: 37px; height: 51px; object-fit: cover; border-radius: 6px; }
.visit-photos img:only-child { width: 55px; }
.visit-content { display: grid; gap: 2px; }
#visit-meta { font-size: .64rem; color: #754d3c; font-weight: 760; }
#visit-title { font-size: .86rem; letter-spacing: -.025em; }
.visit-note { font-family: var(--serif); font-style: italic; font-size: 1rem; color: #694539; }
.close-visit { position: absolute; top: 7px; right: 7px; width: 24px; min-height: 24px; padding: 0; }
.close-visit .icon { width: 13px; height: 13px; }
.cinema-stage[data-beat="friends-world"] .visit-memory { bottom: 137px; }
.cinema-stage[data-beat="friends-cards"] .visit-memory { bottom: 15px; }

.friend-feature { display: grid; justify-items: center; gap: 16px; width: min(410px, 100%); }
.recent-friends { display: flex; align-items: end; justify-content: center; gap: 21px; }
.recent-card { display: grid; justify-items: center; position: relative; gap: 3px; padding: 0 5px; border: 0; background: none; font-size: .72rem; font-weight: 840; }
.recent-visual { position: relative; display: block; width: 68px; height: 64px; }
.recent-avatar { position: absolute; top: 0; left: 3px; width: 57px; height: 57px; border: 2px solid #fff8; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 13px #422d3255; }
.recent-dish { position: absolute; width: 39px; height: 39px; object-fit: contain; right: -5px; bottom: -1px; filter: drop-shadow(0 2px 3px #32191855); }
.recent-visual .heart { position: absolute; top: 0; right: 1px; fill: var(--friend-blue); width: 19px; height: 19px; }
.recent-time { border-radius: 99px; background: #fffaf1ef; color: #4f463e; padding: 2px 6px; box-shadow: 0 2px 5px #49332222; font-size: .61rem; }
.friend-profile { width: 100%; padding: 16px; border-radius: 25px; }
.profile-heading { display: flex; align-items: center; gap: 12px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px #4e30252b; }
.profile-heading h3 { font-size: 1.45rem; letter-spacing: -.06em; }
.profile-heading p { margin-top: 2px; font-size: .76rem; color: var(--muted); }
.profile-dishes { display: flex; gap: 9px; justify-content: space-evenly; margin: 4px 0 12px; }
.profile-dish { position: relative; width: 62px; height: 61px; display: grid; place-items: center; }
.profile-dish img { width: 100%; height: 100%; object-fit: contain; }
.profile-dish .heart { position: absolute; right: 0; bottom: 0; width: 17px; height: 17px; fill: var(--friend-blue); }
.friend-explore { color: #064583; background: #dbeeff; width: 100%; border-radius: 12px; }
.friend-explore:hover { background: #cae6ff; }
.friend-dock { position: absolute; bottom: 19px; left: 50%; translate: -50% 0; display: grid; gap: 6px; justify-items: center; }
.recent-compact { gap: 14px; }
.recent-compact .recent-name { display: none; }
.recent-compact .recent-visual { width: 42px; height: 35px; }
.recent-compact .recent-avatar { width: 34px; height: 34px; }
.recent-compact .recent-dish { width: 24px; height: 24px; right: -1px; }
.recent-compact .heart { width: 13px; height: 13px; }
.recent-compact .recent-time { padding-block: 1px; font-size: .58rem; }
.friend-switcher { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 4px; border-radius: 100px; }
.friend-switcher button { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 99px; background: none; font-size: .73rem; font-weight: 820; white-space: nowrap; }
.friend-switcher button[aria-pressed="true"], .friend-switcher button:hover { background: #cbe6ff; color: #104571; border-color: #a8c7ea; }
.friend-switcher img, .avatar-initial { width: 31px; height: 31px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: #f5c7b9; color: #5a3428; }
.friend-switcher small { font-size: .62rem; }

.visit-controls { display: grid; gap: 9px; width: min(560px, 100%); padding: 13px; border-radius: 26px; }
.visit-row, .friend-preview { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 66px; background: #fffc; border: 1px solid #af826132; border-radius: 15px; padding: 9px 11px; }
.visit-row strong, .friend-preview strong { display: block; font-size: .85rem; letter-spacing: -.028em; }
.visit-row div > span, #shared-visits { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.sharing-photos, .preview-photos { display: flex; gap: 3px; }
.sharing-photos img, .preview-photos img { width: 29px; height: 34px; object-fit: cover; border-radius: 6px; }
.privacy-switch { border: 1px solid #9b857765; border-radius: 100px; padding: 0 9px; min-height: 34px; display: flex; justify-content: center; align-items: center; gap: 5px; background: #f0eae3; color: #504137; font-size: .70rem; font-weight: 820; white-space: nowrap; min-width: 107px; transition: background .3s, color .3s, border-color .3s; }
.privacy-switch .icon { width: 14px; height: 14px; }
.privacy-switch[aria-checked="true"] { background: #d7f5e7; border-color: #8ad1b2; color: #106044; }
.friend-preview { grid-template-columns: auto 1fr auto; color: #534035; background: #f4e9de; }
.friend-preview.is-shared { background: #dff5e9; color: #15573d; border-color: #92d5b7; }
.friend-preview.is-shared #shared-visits { color: #1d5f49; }
.share-endpoint { position: absolute; z-index: 4; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 99px; color: #115d42; font-size: .67rem; font-weight: 800; pointer-events: none !important; }
.share-endpoint img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.social-layout { display: flex; align-items: center; inset: calc(var(--header-h) + 64px) var(--edge) 25px; }
.social-copy { width: min(47%, 590px); }
.social-copy h2, .import-landing-copy h2 { font-size: clamp(49px, 5.4vw, 83px); margin: 11px 0 16px; }
.social-copy h2 em, .import-landing-copy h2 em { color: #ffb297; }
.social-copy > p:nth-of-type(2), .import-landing-copy > p:nth-of-type(2) { color: #ead8ce; max-width: 435px; }
.platforms { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.platforms img { width: 43px; height: 43px; object-fit: contain; border-radius: 10px; box-shadow: 0 4px 10px #0005; }
.platforms .platform-wordmark { width: 64px; object-fit: cover; }
.extraction { min-height: 31px; width: max-content; font-size: .73rem; font-weight: 820; color: #f7dacc; background: #291f2b; border: 1px solid #d28b7455; border-radius: 50px; padding: 5px 11px; margin-top: 18px; display: flex; align-items: center; gap: 6px; }
.extraction-indicator { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--visit-red); box-shadow: 0 0 10px #ff6666; }
.extraction.is-complete .extraction-indicator { background: #74e2a6; box-shadow: 0 0 9px #7ee6af; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.dish-tags li { padding: 5px 9px; color: #ff8c88; background: #ff66661a; border: 1px solid #ff666640; border-radius: 99px; font-size: .68rem; font-weight: 800; }
.phone-scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.phone { position: absolute; top: 53%; left: 69%; width: clamp(210px, 31dvh, 322px); padding: 6px; border-radius: 11% / 5%; border: 1px solid #ffbca9; background: linear-gradient(133deg, #9a5f56, #222433 23%, #181824 71%, #63434e); box-shadow: 0 19px 48px #03030ac4, 0 0 0 2px #83575b78, 0 0 35px #ff8e5b38; opacity: 0; transform: translate(-50%, -50%) rotate(var(--phone-angle, 0deg)) scale(var(--phone-scale, 1)); transition: transform .66s var(--ease-out), opacity .4s, left .66s var(--ease-out), top .66s var(--ease-out); }
.phone img { width: 100%; height: auto; border-radius: 8% / 4%; }
.phone-scene[data-step="1"] .phone-post, .phone-scene[data-step="2"] .phone-map { opacity: 1; z-index: 1; }
.phone-scene[data-step="1"] .phone-map { --phone-scale: .64; left: 79%; }
.phone-scene[data-step="2"] .phone-post { --phone-scale: .82; --phone-angle: -13deg; left: 60%; opacity: .42; }
.phone-scene[data-step="3"] .phone-post { --phone-scale: .47; --phone-angle: -14deg; left: 74%; top: 33%; opacity: .66; }
.phone-scene[data-step="3"] .phone-map { --phone-scale: .52; --phone-angle: 10deg; left: 89%; top: 37%; opacity: .87; }
.phone-send { display: none; align-items: center; justify-content: center; gap: 7px; position: absolute; left: 50%; bottom: 8%; translate: -50% 0; white-space: nowrap; min-height: 38px; padding: 0 12px; border-radius: 100px; background: #fff3e9; border: 1px solid #fff9; color: #85362f; font-size: .75rem; font-weight: 850; animation: phone-share 2.2s infinite; }
.phone-send .icon { width: 14px; height: 14px; }
.phone-add { display: none; position: absolute; left: 64%; top: 90.5%; width: 28%; height: 6%; padding: 0; border: 0; background: transparent; border-radius: 100px; }
.phone-scene[data-step="1"] .phone-send, .phone-scene[data-step="2"] .phone-add { display: flex; pointer-events: auto; }
@keyframes phone-share { 0%, 100% { box-shadow: 0 0 0 0 #ffbab77d; } 55% { box-shadow: 0 0 0 8px #ffbab700; } }
.import-landing-copy { position: absolute; left: var(--edge); top: calc(var(--header-h) + 64px); width: min(47vw, 590px); }
.import-landing-copy h2 { font-size: clamp(38px, 4.25vw, 64px); }
.import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.is-dark .replay-button { background: #251b29; color: #ffdfd2; border-color: #e3987d78; }
.is-dark .replay-button:hover { background: #4f2d32; }
.landing-pin { display: grid; justify-items: center; width: 40px; height: 40px; border: 2px solid var(--visit-red); border-radius: 50%; background: #181124f0; box-shadow: 0 0 0 4px #ff666636, 0 0 22px #ff6666bc; pointer-events: auto; padding: 3px; }
.landing-pin img { width: 100%; height: 100%; object-fit: contain; }
.landing-pin .landing-title { position: absolute; top: calc(100% + 5px); left: 50%; translate: -50% 0; white-space: nowrap; padding: 3px 5px; border-radius: 10px; color: #f8e5d9; background: #161122eb; font-size: .62rem; font-weight: 820; }

.badge-layout { z-index: 3; inset: calc(var(--header-h) + 65px) var(--edge) 23px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.badge-layout .center-copy:not(.is-active) { display: none; }
.badge-layout .center-copy h2 { color: #fff4e3; }
.badge-layout .center-copy h2 em { color: #f4ca91; }
.badge-layout .center-copy > p:last-child { color: #eed2b2; }
.badge-layout .eyebrow { color: #e8bb77; }
.badge-actions, #badge-choices { display: flex; align-items: center; justify-content: center; gap: 6px; }
.badge-actions { gap: 12px; }
.badge-choice, .turn-button { border: 1px solid #fae1ae60; background: #251711b8; color: #ffe6c3; border-radius: 100px; min-height: 38px; padding: 0 13px; font-size: .72rem; font-weight: 800; }
.badge-choice[aria-pressed="true"] { color: #332219; background: #f0d0a2; border-color: #e9ca97; }
.badge-choice:not([aria-pressed="true"]):hover, .turn-button:hover { background: #4b3121; }
.turn-button .icon { width: 15px; height: 15px; }
.badge-note { color: #e6caa9; font-size: .69rem; font-weight: 640; text-align: center; }
.badge-display { position: relative; width: min(48vw, 47dvh, 510px); max-width: 100%; }
.badge-display::before { content: ""; position: absolute; z-index: -1; inset: -18%; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, #fa944239, #a0502922 36%, transparent 70%); pointer-events: none; }
.badge-stage { position: relative; width: 100%; aspect-ratio: 1; touch-action: pan-y; user-select: none; }
.badge-stage.is-live { cursor: grab; }
.badge-stage.is-live:active { cursor: grabbing; }
.badge-stage > img, .badge-stage canvas, .badge-back-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-stage > img { object-fit: contain; scale: .83; pointer-events: none; filter: drop-shadow(0 17px 30px #0009); }
.badge-stage canvas { visibility: hidden; touch-action: pan-y; }
.badge-stage.is-live canvas { visibility: visible; }
.badge-stage.is-live > img, .badge-stage.is-flipped > img, .badge-stage:not(.is-flipped) .badge-back-poster, .badge-stage.is-live .badge-back-poster { visibility: hidden; }
.badge-back-poster { scale: .83; filter: drop-shadow(0 17px 24px #0009); }
.badge-back-poster > div { position: absolute; inset: 0; mask: var(--badge-silhouette) center / contain no-repeat; transform: scaleX(-1); background: repeating-linear-gradient(0deg, #fce9c510 0 1px, #51301518 1px 2px, transparent 2px 3px), linear-gradient(12deg, #815a2a 0, #eac28a 33%, #ffe3b6 57%, #b4824f 82%, #ffe3b6 100%); }
.badge-back-poster p { position: absolute; left: var(--back-label-x, 50%); top: var(--back-label-y, 50%); transform: translate(-50%, -48%); display: grid; justify-items: center; gap: 4px; color: #4d321a; text-align: center; white-space: nowrap; font-size: clamp(9px, 1vw, 14px); text-shadow: 0 1px #ffe9ba; }
.badge-back-poster strong { text-transform: uppercase; }
.badge-back-poster small { border: 1px solid currentColor; border-radius: 30px; padding: 1px 4px; }
.badge-back-poster b { font-size: 1.35em; }
.badge-display figcaption { display: grid; justify-items: center; gap: 5px; color: #ffebcc; text-align: center; font-size: .8rem; font-weight: 820; margin: 0 0 8px; }
#badge-back-caption:not(.is-visible) { display: none; }
#badge-back-caption { font-size: .75rem; color: #f4c788; font-weight: 700; }
.badge-layout:not(:has(.badge-stage.is-live)) .drag-note { display: none; }

.finale-copy { display: grid; justify-items: center; top: clamp(100px, 13dvh, 150px); }
.finale-icon { width: clamp(66px, 7vw, 90px); height: auto; border-radius: 23%; transform: perspective(480px) rotateX(8deg) rotateY(-12deg) rotate(-8deg); box-shadow: 2px 3px #ad5738, 4px 5px #86442f, 6px 15px 29px #a34a3263; }
.finale-copy h2 { font-size: clamp(52px, 6.4vw, 98px); margin: 19px 0 19px; }
.privacy-promise { display: flex; justify-content: center; gap: 7px 14px; margin: 17px 0 8px; padding: 8px 11px; border-radius: 99px; }
.privacy-promise li { display: flex; align-items: center; gap: 5px; color: #49332a; white-space: nowrap; font-size: .68rem; font-weight: 780; }
.privacy-promise .icon { width: 14px; height: 14px; color: var(--accent); }
.text-button { padding: 3px 0; border: 0; background: transparent; color: #743126; font-size: .73rem; font-weight: 810; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { position: absolute; bottom: 0; inset-inline: 0; padding: 12px 8px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #77513b3a; background: #fff4e7f2; display: flex; justify-content: center; align-items: center; gap: 17px; white-space: nowrap; color: #483328; font-size: .67rem; font-weight: 690; }
.support-email { white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .text-button { font-size: inherit; }

#privacy-dialog { width: min(640px, calc(100vw - 28px)); max-height: min(83dvh, 730px); padding: 32px; border: 1px solid #b28b74; border-radius: 25px; color: var(--ink); background: #fff8ee; overflow: auto; box-shadow: 0 20px 90px #1f11117a; }
#privacy-dialog::backdrop { background: #20120ebd; backdrop-filter: blur(6px); }
#privacy-dialog .dialogue-close { position: absolute; top: 12px; right: 12px; width: 35px; padding: 0; }
#privacy-dialog h2 { margin: 10px 0 14px; font-size: clamp(32px, 5vw, 55px); }
#privacy-dialog h3 { margin: 17px 0 4px; font-size: .93rem; }
#privacy-dialog p:not(.eyebrow) { color: #593e33; font-size: .87rem; line-height: 1.58; }
#privacy-dialog a { color: var(--accent); text-decoration: underline; }

@media (max-width: 900px) {
  .map-intro, .count-stack { top: calc(var(--header-h) + 65px); }
  .import-landing-copy { top: calc(var(--header-h) + 71px); }
}
@media (max-width: 760px) {
  :root { --header-h: 54px; --edge: 23px; }
  .site-header { padding-inline: 12px; }
  .wordmark { gap: 5px; font-size: .87rem; }
  .wordmark img { width: 25px; height: 25px; }
  .header-chapter { font-size: .62rem; }
  .timeline { width: 70px; }
  .header-cta { min-height: 30px; padding-inline: 8px; font-size: .62rem; }
  .header-cta .icon { width: 11px; height: 11px; }
  .chapter-rail { right: 0; }
  .chapter-rail a { width: 20px; height: 22px; }
  .chapter-rail a::before { width: 6px; height: 6px; }
  .atmosphere { background: linear-gradient(180deg, #fff3e7 0, #fff0deef 22%, #fff0de9c 46%, transparent 82%); }
  .demo-scrim { background: radial-gradient(ellipse at 50% 42%, #fff7e9ef 0%, #fff4e0bc 40%, #f4decb51 76%, transparent 97%); }
  .beat-pills { top: calc(var(--header-h) + 10px); padding: 3px; gap: 1px; }
  .beat-pills button { min-height: 30px; padding-inline: 6px; gap: 4px; font-size: .62rem; }
  .beat-pills button span { width: 14px; height: 14px; font-size: .57rem; }
  .eyebrow { font-size: .58rem; letter-spacing: .10em; }
  .hero-copy, .finale-copy { top: clamp(92px, 15dvh, 122px); }
  .hero-copy h1 { font-size: clamp(39px, 10.9vw, 62px); }
  .hero-copy h1 em { display: inline-block; margin-top: 4px; }
  .hero-lead { font-size: .84rem; margin-top: 14px; }
  .hero-actions { gap: 3px; flex-wrap: wrap; margin-top: 16px; }
  .hero-actions .button { min-height: 39px; font-size: .72rem; padding-inline: 11px; }
  .scroll-prompt { min-height: 36px; font-size: .68rem; }
  .city-caption { bottom: 16px; }
  .center-layout { inset: calc(var(--header-h) + 59px) var(--edge) 30px; gap: 17px; }
  .center-copy h2 { font-size: clamp(32px, 9.3vw, 54px); margin: 7px 0 8px; }
  .center-copy > p:last-child, .social-copy > p:nth-of-type(2), .import-landing-copy > p:nth-of-type(2) { font-size: .79rem; }
  .photo-slots { width: 100%; gap: 6px; padding: 5px; }
  .photo-slots img, .photo-flight img { height: clamp(105px, 22dvh, 185px); border-width: 3px; border-radius: 11px; }
  .photo-meta { font-size: .61rem; padding: 7px 9px; }
  .confirmation-card { padding: 12px; border-radius: 20px; gap: 8px; }
  .confirmation-heading h3 { font-size: .93rem; }
  .confirmation-photos img { height: clamp(57px, 9dvh, 81px); }
  .save-visit { min-height: 38px; }
  #memory-gacha { --gacha-center: 63.5%; }
  #memory-gacha .center-copy { top: calc(var(--header-h) + 60px); }
  #memory-gacha .gacha-controls { top: calc(var(--gacha-center) + 117px); }
  .map-intro { left: 13px; max-width: calc(100vw - 37px); gap: 5px; padding: 7px 8px; border-radius: 12px; }
  .map-intro .eyebrow { font-size: .53rem; }
  .map-intro h2 { font-size: .74rem; }
  .map-intro .replay-button { padding-inline: 5px; min-height: 30px; font-size: .61rem; }
  .map-intro .replay-button .icon { width: 12px; height: 12px; }
  .count-stack { top: calc(var(--header-h) + 119px); right: 14px; }
  .place-counter { min-width: 83px; padding: 5px 7px; font-size: .64rem; }
  .place-counter strong { font-size: 1rem; }
  .place-counter small, .capsule-label { font-size: .54rem; }
  .capsule-label small { font-size: .50rem; }
  .gain { font-size: .64rem; min-height: 26px; }
  .visit-memory { left: 12px; bottom: 12px; padding: 6px 27px 6px 6px; gap: 6px; }
  .visit-photos img { width: 28px; height: 39px; }
  .visit-photos img:only-child { width: 43px; }
  #visit-title { font-size: .74rem; }
  #visit-meta { font-size: .57rem; }
  .visit-note { font-size: .88rem; }
  .close-visit { top: 5px; right: 5px; min-height: 21px; width: 21px; }
  .recent-friends { gap: 17px; }
  .friend-profile { padding: 11px; border-radius: 21px; }
  .friend-feature { gap: 12px; }
  .friend-switcher button { gap: 4px; padding-right: 6px; font-size: .65rem; }
  .friend-switcher img, .avatar-initial { width: 27px; height: 27px; }
  .friend-switcher small { font-size: .55rem; }
  .friend-dock { bottom: 12px; }
  .cinema-stage[data-beat="friends-world"] .visit-memory { bottom: 119px; }
  .visit-controls { padding: 7px; border-radius: 19px; gap: 5px; }
  .visit-row, .friend-preview { min-height: 55px; padding: 7px; gap: 6px; border-radius: 12px; }
  .visit-row strong, .friend-preview strong { font-size: .72rem; }
  .visit-row div > span, #shared-visits { font-size: .63rem; }
  .sharing-photos { gap: 2px; }
  .sharing-photos img { width: 16px; height: 27px; border-radius: 4px; }
  .privacy-switch { font-size: .61rem; min-width: 83px; min-height: 32px; padding-inline: 5px; gap: 4px; }
  .privacy-switch .icon { width: 12px; height: 12px; }
  .preview-photos img { width: 23px; height: 29px; }
  .cinema-stage[data-act="3"]::before { background: linear-gradient(180deg, #0b0c16f5, #111122c9 30%, #16172322 73%); }
  .cinema-stage[data-beat="import-map"]::before { background: linear-gradient(180deg, #0b0c17e8, #0d10237e 33%, transparent 65%); }
  .social-layout { align-items: start; inset: calc(var(--header-h) + 64px) var(--edge) 12px; }
  .social-copy { width: 100%; text-align: center; }
  .social-copy h2, .import-landing-copy h2 { font-size: clamp(31px, 9.4vw, 49px); margin: 7px 0 8px; }
  .platforms { justify-content: center; gap: 7px; margin-top: 10px; }
  .platforms img { width: 26px; height: 26px; border-radius: 6px; }
  .platforms .platform-wordmark { width: 39px; }
  .extraction { min-height: 24px; padding: 3px 8px; margin: 8px auto 0; font-size: .61rem; }
  .dish-tags { justify-content: center; gap: 3px; margin-top: 6px; }
  .dish-tags li { font-size: .56rem; padding: 3px 5px; }
  .phone { width: min(57vw, calc((100dvh - 358px) * .454)); padding: 4px; top: auto; left: 50%; bottom: 23px; transform: translateX(-50%) rotate(var(--phone-angle, 0deg)) scale(var(--phone-scale, 1)); transform-origin: 50% 100%; transition: transform .66s var(--ease-out), opacity .4s, left .66s var(--ease-out), bottom .66s var(--ease-out); }
  .phone-scene[data-step="1"] .phone-map { left: 70%; }
  .phone-scene[data-step="2"] .phone-post { left: 34%; opacity: .35; }
  .phone-scene[data-step="3"] .phone-post { left: 53%; top: auto; bottom: 32%; --phone-scale: .38; --phone-angle: -8deg; }
  .phone-scene[data-step="3"] .phone-map { left: 79%; top: auto; bottom: 29%; --phone-scale: .40; --phone-angle: 6deg; }
  .import-landing-copy { left: var(--edge); right: var(--edge); width: auto; top: calc(var(--header-h) + 63px); text-align: center; }
  .import-actions { justify-content: center; margin-top: 9px; }
  .import-actions .replay-button { min-height: 30px; font-size: .64rem; }
  .landing-pin { width: 32px; height: 32px; }
  .landing-pin .landing-title { font-size: .49rem; }
  .badge-layout { inset: calc(var(--header-h) + 63px) var(--edge) 25px; }
  .badge-display { width: min(100%, 38dvh, 420px); }
  .badge-display figcaption { font-size: .73rem; }
  .badge-choice, .turn-button { min-height: 34px; font-size: .66rem; }
  .finale-copy h2 { font-size: clamp(45px, 12vw, 68px); margin-block: 16px; }
  .privacy-promise { padding: 6px; gap: 6px; }
  .privacy-promise li { gap: 2px; font-size: .55rem; }
  .privacy-promise .icon { width: 11px; height: 11px; }
  .site-footer { gap: clamp(4px, 1.5vw, 7px); padding-inline: 4px; font-size: clamp(.47rem, 2.14vw, .64rem); }
}
@media (max-height: 740px) {
  .center-layout { gap: 10px; }
  .badge-layout { gap: 5px; }
  .badge-display { width: min(100%, 43dvh, 420px); }
  .friend-feature { gap: 7px; }
  .recent-large .recent-visual { transform: scale(.83); margin-top: -9px; }
  .social-copy h2 { font-size: clamp(27px, 7.5vw, 56px); }
  .phone { bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

.cinema-stage[data-beat="friends-share"] .demo-scrim { mask-image: linear-gradient(#000 59%, transparent 88%); }
#friends-share { padding-bottom: min(13dvh, 112px); }
#import-post h2 { text-wrap: initial; }
.dish-tags li { border-radius: 8px; }
#places-number { display: inline-block; }
.hero-copy h1 { text-wrap: initial; }
@media (min-width: 1050px) {
  .hero-copy h1 { font-size: clamp(60px, 5.5vw, 86px); }
  .hero-copy h1 em { white-space: nowrap; }
}
@media (max-width: 760px) {
  #friends-share { padding-bottom: 9dvh; }
}
