:root {
  --bg: #f7f1e8;
  --panel: rgba(255, 249, 241, 0.88);
  --panel-strong: rgba(255, 250, 245, 0.96);
  --text: #1f1711;
  --muted: #6e5a4e;
  --accent: #ff6b2c;
  --accent-2: #ffb347;
  --accent-3: #f23d4f;
  --line: rgba(39, 25, 17, 0.08);
  --shadow: 0 18px 50px rgba(70, 26, 3, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 198, 88, 0.32), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(242, 61, 79, 0.18), transparent 28%),
    linear-gradient(180deg, #fff7ec 0%, #f7f1e8 52%, #efe2d0 100%);
  color: var(--text);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.app-shell {
  width: min(100%, 480px);
  padding: 18px 14px 32px;
}

.hero-card,
.panel,
.stat-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.hero-card,
.panel {
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(255, 179, 71, 0.32), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 221, 0.92));
}

.hero-topline,
.panel-head,
.meter-row,
.task-list,
.boost-row,
.hero-actions,
.hero-mission,
.report-tags,
.loop-grid,
.stats-grid {
  display: flex;
  gap: 10px;
}

.hero-topline,
.panel-head {
  justify-content: space-between;
  align-items: center;
}

.pill,
.event-badge,
.kicker,
.report-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pill,
.event-badge,
.report-tag {
  background: rgba(255, 107, 44, 0.12);
  color: var(--accent-3);
}

.pill.ghost {
  background: rgba(31, 23, 17, 0.06);
  color: var(--muted);
}

.hero-card h1,
.panel h2,
.report-card h3 {
  margin: 0;
}

.hero-card h1 {
  margin-top: 14px;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 0.95;
}

.hero-copy,
.panel-copy,
.event-card p,
.loop-card p,
.report-card p,
.hero-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions {
  align-items: center;
  margin-top: 18px;
}

.hero-button {
  flex: 0 0 auto;
}

.hero-note {
  font-size: 13px;
  max-width: 220px;
}

.hero-mission {
  margin-top: 16px;
  flex-direction: column;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.hero-preview {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31, 23, 17, 0.92), rgba(70, 26, 3, 0.82)),
    var(--panel-strong);
  color: #fff6f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-preview .kicker {
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd3be;
}

.hero-preview strong {
  font-size: 18px;
  line-height: 1.2;
}

.hero-preview span:last-child {
  color: rgba(255, 246, 240, 0.78);
  line-height: 1.45;
}

.download-panel {
  background:
    linear-gradient(135deg, rgba(31, 23, 17, 0.92), rgba(70, 26, 3, 0.86)),
    var(--panel-strong);
  color: #fff6f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.download-panel .panel-copy {
  color: rgba(255, 246, 240, 0.8);
}

.download-panel .kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd3be;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.download-actions .primary-button {
  flex: 0 0 auto;
}

.download-status {
  flex: 1 1 180px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 246, 240, 0.82);
}

.promo-panel {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(31, 23, 17, 0.92), rgba(70, 26, 3, 0.84)),
    var(--panel-strong);
  color: #fff6f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.promo-panel .panel-head {
  margin-bottom: 10px;
}

.promo-panel h2 {
  font-size: 18px;
  line-height: 1.12;
}

.promo-panel .kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd3be;
}

.promo-panel-secondary {
  background:
    linear-gradient(135deg, rgba(71, 18, 31, 0.94), rgba(112, 28, 41, 0.88)),
    var(--panel-strong);
}

.promo-panel-secondary .kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #ffd3df;
}

.promo-panel-secondary .promo-offer-cta {
  background: linear-gradient(135deg, #ff7f83, #ffc067);
  color: #33120e;
}

.promo-offer-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 248, 240, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 26px rgba(18, 8, 2, 0.18);
}

.promo-offer-copy {
  display: grid;
  gap: 10px;
  padding: 18px 16px;
}

.promo-offer-headline {
  font-size: 20px;
  line-height: 1.2;
  color: #fff7f1;
}

.promo-offer-body {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 244, 237, 0.82);
}

