html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050807;
  height: 100vh;
  width: 100vw;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  user-select: none;
}

#sketch-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  display: block;
  box-shadow: 0 0 50px rgba(74, 222, 128, 0.15), 0 20px 60px rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  border: 2px solid rgba(74, 222, 128, 0.2);
}

.controls-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  background: rgba(10, 18, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  width: 320px;
  max-width: calc(100vw - 3rem);
}

.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.title-bar h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.author-note {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #f1f5f9;
}

.control-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

label span {
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  width: 100%;
  accent-color: #4ade80;
  cursor: pointer;
}

select {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

select option {
  background: #0d1a12;
  color: #fff;
}

.button-group {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

button {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

button:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
}

button.action-btn {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.5);
  color: #4ade80;
}

.hint-keys {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
}
