:root {
  --ink: #151b2b;
  --muted: #5b6475;
  --surface: #f7f4ef;
  --surface-strong: #fff7ea;
  --accent: #f15b40;
  --accent-dark: #c6472f;
  --secondary: #1b998b;
  --stroke: #e2dccf;
  --shadow: 0 28px 60px rgba(21, 27, 43, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff1da 0%, #f0efe9 40%, #ece5dc 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.25;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  background: #f15b40;
  top: -80px;
  left: 10%;
}

.orb-2 {
  background: #1b998b;
  bottom: -110px;
  right: 15%;
  animation-delay: -3s;
}

.orb-3 {
  background: #3f6ea5;
  top: 30%;
  right: -80px;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(24px);
  }
}

.shell {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-title {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.timer-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-bar {
  width: 100%;
  height: 6px;
  background: #efe7d9;
  border-radius: 999px;
}

.timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.score {
  background: var(--surface-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--stroke);
}

.card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  animation: rise 0.5s ease;
}

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(21, 27, 43, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}

.title {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 32px;
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

.final-copy {
  font-size: 18px;
  line-height: 1.45;
}

.dilemma-task-title {
  font-size: 22px;
}

.dilemma-impact-text {
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  max-width: none;
}

.card-body {
  display: grid;
  gap: 14px;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.option {
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21, 27, 43, 0.08);
}

.option.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(241, 91, 64, 0.2);
}

.option-title {
  font-weight: 600;
  font-size: 16px;
}

.option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}

.option-icon-image {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.option-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.option-desc {
  color: var(--muted);
  font-size: 13px;
}

.event-options {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.dilemma-options {
  grid-template-columns: 1fr;
}

.event-options .option {
  grid-column: span 2;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.event-options .option:nth-child(4) {
  grid-column: 2 / span 2;
}

.event-options .option:nth-child(5) {
  grid-column: 4 / span 2;
}

.event-options .option-icon-image {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  padding: 10px;
  border-width: 2px;
}

.event-options .option-title {
  font-size: 19px;
}

.list {
  display: grid;
  gap: 12px;
}

.intro-content {
  display: grid;
  gap: 10px;
}

.intro-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.intro-list li {
  margin-bottom: 4px;
}

.event-alert-card {
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.event-alert-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.event-alert-text p {
  margin: 0;
  color: var(--muted);
}

.event-alert-heading {
  font-weight: 700;
  color: var(--ink) !important;
  margin-bottom: 6px !important;
}

.list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-banner {
  background: linear-gradient(120deg, #f15b40, #f7a34b);
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #efe7d9;
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--muted);
}

.replay {
  display: none;
  gap: 12px;
  justify-content: center;
}

.replay.active {
  display: flex;
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .event-options {
    grid-template-columns: 1fr;
  }

  .event-options .option {
    grid-column: auto;
    min-height: 0;
  }

  .event-options .option:nth-child(4),
  .event-options .option:nth-child(5) {
    grid-column: auto;
  }

  .progress {
    width: 100%;
  }
}
