:root {
  color-scheme: dark;
  --bg: #070b16;
  --card: rgba(7, 13, 26, .96);
  --card-strong: rgba(10, 18, 34, .98);
  --text: #f4f8ff;
  --muted: #edf5ff;
  --line: rgba(191, 219, 254, .24);
  --accent: #7dd3fc;
  --accent2: #c084fc;
  --good: #86efac;
  --warn: #fcd34d;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: radial-gradient(circle at top left, #172554, transparent 34rem), radial-gradient(circle at bottom right, #581c87, transparent 36rem), var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
.orb { position: fixed; width: 22rem; height: 22rem; border-radius: 999px; filter: blur(64px); opacity: .10; pointer-events: none; }
.orb-a { background: #38bdf8; top: 6%; right: 5%; }
.orb-b { background: #a855f7; bottom: 4%; left: 2%; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 32px; position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: stretch; margin-bottom: 24px; }
.hero > *, .clock-card, .progress-card, .metric-card, .bar-card, .panel { min-width: 0; }
.eyebrow, .mini-label { color: #9be3ff; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 900; margin: 0 0 10px; }
h1 { font-size: clamp(2.3rem, 7vw, 5.9rem); line-height: .92; letter-spacing: -.07em; margin: 0; max-width: 920px; overflow-wrap: anywhere; text-wrap: balance; }
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-prop { color: #9be3ff; font-size: clamp(.82rem, 1.6vw, 1.05rem); max-width: 680px; line-height: 1.5; margin: 0 0 6px; font-weight: 500; }
.subhead { color: #eef6ff; font-size: clamp(1rem, 2vw, 1.25rem); max-width: 760px; line-height: 1.55; text-wrap: pretty; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.clock-card, .metric-card, .progress-card, .bar-card, .panel { border: 1px solid rgba(191, 219, 254, .32); background: linear-gradient(145deg, rgba(7, 13, 26, 1), rgba(10, 18, 34, .99)); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: none; }
.clock-card { padding: 24px; display: flex; flex-direction: column; justify-content: center; min-height: 210px; }
.clock-card strong { font-size: 2.6rem; letter-spacing: -.05em; }
.clock-card span:last-child { color: #f3f8ff; }
.location-line { margin-top: 8px; color: var(--text) !important; font-size: .92rem; opacity: .92; overflow-wrap: anywhere; }
.big-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.progress-card { padding: 22px; display: flex; gap: 22px; align-items: center; }
.progress-card h2 { font-size: 2.3rem; margin: 0 0 6px; }
.progress-card p:last-child, .metric-card span, .bar-card p, .quiet { color: #e6f0ff; font-weight: 600; }

/* Share stats */
.share-stats {
  margin-top: 14px;
  padding: 14px;
  background: rgba(125,211,252,.06);
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 14px;
  text-align: center;
}
.share-stats > strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}
.share-stats > span {
  color: #dceaff;
  font-size: .78rem;
}
.share-stat-breakdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}
.share-stat-breakdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.share-stat-breakdown strong {
  font-size: 1.1rem;
  color: var(--accent);
}
.share-stat-breakdown span {
  color: #94a3b8;
  font-size: .72rem;
}
.referrer-stats {
  margin-top: 14px;
  padding: 14px;
  background: rgba(192,132,252,.06);
  border: 1px solid rgba(192,132,252,.14);
  border-radius: 14px;
  text-align: center;
}
.referrer-stats > strong {
  display: block;
  font-size: .85rem;
  color: #c084fc;
  margin-bottom: 8px;
}
.referrer-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.referrer-breakdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.referrer-breakdown strong {
  font-size: 1rem;
  color: var(--accent);
}
.referrer-breakdown span {
  color: #94a3b8;
  font-size: .68rem;
  text-transform: capitalize;
}
.ring { --value: 0; width: 140px; height: 140px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(148,163,184,.14) 0); position: relative; }
.ring::after { content: ''; position: absolute; inset: 12px; border-radius: inherit; background: #0f172a; }
.ring span { position: relative; z-index: 1; font-weight: 900; font-size: 1.35rem; }
.metric-card { padding: 22px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card strong { font-size: 2.65rem; letter-spacing: -.06em; }
.metric-card strong, .progress-card h2, .panel h2, .season-block strong { color: #ffffff; }
.metric-card.accent { background: linear-gradient(145deg, rgba(14, 116, 144, .52), rgba(10, 18, 34, .88)); }
.primary-panel { margin-bottom: 16px; border-color: rgba(125,211,252,.34); background: linear-gradient(135deg, rgba(14,116,144,.34), rgba(15,23,42,.94) 45%, rgba(88,28,135,.28)); }
.share-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.share-panel h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); letter-spacing: -.045em; margin-bottom: 8px; }
.share-panel p:last-child { color: #e9f3ff; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
#sharePreview { word-break: break-word; background: rgba(125,211,252,.06); border: 1px solid rgba(125,211,252,.12); border-radius: 10px; padding: 12px 14px; font-size: .92rem; line-height: 1.5; }
.share-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.share-button { appearance: none; border: 0; border-radius: 999px; padding: 15px 20px; color: #03111f; background: linear-gradient(135deg, var(--accent), var(--good)); font-weight: 900; cursor: pointer; box-shadow: 0 14px 34px rgba(125,211,252,.24); white-space: normal; transition: transform .25s ease, filter .25s ease; }
.share-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.copy-link-button { appearance: none; border: 1px solid rgba(125,211,252,.32); border-radius: 999px; padding: 10px 18px; color: var(--accent); background: rgba(125,211,252,.08); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.copy-link-button:hover { background: rgba(125,211,252,.16); border-color: rgba(125,211,252,.5); }
.download-image-button { appearance: none; border: 1px solid rgba(125,211,252,.2); border-radius: 999px; padding: 8px 16px; color: var(--accent); background: transparent; font-weight: 600; font-size: .82rem; cursor: pointer; transition: background .2s ease; }
.download-image-button:hover { background: rgba(125,211,252,.1); }
.challenge-button { appearance: none; border: 1px dashed rgba(125,211,252,.35); border-radius: 999px; padding: 8px 16px; color: var(--accent); background: transparent; font-weight: 600; font-size: .82rem; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.challenge-button:hover { background: rgba(125,211,252,.1); border-color: rgba(125,211,252,.6); }
.challenge-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.challenge-input input { flex: 1; border: 1px solid rgba(125,211,252,.3); border-radius: 8px; padding: 8px 12px; background: rgba(125,211,252,.06); color: var(--accent); font-size: .88rem; }
.challenge-input button { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .82rem; cursor: pointer; }
.challenge-input #challengeGoBtn { background: var(--accent); color: var(--bg); }
.challenge-input #challengeCancelBtn { background: transparent; color: var(--accent); border: 1px solid rgba(125,211,252,.3); }
.bars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.bar-card { padding: 18px; }
.bar-card > div:first-child, .panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar-card span { font-weight: 700; }
.bar-card b { color: var(--accent); }
.bar { height: 10px; background: rgba(148, 163, 184, .16); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.bar i { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .5s ease; }
.insight-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 16px; margin-bottom: 16px; }
.panel { padding: 22px; }
.panel h2 { margin: 0; font-size: 1.1rem; }
.panel-head span { color: #dceaff; font-size: .85rem; }
.fact-list p { margin: 14px 0; color: #e6f0ff; line-height: 1.5; }
.fact-list b, .fact-list span { color: var(--text); }
.season-block strong { display: block; font-size: 2.4rem; margin: 22px 0 8px; letter-spacing: -.05em; }
.season-block p { color: #e6f0ff; line-height: 1.5; }
.page-pulse-panel { margin-top: 16px; }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.analytics-grid div { background: rgba(148, 163, 184, .11); border: 1px solid var(--line); padding: 14px; border-radius: 18px; }
.analytics-grid strong { display: block; font-size: 1.7rem; }
.analytics-grid span { color: #dceaff; font-size: .8rem; }
.curious-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.curious-grid div { background: linear-gradient(145deg, rgba(125,211,252,.10), rgba(192,132,252,.07)); border: 1px solid rgba(125,211,252,.18); padding: 14px; border-radius: 18px; }
.curious-grid span { display: block; color: #dceaff; font-size: .78rem; line-height: 1.25; margin-bottom: 8px; }
.curious-grid strong { display: block; color: var(--text); font-size: clamp(1rem, 2.2vw, 1.45rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.calendar-panel { overflow: hidden; background: rgba(7, 13, 26, .98); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.calendar-weekdays { margin: 20px 0 8px; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: center; }
.calendar-day { min-height: 54px; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; color: #edf6ff; background: rgba(148, 163, 184, .10); }
.calendar-day.current { color: #06121f; background: linear-gradient(135deg, var(--accent), var(--good)); font-weight: 900; box-shadow: 0 12px 32px rgba(125,211,252,.22); }
.calendar-day.empty { opacity: .15; }
footer { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .88rem; padding: 8px 4px; flex-wrap: wrap; }
.credit { margin-top: 4px; font-size: .82rem; }
.credit a { color: var(--accent); text-decoration: none; }
.credit a:hover { text-decoration: underline; }
.credit-cta { color: var(--muted); font-size: .82rem; }
.credit-cta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.credit-cta a:hover { text-decoration: underline; }

/* Sponsor slot */
.sponsor-slot {
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(148, 163, 184, .08);
  border: 1px dashed rgba(148, 163, 184, .25);
  border-radius: 12px;
  font-size: .82rem;
  text-align: center;
}
.sponsor-label {
  color: #94a3b8;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 8px;
}
.sponsor-slot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.sponsor-slot a:hover { text-decoration: underline; }

/* Challenge banner */
.challenge-banner {
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(192,132,252,.18), rgba(125,211,252,.12));
  border: 1px solid rgba(192,132,252,.35);
  border-radius: 16px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent2);
  text-align: center;
  animation: challengeSlideIn .5s ease-out;
}
.challenge-banner strong { color: var(--text); }

/* Rarity badge */
.rarity-badge {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(125,211,252,.06);
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
}
.rarity-icon { font-size: 1rem; }
.rarity-text { line-height: 1.3; }
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #eef5ff; --card: rgba(255,255,255,.88); --card-strong: rgba(255,255,255,.96); --text: #0f172a; --muted: #4d5a70; --line: rgba(15, 23, 42, .14); --shadow: 0 24px 80px rgba(15,23,42,.12); }
  .ring::after { background: #f8fbff; }
}
@media (max-width: 980px) { .hero, .insight-grid { grid-template-columns: 1fr; } .big-grid, .bars-grid, .analytics-grid, .curious-grid { grid-template-columns: repeat(2, 1fr); } .year-card { grid-column: 1 / -1; } .clock-card { min-height: auto; } }
@media (max-width: 620px) {
  * { max-width: 100%; }
  .shell { width: calc(100% - 22px); padding-top: 18px; overflow-x: hidden; }
  .hero { gap: 14px; margin-bottom: 14px; }
  h1 { font-size: clamp(1.72rem, 9.6vw, 2.85rem); line-height: 1.02; letter-spacing: -.045em; max-width: 100%; }
  h1 span { display: inline-block; max-width: 100%; }
  .subhead { font-size: .92rem; line-height: 1.42; margin-bottom: 0; }
  .clock-card strong { font-size: clamp(2rem, 11vw, 2.6rem); }
  .clock-card, .metric-card, .progress-card, .bar-card, .panel { border-radius: 22px; padding: 16px; overflow: visible; }
  .location-line, .clock-card span, .bar-card p, .progress-card p, .fact-list p, footer, .credit, .subhead, .value-prop, #sharePreview { overflow-wrap: anywhere; word-break: normal; hyphens: auto; }
  .big-grid, .bars-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .analytics-grid, .curious-grid { grid-template-columns: 1fr; }
  .share-panel { grid-template-columns: 1fr; gap: 14px; }
  .share-actions { width: 100%; }
  .share-button { width: 100%; }
  .copy-link-button { width: 100%; text-align: center; }
  .progress-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .progress-card h2 { font-size: 1.8rem; }
  .ring { width: 100px; height: 100px; }
  .ring::after { inset: 9px; }
  .ring span { font-size: 1rem; }
  .metric-card { min-height: 118px; }
  .metric-card strong { font-size: clamp(1.65rem, 9vw, 2.35rem); }
  .bar-card > div:first-child { align-items: flex-start; flex-direction: column; gap: 4px; }
  .bar-card p { font-size: .9rem; line-height: 1.35; }
  footer { flex-direction: column; }
  .value-prop { font-size: .82rem; }
  .calendar-day { min-height: 42px; border-radius: 12px; }
  .orb { opacity: .05; }
  .clock-card::after, .metric-card::after, .progress-card::after, .bar-card::after, .panel::after { display: none; }
}
@media (max-width: 430px) {
  body { overflow-x: clip; }
  .hero, .big-grid, .bars-grid, .insight-grid, .analytics-grid, .curious-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 104px; }
  .progress-card { flex-direction: column; }
  .clock-card, .metric-card, .progress-card, .bar-card, .panel { width: 100%; max-width: 100%; }
  .calendar-weekdays, .calendar-grid { gap: 4px; }
  .calendar-weekdays { font-size: .64rem; }
  .calendar-day { min-height: 38px; font-size: .82rem; }
}

/* Motion layer: glow, shimmer, particles, reveal */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: .24;
  mix-blend-mode: screen;
}
.orb { animation: orbDrift 16s ease-in-out infinite alternate; z-index: 0; }
.orb-b { animation-duration: 21s; animation-delay: -5s; }
.shell { z-index: 1; }
.hero h1 span, .clock-card strong, .metric-card strong, .analytics-grid strong {
  text-shadow: 0 0 28px rgba(125, 211, 252, .18);
}
.hero h1 span {
  background-size: 220% auto;
  animation: gradientFlow 7s ease-in-out infinite, textShimmer 5.5s ease-in-out infinite;
}
.clock-card, .metric-card, .progress-card, .bar-card, .panel {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.clock-card::before, .metric-card::before, .progress-card::before, .bar-card::before, .panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125,211,252,.55), rgba(192,132,252,.22), rgba(134,239,172,.28), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .25;
  pointer-events: none;
}
.clock-card::after, .metric-card::after, .progress-card::after, .bar-card::after, .panel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-140%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  animation: cardSweep 9s ease-in-out infinite;
  pointer-events: none;
}
.clock-card:hover, .metric-card:hover, .progress-card:hover, .bar-card:hover, .panel:hover {
  transform: translateY(-4px);
  border-color: rgba(125,211,252,.42);
  box-shadow: 0 22px 90px rgba(56,189,248,.12), 0 24px 80px rgba(0,0,0,.35);
}
.clock-card { animation: softPulse 4s ease-in-out infinite; }
.ring {
  box-shadow: 0 0 0 1px rgba(125,211,252,.16), 0 0 42px rgba(125,211,252,.18), inset 0 0 28px rgba(192,132,252,.08);
  transition: background .65s cubic-bezier(.2,.9,.2,1), filter .35s ease;
}
.ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent, rgba(125,211,252,.0), rgba(125,211,252,.55), rgba(192,132,252,.2), transparent 42%);
  filter: blur(10px);
  opacity: .55;
  animation: spin 8s linear infinite;
}
.bar { position: relative; box-shadow: inset 0 0 16px rgba(0,0,0,.22); }
.bar i {
  position: relative;
  box-shadow: 0 0 22px rgba(125,211,252,.35);
  transition: width 1s cubic-bezier(.16,1,.3,1);
}
.bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: translateX(-100%);
  animation: progressGleam 2.8s ease-in-out infinite;
}
.calendar-day {
  transition: transform .25s ease, opacity .35s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.calendar-day:not(.empty):hover { transform: translateY(-2px) scale(1.03); border-color: rgba(125,211,252,.42); }
.calendar-day.past { opacity: .66; background: rgba(148, 163, 184, .06); }
.calendar-day.future { opacity: .82; }
.calendar-day.current {
  animation: todayGlow 2.6s ease-in-out infinite;
  position: relative;
}
.calendar-day.current::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(134,239,172,.55);
  animation: ping 2.6s ease-out infinite;
}
.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity .75s ease, transform .75s cubic-bezier(.16,1,.3,1), filter .75s ease;
}
.reveal.in-view.glow-pop { animation: glowPop 1.25s ease-out both; }
.calendar-day.reveal { transform: translateY(10px) scale(.94); }
.calendar-day.reveal.in-view { transition-delay: calc(var(--i, 0) * 18ms); }
.pulse-tick { animation: tickPulse .38s ease-out; }
.counter-flash { animation: counterFlash .72s ease-out; }
@keyframes orbDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(24px,-18px,0) scale(1.08); } }
@keyframes gradientFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes textShimmer { 0%,72%,100% { filter: brightness(1); } 78% { filter: brightness(1.4); } 84% { filter: brightness(1.08); } }
@keyframes cardSweep { 0%, 64% { transform: translateX(-140%) skewX(-18deg); } 78%, 100% { transform: translateX(140%) skewX(-18deg); } }
@keyframes softPulse { 0%,100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 20px 90px rgba(125,211,252,.12), var(--shadow); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progressGleam { 0% { transform: translateX(-100%); opacity: 0; } 35% { opacity: .9; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes todayGlow { 0%,100% { box-shadow: 0 12px 32px rgba(125,211,252,.22); } 50% { box-shadow: 0 12px 44px rgba(125,211,252,.45), 0 0 28px rgba(134,239,172,.30); } }
@keyframes ping { 0% { transform: scale(.98); opacity: .85; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes glowPop { 0% { box-shadow: var(--shadow); } 35% { box-shadow: 0 0 0 1px rgba(125,211,252,.24), 0 0 70px rgba(125,211,252,.18), var(--shadow); } 100% { box-shadow: var(--shadow); } }
@keyframes tickPulse { 0% { transform: scale(1); } 45% { transform: scale(1.025); text-shadow: 0 0 26px rgba(125,211,252,.46); } 100% { transform: scale(1); } }
@keyframes counterFlash { 0% { filter: brightness(1); } 30% { filter: brightness(1.55); text-shadow: 0 0 22px rgba(134,239,172,.35); } 100% { filter: brightness(1); } }
@keyframes challengeSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) {
  #particleCanvas { opacity: .14; }
  .clock-card::after, .metric-card::after, .progress-card::after, .bar-card::after, .panel::after { animation-duration: 11s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #particleCanvas { display: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* v28 growth/share loop */
.growth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  position: relative;
}
.growth-panel h2 { margin-bottom: 8px; }
.growth-panel #sharePreview {
  margin: 10px 0 0;
  background: rgba(15, 23, 42, .46);
  border: 1px solid rgba(125, 211, 252, .18);
}
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.share-button.primary-share {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  box-shadow: 0 12px 30px rgba(125, 211, 252, .24);
}
.share-button.secondary-share { background: rgba(255,255,255,.10); color: var(--text); border: 1px solid rgba(255,255,255,.16); }
.challenge-toggle { justify-self: end; }
.challenge-row {
  grid-column: 1 / -1;
  display: none;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.challenge-row input {
  min-width: 180px;
  flex: 1;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.ghost-button {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 720px) {
  .growth-panel { grid-template-columns: 1fr; }
  .share-actions, .challenge-toggle { justify-content: stretch; justify-self: stretch; }
  .share-actions .share-button, .challenge-toggle, .challenge-row .share-button, .challenge-row .ghost-button { width: 100%; }
}
