*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090a;
  --card: #101012;
  --cell: #16161a;
  --border: rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.10);
  --orange: #f97316;
  --orange2: #ea6a0a;
  --orange-lo: rgba(249,115,22,0.10);
  --orange-glow: rgba(249,115,22,0.22);
  --text-1: #f0ece3;
  --text-2: #777;
  --text-3: #404040;
  --green: #22c55e;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Syne', sans-serif;
}

html, body {
  min-height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.18s ease, top 0.18s ease;
  will-change: left, top;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  overflow: hidden;
  animation: rise 0.9s cubic-bezier(.22,.68,0,1.15) both;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 64px rgba(0,0,0,0.6);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  z-index: 10;
}

.wave-section {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: #0c0c0e;
}

.wave-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange2) 100%);
}

.wave-svg {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 200%;
  height: 36px;
}

.w1 { animation: wm1 3.2s linear infinite; }

.w2 {
  bottom: 36px;
  opacity: 0.5;
  animation: wm2 4.8s linear infinite;
}

@keyframes wm1 {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes wm2 {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

#sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.wave-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  z-index: 3;
  pointer-events: none;
}

.wave-pct {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

.wave-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.prog-wrap {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.04);
}

.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange2), var(--orange));
  border-radius: 0 3px 3px 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.prog-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px 3px rgba(249,115,22,0.55);
}

.milestones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ms-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cell);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.4s, border-color 0.4s;
}

.ms-dot.reached {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 6px rgba(249,115,22,0.7);
}

.ms-dot::after {
  content: attr(data-label);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text-3);
  white-space: nowrap;
}

.pct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem 0;
  animation: fadeUp 0.6s 0.12s ease both;
}

.pct-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pct-val {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
}

.body { padding: 1.3rem 1.4rem 1.5rem; }

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-lo);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.date-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  animation: fadeUp 0.6s 0.26s ease both;
}

.title em {
  color: var(--orange);
  font-style: normal;
}

.subtitle {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s 0.29s ease both;
}

.units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.6s 0.32s ease both;
}

.unit {
  background: var(--cell);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.85rem 0.4rem 0.7rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.unit:hover {
  border-color: rgba(249,115,22,0.3);
  transform: translateY(-2px);
}

.unit::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.28), transparent);
}

.num {
  font-family: var(--mono);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
  font-variant-numeric: tabular-nums;
  transition: text-shadow 0.08s;
}

.num.flash { text-shadow: 0 0 22px rgba(249,115,22,0.85); }

.lbl {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.6s 0.36s ease both;
}

.stat {
  background: var(--cell);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--orange-lo);
  border: 1px solid rgba(249,115,22,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--orange);
}

.stat-num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}

.quote-wrap {
  border: 1px solid var(--border);
  border-left: 2px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 1rem;
  margin-bottom: 1.1rem;
  height: 60px;
  display: flex;
  align-items: center;
  animation: fadeUp 0.6s 0.4s ease both;
  position: relative;
  overflow: hidden;
}

.quote-text {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.55;
  font-style: italic;
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote-text.hidden {
  opacity: 0;
  transform: translateY(6px);
}

.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.44s ease both;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeUp 0.6s 0.47s ease both;
}

.footer a {
  font-size: 11px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover { text-decoration: underline; }

.footer-r {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}

@media (max-width: 640px) {
  html {
    display: block;
    padding: 0;
  }

  body {
    min-height: 100svh;
    display: block;
    padding: 0.75rem;
  }

  #cursor-glow {
    display: none;
  }

  .card {
    width: 100%;
    border-radius: 20px;
  }

  .wave-section {
    height: 104px;
  }

  .pct-row,
  .body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .top-row,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge,
  .date-tag,
  .footer-r,
  .footer a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .title {
    font-size: 16px;
    line-height: 1.3;
  }

  .subtitle {
    line-height: 1.5;
  }

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

  .unit {
    min-width: 0;
  }

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

  .stat,
  .stat-info {
    min-width: 0;
  }

  .stat-label {
    line-height: 1.45;
  }

  .quote-wrap {
    height: auto;
    min-height: 60px;
  }

  .quote-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
