/* landing5 — screen 6: generator handoff (the mosaic itself IS the generator) */

.screen.generator {
  justify-content: space-between;
  padding-block: clamp(5.5rem, 13vh, 8rem) clamp(1.75rem, 4vh, 2.75rem);
}

.generator__head {
  max-width: 640px;
  padding-inline: var(--pad-x);
}
.generator__head .lead { margin-top: 1.1rem; }

.generator__controls {
  display: flex;
  justify-content: center;
  padding-inline: var(--pad-x);
}

/* ---------- Light centred control bar ---------- */
.gen-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 36px -18px rgba(8, 6, 14, 0.45);
}

.gen-bar__cluster {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.25rem;
}
.gen-bar__cluster + .gen-bar__cluster {
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.gen-bar__cluster--mood {
  gap: 0.4rem;
  padding-inline: 0.35rem 0.15rem;
}

.gen-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}
.gen-btn--icon svg { display: block; }
.gen-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.gen-btn:active { transform: translateY(0); }

.gen-spin {
  cursor: grab;
  touch-action: none;
}
.gen-spin.is-active { cursor: grabbing; }
.gen-icon-spin {
  transition: transform 0.08s linear;
}

/* ---------- Colour mood slider ---------- */
.gen-mood {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 132px;
  padding-inline: 0.15rem;
}
.gen-mood__name {
  font: 500 0.58rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  white-space: nowrap;
}
.gen-mood__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #F8D5C8 0%,
    #C8E8E0 33%,
    #EDD4DF 66%,
    #E2D6DC 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.gen-mood__range:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}
.gen-mood__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 6, 14, 0.28);
  transition: transform 0.15s var(--ease);
}
.gen-mood__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: 0 2px 8px rgba(8, 6, 14, 0.28);
}
.gen-mood__range:active::-webkit-slider-thumb { transform: scale(1.08); }

@media (max-width: 720px) {
  .gen-bar {
    border-radius: 20px;
    padding: 0.55rem 0.6rem;
    max-width: 100%;
  }
  .gen-bar__cluster + .gen-bar__cluster {
    border-left: 0;
    padding-left: 0.25rem;
  }
}