.promo-offer-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2a1305;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-mission strong {
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.stat-card {
  border-radius: 22px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card span {
  font-size: 12px;
  color: var(--muted);
}

.stat-card strong {
  font-size: 20px;
}

.text-button,
.primary-button,
.secondary-button,
.boost-button {
  border-radius: 16px;
  padding: 12px 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.text-button {
  background: rgba(31, 23, 17, 0.06);
  color: var(--text);
}

.text-button[hidden] {
  display: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 14px 30px rgba(242, 61, 79, 0.24);
}

.primary-button.compact {
  padding: 10px 14px;
}

.secondary-button,
.boost-button {
  background: rgba(31, 23, 17, 0.06);
  color: var(--text);
  flex: 1;
}

.secondary-button:hover,
.primary-button:hover,
.text-button:hover,
.boost-button:hover,
.pulse-button:hover {
  transform: translateY(-1px);
}

.challenge-stage {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 156px;
  gap: 14px;
  align-items: center;
}

.meter-block {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.meter-row {
  justify-content: space-between;
  margin-bottom: 10px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 23, 17, 0.08);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transition: width 160ms ease;
}

.pulse-button {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(145deg, var(--accent), var(--accent-3));
  box-shadow:
    inset 0 6px 12px rgba(255, 255, 255, 0.2),
    0 18px 40px rgba(242, 61, 79, 0.28);
  position: relative;
}

.pulse-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid rgba(255, 107, 44, 0.24);
  animation: halo 2.2s infinite;
}

@keyframes halo {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.pulse-button span {
  display: block;
  width: 90px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.1;
  text-align: center;
}

.boost-row,
.task-list,
.loop-grid {
  margin-top: 14px;
}

.event-card,
.report-card,
.loop-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.event-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.report-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 198, 118, 0.42), transparent 26%),
    radial-gradient(circle at 12% 18%, rgba(255, 229, 186, 0.14), transparent 22%),
    radial-gradient(circle at 45% 88%, rgba(217, 68, 49, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(22, 14, 12, 0.98), rgba(51, 22, 15, 0.96) 48%, rgba(112, 42, 20, 0.94));
  color: #fff6f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(70, 26, 3, 0.3);
  isolation: isolate;
}

.report-card::before,
.report-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.report-card::before {
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.04));
}

.report-card::after {
  inset: auto 16px 108px auto;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 228, 206, 0.68), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.report-card > * {
  position: relative;
  z-index: 1;
}

.report-topline,
.report-rank-row,
.report-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.report-topline {
  margin-bottom: 16px;
}

.report-stamp,
.report-date,
.report-footer-brand,
.report-footer-meta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.report-stamp,
.report-date {
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.report-stamp {
  background: rgba(255, 255, 255, 0.12);
  color: #ffe1d0;
}

.report-date {
  background: rgba(31, 23, 17, 0.22);
  color: rgba(255, 246, 240, 0.82);
}

.report-rank-row {
  align-items: flex-start;
}

.report-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-rank {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd6c1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 12px;
  border-radius: 999px;
}

.report-proof {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff4ec;
  font-size: 13px;
  font-weight: 600;
}

.report-card h3 {
  font-size: clamp(34px, 8.5vw, 44px);
  line-height: 0.92;
  max-width: 300px;
  text-wrap: balance;
}

.report-card p {
  margin: 0;
  color: rgba(255, 246, 240, 0.84);
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.report-hook {
  padding: 13px 14px;
  border-left: 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  backdrop-filter: blur(6px);
}

.report-tags {
  flex-wrap: wrap;
  margin-top: 0;
}

.report-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff1e8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-shareline {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fffaf6;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.report-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.report-footer-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe3d2;
}

.report-footer-meta {
  color: rgba(255, 246, 240, 0.68);
  font-size: 12px;
}

.report-watermark {
  position: absolute;
  right: -8px;
  bottom: 52px;
  z-index: 0;
  font-size: clamp(68px, 20vw, 122px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: rgba(255, 241, 232, 0.04);
  pointer-events: none;
  user-select: none;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.loop-card strong {
  display: block;
  font-size: 18px;
}

.leaderboard {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.84);
}

.leaderboard .rank-index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 107, 44, 0.14);
  color: var(--accent-3);
}

.leaderboard strong {
  display: block;
}

.leaderboard span {
  color: var(--muted);
  font-size: 13px;
}

.leaderboard em {
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-note {
    max-width: none;
  }

  .download-actions .primary-button {
    width: 100%;
  }

  .challenge-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .meter-block {
    width: 100%;
  }

  .pulse-button {
    width: 148px;
    height: 148px;
  }

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

  .report-card {
    min-height: 580px;
    padding: 20px 18px 16px;
  }

  .report-card h3 {
    max-width: 260px;
  }

  .report-watermark {
    right: -6px;
    bottom: 56px;
    font-size: 76px;
  }
}
