/* tokens: bg #323232 (sampled off the avatar's own viewport grey)
   teal #14F195, purple #9945FF (Solana pair, per batch rule)
   type: Bungee (display line) + Space Mono (ticker/CA, real case)
   radius 0, no shadows, one motion: 2deg base-pivot sway */

@font-face {
  font-family: "Bungee";
  src: url("assets/fonts/bungee-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: #323232;
}

body {
  display: flex;
  min-height: 100dvh;
  font-family: "Space Mono", monospace;
  color: #ececec;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vh, 22px);
  padding: 4vh 6vw 6vh;
  transform: translateX(min(6vw, 64px));
}

.parasol-wrap {
  width: min(48vw, 58vh, 560px);
  aspect-ratio: 1 / 1;
}

.parasol {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 90%;
  animation: sway 5.5s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.line {
  font-family: "Bungee", "Space Mono", monospace;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.9vw, 1.35rem);
  line-height: 1.4;
  text-align: center;
  max-width: min(78vw, 640px);
  color: #f4f4f4;
}

.record {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ticker {
  font-family: "Bungee", "Space Mono", monospace;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  color: #14F195;
  letter-spacing: 0.02em;
}

.sep { color: #6a6a6a; }

.ca {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: clamp(0.68rem, 1.3vw, 0.92rem);
  color: #d9b8ff;
  background: transparent;
  border: 1px solid #9945FF;
  padding: 6px 10px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.ca:hover { background: rgba(153, 69, 255, 0.15); }

.credit {
  position: fixed;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.credit a {
  color: #9a9a9a;
  text-decoration: none;
}

.credit a:hover { color: #14F195; }

@media (prefers-reduced-motion: reduce) {
  .parasol { animation: none; }
}

@media (max-width: 560px) {
  .stage { transform: translateX(min(4vw, 24px)); gap: 14px; }
  .parasol-wrap { width: min(64vw, 50vh, 420px); }
}
