﻿:root {
  --bg: #090910;
  --bg-soft: #11111c;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.115);
  --stroke: rgba(255, 255, 255, 0.15);
  --stroke-strong: rgba(255, 255, 255, 0.24);
  --text: #fbf7f2;
  --muted: rgba(251, 247, 242, 0.68);
  --soft: rgba(251, 247, 242, 0.48);
  --accent: #f3b8ca;
  --accent-strong: #ffd4df;
  --champagne: #f1d9a4;
  --violet: #b7a7ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.2, 0.86, 0.2, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --motion-fast: 180ms;
  --motion: 520ms;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 212, 223, 0.2), transparent 36rem),
    linear-gradient(180deg, #0c0c15 0%, #090910 48%, #111018 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button:focus-visible {
  outline: 2px solid rgba(255, 212, 223, 0.85);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  width: 58vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.42;
  transform: translate3d(0, 0, 0);
  animation: drift 18s var(--ease-soft) infinite alternate;
}

.orb-a {
  left: -34vmax;
  top: -18vmax;
  background: radial-gradient(circle, rgba(255, 204, 219, 0.68), transparent 64%);
}

.orb-b {
  right: -32vmax;
  top: 18svh;
  background: radial-gradient(circle, rgba(183, 167, 255, 0.55), transparent 62%);
  animation-delay: -7s;
}

.orb-c {
  left: 8vmax;
  bottom: -36vmax;
  background: radial-gradient(circle, rgba(241, 217, 164, 0.38), transparent 64%);
  animation-delay: -12s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 74%);
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr;
}

.progress {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(9, 9, 16, 0.56);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(140%);
}

.progress-track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14.285%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--champagne), var(--accent), var(--violet));
  box-shadow: 0 0 20px rgba(255, 212, 223, 0.38);
  transition: width var(--motion) var(--ease);
}

.progress-count {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.screen {
  grid-row: 2;
  grid-column: 1;
  min-height: calc(100svh - 82px);
  padding: 22px 0 8px;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity var(--motion) var(--ease),
    visibility var(--motion) var(--ease),
    transform var(--motion) var(--ease),
    filter var(--motion) var(--ease);
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: blur(0);
  pointer-events: auto;
}

.panel {
  position: relative;
  width: 100%;
  padding: clamp(24px, 7vw, 36px);
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(155%);
  transform-style: preserve-3d;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(255, 255, 255, 0.2), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 35%);
  opacity: 0.82;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel {
  padding-top: clamp(34px, 9vw, 52px);
  padding-bottom: clamp(34px, 9vw, 52px);
}

.route-panel {
  background:
    radial-gradient(circle at 50% 66%, rgba(243, 184, 202, 0.18), transparent 54%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.final-panel {
  background:
    radial-gradient(circle at 82% 12%, rgba(241, 217, 164, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 14px;
  font-size: clamp(3.8rem, 18vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 10vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.subtitle {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 750;
  line-height: 1.25;
}

.copy {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 4.2vw, 1.12rem);
  line-height: 1.58;
}

.stack,
.date-grid,
.open-grid {
  display: grid;
  gap: 12px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn,
.date-card,
.open-card {
  position: relative;
  min-height: 56px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  transform: translateZ(0);
  transition:
    transform var(--motion-fast) var(--ease),
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}

.btn::before,
.date-card::before,
.open-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.24), transparent 10rem);
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.btn:hover::before,
.btn:focus-visible::before,
.date-card:hover::before,
.date-card:focus-visible::before,
.open-card:hover::before,
.open-card:focus-visible::before {
  opacity: 1;
}

.btn:active,
.date-card:active,
.open-card:active {
  transform: translateY(2px) scale(0.985);
}

.btn {
  width: 100%;
  padding: 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.primary {
  color: #151018;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 212, 223, 0.86)),
    var(--accent-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(243, 184, 202, 0.18);
}

.option {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reveal-next {
  margin-top: 14px;
  animation: next-in 420ms var(--ease) both;
}

.feedback {
  min-height: 32px;
  margin: 18px 0 0;
  color: var(--accent-strong);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.35;
}

.route {
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
}

.route-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 850;
}

.route-summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pin {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 7px rgba(241, 217, 164, 0.11), 0 0 22px rgba(241, 217, 164, 0.34);
}

.start-pin {
  background: #1a73e8;
  box-shadow: 0 0 0 7px rgba(26, 115, 232, 0.12), 0 0 24px rgba(26, 115, 232, 0.34);
}

.destination-pin {
  background: #ea4335;
  box-shadow: 0 0 0 7px rgba(234, 67, 53, 0.12), 0 0 24px rgba(234, 67, 53, 0.38);
}

.real-map {
  position: relative;
  height: clamp(255px, 76vw, 342px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #dce7d3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 24px 58px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.real-map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 58% 44%, rgba(255, 212, 223, 0.13), transparent 46%);
  mix-blend-mode: soft-light;
}

.map-tiles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #dce7d3;
}

.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.real-route-shadow,
.real-route-base,
.real-route-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.real-route-shadow {
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 11;
  filter: blur(4px);
}

.real-route-base {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 8;
}

.real-route-active {
  stroke: #1a73e8;
  stroke-width: 5.5;
  filter: drop-shadow(0 2px 4px rgba(26, 115, 232, 0.28));
}

.map-place {
  position: absolute;
  z-index: 7;
  max-width: 42%;
  padding: 4px 7px;
  border-radius: 8px;
  color: #202124;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.16);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.end-place {
  transform: translate(-50%, -128%);
}

.map-start-dot {
  position: absolute;
  z-index: 8;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.34);
  transform: translate(-50%, -50%);
}

.map-destination-marker {
  position: absolute;
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #ea4335;
  box-shadow: 0 10px 24px rgba(154, 36, 28, 0.34);
  transform: translate(-50%, -100%) rotate(-45deg);
}

.map-destination-marker span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.map-car-node {
  position: absolute;
  z-index: 9;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.32));
}

.arrival-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 14;
  display: grid;
  place-items: center;
  gap: 6px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #18321f;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.95), rgba(255, 244, 217, 0.9) 48%, rgba(255, 212, 223, 0.9));
  box-shadow: 0 28px 80px rgba(234, 67, 53, 0.3), 0 0 0 0 rgba(255, 212, 223, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
}

.arrival-burst span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #34a853;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(52, 168, 83, 0.28);
}

.arrival-burst strong {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.real-map.has-arrived .arrival-burst {
  animation: arrival-pop 1900ms var(--ease) both;
}

.real-map.has-arrived .map-destination-marker {
  animation: marker-celebrate 900ms var(--ease) both;
}

.route-feedback {
  margin-top: -6px;
}
.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 10;
  padding: 3px 6px;
  border-radius: 6px;
  color: #1f4f8f;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.62rem;
  font-weight: 750;
  text-decoration: none;
}

.date-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
.date-card,
.open-card {
  width: 100%;
  min-height: 72px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 790;
  text-align: left;
}

.date-card.is-selected {
  border-color: rgba(255, 212, 223, 0.62);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 212, 223, 0.24), transparent 46%),
    rgba(255, 255, 255, 0.105);
  box-shadow:
    0 0 0 1px rgba(255, 212, 223, 0.12),
    0 22px 54px rgba(243, 184, 202, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-2px) scale(1.015);
}

.open-grid.is-dimmed .open-card:not(.is-open) {
  opacity: 0.56;
  transform: scale(0.985);
}

.open-card {
  display: grid;
  gap: 0;
  align-content: center;
  min-height: 76px;
}

.open-card::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 18px rgba(255, 212, 223, 0.42);
}

