:root {
  --bg: #05070c;
  --panel: rgba(10, 18, 28, 0.82);
  --line: rgba(0, 229, 255, 0.28);
  --cyan: #00e5ff;
  --green: #a3ff12;
  --magenta: #ff2fd6;
  --amber: #ffb300;
  --red: #ff3b3b;
  --text: #d7f7ff;
  --dim: #6b8a99;
  --font: 'Courier New', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); background: #0a121c; color: var(--text); border: 1px solid var(--line); padding: 8px 10px; border-radius: 4px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 8px rgba(0,229,255,.35); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; position: relative; }
.panel::before, .panel::after { content: ''; position: absolute; width: 10px; height: 10px; border-color: var(--cyan); border-style: solid; opacity: .8; }
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.btn { background: linear-gradient(180deg, rgba(0,229,255,.14), rgba(0,229,255,.04)); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; transition: all .12s; }
.btn:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,.4); text-shadow: 0 0 6px var(--cyan); }
.btn:active { transform: scale(.96); }
.btn.primary { border-color: var(--green); color: var(--green); background: linear-gradient(180deg, rgba(163,255,18,.16), rgba(163,255,18,.03)); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.warn { border-color: var(--amber); color: var(--amber); }
.btn:disabled { opacity: .35; cursor: default; box-shadow: none; }

.scanlines::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.vignette::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 998; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }

.glow-text { text-shadow: 0 0 8px currentColor, 0 0 24px currentColor; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes glitchShift {
  0% { clip-path: inset(0 0 92% 0); transform: translateX(-6px); }
  20% { clip-path: inset(40% 0 40% 0); transform: translateX(5px); }
  40% { clip-path: inset(80% 0 5% 0); transform: translateX(-4px); }
  60% { clip-path: inset(20% 0 65% 0); transform: translateX(6px); }
  80% { clip-path: inset(60% 0 20% 0); transform: translateX(-3px); }
  100% { clip-path: inset(0 0 0 0); transform: translateX(0); }
}
.film-shift { animation: filmShift .45s cubic-bezier(.2,.9,.3,1); }
@keyframes filmShift {
  0% { transform: translateY(0) skewX(0); filter: none; }
  15% { transform: translateY(-14px) skewX(-3deg); filter: hue-rotate(60deg) saturate(2); }
  35% { transform: translateY(9px) skewX(2deg); filter: invert(.12); }
  55% { transform: translateY(-5px); filter: hue-rotate(-40deg); }
  100% { transform: translateY(0); filter: none; }
}
.quake { animation: quake .5s linear; }
@keyframes quake {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-6px,4px); } 20% { transform: translate(5px,-5px); }
  30% { transform: translate(-7px,-3px); } 40% { transform: translate(6px,5px); } 50% { transform: translate(-4px,6px); }
  60% { transform: translate(5px,-4px); } 70% { transform: translate(-6px,3px); } 80% { transform: translate(4px,-5px); } 90% { transform: translate(-3px,2px); }
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,229,255,.3); border-radius: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
