/* ============================================================
   IDCYC — I Don't Care, You Choose
   Design System
   ============================================================ */

html, body {
  scroll-behavior: auto;
}

:root {
  /* New palette */
  --coral:        #fc3a16;
  --coral-light:  #fee8e3;
  --teal:         #4badb7;
  --teal-light:   #e3f5f7;
  --amber:        #f5af13;
  --amber-light:  #fef5e0;
  --blue:         #146084;
  --blue-light:   #e0eef5;
  --purple:       #3f1f4e;
  --purple-light: #ede5f3;
  /* Neutrals */
  --ink:     #1a1020;
  --ink-2:   #3d2f4a;
  --muted:   #9991a4;
  --border:  #e8e0ed;
  --surface: #fef8f5;
  --white:   #ffffff;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(63,31,78,0.06);
  --shadow-md: 0 8px 24px rgba(63,31,78,0.10);
  --shadow-lg: 0 20px 60px rgba(63,31,78,0.18);
  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Step accent colors */
  --step1: #fc3a16;
  --step2: #146084;
  --step3: #f5af13;
  --step4: #4badb7;
  --step5: #3f1f4e;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: #fef8f5;
  color: var(--ink);
  min-height: 100dvh;
  padding-bottom: 40px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   HEADER
   ============================================================ */

.app-header {
  padding: 32px 0 24px;
  text-align: center;
  position: relative;
}

.header-reset {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px auto 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.header-reset svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.header-reset:hover {
  color: var(--coral);
  border-color: var(--coral);
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fef8f5 no-repeat center center / cover;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.splash.fade-out {
  opacity: 0;
}

.title-img-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.title-img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.tagline {
  font-family: var(--font-body);
  font-style: normal;
  color: #9999bb;
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 0.05em;
}

/* ============================================================
   ACCORDION
   ============================================================ */

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  background: #fef8f5;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--step-color, var(--border));
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.step.open {
  border-color: transparent;
  border-left-color: var(--step-color, var(--border));
  box-shadow: var(--shadow-md);
}

.step.locked {
  opacity: 0.55;
  pointer-events: none;
}

.step.locked .step-body {
  display: none;
}

.step.completed .step-header {
  cursor: pointer;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: default;
  user-select: none;
}

.step.completed .step-header,
.step.open .step-header {
  cursor: pointer;
}

.step-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-color, var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.step-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.step-number {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--step-color, var(--muted));
  letter-spacing: 0.08em;
}

.step-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.step-summary {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--step-color, var(--teal));
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.step-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform var(--transition);
  stroke-width: 2;
}

.step.open .step-chevron {
  transform: rotate(180deg);
}

/* Step Body */
.step-body {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   STEP 1 — WHEN
   ============================================================ */

.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--transition);
}

.choice-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.choice-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.choice-btn.active {
  border-color: var(--coral);
  background: var(--coral-light);
  color: var(--coral);
}

.choice-btn {
  background: #fef8f5;
}

.later-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-input {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}

.text-input:focus {
  border-color: var(--blue);
  background: var(--white);
}

.text-input {
  background: #fef8f5;
}

.text-input.has-icon {
  padding-left: 38px;
}

/* ============================================================
   STEP 2 — WHERE
   ============================================================ */

.autocomplete-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  stroke-width: 2;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 100;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--blue-light);
}

.autocomplete-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted);
  stroke-width: 2;
}

.autocomplete-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Radius pills */
.radius-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--transition);
}

.pill {
  background: #fef8f5;
}

.pill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pill.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* ============================================================
   STEP 3 — BUDGET
   ============================================================ */

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.budget-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: #fef8f5;
  cursor: pointer;
  transition: all var(--transition);
}

.budget-tile:hover {
  border-color: var(--amber);
}

.budget-tile.active {
  border-color: var(--amber);
  background: var(--amber-light);
}

.price-symbol {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amber);
}

.price-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

/* ============================================================
   STEP 4 — CUISINE
   ============================================================ */

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -6px;
}

.cuisine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cuisine-tile {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fef8f5;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  line-height: 1.2;
}

.cuisine-tile:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cuisine-tile.active {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}

/* ============================================================
   STEP 5 — DIETARY
   ============================================================ */

.dietary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dietary-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fef8f5;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--transition);
}

