:root {
  --ink: #10101d;
  --panel: #19182b;
  --panel-soft: #211f39;
  --text: #fff8fc;
  --muted: #b8b3c7;
  --pink: #ff4aa2;
  --yellow: #ffe76b;
  --mint: #41e6b2;
  --aqua: #62d2ff;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(98, 210, 255, 0.18), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(255, 74, 162, 0.2), transparent 34rem),
    var(--ink);
  font-family: Nunito, system-ui, sans-serif;
}

button {
  border: 0;
  font: inherit;
}

.app-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.5rem;
}

.dot-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.floatie {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.2;
  font-size: clamp(1.7rem, 4vw, 3rem);
  animation: drift 8s ease-in-out infinite;
}

.floatie-one {
  top: 9%;
  left: 9%;
}

.floatie-two {
  top: 15%;
  right: 8%;
  animation-delay: -2s;
}

.floatie-three {
  bottom: 13%;
  left: 12%;
  animation-delay: -4s;
}

.floatie-four {
  right: 12%;
  bottom: 11%;
  animation-delay: -1s;
}

.proposal-card {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 2rem), 31rem);
  min-height: 34rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 34%),
    var(--panel);
  box-shadow: 0 2rem 5rem var(--shadow), 0 0 0 0.35rem rgba(255, 255, 255, 0.035);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--mint), var(--aqua));
}

.question-view,
.unlock-view,
.celebration-view,
.trip-view {
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3rem);
  text-align: center;
  animation: pop-in 420ms cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

.tiny-label {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  margin-bottom: 0.75rem;
  font-size: clamp(3.7rem, 12vw, 5.5rem);
  line-height: 1;
  animation: wobble 1.8s ease-in-out infinite;
}

.hero-badge.still {
  animation: none;
}

.trip-view .hero-badge {
  margin-bottom: 0.4rem;
  font-size: clamp(2.7rem, 10vw, 3.8rem);
}

h1,
h2 {
  max-width: 12ch;
  margin: 0;
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  color: var(--mint);
}

.trip-view h2 {
  max-width: 13ch;
  font-size: clamp(1.85rem, 7vw, 2.65rem);
}

.subtext {
  max-width: 28rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.button-arena {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 9.25rem;
  align-items: center;
  justify-content: center;
}

.password-form {
  display: grid;
  width: min(100%, 18rem);
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.password-input {
  width: 100%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  outline: 0;
  padding: 0.95rem 1.2rem;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.password-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.25rem rgba(255, 231, 107, 0.1);
}

.unlock-button {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  color: white;
  background: linear-gradient(135deg, var(--pink), #c71872);
  box-shadow: 0 1rem 2.5rem rgba(255, 74, 162, 0.35);
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.unlock-button:hover,
.unlock-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 1.25rem 3rem rgba(255, 74, 162, 0.42);
  outline: 0;
}

.auth-hint {
  min-height: 1.25rem;
  margin: 0.9rem 0 0;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 900;
}

.yes-button,
.no-button,
.restart-button {
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    opacity 200ms ease;
}

.yes-button {
  position: relative;
  z-index: 2;
  min-width: min(100%, 14.5rem);
  padding: 1rem 1.45rem;
  color: white;
  background: linear-gradient(135deg, var(--pink), #c71872);
  box-shadow: 0 1rem 2.5rem rgba(255, 74, 162, 0.35);
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.1rem;
}

.yes-button:hover,
.yes-button:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 1.25rem 3rem rgba(255, 74, 162, 0.42);
  outline: 0;
}

.no-button {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  z-index: 3;
  min-width: 4.5rem;
  padding: 0.7rem 1.1rem;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  transform: translateY(-50%);
  user-select: none;
  white-space: nowrap;
}

.no-button.is-running {
  transition:
    left 110ms ease,
    top 110ms ease,
    transform 110ms ease,
    opacity 200ms ease;
}

.no-button.is-banned {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.72) rotate(-8deg);
}

.no-hint {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--pink);
  font-size: 0.9rem;
  font-weight: 900;
}

.trip-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: -0.5rem 0 1.25rem;
}

.trip-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}

.memory-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.memory-card {
  position: relative;
  --tilt: 0deg;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #fff8fc;
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.18);
  color: #241625;
  padding: 0.35rem 0.35rem 0.5rem;
  text-align: center;
  transform: rotate(var(--tilt));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.memory-card:hover {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 1.1rem 2.2rem rgba(0, 0, 0, 0.22);
}

