:root {
  color-scheme: dark;
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #557f8c 0%, #9fbe84 50%, #d6e6bc 100%);
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#bloom-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Settings panel lives inside the card back face (see credit-card.css). */
#controls {
  display: flex;
  flex-direction: column;
}

.controls-header h1 {
  margin: 0;
  font-size: 18px;
}

.controls-header p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.8;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.4;
}

.buttons-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ebf3ef;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.slider-row {
  margin: 6px 0;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.slider-row input[type="range"] {
  width: 100%;
  height: 16px;
  accent-color: #c8eb62;
}

.checkbox-row {
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.text-row {
  margin: 8px 0 4px;
}

.text-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.78);
}

.text-row input[type="url"] {
  width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ebf3ef;
  font-family: inherit;
  font-size: 11px;
}

.text-row input[type="url"]::placeholder {
  color: rgba(235, 243, 239, 0.5);
}
