:root {
  --bg-0: #0b0a12;
  --bg-1: #14101f;
  --bg-2: #1c1430;
  --accent: #e8b56a;
  --accent-soft: rgba(232, 181, 106, 0.16);
  --accent-strong: #f2c98a;
  --ink: #f5f1ea;
  --ink-dim: rgba(245, 241, 234, 0.62);
  --ink-faint: rgba(245, 241, 234, 0.38);
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --danger: #d97f6b;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
  font-family: 'Manrope', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% -10%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root {
  min-height: 100dvh;
  width: 100%;
  position: relative;
}

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */

.app-shell {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.app-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 30% at 18% 12%, rgba(232, 181, 106, 0.14), transparent 60%),
    radial-gradient(46% 38% at 85% 82%, rgba(120, 90, 200, 0.16), transparent 60%);
}

.app-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.screen {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-top)) 22px calc(36px + var(--safe-bottom));
}

.screen-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

h1.screen-title {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.22;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

p.screen-subtitle {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0 0 30px;
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Glass card                                                              */
/* ---------------------------------------------------------------------- */

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn-primary {
  width: 100%;
  padding: 17px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #221708;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px -12px rgba(232, 181, 106, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-ghost {
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-back {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------------------------------------------------------------------- */
/* Option cards (activity / restaurant / time)                             */
/* ---------------------------------------------------------------------- */

.option-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.option-card.is-selected {
  border-color: rgba(232, 181, 106, 0.55);
  background: linear-gradient(135deg, rgba(232, 181, 106, 0.14), rgba(232, 181, 106, 0.04));
}

.option-card.is-mocked {
  border-color: rgba(217, 127, 107, 0.4);
  background: rgba(217, 127, 107, 0.06);
}

.option-card.is-mocked .option-card-title {
  color: var(--danger);
}

.option-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-card-title {
  font-size: 16.5px;
  font-weight: 700;
}

.option-card-subtitle {
  font-size: 13.5px;
  color: var(--ink-dim);
  font-weight: 500;
}

.option-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

/* ---------------------------------------------------------------------- */
/* Question screen — yes/no                                                */
/* ---------------------------------------------------------------------- */

.decision-zone {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 260px;
  margin-top: 8px;
}

.yes-btn {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: min(260px, 78%);
  z-index: 2;
}

.no-btn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 14px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  touch-action: none;
  user-select: none;
}

/* ---------------------------------------------------------------------- */
/* Final screen                                                            */
/* ---------------------------------------------------------------------- */

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 181, 106, 0.35);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.final-pickup {
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 800;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}

.final-summary {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.final-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.final-summary-text {
  text-align: left;
}

.final-summary-title {
  font-weight: 700;
  font-size: 15px;
}

.final-summary-subtitle {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.place-block {
  width: 100%;
  padding: 20px 22px;
  margin-bottom: 22px;
}

.place-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 8px;
}

.place-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.place-address {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
}

.route-btn {
  margin-bottom: 30px;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-frame {
  padding: 16px;
  border-radius: 20px;
  background: #fbf8f2;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
}

.qr-caption {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------- */
/* Music toggle                                                            */
/* ---------------------------------------------------------------------- */

.music-toggle {
  position: fixed;
  top: calc(20px + var(--safe-top));
  right: 18px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------------------------------------------------------------------- */
/* Progress dots                                                           */
/* ---------------------------------------------------------------------- */

.progress-dots {
  position: fixed;
  top: calc(24px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  gap: 6px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.progress-dot.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* ---------------------------------------------------------------------- */
/* Intro                                                                   */
/* ---------------------------------------------------------------------- */

.intro-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 181, 106, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 26px;
}

@media (max-width: 360px) {
  .screen {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-height: 780px) {
  .screen-inner {
    max-width: 440px;
  }
}