.memory-card.tilt-left {
  --tilt: -2.5deg;
}

.memory-card.tilt-right {
  --tilt: 2deg;
}

.memory-card.small-drop {
  margin-top: 0.28rem;
}

.photo-frame {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 74, 162, 0.18), transparent 45%),
    linear-gradient(315deg, rgba(65, 230, 178, 0.22), transparent 45%),
    #221f35;
  isolation: isolate;
}

.photo-frame::before {
  position: relative;
  z-index: 1;
  max-width: 8ch;
  color: var(--text);
  content: attr(data-empty-label);
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.05;
}

.photo-frame::after {
  position: absolute;
  inset: 0.45rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  content: "";
}

.photo-frame img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.photo-frame.has-photo img {
  opacity: 1;
}

.photo-frame.has-photo::before,
.photo-frame.has-photo::after {
  opacity: 0;
}

.memory-card:hover .photo-frame.has-photo img {
  transform: scale(1.04);
}

.memory-card figcaption {
  display: flex;
  min-height: 1.45rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.38rem;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.destination-picker {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.25rem 0 0.85rem;
}

.destination-tab {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  padding: 0.65rem;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.destination-tab:hover,
.destination-tab:focus-visible {
  border-color: rgba(255, 231, 107, 0.55);
  outline: 0;
  transform: translateY(-1px);
}

.destination-tab.is-selected {
  border-color: rgba(65, 230, 178, 0.75);
  background: rgba(65, 230, 178, 0.12);
}

.destination-tab strong,
.destination-tab small {
  display: block;
}

.destination-tab strong {
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.1;
}

.destination-tab small {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.destination-tab.is-selected small {
  color: var(--mint);
}

.tab-emoji {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

.destination-detail {
  display: grid;
  width: 100%;
  margin-top: 0.25rem;
  text-align: left;
}

.destination-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.destination-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.destination-name {
  margin: 0;
  color: var(--text);
  font-family: Fredoka, Nunito, system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.1;
}

.destination-emoji {
  flex: 0 0 auto;
  font-size: 1.75rem;
  line-height: 1;
}

.destination-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(65, 230, 178, 0.12);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
}

.destination-summary {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.deal-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.deal-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.75rem;
}

.deal-pill strong,
.mini-heading {
  display: block;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deal-pill p {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-size: 0.92rem;
}

.hotel-list,
.love-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hotel-list li,
.love-list li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.love-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.price-note {
  max-width: 29rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.trip-controls {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.trip-nav-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 0.8rem 0.9rem;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.trip-nav-button.primary {
  color: white;
  background: linear-gradient(135deg, var(--pink), #c71872);
}

.trip-nav-button:hover,
.trip-nav-button:focus-visible {
  color: white;
  outline: 0;
  transform: translateY(-1px);
}

.restart-button {
  margin-top: 1.4rem;
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.restart-button:hover,
.restart-button:focus-visible {
  color: white;
  outline: 0;
}

.confetti-piece {
  position: fixed;
  top: -2rem;
  z-index: 0;
  pointer-events: none;
  animation: confetti-drop linear forwards;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-1.4rem) rotate(9deg);
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-5deg) scale(1);
  }

  35% {
    transform: rotate(5deg) scale(1.06);
  }

  70% {
    transform: rotate(-2deg) scale(1.02);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes confetti-drop {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(112vh) rotate(520deg);
  }
}

@media (max-width: 32rem) {
  .app-shell {
    padding: 1rem;
  }

  .proposal-card,
  .unlock-view,
  .question-view,
  .celebration-view,
  .trip-view {
    min-height: 32rem;
  }

  .button-arena {
    min-height: 8.25rem;
  }

  .memory-strip {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.15rem 0 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .memory-card {
    flex: 0 0 8.2rem;
    scroll-snap-align: start;
  }

  .memory-strip::-webkit-scrollbar {
    display: none;
  }

  .destination-picker {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .destination-tab {
    flex: 0 0 10.75rem;
    min-height: 3.65rem;
    scroll-snap-align: start;
  }

  .destination-picker::-webkit-scrollbar {
    display: none;
  }

  .no-button {
    right: 0;
  }
}
