/* design tokens, sampled off the approved avatar (PIL pixel probe of the deep-fried background + paste blob) */
:root {
  --bg: #8a0300;         /* the avatar's own oversaturated red background, averaged */
  --bg-deep: #4a0100;    /* darker edge, used only for the fixed chrome bars */
  --ink: #1a0400;        /* near-black outline tone from the linework */
  --paste-light: #f3dfa0;
  --paste-mid: #d9a24a;
  --paste-dark: #7a4a12;
  --glow: rgba(255, 191, 60, 0.4);
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--paste-light);
  font-family: 'Courier Prime', 'Courier New', ui-monospace, monospace;
}

.caption {
  position: fixed;
  top: 4dvh;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(13px, 2.4vw, 17px);
  letter-spacing: 0.02em;
  color: var(--paste-light);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.stage {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rig {
  position: relative;
  width: min(56vw, 46dvh, 380px);
  display: flex;
  flex-direction: column;
}

.plunger,
.body {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
}

.plunger {
  z-index: 2;
  transform: translateY(0);
  transition: transform 150ms ease-out;
  cursor: pointer;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.body {
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.rig.pressed .plunger {
  transform: translateY(6%);
  transition: transform 90ms ease-in;
}

.plunger:focus-visible {
  outline: 2px solid var(--paste-light);
  outline-offset: 3px;
}

.trail {
  position: absolute;
  left: 50%;
  top: 89%;
  width: 8%;
  height: 0;
  transform: translateX(-50%);
  border-radius: 45% 45% 60% 60% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 0%, var(--paste-light) 0%, var(--paste-mid) 55%, var(--paste-dark) 100%);
  box-shadow: 0 0 20px 6px var(--glow);
  pointer-events: none;
  z-index: 0;
}

.ca {
  position: fixed;
  left: 4vw;
  bottom: 3dvh;
  z-index: 4;
  appearance: none;
  border: 1px solid var(--paste-dark);
  background: rgba(26, 4, 0, 0.45);
  border-radius: 3px;
  padding: 6px 10px;
  margin: 0;
  font-family: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--paste-light);
  cursor: pointer;
}

.ca:hover,
.ca:focus-visible {
  color: #fff;
  border-color: var(--paste-light);
}

@media (prefers-reduced-motion: reduce) {
  .plunger,
  .rig.pressed .plunger {
    transition: none;
  }
  .trail {
    transition: none;
  }
}

@media (max-width: 480px) {
  .rig { width: min(72vw, 50dvh); }
  .ca { font-size: 11px; padding: 5px 8px; left: 3vw; bottom: 2.4dvh; }
  .caption { top: 3dvh; }
}
