:root, :root.dark, html, html.dark, body, [data-theme] {
  --background: #021408 !important;
  --foreground: #33ff66 !important;
  --card: rgba(2, 20, 8, .85) !important;
  --card-foreground: #33ff66 !important;
  --popover: #021408 !important;
  --popover-foreground: #33ff66 !important;
  --primary: #33ff66 !important;
  --primary-foreground: #021408 !important;
  --secondary: #0a2e15 !important;
  --secondary-foreground: #33ff66 !important;
  --muted: #0a2e15 !important;
  --muted-foreground: #1fa847 !important;
  --accent: #0a2e15 !important;
  --accent-foreground: #33ff66 !important;
  --destructive: #ff5050 !important;
  --border: rgba(51, 255, 102, .45) !important;
  --input: rgba(51, 255, 102, .55) !important;
  --ring: #33ff66 !important;
  --radius: 0px !important;
  color-scheme: dark;
}

html, body {
  background: #000 !important;
}

body {
  color: #33ff66 !important;
  font-family: "VT323", "Courier New", ui-monospace, monospace !important;
  overflow-x: hidden;
}

body *, body input, body button {
  font-family: inherit !important;
  letter-spacing: .03em;
}

#root {
  margin: 12px;
  min-height: calc(100vh - 24px);
  border-radius: 48px / 40px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #062b12 0%, #021408 60%, #000 100%) !important;
  box-shadow: 0 0 0 2px #0a1a0e, 0 0 60px rgba(51, 255, 102, .12), inset 0 0 120px rgba(0, 0, 0, .9);
  text-shadow: 0 0 2px #33ff66, 0 0 8px rgba(51, 255, 102, .5);
  animation: crt-flicker 4s infinite steps(1);
}

#root.crt-fisheye {
  filter: url(#crt-fisheye);
}

#root * {
  border-color: rgba(51, 255, 102, .45) !important;
  box-shadow: none !important;
}

#root input {
  background: rgba(51, 255, 102, .04) !important;
  color: #33ff66 !important;
  caret-color: #33ff66;
}

#root input:-webkit-autofill {
  -webkit-text-fill-color: #33ff66 !important;
  -webkit-box-shadow: 0 0 0 1000px #021408 inset !important;
}

#root button[type="submit"], #root button.bg-primary {
  background: rgba(51, 255, 102, .08) !important;
  color: #33ff66 !important;
  border: 1px solid rgba(51, 255, 102, .6) !important;
  text-transform: uppercase;
  letter-spacing: .12em;
}

#root button[type="submit"]:hover, #root button.bg-primary:hover {
  background: #33ff66 !important;
  color: #021408 !important;
  text-shadow: none;
}

#root img, #root svg {
  filter: grayscale(1) brightness(.7) sepia(1) hue-rotate(80deg) saturate(6);
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
}

body::before {
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .45) 0 1px, transparent 1px 3px);
}

body::after {
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .85) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(51, 255, 102, .06) 50%, transparent 100%);
  background-size: 100% 100%, 100% 300%;
  animation: crt-roll 7s linear infinite;
}

@keyframes crt-roll { from { background-position: 0 0, 0 -100%; } to { background-position: 0 0, 0 200%; } }
@keyframes crt-flicker { 0% { opacity: 1; } 47% { opacity: .94; } 48% { opacity: 1; } 83% { opacity: .97; } }

@media (prefers-reduced-motion: reduce) {
  #root, body::after { animation: none; }
}
