:root {
  --bg: #000500;
  --primary: #00ff41; /* Matrix Green */
  --hologram: #00f2ff; /* Hologram Cyan */
  --font: 'Share Tech Mono', monospace;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--primary);
  font-family: var(--font);
  overflow: hidden;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.interface {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  border: 1px solid var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  display: flex;
  flex-direction: column;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--primary);
  background: rgba(0, 255, 65, 0.05);
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.main-view {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}

video {
  display: none;
}

canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror */
}

/* Loader */
#loader {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Controls */
.controls {
  padding: 15px;
  border-top: 1px solid var(--primary);
  display: flex;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 255, 65, 0.05);
}

button {
  background: #000;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 30px;
  font-family: var(--font);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
}
button:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary);
}

/* Specific button styles */
#mode-btn {
  border-color: var(--hologram);
  color: var(--hologram);
}
#mode-btn:hover {
  background: var(--hologram);
  color: #000;
  box-shadow: 0 0 15px var(--hologram);
}