:root {
  --pink: #f34fa2;
  --orange: #ff6a13;
  --aqua: #bfeeed;
  --ink: #171719;
  --paper: #f7f1e7;
  --white: #fffdf8;
  --line: rgba(23, 23, 25, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; min-height: 100%; background: var(--pink); color: var(--ink); }

body {
  min-width: 320px;
  overflow: hidden;
  font-family: var(--mono);
  text-rendering: geometricPrecision;
  overscroll-behavior: none;
}

.opening-splash { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; width: 100%; height: 100%; padding: 6vh 7vw; border: 0; background: var(--pink); color: var(--ink); font-family: inherit; cursor: pointer; transform-origin: 50% 5%; transition: transform 900ms var(--ease-out), opacity 700ms ease, clip-path 900ms var(--ease-out); }
.opening-splash[hidden] { display: none; }
.opening-splash::before { content: ""; position: absolute; inset: 18px; border: 2px solid var(--ink); pointer-events: none; }
.opening-brands { position: absolute; left: 7vw; top: 7vh; display: flex; align-items: center; gap: 24px; }
.opening-brands img:first-child { width: clamp(88px, 8vw, 150px); }
.opening-brands img:last-child { width: clamp(104px, 9vw, 170px); mix-blend-mode: multiply; }
.opening-brands span { width: 1px; height: 72px; background: var(--ink); opacity: .5; }
.opening-title { text-align: center; animation: opening-title-in 800ms var(--ease-out) both; }
.opening-title p { margin: 0 0 18px; font-size: clamp(12px, 1vw, 18px); font-weight: 700; letter-spacing: .18em; }
.opening-title h1 { margin: 0; font-size: clamp(82px, 11vw, 210px); line-height: .82; letter-spacing: -.1em; }
.opening-title small { display: inline-block; margin-top: 36px; padding: 9px 13px; border: 2px solid var(--ink); background: var(--orange); font-size: clamp(10px, .8vw, 15px); font-weight: 700; letter-spacing: .1em; }
.opening-splash.is-leaving { clip-path: inset(0 0 89% 0); transform: scale(.96); opacity: 0; pointer-events: none; }
@keyframes opening-title-in { from { opacity: 0; transform: translateY(35px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }

button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: clamp(92px, 10vh, 132px) minmax(0, 1fr); overflow: hidden; }

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(350px, 1.5fr) minmax(250px, .8fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 2.6vw, 54px);
  background: var(--pink);
  border-bottom: 2px solid var(--ink);
}

.brand-lockup { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: block; object-fit: contain; }
.brand--magnum { width: clamp(55px, 4.2vw, 78px); height: clamp(55px, 4.2vw, 78px); }
.brand--mpf { width: clamp(62px, 5.4vw, 98px); height: auto; mix-blend-mode: multiply; }
.brand-divider { width: 1px; height: 52%; background: var(--ink); opacity: .45; }

.headline { text-align: center; line-height: 1; }
.eyebrow, .step { margin: 0 0 7px; font-size: clamp(10px, .72vw, 14px); font-weight: 700; letter-spacing: .13em; }
.headline h1 { margin: 0; font-size: clamp(27px, 2.6vw, 54px); letter-spacing: -.075em; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.icon-button, .reset-button, .zoom-controls button, .close-button {
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 700;
}
.icon-button { width: 50px; height: 50px; display: grid; place-items: center; }
.icon-button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reset-button { height: 50px; padding: 0 17px; display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .06em; }
.reset-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-button:hover, .reset-button:hover { background: var(--ink); color: var(--white); }

.experience { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 27vw, 520px); }

.map-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto 1fr; background: var(--aqua); }
.map-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(19px, 2.2vh, 34px) clamp(22px, 2.6vw, 50px) 14px; }
.map-intro h2 { margin: 0; font-size: clamp(26px, 2.4vw, 50px); line-height: .95; letter-spacing: -.075em; }
.gesture-hint { margin: 0 0 5px; flex: none; font-size: clamp(10px, .72vw, 14px); font-weight: 700; }
.gesture-icon { display: inline-block; animation: hint-drag 2.1s var(--ease-out) infinite; }

