/* Ul Piano — styles (high contrast, accessible) */
:root{
  --bg:#071014;
  --card:#0b1b1f;
  --text:#eef6f7;
  --accent:#00c2a8;
  --muted:#9fb6b4;
  --key-white:#ffffff;
  --key-black:#222222;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background:linear-gradient(180deg,var(--bg),#03121a);
  color:var(--text);
  padding:1rem;
  -webkit-font-smoothing:antialiased;
}
.skip-link{position:absolute;left:-999px}
.skip-link:focus{position:fixed;left:1rem;top:1rem;background:#fff;color:#000;padding:.5rem;border-radius:4px;z-index:999}
header,footer,main{max-width:1100px;margin:0 auto}
main{background:var(--card);padding:1rem;border-radius:10px;box-shadow:0 8px 20px rgba(0,0,0,.6);margin-top:1rem}
#app-title{margin:.2rem 0 .6rem 0}
.control-row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:.6rem}
.controls label{font-size:14px;color:var(--muted)}
.controls select,input{padding:.4rem;border-radius:6px;border:1px solid rgba(255,255,255,0.06);background:transparent;color:var(--text)}
.btn{background:var(--accent);border:0;padding:.5rem .8rem;border-radius:8px;font-weight:700;cursor:pointer;color:#022}
button:focus, select:focus, input:focus{outline:3px solid var(--accent);outline-offset:2px}
.keyboard-section{margin:1rem 0}
#keyboard{display:flex;gap:.25rem;align-items:end;padding:1rem;overflow:auto}
.key{width:56px;height:200px;border-radius:6px;display:flex;align-items:end;justify-content:center;position:relative;flex:0 0 auto;box-shadow:0 6px 12px rgba(0,0,0,.6)}
.key button{width:100%;height:100%;border:0;background:linear-gradient(180deg,#fff,#ddd);border-radius:6px;font-weight:600}
.key.black{width:40px;height:130px;margin-left:-20px;margin-right:-20px;z-index:2}
.key.black button{background:linear-gradient(180deg,#222,#111);color:#fff;border-radius:4px}
.key .label{position:absolute;bottom:8px;font-size:13px;color:#000}
.visually-hidden{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}
.tracks{display:flex;flex-direction:column;gap:.4rem;margin-top:.5rem}
.track{display:flex;gap:.5rem;align-items:center;padding:.4rem;border-radius:6px;background:rgba(255,255,255,0.02)}
.track label{min-width:80px}
.track input[type="range"]{width:140px}
.mixer-controls{margin-top:.5rem;display:flex;gap:.5rem}
.examples{display:flex;gap:.5rem;flex-wrap:wrap}
.help{color:var(--muted);font-size:14px}
@media (max-width:700px){
  .key{width:40px;height:140px}
  .key.black{width:28px;height:90px;margin-left:-14px;margin-right:-14px}
}
