:root {
  --ink: #eafffb;
  --muted: rgba(234, 255, 251, 0.62);
  --teal: #4fd1c5;
  --glass: rgba(6, 17, 26, 0.5);
  --line: rgba(234, 255, 251, 0.14);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: #06111a;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.shade {
  position: fixed; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 17, 26, 0.9) 0%, rgba(6, 17, 26, 0.45) 50%, rgba(6, 17, 26, 0) 70%),
    linear-gradient(to bottom, rgba(6, 17, 26, 0.45), rgba(6, 17, 26, 0) 20%);
  pointer-events: none;
}

.x {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s, background .2s;
  z-index: 2;
}
.x:hover { transform: scale(1.06); background: rgba(6, 17, 26, 0.75); }

.panel {
  position: fixed;
  left: 50%; bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 1;
}

.name {
  font-size: clamp(56px, 13vw, 112px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 4px 0 #1f6f69, 0 12px 40px rgba(0, 0, 0, .5);
}

.agent {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 28px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.agent-label {
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.agent-value {
  font-size: clamp(30px, 7vw, 42px); font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.agent-unit { font-size: .5em; color: var(--muted); font-weight: 500; }
.agent-usd { font-size: 14px; color: var(--muted); font-weight: 500; }

.ca {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ca-label { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .08em; }
.ca-value {
  flex: 1; min-width: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca-copy {
  flex: none;
  font: 600 14px "Fredoka", system-ui, sans-serif;
  padding: 10px 20px;
  border: 0; border-radius: 999px;
  background: var(--teal);
  color: #06111a;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.ca-copy:hover:not(:disabled) { filter: brightness(1.1); }
.ca-copy:active:not(:disabled) { transform: scale(.96); }
.ca-copy:disabled { opacity: .45; cursor: default; }
.ca-copy:focus-visible, .x:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.tag {
  margin-top: -6px;
  font-size: clamp(17px, 3.6vw, 21px); font-weight: 600;
  color: var(--teal);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.story {
  max-width: 440px;
  text-align: center;
  font-size: 15px; font-weight: 500; line-height: 1.45;
  color: var(--muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.story a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.story a:hover { color: var(--teal); }
.nb { white-space: nowrap; }
@media (max-width: 520px) { .nb { display: block; } }

.launched {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  height: 46px;
  display: inline-flex; align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color .2s, background .2s;
  z-index: 2;
}
.launched strong { color: var(--teal); font-weight: 600; margin-left: .3em; }
.launched:hover { color: var(--ink); background: rgba(6, 17, 26, 0.75); }
.launched:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