.map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  outline: none;
  touch-action: none;
  cursor: grab;
  user-select: none;
  background: var(--aqua);
  border-top: 1px solid rgba(23,23,25,.25);
}
.map-viewport:active { cursor: grabbing; }
.map-viewport:focus-visible { box-shadow: inset 0 0 0 5px var(--orange); }
.map-grid {
  position: absolute; inset: 0; opacity: .11; pointer-events: none;
  background-image: linear-gradient(to right, rgba(23,23,25,.22) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,23,25,.22) 1px, transparent 1px);
  background-size: 7.5% 15%;
}

.map-canvas {
  position: absolute;
  left: 3%; top: 5%; width: 94%; aspect-ratio: 2048 / 1038.75;
  transform-origin: 0 0;
  will-change: transform;
}
.map-canvas.is-flying { transition: transform 650ms var(--ease-out); }
.world-map { display: block; width: 100%; height: 100%; object-fit: contain; overflow: visible; }
.continents { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.map-lines { fill: none; stroke: var(--ink); opacity: .14; stroke-width: 1.2; stroke-dasharray: 5 8; vector-effect: non-scaling-stroke; }
.pins-layer { position: absolute; inset: 0; }

.map-pin {
  position: absolute;
  width: 54px; height: 66px;
  padding: 0;
  transform: translate(-50%, -76.5%) scale(var(--pin-scale, 1));
  transform-origin: 50% 87%;
  background: transparent;
  border: 0;
  cursor: pointer;
  touch-action: none;
  z-index: 2;
}
.map-pin::before {
  content: "";
  position: absolute;
  left: 11px; top: 7px;
  width: 30px; height: 30px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  background: var(--orange);
  transform: rotate(-45deg);
  box-shadow: 3px 4px 0 rgba(23,23,25,.17);
  transition: transform 220ms var(--ease-out), background 220ms ease;
}
.map-pin::after {
  content: "";
  position: absolute; left: 21px; top: 17px; width: 10px; height: 10px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
  transition: transform 220ms var(--ease-out);
}
.map-pin:hover::before, .map-pin:focus-visible::before, .map-pin.is-active::before { background: var(--pink); transform: rotate(-45deg) scale(1.28); }
.map-pin:hover::after, .map-pin:focus-visible::after, .map-pin.is-active::after { transform: scale(1.2); }
.map-pin:focus-visible { outline: 3px dashed var(--ink); outline-offset: 2px; }
.map-pin.is-active { z-index: 5; }
.map-pin.is-active .pin-label { opacity: 1; transform: translate(-50%, 0); }
.pin-label {
  position: absolute; left: 50%; top: 49px; transform: translate(-50%, -5px); opacity: 0;
  white-space: nowrap; padding: 5px 8px 4px; background: var(--ink); color: var(--white);
  font-size: 10px; line-height: 1; font-weight: 700; pointer-events: none; transition: 180ms ease;
}

.zoom-controls { position: absolute; right: 22px; bottom: 25px; display: grid; border: 1.5px solid var(--ink); background: var(--paper); }
.zoom-controls button { width: 56px; height: 54px; border: 0; font-size: 28px; line-height: 1; }
.zoom-controls button + button { border-top: 1.5px solid var(--ink); }
.zoom-controls button:hover { background: var(--orange); }
.map-status { position: absolute; left: 24px; bottom: 24px; padding: 9px 12px; background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .07em; }

.destination-panel { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 52%) minmax(0, 48%); background: var(--paper); overflow: hidden; }
.destination-photo-wrap { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--orange); }
.destination-photo { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: opacity 220ms ease, transform 760ms var(--ease-out); }
.destination-photo.is-changing { opacity: 0; transform: scale(1.12); }
.photo-flash { position: absolute; inset: 0; background: var(--white); opacity: 0; pointer-events: none; }
.photo-flash.flash { animation: camera-flash 520ms ease; }
.photo-index { position: absolute; top: 15px; right: 16px; background: var(--pink); border: 1.5px solid var(--ink); padding: 7px 10px 5px; font-size: 11px; font-weight: 700; }

