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

body {
  background: #000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#river-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#main-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    0 0 200px rgba(0, 0, 0, 1),
    inset 0 40px 100px rgba(0, 0, 0, 0.8);
}

#title {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}

#title h1 {
  font-size: 12px;
  letter-spacing: 0.8em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

#title .line {
  height: 1px;
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px auto 0;
}

#vignette {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: inset 0 0 350px rgba(0, 0, 0, 1);
  z-index: 5;
}

/* Code overlay */
#code-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.97);
  display: flex;
  flex-direction: column;
  padding: 12%;
  overflow: hidden;
  z-index: 20;
  cursor: pointer;
}

#code-overlay.hidden {
  display: none;
}

#code-header {
  color: rgba(255, 255, 255, 0.2);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#code-content {
  flex: 1;
  overflow-y: auto;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 8px;
  line-height: 1.5;
  color: #7dd3fc;
  white-space: pre-wrap;
  word-break: break-all;
  text-align: left;
}

#code-hint {
  color: rgba(255, 255, 255, 0.15);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

#main-canvas {
  cursor: pointer;
}

/* Scrollbar for code */
#code-content::-webkit-scrollbar {
  width: 4px;
}

#code-content::-webkit-scrollbar-track {
  background: transparent;
}

#code-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
