:root {
  --ink: #1d2433;
  --muted: #657083;
  --line: rgba(29, 36, 51, 0.12);
  --paper: rgba(255, 255, 255, 0.88);
  --rose: #e84d76;
  --teal: #13a6a1;
  --gold: #f3b23c;
  --sky: #57aee7;
  --shadow: 0 24px 80px rgba(18, 28, 45, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(232, 77, 118, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(19, 166, 161, 0.18), transparent 25rem),
    linear-gradient(135deg, #fbfaf7 0%, #eef7f9 47%, #fff3f5 100%);
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.invite {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.photo-panel,
.content-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.photo-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 28px;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.photo-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(20, 24, 34, 0.72);
  backdrop-filter: blur(12px);
}

.photo-badge span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.photo-badge strong {
  font-size: 1.45rem;
}

.content-panel {
  position: relative;
  min-height: 680px;
  border-radius: 28px;
  padding: 30px;
  overflow: hidden;
}

.status-row,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-row {
  justify-content: space-between;
  margin-bottom: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.92rem;
  font-weight: 700;
}

.pill.muted {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.progress {
  display: flex;
  gap: 9px;
  margin-bottom: 44px;
}

.progress-dot {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(29, 36, 51, 0.12);
}

.progress-dot.active {
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--teal));
}

.step {
  display: none;
  animation: enter 0.45s ease both;
}

.step.active {
  display: block;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead {
  max-width: 620px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.primary-btn,
.ghost-btn,
.choice-grid button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), #f07b53);
  box-shadow: 0 14px 28px rgba(232, 77, 118, 0.28);
  font-weight: 800;
}

.ghost-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.primary-btn:hover,
.choice-grid button:hover {
  transform: translateY(-2px);
}

.first-actions {
  min-height: 78px;
  position: relative;
}

.runaway {
  position: relative;
  z-index: 5;
}

.runaway.is-free {
  position: fixed;
}

.hint {
  min-height: 28px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(18, 28, 45, 0.08);
  font-weight: 800;
}

.choice-grid button:nth-child(3n + 1) {
  border-color: rgba(232, 77, 118, 0.32);
}

.choice-grid button:nth-child(3n + 2) {
  border-color: rgba(19, 166, 161, 0.34);
}

.choice-grid button:nth-child(3n) {
  border-color: rgba(243, 178, 60, 0.42);
}

.mini-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(19, 166, 161, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-panel p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
}

.hidden,
.hidden-choice {
  display: none !important;
}

.primary-option,
.kiss-option {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--teal), var(--sky)) !important;
}

.kiss-option {
  background: linear-gradient(135deg, var(--rose), #f07b53) !important;
}

.disabled-choice {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.shake {
  animation: shake 0.42s ease both;
}

.summary-card {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.summary-card span {
  color: var(--muted);
  font-weight: 700;
}

.summary-card strong {
  text-align: left;
}

.final-note {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 24px;
  transform: translateX(50%) translateY(16px);
  max-width: min(460px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(29, 36, 51, 0.88);
  box-shadow: 0 14px 36px rgba(18, 28, 45, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(8px);
  }
  50% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 14px;
  }

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

  .photo-panel {
    min-height: 380px;
    border-radius: 22px;
  }

  .content-panel {
    min-height: 600px;
    padding: 22px;
    border-radius: 22px;
  }

  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: 100%;
  }
}