.ticket { position: relative; padding: 22px clamp(22px, 2vw, 38px) 26px; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: -7px 9px 18px rgba(23,23,25,.14); }
.ticket::before { content: ""; position: absolute; top: -15px; left: -15px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--aqua); }
.ticket-row { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.ticket h3 { margin: 14px 0 3px; font-size: clamp(33px, 3vw, 60px); line-height: .88; letter-spacing: -.08em; overflow-wrap: anywhere; }
.ticket > p { margin: 0; font-size: clamp(10px, .72vw, 13px); font-weight: 700; }
.ticket-rule { margin: 17px 0 14px; border-top: 2px dashed var(--ink); }
.ticket .ticket-copy { max-width: 39ch; line-height: 1.35; }
.ticket-phrase { font-size: clamp(17px, 1.28vw, 24px) !important; line-height: 1.2 !important; letter-spacing: -.035em; }
.ticket-tips { display: grid; gap: 0; margin-top: 20px; border: 2px solid var(--ink); background: var(--paper); }
.ticket-tips-title { padding: 7px 10px; background: var(--pink); border-bottom: 2px solid var(--ink); font-size: clamp(9px, .62vw, 12px); letter-spacing: .12em; }
.ticket-tips span { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: clamp(9px, .66vw, 12px); font-weight: 700; }
.ticket-tips span:last-child { border-bottom: 0; }
.ticket-tips span b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); font-size: 10px; }

.primary-button, .secondary-button {
  min-height: 58px; border: 2px solid var(--ink); padding: 0 19px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 19px; background: var(--pink); box-shadow: 6px 6px 0 var(--ink); }
.primary-button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.primary-button:active { transform: translate(6px, 6px); box-shadow: none; }
.secondary-button { display: grid; place-items: center; background: var(--paper); text-align: center; }
.secondary-button:hover { background: var(--aqua); }

.quick-list { min-height: 0; overflow: auto; padding: 13px 22px 24px; scrollbar-width: thin; }
.quick-item { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 39px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; }
.quick-item span:last-child { opacity: .5; }
.quick-item:hover, .quick-item.is-active { color: var(--pink); }

.booth { width: 100vw; max-width: none; height: 100dvh; max-height: none; padding: 0; border: 0; background: var(--ink); color: var(--white); }
.booth::backdrop { background: var(--ink); }
.booth[open] { animation: dialog-in 520ms var(--ease-out); }
.booth-scene { position: relative; width: 100%; height: 100%; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.booth-background { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: saturate(.82); animation: scenic-in 1.1s var(--ease-out) both; }
.booth-tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.1) 50%, rgba(0,0,0,.5)); }
.booth-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; padding: clamp(25px, 3vw, 52px); }
.booth-header h2 { margin: 0; font-size: clamp(46px, 6vw, 110px); line-height: .82; letter-spacing: -.09em; text-shadow: 0 3px 20px rgba(0,0,0,.25); }
.close-button { min-height: 52px; padding: 0 20px; border-color: var(--white); color: var(--white); }
.close-button:hover { background: var(--white); color: var(--ink); }
.booth-content { position: relative; z-index: 2; min-height: 0; display: grid; grid-template-columns: minmax(420px, 1.25fr) minmax(290px, .55fr); align-items: center; gap: clamp(30px, 6vw, 120px); padding: 0 clamp(35px, 8vw, 150px) clamp(35px, 6vh, 90px); }
.camera-ticket { width: min(100%, 760px); justify-self: end; background: var(--paper); color: var(--ink); padding: clamp(16px, 1.5vw, 26px); box-shadow: 18px 22px 0 var(--pink); transform: rotate(-1.1deg); }
.camera-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--aqua); border: 2px solid var(--ink); }
.camera-frame video, .camera-frame > img { width: 100%; height: 100%; object-fit: cover; display: none; transform: scaleX(-1); }
.camera-frame > img { transform: none; }
.camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.camera-placeholder strong { font-size: clamp(18px, 1.6vw, 30px); }
.camera-placeholder small { font-weight: 700; }
.camera-dot { width: 76px; height: 76px; border: 3px solid var(--ink); border-radius: 50%; position: relative; }
.camera-dot::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--pink); }
.camera-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; font-size: clamp(11px, .9vw, 16px); font-weight: 700; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(90px, 14vw, 240px); font-weight: 700; color: var(--white); text-shadow: 6px 6px 0 var(--ink); pointer-events: none; }
.booth-controls { display: grid; gap: 13px; align-content: center; }
.booth-instruction { font-size: clamp(18px, 1.55vw, 29px); line-height: 1.15; font-weight: 700; max-width: 22ch; }
.booth-controls .secondary-button { width: 100%; }
.upload-button { cursor: pointer; }
.shutter-button { justify-self: center; width: 102px; height: 102px; margin: 12px 0; border-radius: 50%; border: 4px solid var(--white); padding: 8px; background: transparent; cursor: pointer; }
.shutter-button span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--orange); transition: transform 160ms ease; }
.shutter-button:not(:disabled):hover span { transform: scale(.88); }
.shutter-button:disabled { opacity: .35; cursor: not-allowed; }
.privacy-note { margin: 0; font-size: 10px; line-height: 1.4; opacity: .72; }
.result-view { position: absolute; z-index: 5; inset: 0; background: rgba(23,23,25,.92); display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: center; gap: 40px; padding: 5vh 6vw; }
.result-view[hidden] { display: none; }
.result-view canvas { display: block; max-width: 100%; max-height: 84vh; justify-self: center; box-shadow: 16px 18px 0 var(--pink); }
.result-actions { display: grid; gap: 16px; }
.result-actions .primary-button { margin: 0; }