.open-title {
  display: block;
  padding-right: 24px;
  line-height: 1.22;
}

.open-copy {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 360ms var(--ease),
    opacity 260ms ease,
    transform 360ms var(--ease),
    margin-top 360ms var(--ease);
}

.open-card.is-open {
  min-height: 142px;
  border-color: rgba(255, 212, 223, 0.44);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 212, 223, 0.18), transparent 44%),
    rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.open-card.is-open .open-copy {
  max-height: 140px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

.sweet-no {
  will-change: transform, left, top;
}

.tiny-lie {
  transform-origin: center;
  transition: transform 260ms var(--ease), opacity 260ms ease, filter 260ms ease;
}

.tiny-lie.is-despawned {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  filter: blur(8px);
}

.premium-glow {
  animation: premium-glow 900ms var(--ease) both;
}

.thanks {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.065);
  font-weight: 760;
  line-height: 1.35;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 18px var(--color);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  animation: particle-rise 1300ms var(--ease) forwards;
}


.firework-spark {
  position: fixed;
  left: var(--x);
  top: var(--y);
  z-index: 60;
  pointer-events: none;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--color);
  box-shadow: 0 0 14px var(--color), 0 0 34px var(--color), 0 0 58px rgba(255, 255, 255, 0.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: realistic-spark 1800ms cubic-bezier(0.14, 0.72, 0.12, 1) forwards;
}
.particle.soft-heart {
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--color);
  background: transparent;
  box-shadow: none;
  font-size: var(--size);
  font-weight: 800;
}

.shake-soft {
  animation: shake-soft 420ms var(--ease) both;
}

.pop-soft {
  animation: pop-soft 340ms var(--ease) both;
}

@keyframes drift {
  to { transform: translate3d(8vmax, 4vmax, 0) scale(1.08); }
}

@keyframes next-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes realistic-spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  6% { opacity: 1; transform: translate(-50%, -50%) scale(1.45); }
  58% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + var(--fall))) scale(0.55); }
}  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + var(--fall))) scale(0.55); }
}
@keyframes shake-soft {
  0%, 100% { transform: translateX(0) scale(1); }
  30% { transform: translateX(-6px) scale(0.965); }
  65% { transform: translateX(5px) scale(0.975); }
}

@keyframes pop-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.94); }
}

@media (min-width: 760px) {
  .app {
    width: min(100%, 620px);
    padding-top: 28px;
  }

  .screen {
    min-height: calc(100svh - 92px);
  }

  .wide-panel {
    width: min(100%, 590px);
    justify-self: center;
  }

  .date-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .panel.tilting {
    transition: transform 90ms linear;
  }
}

@media (max-width: 380px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel {
    border-radius: 28px;
    padding: 22px;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4rem);
  }

  h2 {
    font-size: clamp(1.82rem, 9.4vw, 2.45rem);
  }
}

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

  .screen {
    filter: none;
  }

  .particle {
    display: none;
  }
}



