:root {
  --cream: #fbf2e2;
  --cream-2: #fdf7ec;
  --ink: #35302a;
  --ink-soft: #7a7066;
  --pink: #f6b7c6;
  --pink-deep: #e98aa1;
  --sol-a: #14f195;
  --sol-b: #9945ff;
  --card: #fffdf8;
  --line: #eadfce;
  --shadow: 0 10px 30px rgba(120, 96, 60, .14);
  --pixel: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px 18px 20px;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, var(--cream-2), var(--cream) 60%);
  overflow-x: hidden;
}

/* floating kawaii decor */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.decor .d {
  position: absolute;
  font-size: 18px;
  color: var(--pink);
  opacity: .55;
  animation: float 7s ease-in-out infinite;
}
.decor .d3 { color: var(--pink-deep); }
.decor .d6 { color: var(--sol-b); opacity: .4; }
.d1 { left: 8%;  top: 16%; }
.d2 { left: 84%; top: 12%; color: var(--sol-b); }
.d3 { left: 15%; top: 74%; }
.d4 { left: 90%; top: 62%; color: var(--sol-a); animation-delay: -2s; }
.d5 { left: 78%; top: 82%; animation-delay: -3.5s; }
.d6 { left: 90%; top: 34%; animation-delay: -1s; }
.d7 { left: 6%;  top: 44%; color: var(--pink-deep); animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(6deg); }
}

/* the card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
  text-align: center;
}

.hero { margin: -70px auto 4px; }
.cat {
  width: 200px;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 8px 10px rgba(120, 96, 60, .18));
  animation: bob 3.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.wordmark {
  font-family: var(--pixel);
  font-weight: 600;
  font-size: clamp(38px, 13vw, 56px);
  line-height: .9;
  margin: 4px 0 2px;
  color: var(--card);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--pink);
}

.ticker {
  font-family: var(--pixel);
  font-size: 16px;
  letter-spacing: .5px;
  margin: 4px 0 10px;
  color: var(--pink-deep);
}

.tagline {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto 18px;
}

/* contract window: a tiny os-window styled card */
.ca {
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-2);
  margin: 0 0 14px;
  text-align: left;
}
.ca-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--sol-b), var(--sol-a));
}
.ca-head .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .85);
}
.ca-title {
  font-family: var(--pixel);
  font-size: 13px;
  color: #fff;
  margin-left: 6px;
  letter-spacing: .5px;
}
.ca-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}
#caText {
  flex: 1;
  min-width: 0;
  font-family: "Nunito", monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  word-break: break-all;
  line-height: 1.35;
}
#caText.is-live { color: var(--ink); }
.copy {
  flex: none;
  font-family: var(--pixel);
  font-size: 13px;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.copy:hover { background: var(--pink-deep); }
.copy:active { transform: scale(.94); }

/* twitter button */
.tw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 13px;
  padding: 13px 16px;
  transition: transform .12s ease, background .15s ease;
}
.tw:hover { background: var(--pink-deep); transform: translateY(-2px); }
.tw:active { transform: translateY(0) scale(.98); }
.tw svg { display: block; }

/* smol easter egg */
.actual {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.actual img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.actual figcaption {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 34ch;
  line-height: 1.5;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 9998;
  background: var(--ink);
  color: #fff;
  font-family: var(--pixel);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 520px) {
  .cat { width: 230px; }
  .hero { margin-top: -84px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat, .decor .d { animation: none; }
}