.question-view {
  position: relative; z-index: 3; align-self: center; justify-self: center; width: min(900px, 84vw);
  padding: clamp(32px, 4.5vw, 72px); background: var(--paper); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 20px 22px 0 var(--pink); text-align: center;
}
.question-view::before, .question-view::after { content: ""; position: absolute; top: 50%; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; background: rgba(0,0,0,.72); transform: translateY(-50%); }
.question-view::before { left: -26px; } .question-view::after { right: -26px; }
.question-kicker { margin: 0 0 18px; font-weight: 700; letter-spacing: .12em; }
.question-view h2 { margin: 0 auto 22px; max-width: 13ch; font-size: clamp(45px, 5.2vw, 96px); line-height: .9; letter-spacing: -.085em; }
.question-view > p:not(.question-kicker) { max-width: 60ch; margin: 0 auto; font-size: clamp(13px, 1vw, 18px); line-height: 1.45; font-weight: 700; }
.question-view small { display: block; margin-top: 20px; font-weight: 700; }
.question-button { max-width: 540px; margin: 30px auto 0; }

.inspiration-view { position: relative; z-index: 3; min-height: 0; align-self: stretch; display: grid; align-items: end; padding: clamp(35px, 6vw, 100px); }
.inspiration-view[hidden] { display: none; }
.inspiration-copy { max-width: 850px; padding: 28px 34px; background: var(--pink); color: var(--ink); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--orange); }
.inspiration-copy p { margin: 0 0 12px; font-size: clamp(32px, 4vw, 72px); line-height: .95; font-weight: 700; letter-spacing: -.07em; }
.inspiration-copy span { font-size: clamp(12px, .9vw, 17px); font-weight: 700; }
.timer-track { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: rgba(255,255,255,.35); }
.timer-track span { display: block; width: 100%; height: 100%; background: var(--orange); transform-origin: left; }

.end-view { position: absolute; z-index: 8; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 7vw; background: var(--pink); color: var(--ink); }
.end-view[hidden] { display: none; }
.end-view h2 { margin: 10px 0 25px; font-size: clamp(76px, 10vw, 180px); line-height: .72; letter-spacing: -.11em; }
.end-view > p:not(.step) { max-width: 45ch; font-weight: 700; line-height: 1.45; }
.end-view .primary-button { width: min(520px, 80vw); }

