* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: none; /* Prevent browser scrolling & gestures */
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  height: 100%;
  width: 100vw;
  overflow: hidden;
  background: #2a2a2a;
  background-image: radial-gradient(circle at center, #3a3a3a 0%, #1a1a1a 100%);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.monotron {
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 500px;
  background: #111;
  border-radius: 12px;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.8), 
    inset 0 2px 5px rgba(255,255,255,0.1),
    0 0 0 2px #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mono-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid #00f0ff; /* Bright cyan accent like Mono Duo */
  background: linear-gradient(to bottom, #1a1a1a, #111);
}

.mono-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.brand {
  font-size: 2.5rem;
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: -2px;
  font-style: italic;
  color: #fff;
}

.brand span {
  color: #00f0ff;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 3px;
  font-style: normal;
  text-transform: uppercase;
  margin-left: 8px;
}

.mono-controls-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.ai-toggle {
  display: flex;
  align-items: center;
  background: #222;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #444;
  cursor: pointer;
  font-size: 0.8rem;
  color: #aaa;
  gap: 8px;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.ai-toggle:has(input:checked) {
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.ai-toggle input {
  accent-color: #00f0ff;
  cursor: pointer;
}

select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.mono-sliders {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex: 1;
}

.slider-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #222;
}

.slider-label-group {
  font-size: 0.7rem;
  color: #00f0ff;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: bold;
}

.sliders-row {
  display: flex;
  gap: 20px;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-interaction-area {
  width: 40px;
  height: 100px;
  display: flex;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.slider-track {
  width: 6px;
  height: 100%;
  background: #000;
  border-radius: 3px;
  position: absolute;
  top: 0;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.1);
}

.slider-thumb {
  width: 32px;
  height: 14px;
  background: #2a2a2a;
  border: 2px solid #000;
  border-radius: 3px;
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.3),
    0 2px 5px rgba(0,0,0,0.8);
  pointer-events: none;
}
.slider-thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}

.slider-container label {
  font-size: 0.7rem;
  color: #888;
  margin-top: 15px;
  letter-spacing: 1px;
}

/* Ribbon Keyboard */
.ribbon-keyboard {
  height: 120px;
  background: #eee;
  position: relative;
  display: flex;
  border-top: 2px solid #555;
}

.key-white {
  flex: 1;
  border-right: 2px solid #111;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
  color: #aaa;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 1;
  cursor: crosshair;
  background: #eee;
  transition: background-color 0.05s;
}

.key-white:last-child {
  border-right: none;
}

.key-white.active {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 15px #00f0ff;
  z-index: 3;
}

.key-black {
  background: #111;
  position: absolute;
  top: 0;
  height: 55%;
  width: 6%;
  z-index: 2;
  cursor: crosshair;
  transition: background-color 0.05s;
}

.key-black.active {
  background: #00b0bd;
  box-shadow: 0 0 15px #00f0ff;
  z-index: 4;
}