*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  padding-bottom:40px;
  background:radial-gradient(circle at top,#2b1712,#090b0e 60%);
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
}

header{
  display:flex;
  justify-content:space-between;
  padding:18px 5%;
  background:#0d0f13;
  border-bottom:1px solid #2e333c;
}

header a{
  color:#ef5c2d;
  text-decoration:none;
  font-weight:bold;
}

.painel{
  width:min(980px,92%);
  margin:28px auto;
  padding:28px;
  background:#191c22;
  border-radius:20px;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
}

h1{
  margin:0;
  text-align:center;
  color:#ef5c2d;
  font-size:clamp(36px,6vw,56px);
}

.painel>p{
  text-align:center;
  color:#aeb5c0;
}

.card{
  margin-top:16px;
  padding:18px;
  background:#111419;
  border:1px solid #303641;
  border-radius:14px;
}

h2{
  margin-top:0;
  color:#ef5c2d;
}

label{
  display:block;
  margin:12px 0 6px;
}

.radios{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.radios label{
  display:flex;
  gap:8px;
  align-items:center;
}

button,
select,
input[type=file]{
  width:100%;
  min-height:44px;
  padding:10px;
  color:#fff;
  background:#272c34;
  border:1px solid #464d58;
  border-radius:8px;
}

button{
  cursor:pointer;
  font-weight:bold;
}

.destaque{
  color:#111;
  background:#ef5c2d;
}

.botoes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.quatro{
  grid-template-columns:repeat(4,1fr);
}

.oculto{
  display:none;
}

.progresso{
  height:12px;
  margin:12px 0;
  overflow:hidden;
  background:#2d323b;
  border-radius:20px;
}

#barra{
  width:0;
  height:100%;
  background:#ef5c2d;
}

#nomeArquivo{
  margin-top:8px;
  color:#aeb5c0;
}

.pedal{
  background:linear-gradient(145deg,#171717,#050505);
  border:3px solid #313131;
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.025),
    0 16px 45px rgba(0,0,0,.45);
}

.logo{
  text-align:center;
  color:#ef5c2d;
  font-size:48px;
  font-weight:900;
  letter-spacing:4px;
}

.descricao{
  margin-bottom:24px;
  text-align:center;
  color:#8e8e8e;
  font-size:12px;
  letter-spacing:4px;
}

.controles{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.controle{
  padding:18px;
  background:#0c0c0c;
  border:1px solid #343434;
  border-radius:14px;
}

.controle strong,
.controle span{
  display:block;
  text-align:center;
}

.controle strong{
  margin-bottom:12px;
  color:#ef5c2d;
}

.controle span{
  margin-top:8px;
  color:#d5d5d5;
}

input[type=range]{
  width:100%;
  accent-color:#ef5c2d;
}

.led-area{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:24px 0 14px;
}

.led{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#401010;
  border:2px solid #6c1d1d;
}

.led.ligado{
  background:#ff2a1d;
  border-color:#ff7168;
  box-shadow:
    0 0 8px #ff2a1d,
    0 0 20px rgba(255,42,29,.8),
    0 0 40px rgba(255,42,29,.45);
}

#estadoPedal{
  color:#9ca2aa;
  font-size:13px;
  font-weight:bold;
}

.meter{
  height:22px;
  overflow:hidden;
  background:#2d323b;
  border-radius:20px;
}

.meter div{
  width:0;
  height:100%;
  background:linear-gradient(90deg,#4fd47d,#e2cf55,#ef5c2d);
}

#status{
  margin-top:16px;
  padding:13px;
  background:#111318;
  border-left:5px solid #ff5c5c;
  border-radius:8px;
}

#status.ok{
  border-left-color:#55d187;
}

@media(max-width:760px){
  .controles,
  .quatro,
  .botoes{
    grid-template-columns:1fr;
  }
}