.idle-tip { position: fixed; z-index: 50; left: 38px; bottom: clamp(150px, 19vh, 210px); width: min(430px, calc(100vw - 76px)); padding: 19px 46px 19px 22px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--orange); transform: translateY(280%); opacity: 0; transition: 420ms var(--ease-out); }
.idle-tip.is-visible { transform: translateY(0); opacity: 1; }
.idle-tip span { display: block; margin-bottom: 6px; color: var(--pink); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.idle-tip strong { font-size: 13px; line-height: 1.35; }
.idle-tip button { position: absolute; top: 8px; right: 9px; width: 30px; height: 30px; border: 0; background: transparent; font-size: 25px; cursor: pointer; }

.phone-experience { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--pink); }
.instruction-background { position: absolute; z-index: 0; inset: -3%; width: 106%; height: 106%; object-fit: cover; filter: blur(6px) saturate(.9); transform: scale(1.04); }
.phone-close { position: absolute; z-index: 20; top: 30px; right: 34px; border-color: var(--ink); color: var(--ink); background: var(--paper); }
.phone-close:hover { background: var(--ink); color: var(--white); }
.phone-instructions { position: absolute; z-index: 1; inset: 0; display: grid; align-content: center; justify-items: center; padding: clamp(38px, 5vw, 90px); text-align: center; background: rgba(191,238,237,.66); color: var(--ink); }
.phone-instructions[hidden] { display: none; }
.phone-instructions h2 { max-width: 17ch; margin: 8px 0 18px; padding: 0 22px; font-size: clamp(48px, 5.8vw, 108px); line-height: .86; letter-spacing: -.09em; }
.phone-lead { max-width: 58ch; margin: 0; padding: 14px 22px; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); font-size: clamp(17px, 1.35vw, 25px); line-height: 1.34; font-weight: 700; }
.phone-instructions ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: min(1240px, 92vw); margin: 25px 0 5px; padding: 0; list-style: none; }
.phone-instructions li { min-height: 112px; display: grid; grid-template-columns: 65px 1fr; align-items: center; gap: 12px; padding: 18px; border: 3px solid var(--ink); background: var(--paper); text-align: left; font-size: clamp(14px, 1vw, 19px); font-weight: 700; }
.phone-instructions li strong { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--orange); font-size: 27px; }
.phone-instructions li:nth-child(2) strong { background: var(--pink); }
.phone-instructions li:nth-child(3) strong { background: var(--orange); }
.phone-start { width: min(540px, 86vw); }
.phone-start { background: var(--orange); }
.wait-note { margin: 19px 0 0; padding: 9px 13px; border: 2px solid var(--ink); background: var(--pink); font-size: clamp(11px, .8vw, 15px); font-weight: 700; }
.instruction-logos { position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.instruction-logos img { width: clamp(62px, 5vw, 96px); max-height: 82px; object-fit: contain; filter: none; }
.instruction-logos img:last-child { width: clamp(72px, 6vw, 112px); }
.phone-scene { position: absolute; inset: 0; background: var(--ink); }
.phone-scene[hidden] { display: none; }
.phone-scene > img { width: 100%; height: 100%; display: block; object-fit: cover; animation: scenic-in 900ms var(--ease-out) both; }
.scene-countdown { position: absolute; right: 18px; top: 18px; display: flex; align-items: baseline; gap: 3px; padding: 5px 8px; background: rgba(23,23,25,.58); color: var(--white); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.scene-countdown strong { font-size: 18px; }
.scene-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(255,255,255,.32); }
.scene-progress span { display: block; width: 100%; height: 100%; background: var(--pink); transform-origin: left; }
.phone-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 7vw; text-align: center; background: var(--orange); }
.phone-end[hidden] { display: none; }
.phone-end h2 { margin: 15px 0 25px; font-size: clamp(72px, 9vw, 170px); line-height: .77; letter-spacing: -.1em; }
.phone-end > p:not(.step) { font-size: clamp(15px, 1.2vw, 22px); font-weight: 700; }
.phone-end .primary-button { width: min(580px, 86vw); }
.countdown-popup { position: absolute; z-index: 18; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 8vw; background: var(--orange); color: var(--ink); text-align: center; }
.countdown-popup[hidden] { display: none; }
.countdown-popup span { padding: 7px 10px; background: var(--pink); color: var(--ink); font-size: clamp(13px, 1vw, 18px); font-weight: 700; letter-spacing: .14em; }
.countdown-popup strong { max-width: 17ch; font-size: clamp(48px, 6vw, 112px); line-height: .9; letter-spacing: -.08em; }
.countdown-popup small { padding: 9px 13px; background: var(--ink); color: var(--white); font-size: clamp(11px, .8vw, 15px); font-weight: 700; }
.countdown-popup > b { position: absolute; top: 24px; right: 28px; min-width: 44px; padding: 6px 9px; background: rgba(23,23,25,.75); color: var(--white); font-size: 24px; }

