:root {
  --void: #020403;
  --panel: #07110b;
  --line: #16351f;
  --green: #39ff14;
  --green-dim: #1dff7a;
  --red: #ff2a2a;
  --amber: #f5c518;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--green) #050805;
}

html {
  scroll-behavior: smooth;
}

body {
  --shake: 0;
  --shake-speed: 0.22s;
  background: var(--void);
  color: #d8ffe4;
  overflow-x: hidden;
}

body.shake-it {
  animation: shake var(--shake-speed) infinite;
}

@keyframes shake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(calc(var(--shake) * -14px), calc(var(--shake) * 8px)) rotate(calc(var(--shake) * -1.4deg)); }
  20% { transform: translate(calc(var(--shake) * 16px), calc(var(--shake) * -10px)) rotate(calc(var(--shake) * 1.6deg)); }
  30% { transform: translate(calc(var(--shake) * -18px), calc(var(--shake) * -6px)) rotate(calc(var(--shake) * -1.2deg)); }
  40% { transform: translate(calc(var(--shake) * 12px), calc(var(--shake) * 14px)) rotate(calc(var(--shake) * 1.8deg)); }
  50% { transform: translate(calc(var(--shake) * -10px), calc(var(--shake) * -12px)) rotate(calc(var(--shake) * -2deg)); }
  60% { transform: translate(calc(var(--shake) * 18px), calc(var(--shake) * 6px)) rotate(calc(var(--shake) * 1.1deg)); }
  70% { transform: translate(calc(var(--shake) * -16px), calc(var(--shake) * 10px)) rotate(calc(var(--shake) * -1.7deg)); }
  80% { transform: translate(calc(var(--shake) * 10px), calc(var(--shake) * -14px)) rotate(calc(var(--shake) * 1.3deg)); }
  90% { transform: translate(calc(var(--shake) * -8px), calc(var(--shake) * 12px)) rotate(calc(var(--shake) * -0.9deg)); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.scanlines {
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0px,
      rgba(0, 0, 0, 0.18) 1px,
      transparent 2px,
      transparent 4px
    );
}

.grid-fade {
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.nav-hidden {
  transform: translateY(-120%);
}

.ticker-track {
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.glitch {
  position: relative;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.45);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glitch::before {
  color: #00f0ff;
  transform: translate(-3px, 0);
  clip-path: inset(0 0 58% 0);
  animation: glitch-top 2.4s infinite linear alternate-reverse;
}

.glitch::after {
  color: var(--red);
  transform: translate(3px, 0);
  clip-path: inset(55% 0 0 0);
  animation: glitch-bot 1.8s infinite linear alternate-reverse;
}

@keyframes glitch-top {
  0% { transform: translate(-2px, -1px); }
  50% { transform: translate(3px, 1px); }
  100% { transform: translate(-4px, 0); }
}

@keyframes glitch-bot {
  0% { transform: translate(2px, 1px); }
  50% { transform: translate(-3px, -1px); }
  100% { transform: translate(4px, 0); }
}

.pulse-buy {
  animation: pulse-buy 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
}

@keyframes pulse-buy {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.65), 0 0 24px rgba(57, 255, 20, 0.35); }
  70% { box-shadow: 0 0 0 16px rgba(57, 255, 20, 0), 0 0 28px rgba(57, 255, 20, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0), 0 0 24px rgba(57, 255, 20, 0.35); }
}

.printer-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff1a1a 0%, #8a1a1a 18%, #222 50%, #145c22 82%, #39ff14 100%);
  outline: none;
  border: 1px solid #39ff14;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.18), inset 0 0 12px rgba(0, 0, 0, 0.55);
}

.printer-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0b0f0c;
  border: 3px solid #39ff14;
  box-shadow: 0 0 18px #39ff14;
  cursor: grab;
}

.printer-range::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0b0f0c;
  border: 3px solid #39ff14;
  box-shadow: 0 0 18px #39ff14;
  cursor: grab;
}

.hero-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 255, 20, 0.18), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(255, 42, 42, 0.16), transparent 32%),
    linear-gradient(180deg, #031108 0%, #010201 100%);
}

.money-rain span {
  position: absolute;
  color: rgba(57, 255, 20, 0.22);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  animation: fall linear infinite;
  pointer-events: none;
}

@keyframes fall {
  0% { transform: translateY(-20vh); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

.card-glow {
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.18), 0 0 30px rgba(57, 255, 20, 0.06);
}

.card-glow:hover {
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.55), 0 0 40px rgba(57, 255, 20, 0.16);
}

.photo-desk {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem 0.35rem;
  padding: 1.5rem 0.25rem 3.5rem;
}

.snapshot {
  position: relative;
  width: min(230px, 44vw);
  margin: 0;
  padding: 11px 11px 46px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f3ead8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    6px 14px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease, z-index 0s;
  z-index: 1;
}

.snapshot img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) sepia(0.12);
  background: #111;
}

.snapshot figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: #2a2418;
  text-align: center;
  line-height: 1;
}

.snapshot-tape {
  position: absolute;
  top: -12px;
  left: 28%;
  width: 72px;
  height: 22px;
  background: rgba(255, 236, 170, 0.55);
  transform: rotate(-8deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.snapshot-tape.tape-right {
  left: auto;
  right: 22%;
  transform: rotate(9deg);
}

.snap-1 { transform: rotate(-8deg) translateY(18px); }
.snap-2 { transform: rotate(5deg) translateY(-10px); }
.snap-3 { transform: rotate(-4deg) translateY(14px); }
.snap-4 { transform: rotate(7deg) translateY(-6px); }

.snapshot:hover {
  z-index: 4;
  transform: rotate(-1deg) translateY(-12px) scale(1.06);
}

@media (max-width: 639px) {
  .snapshot {
    width: min(46vw, 190px);
    padding-bottom: 38px;
  }

  .snapshot figcaption {
    font-size: 1.1rem;
  }
}

.crt-vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}
