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

:root {
  --yellow: #E8E857;
  --black: #0a0a0a;
  --font: 'Courier New', monospace;
}

body {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

#start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

#start-btn {
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font);
  font-size: 24px;
  padding: 20px 60px;
  cursor: pointer;
  letter-spacing: 4px;
}

#start-btn:hover {
  background: var(--yellow);
  color: var(--black);
}

.hidden { display: none !important; }

#main-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 10px;
}

#webcam {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#face-canvas {
  width: 100%;
  max-width: 600px;
  flex: 1;
}

#pattern-bar {
  display: flex;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--yellow);
  margin: 8px 0;
}

.pattern {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 11px;
  letter-spacing: 1px;
  border-right: 1px solid var(--yellow);
  cursor: default;
}

.pattern:last-child { border-right: none; }
.pattern.active { background: var(--yellow); color: var(--black); }

#knobs-row {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  padding: 10px 0;
}

.knob-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.knob-container canvas {
  width: 60px;
  height: 60px;
}

.knob-label {
  font-size: 10px;
  letter-spacing: 1px;
}

.knob-value {
  font-size: 11px;
}

#step-visualizer {
  display: flex;
  gap: 2px;
  width: 100%;
  max-width: 600px;
  height: 40px;
  padding: 8px 0;
  align-items: flex-end;
}

.step-bar {
  flex: 1;
  background: var(--yellow);
  min-height: 2px;
  transition: height 0.05s;
}

.step-bar.active {
  opacity: 1;
}

.step-bar.inactive {
  opacity: 0.2;
}

@media (max-width: 480px) {
  .knob-container canvas {
    width: 40px;
    height: 40px;
  }
  .knob-label { font-size: 8px; }
  .knob-value { font-size: 9px; }
  .pattern { font-size: 9px; padding: 4px 2px; }
}