.scenario-prompt { position: fixed; z-index: 60; left: 50%; top: 50%; width: min(540px, calc(100vw - 48px)); padding: 20px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--orange); transform: translate(-50%, -50%); animation: popup-center-in 520ms var(--ease-out); }
.scenario-prompt[hidden] { display: none; }
.scenario-prompt-timer { position: absolute; left: 10px; top: 8px; padding: 3px 5px; background: var(--ink); color: var(--white); font-size: 9px; letter-spacing: .08em; }
.scenario-destination { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 8px 0 10px; }
.scenario-destination span { font-size: 38px; line-height: 1; }
.scenario-destination strong { font-size: clamp(20px, 1.8vw, 30px); letter-spacing: -.04em; text-align: center; }
.scenario-prompt > p { margin: 0 0 13px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.scenario-prompt button { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 2px solid var(--ink); background: var(--orange); box-shadow: 6px 6px 0 var(--ink); font-weight: 700; cursor: pointer; }
.scenario-prompt button:hover { background: var(--pink); }

.global-prompt-backdrop, .dialog-prompt-backdrop { position: fixed; inset: 0; background: rgba(23,23,25,.34); backdrop-filter: blur(6px); animation: backdrop-in 420ms ease both; }
.global-prompt-backdrop { z-index: 55; }
.dialog-prompt-backdrop { z-index: 25; }
.global-prompt-backdrop[hidden], .dialog-prompt-backdrop[hidden] { display: none; }

.ready-prompt { position: absolute; z-index: 30; left: 50%; top: 50%; width: min(560px, 86vw); padding: 16px; transform: translate(-50%, -50%); border: 2px solid var(--ink); background: var(--orange); box-shadow: 10px 10px 0 var(--ink); animation: popup-center-in 520ms var(--ease-out); color: var(--ink); }
.ready-prompt[hidden] { display: none; }
.ready-prompt small { display: block; margin-bottom: 9px; text-align: center; font-weight: 700; }
.ready-prompt .primary-button { margin: 0; }

.restart-prompt { position: absolute; z-index: 30; left: 50%; top: 50%; width: min(590px, 86vw); padding: 16px; transform: translate(-50%, -50%); border: 2px solid var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); animation: popup-center-in 520ms var(--ease-out); }
.restart-prompt[hidden] { display: none; }
.restart-prompt small { display: block; margin-bottom: 10px; font-weight: 700; }
.restart-prompt .primary-button { margin: 0; }

@keyframes popup-center-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.88); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes popup-rise { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auto-press { 0%, 100% { transform: translate(0); box-shadow: 6px 6px 0 var(--ink); } 45%, 65% { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); } }
.is-auto-clicking { animation: auto-press 560ms ease both !important; }
#enterButton { background: var(--orange); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 13px 18px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; transition: 260ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes hint-drag { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(5px); } }
@keyframes camera-flash { 0% { opacity: 0; } 14% { opacity: .95; } 100% { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes scenic-in { from { transform: scale(1.14); filter: saturate(0); } to { transform: scale(1); filter: saturate(.82); } }

@media (max-width: 1050px), (max-height: 720px) {
  .topbar { grid-template-columns: 180px 1fr 180px; }
  .reset-button { font-size: 0; width: 50px; padding: 0; justify-content: center; }
  .experience { grid-template-columns: minmax(0, 1fr) 310px; }
  .destination-panel { grid-template-rows: 32% auto 1fr; }
  .ticket { padding: 17px 22px 20px; }
  .quick-list { padding-top: 8px; }
  .booth-content { padding-inline: 5vw; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100dvh; display: block; }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; min-height: 86px; padding: 10px 15px; }
  .headline { text-align: right; }
  .headline .eyebrow { display: none; }
  .headline h1 { font-size: 25px; }
  .brand-divider, .topbar-actions { display: none; }
  .brand--magnum { width: 52px; height: 52px; }
  .brand--mpf { width: 64px; }
  .experience { display: block; }
  .map-panel { height: 70dvh; border-right: 0; border-bottom: 2px solid var(--ink); }
  .map-intro { padding: 19px 18px 12px; }
  .gesture-hint { display: none; }
  .destination-panel { display: block; }
  .destination-photo-wrap { height: 48vh; }
  .quick-list { max-height: 280px; }
  .booth-content { grid-template-columns: 1fr; align-content: center; padding: 0 24px 30px; gap: 30px; }
  .camera-ticket { justify-self: center; max-width: 520px; }
  .booth-controls { grid-template-columns: 1fr 1fr; }
  .booth-instruction, .privacy-note, .shutter-button { grid-column: 1 / -1; }
  .result-view { grid-template-columns: 1fr; padding: 25px; }
  .result-view canvas { max-height: 70vh; }
}

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