:root {
  --bg: #0b0d12;
  --bg-elev: rgba(14, 17, 24, 0.82);
  --card: rgba(15, 18, 26, 0.88);
  --card-2: rgba(19, 23, 31, 0.92);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f8fb;
  --text-strong: #ffffff;
  --muted: #c5cad7;
  --muted-2: #9aa3b7;
  --green: #9af47f;
  --green-strong: #78e85a;
  --pink: #ff7dba;
  --pink-strong: #ff5fa9;
  --purple: #8777ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(96, 180, 122, 0.22), transparent 42%),
    radial-gradient(1200px 900px at 100% 15%, rgba(255, 100, 170, 0.16), transparent 45%),
    linear-gradient(180deg, #0d1017 0%, #090b10 100%);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  line-height: 1.62;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font: inherit;
}

.bg-blur {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(86px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: drift 9s ease-in-out infinite alternate;
}

.blur-green {
  top: -48px;
  left: -88px;
  background: rgba(120, 232, 90, 0.34);
}

.blur-pink {
  right: -84px;
  top: 30%;
  background: rgba(255, 95, 169, 0.28);
  animation-delay: 1.4s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(20px, -12px) scale(1.08); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  from { transform: translateY(24px); opacity: 0; }
  18% { opacity: 0.55; }
  to { transform: translateY(-100vh); opacity: 0; }
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: screenEnter 360ms ease;
}

@keyframes screenEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-chip,
.ghost-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-chip {
  background: rgba(14, 18, 24, 0.9);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(120, 232, 90, 0.12);
}

.ghost-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(120, 232, 90, 0.1), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 95, 169, 0.09), transparent 34%);
  pointer-events: none;
}

.intro-card,
.quiz-card,
.loading-card,
.result-card {
  padding: 22px 18px;
}

.intro-card > *,
.quiz-card > *,
.loading-card > *,
.result-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(10, 13, 18, 0.9);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow-center {
  margin-inline: auto;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--pink));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.intro-card h1 {
  margin-top: 14px;
  font-size: clamp(1.82rem, 7.1vw, 2.46rem);
  line-height: 1.03;
  text-wrap: balance;
}

.lead-copy {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 400;
}

.secondary-copy,
.soft {
  color: #d8dfec !important;
}

.secondary-copy {
  margin-top: 10px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-preview-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.preview-copy {
  margin-top: 4px;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.5;
}

.preview-orb {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--green) 18%, var(--pink) 58%, rgba(135, 119, 255, 0.9) 100%);
  box-shadow: 0 0 34px rgba(255, 125, 186, 0.24);
}

.quiz-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.quiz-head-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.quiz-label,
.quiz-helper {
  font-size: 0.82rem;
  font-weight: 600;
}

.quiz-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.quiz-helper {
  color: var(--muted-2);
  text-align: right;
}

.progress-wrap {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--pink));
  transition: width 260ms ease;
}

.quiz-card h2,
.loading-card h2,
.result-card h2 {
  font-size: clamp(1.5rem, 6.8vw, 2.06rem);
  line-height: 1.12;
  text-wrap: balance;
}

.quiz-card h2 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border-radius: var(--radius-md);
  min-height: 54px;
  width: 100%;
  padding: 14px 16px;
  font-weight: 650;
  transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  margin-top: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--pink));
  color: #11131a;
  box-shadow: 0 12px 30px rgba(255, 125, 186, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.98;
}

.btn-secondary {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.022));
  color: var(--text-strong);
  text-align: left;
  font-weight: 520;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(120, 232, 90, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.btn-ghost {
  margin-top: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--muted);
}

.answer-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.answer-index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.answer-text {
  color: var(--text-strong);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
}

.answer-arrow {
  color: var(--muted-2);
  font-size: 1.1rem;
}

.loading-card {
  text-align: center;
}

.loading-card p {
  margin-top: 12px;
}

.orbital-loader {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 4px auto 0;
}

.core {
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--pink));
  box-shadow: 0 0 34px rgba(255, 125, 186, 0.26);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.orbit-a {
  inset: 0;
  border-top-color: var(--green);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  animation: spin 1.7s linear infinite;
}

.orbit-b {
  inset: 11px;
  border-left-color: var(--pink);
  border-right-color: rgba(255, 255, 255, 0.12);
  animation: spinReverse 1.2s linear infinite;
}

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

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.result-card p {
  margin-top: 12px;
  color: var(--muted);
}

.event-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.alt-action {
  margin-top: 12px;
  padding: 16px 14px;
  background: rgba(17, 20, 29, 0.74);
}

.alt-action-copy {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-2);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(120, 232, 90, 0.36);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.poster-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.poster-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 12, 0.78));
}

.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.tag-green {
  background: linear-gradient(135deg, #d7ff92, #99f66d);
  color: #10140f;
}

.tag-pink {
  background: linear-gradient(135deg, #ffd0e7, #ff92c5);
  color: #1b1218;
}

.event-body {
  padding: 15px 14px 14px;
}

.event-eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.event-body h3 {
  margin-top: 6px;
  font-size: 1.34rem;
}

.event-body p {
  margin-top: 8px;
  color: var(--muted);
}

.choose-btn {
  margin-top: 12px;
}

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.64);
  display: grid;
  align-items: end;
  padding: 14px;
  z-index: 10;
}

.sheet[hidden] {
  display: none !important;
}

.sheet-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.98), rgba(13, 15, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 18px 14px calc(env(safe-area-inset-bottom) + 14px);
  animation: slideUp 250ms ease;
}

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

.sheet-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(120, 232, 90, 0.12);
  color: var(--green);
  border: 1px solid rgba(120, 232, 90, 0.22);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -14px;
  width: 10px;
  height: 18px;
  opacity: 0;
  animation: confettiFall 1s ease forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(130px) rotate(360deg); opacity: 0; }
}

.sheet-card h3 {
  margin-top: 12px;
  font-size: 1.52rem;
}

.sheet-card p {
  margin-top: 10px;
}

.small {
  font-size: 0.94rem;
}

@media (max-width: 420px) {
  .intro-card,
  .quiz-card,
  .loading-card,
  .result-card {
    padding: 20px 16px;
  }

  .intro-card h1 {
    font-size: clamp(1.72rem, 8.1vw, 2.2rem);
  }

  .brand-chip,
  .ghost-chip {
    font-size: 0.72rem;
  }
}

@media (min-width: 760px) {
  .app {
    width: min(100% - 32px, 920px);
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
