/* tokens
   bg: rgb(161,225,52) #a1e134, the exact flat acid-green sampled off assets/avatar.png
   ink: #000 pure black, matches the art's own linework
   type: Permanent Marker (crude mouse-scrawl label/ticker/copy, matches the "MS Paint scrawl" lane)
         Space Mono (the CA only - real case, copyable, per the hard CA rule)
   corner radius: 0 everywhere except the CA chip (2px, just enough to read as a UI control)
   motion: two signal pings loop outward from the whisker-antenna arcs already drawn in the art.
           prefers-reduced-motion kills them.
*/

@font-face {
  font-family: "Permanent Marker";
  src: url("assets/fonts/permanent-marker-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #a1e134;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3vh 4vw;
  color: #000;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.receiver {
  position: relative;
  width: min(56vw, 58vh);
  aspect-ratio: 1 / 1;
}

.cat {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ping {
  position: absolute;
  width: 13%;
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.25);
  opacity: 0;
  pointer-events: none;
  animation: ping 2.4s ease-out infinite;
}

.ping-l { left: 17%; top: 20%; }
.ping-r { left: 83%; top: 20%; animation-delay: 1.2s; }
.ping-l2 { animation-delay: 0.9s; }
.ping-r2 { animation-delay: 2.1s; }

@keyframes ping {
  0%   { transform: translate(-50%, -50%) scale(0.25); opacity: 0.85; }
  70%  { opacity: 0.12; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

.line {
  margin: 3vh 0 0;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(14px, 2.2vw, 20px);
  text-align: center;
  max-width: 34ch;
}

.id-row {
  margin: 2.2vh 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
}

.tk {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(16px, 2.4vw, 22px);
}

.dv { opacity: 0.55; }

.ca {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(10px, 1.5vw, 13px);
  color: #000;
  background: rgba(0, 0, 0, 0.08);
  border: 1.5px solid #000;
  border-radius: 2px;
  padding: 4px 8px;
  cursor: pointer;
  word-break: break-all;
}

.ca:hover { background: rgba(0, 0, 0, 0.16); }

.links {
  margin-top: 2.6vh;
  display: flex;
  gap: 1.6em;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.links a:hover { opacity: 1; }

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

@media (max-width: 480px) {
  .receiver { width: min(74vw, 52vh); }
}
