/* FLASH shared theme */
:root {
  --ink: #06080e;
  --panel: #0e121c;
  --line: #1f2636;
  --text: #e8ecf3;
  --dim: #8a93a8;
  --cyan: #62e6ff;
  --lime: #c6ff3d;
  --magenta: #ff4fd8;
  --red: #ff5468;
  --amber: #ffc83d;
  --blue: #5a8cff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(98,230,255,.10), transparent 60%),
    radial-gradient(700px 480px at -5% 30%, rgba(255,79,216,.07), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

#warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -10vh; height: 55vh; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(98,230,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,230,255,.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
  animation: floor 3.5s linear infinite;
}
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes floor { to { background-position: 0 64px, 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes glitchIn {
  0% { opacity: 0; transform: translateY(40%) skewX(-12deg); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(-4%) skewX(4deg); filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes jitter {
  0% { transform: translate(0, 0); text-shadow: 3px 0 var(--magenta), -3px 0 var(--cyan); }
  50% { transform: translate(-2px, 1px); text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan); }
  100% { transform: translate(1px, -1px); text-shadow: 2px 0 var(--lime), -2px 0 var(--magenta); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
