* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
  font-family: 'Share Tech Mono', 'VT323', monospace;
  cursor: default;
  user-select: none;
}

#canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#controls {
  position: fixed;
  bottom: 30px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 100;
  transition: opacity 0.5s;
  opacity: 0;
}

#controls.visible {
  opacity: 1;
}

#controls button {
  background: rgba(0,0,0,0.7);
  color: #aaa;
  border: 1px solid #333;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

#controls button:hover {
  background: rgba(40,40,40,0.9);
  color: #fff;
  border-color: #666;
}

#progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(30,30,30,0.8);
  z-index: 100;
  cursor: pointer;
}

#progress-fill {
  height: 100%;
  width: 0%;
  transition: background 0.5s;
}

#progress-dot {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  left: 0%;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 12px rgba(255,255,255,1); }
}

#dossier-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 370px;
  height: 100vh;
  background: rgba(5,5,5,0.95);
  border-left: 2px solid #333;
  z-index: 200;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Share Tech Mono', monospace;
}

#dossier-panel.open {
  right: 0;
}

#dossier-header {
  padding: 16px;
  color: #c0392b;
  font-size: 14px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 3px;
}

#dossier-header button {
  background: none;
  border: 1px solid #555;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 8px;
  font-family: 'Share Tech Mono', monospace;
}

#dossier-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

#dossier-list::-webkit-scrollbar {
  width: 4px;
}

#dossier-list::-webkit-scrollbar-track {
  background: #111;
}

#dossier-list::-webkit-scrollbar-thumb {
  background: #333;
}

.dossier-item {
  padding: 8px 10px;
  margin-bottom: 2px;
  cursor: pointer;
  font-size: 11px;
  color: #666;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.dossier-item:hover {
  background: rgba(255,255,255,0.03);
  color: #999;
}

.dossier-item.passed {
  color: #444;
}

.dossier-item.current {
  color: #fff;
  border-left-color: #c0392b;
  background: rgba(192,57,43,0.1);
  box-shadow: 0 0 10px rgba(192,57,43,0.2);
}

.dossier-year {
  color: #888;
  margin-right: 8px;
  font-weight: bold;
}

.dossier-item.current .dossier-year {
  color: #e74c3c;
}

@media (max-width: 600px) {
  #controls {
    bottom: 28px;
    right: 50%;
    transform: translateX(50%);
  }
  
  #controls button {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  #dossier-panel {
    width: 100%;
    right: -100%;
  }
  
  #progress-bar {
    height: 6px;
  }
}