.dietary-tile svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

.dietary-tile:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.dietary-tile.active {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}

/* ============================================================
   NEXT BUTTON
   ============================================================ */

.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}

.next-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.next-btn:hover {
  background: #0e4a65;
  transform: translateY(-1px);
}

.next-btn:active {
  transform: translateY(0);
}

/* ============================================================
   FATE BUTTON
   ============================================================ */

.fate-section {
  padding: 28px 0 16px;
  display: flex;
  justify-content: center;
}

.fate-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, var(--purple) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(252, 58, 22, 0.35);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.fate-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.fate-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.fate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(252, 58, 22, 0.45);
}

.fate-btn:active {
  transform: translateY(-1px);
}

/* ============================================================
   SLOT MACHINE
   ============================================================ */

.slot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.slot-machine {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.slot-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.slot-header {
  text-align: center;
  margin-bottom: 24px;
}

.slot-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-2);
}

.slot-window {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  background: var(--ink);
  overflow: hidden;
  border: 3px solid var(--ink-2);
  box-shadow: inset 0 4px 24px rgba(0,0,0,0.4);
}

.slot-reel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.slot-item {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}

.slot-item-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.slot-item.highlight .slot-item-text {
  color: var(--amber);
  font-size: 1.2rem;
}

.slot-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 2;
}

.slot-mask.top {
  top: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, transparent 100%);
}

.slot-mask.bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 100%);
}

.slot-selector {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 60px;
  transform: translateY(-50%);
  border-top: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  pointer-events: none;
  z-index: 3;
}

.slot-selector::before,
.slot-selector::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.slot-selector::before { left: 10px; }
.slot-selector::after { right: 10px; }

/* ============================================================
   RESULT CARD
   ============================================================ */

.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}

.result-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: cardIn 400ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.result-badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  fill: var(--white);
}

.result-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.result-cuisine {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.result-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.result-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
}

.result-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.star-icon {
  width: 13px;
  height: 13px;
  fill: var(--amber);
  color: var(--amber);
  stroke-width: 0;
}

.result-address {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.result-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.result-btn.primary {
  background: var(--teal);
  color: var(--white);
}

.result-btn.primary:hover {
  background: #28b0a3;
  transform: translateY(-1px);
}

.result-btn.secondary {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--border);
}

.result-btn.secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.result-again {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}

.result-again svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.result-again:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.result-start-over {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 2px;
}

.result-start-over svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.result-start-over:hover {
  color: var(--ink-2);
}

/* ============================================================
   NO RESULTS
   ============================================================ */

.no-results {
  padding: 20px 0;
}

.no-results-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  color: var(--coral);
  stroke-width: 1.5;
  margin-bottom: 8px;
}

.no-results-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.no-results-card p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */

.app-footer {
  padding: 24px 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bmc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.bmc-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.bmc-link:hover {
  color: var(--amber);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
  padding: 0;
}

.about-link svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.about-link:hover {
  color: var(--teal);
}

/* ============================================================
   ABOUT MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 480px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal {
  background: #fef8f5;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 300ms cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@media (min-width: 480px) {
  .modal {
    border-radius: var(--radius-lg);
    max-height: 88dvh;
  }
}

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

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px -36px 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  flex-shrink: 0;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.modal-close:hover {
  background: var(--coral-light);
  color: var(--coral);
}

.modal-body {
  padding: 24px 24px 36px;
  clear: both;
}

.modal-logo {
  text-align: center;
  margin-bottom: 8px;
}

.modal-logo img {
  max-width: 200px;
  width: 100%;
  display: block;
  margin: 0 auto 4px;
}

.modal-about-subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.modal-intro {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--coral);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-text {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Creator */
.creator-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.creator-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.creator-info {
  flex: 1;
}

.creator-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.creator-bio {
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

.modal-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.modal-link:hover {
  text-decoration: underline;
}

/* BMC in modal */
.modal-bmc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--amber-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.modal-bmc svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
  stroke-width: 2;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--teal);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.form-submit:hover {
  background: #28b0a3;
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-success {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  padding: 8px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.hidden {
  display: none !important;
}

/* Loading spinner in fate button */
.fate-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 480px) {
  .app-shell {
    padding: 0 0;
  }
}
