:root {
  --bg: #05070f;
  --bg2: #0a1126;
  --ink: #f4f6ff;
  --muted: #8f9bbd;
  --faint: #5a6688;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.035);
  --navy: #0c2a6b;
  --ember1: #ff6a2b;
  --ember2: #ffc04d;
  --ok: #3ddc97;
  --wait: #ffc04d;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 50% -10%, #12204a 0%, var(--bg2) 38%, var(--bg) 75%) fixed, var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

/* top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 18px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: 0.04em; }
.brand img { border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
/* Buy / Chart / fee wallet and a copyable CA only once the coin exists (beats .pill's display) */
body:not(.has-ca) .needs-ca { display: none !important; }
.ca:disabled { cursor: default; }
.ca:disabled .ca-value { font-family: var(--text); color: var(--muted); }
.ca:disabled .ca-copy { display: none; }
nav { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  font: 600 14px/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill.ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.07); }
.pill.solid { background: linear-gradient(90deg, var(--ember1), var(--ember2)); color: #1a0a00; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* hero: the word floating on its own reflection */
.hero { position: relative; text-align: center; padding: 48px 0 8px; }
.glow {
  position: absolute; left: 50%; top: 30px; width: min(760px, 100%); height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 120, 255, 0.28), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.word, .reflection span {
  font: 900 clamp(64px, 17vw, 196px)/0.9 var(--display);
  letter-spacing: 0.02em;
  margin: 0;
}
.word { position: relative; color: #fff; text-shadow: 0 0 40px rgba(120, 160, 255, 0.25); }
.reflection {
  position: relative; height: clamp(34px, 8.5vw, 98px); overflow: hidden;
  border-top: 1px solid rgba(160, 190, 255, 0.35);
  margin: 6px auto 0; width: min(100%, 980px);
}
.reflection span {
  /* flipped in place: the top of the box now shows the letters' feet, mirrored, right under the waterline */
  display: block; transform: scaleY(-1); transform-origin: center; color: #9fb6ff; opacity: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  animation: ripple 6s ease-in-out infinite;
}
@keyframes ripple {
  0%, 100% { transform: scaleY(-1) skewX(0deg) translateX(0); }
  50% { transform: scaleY(-1.04) skewX(-2deg) translateX(4px); }
}
@media (prefers-reduced-motion: reduce) { .reflection span { animation: none; } }

.tag { max-width: 560px; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.tag b { color: var(--ink); font-weight: 600; }

.ca {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  margin: 26px auto 0; padding: 10px 10px 10px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  font: 500 14px/1.2 var(--text);
}
.ca:hover { background: rgba(255, 255, 255, 0.06); }
.ca-label { color: var(--faint); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; }
.ca-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { flex: none; padding: 7px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); font-weight: 600; font-size: 13px; }
.ca.copied .ca-copy { background: var(--ok); color: #03140c; }

/* status line */
.status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 18px; color: var(--muted); font-size: 14px; text-align: center; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--wait); box-shadow: 0 0 0 0 rgba(255, 192, 77, 0.6); animation: pulse 2s infinite; }
body[data-status="live"] .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
body[data-status="paused"] .dot { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.label { color: var(--muted); font-size: 13px; font-weight: 500; }
.value { margin-top: 8px; font: 700 clamp(24px, 3.4vw, 32px)/1.1 var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { margin-top: 6px; color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.burn { border-color: rgba(255, 106, 43, 0.35); background: linear-gradient(180deg, rgba(255, 106, 43, 0.10), rgba(255, 106, 43, 0.02)); }
.tile.burn .value { background: linear-gradient(90deg, var(--ember1), var(--ember2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* how it works */
h2 { font: 700 20px/1.2 var(--display); margin: 0; letter-spacing: 0.01em; }
.how { margin-top: 56px; }
.how ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how li { display: flex; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.how .n {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(120, 160, 255, 0.12); color: #b9caff; font: 700 15px/1 var(--display);
}
.how h3 { margin: 4px 0 4px; font-size: 16px; }
.how p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* burn log */
.log { margin-top: 56px; }
.log-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-head a { color: var(--muted); font-size: 14px; }
.rows { margin-top: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.row { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.row:first-child { border-top: 0; }
.row .when { color: var(--muted); }
.row .amt { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.row .amt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--ember1), var(--ember2)); box-shadow: 0 0 8px rgba(255, 106, 43, 0.7); }
.row .links { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row a { color: var(--muted); font-size: 13px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.row a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }
.empty { padding: 26px 18px; color: var(--muted); text-align: center; font-size: 14.5px; }

footer { max-width: 1080px; margin: 64px auto 0; padding: 22px 16px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer p { margin: 0 0 6px; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { padding: 14px 16px; }
  .pill { height: 34px; padding: 0 12px; }
  .brand span { display: none; }
  .hero { padding-top: 26px; }
  .row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .row .sol { grid-column: 1; color: var(--muted); }
  .row .amt { grid-column: 1; }
  .row .links { grid-row: 1 / span 3; grid-column: 2; flex-direction: column; align-items: flex-end; }
  .row .when { grid-column: 1; }
}
