/* Root */
.afex-seed-forge-root{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:#f8f8f8;
  padding:14px 0;
}

/* Layout */
.afex-seed-forge-layout{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* Wave screen */

.afex-wave-screen-wrapper{
  display:flex;
  justify-content:center;
}

.afex-wave-screen-module{
  width:460px;
  max-width:95vw;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(0,255,160,0.35);
  box-shadow:0 0 18px rgba(0,0,0,0.85);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255,255,255,0.04), transparent 60%),
    rgba(5,5,5,0.85);
}

.afex-wave-screen-title{
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  opacity:0.75;
  margin-bottom:6px;
}

.afex-wave-screen-canvas{
  width:100%;
  height:180px;
  border-radius:10px;
  background:
    radial-gradient(circle at 50% 10%, #032019, #020707 55%, #000 100%);
  border:1px solid rgba(0,255,150,0.5);
}

/* Module rows – 3 equal columns on desktop */

.afex-module-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:18px;
  align-items:stretch;
}

/* Text panel (left) */

.afex-module-text{
  position:relative;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.05), transparent 55%),
    rgba(10,10,10,0.85);
  font-size:13px;
  line-height:1.4;
}

.afex-module-text-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:4px;
}

.afex-module-text-note{
  font-size:11px;
  opacity:0.85;
  margin-top:6px;
}

/* Eurorack-like panel (center) */

.afex-module-panel{
  position:relative;
  padding:10px 12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(145deg, rgba(35,35,35,0.96), rgba(10,10,10,0.98));
  box-shadow:0 0 16px rgba(0,0,0,0.9);
  overflow:hidden;
}

.afex-module-panel::before,
.afex-module-panel::after{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.4);
}

.afex-module-panel::before{
  top:4px; left:6px;
}
.afex-module-panel::after{
  bottom:4px; right:6px;
}

.afex-module-panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.afex-module-panel-title{
  font-size:11px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  opacity:0.8;
}

.afex-module-panel-led{
  width:8px; height:8px;
  border-radius:999px;
  background:radial-gradient(circle,#7bffb3,#00c895 60%,#007955 100%);
  box-shadow:0 0 6px rgba(0,255,170,0.9);
  opacity:0.4;
  transition:opacity 0.1s ease-out;
}

.afex-module-panel-led.afex-active{
  opacity:1;
}

/* Kidz column (right) */

.afex-kidz-button{
  display:flex;
  justify-content:center;
  align-items:center;
  cursor:pointer;
}

.afex-kidz-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  transform-origin:center bottom;
  transition:transform 0.08s ease-out, filter 0.08s ease-out;
}

.afex-kidz-head{
  width:22px; height:22px;
  border-radius:999px;
  background:radial-gradient(circle,#fff,#ffe27a 70%,#ff8c4f 100%);
  box-shadow:0 0 10px rgba(255,255,255,0.8);
}

.afex-kidz-body{
  width:18px; height:52px;
  border-radius:10px;
  background:linear-gradient(180deg,#ffed61,#ff5f6d);
  box-shadow:0 0 10px rgba(255,120,120,0.7);
}

.afex-kidz-caption{
  font-size:10px;
  text-align:center;
  opacity:0.85;
  margin-top:2px;
}

.afex-kidz-wrapper.afex-bump{
  transform:translateY(-8px);
  filter:brightness(1.1);
}

/* Oscillator controls */

.afex-osc-wave-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  row-gap:4px;
  column-gap:10px;
  margin-bottom:6px;
}

.afex-osc-wave-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}

.afex-osc-wave-dot{
  width:10px; height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.7);
  background:transparent;
  box-shadow:0 0 0 rgba(0,0,0,0);
  transition:background 0.12s ease-out, box-shadow 0.12s ease-out;
}

.afex-osc-wave-dot.afex-selected{
  background:radial-gradient(circle,#7bffb3,#00c895 70%,#007955 100%);
  box-shadow:0 0 6px rgba(0,255,190,0.9);
}

/* Sliders */

.afex-slider-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
}

.afex-slider-label{
  font-size:11px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  opacity:0.8;
  flex:0 0 auto;
}

.afex-slider{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
  outline:none;
}

.afex-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px; height:14px;
  border-radius:999px;
  background:radial-gradient(circle,#ffffff,#86ffe0 70%,#0bd6a9 100%);
  box-shadow:0 0 6px rgba(0,255,204,0.9);
  cursor:pointer;
}
.afex-slider::-moz-range-thumb{
  width:14px; height:14px;
  border-radius:999px;
  background:radial-gradient(circle,#ffffff,#86ffe0 70%,#0bd6a9 100%);
  box-shadow:0 0 6px rgba(0,255,204,0.9);
  cursor:pointer;
}
.afex-slider::-moz-range-track{
  background:rgba(255,255,255,0.18);
  height:4px;
  border-radius:999px;
}

/* Vertical slider group (Filter, ADSR) */

.afex-vertical-group{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.afex-vertical-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.afex-vertical-label-main{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.14em;
  opacity:0.9;
}

.afex-vertical-label-sub{
  font-size:10px;
  opacity:0.8;
}

.afex-vertical-slider{
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width:4px;
  height:72px;
  border-radius:999px;
  background:rgba(255,255,255,0.18);
}
.afex-vertical-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px; height:14px;
  border-radius:999px;
  background:radial-gradient(circle,#ffffff,#86ffe0 70%,#0bd6a9 100%);
  box-shadow:0 0 6px rgba(0,255,204,0.9);
  cursor:pointer;
}

/* Helper text inside panel */

.afex-helper-text{
  font-size:11px;
  opacity:0.8;
  margin-top:4px;
}

/* Responsive – mobile column layout */

@media (max-width:768px){
  .afex-module-row{
    grid-template-columns:1fr;
  }
  .afex-module-text{
    order:3;
  }
  .afex-module-panel{
    order:1;
  }
  .afex-kidz-button{
    order:2;
  }
  .afex-wave-screen-module{
    width:100%;
  }
}
