:root {
  --ice: #fff0f0;
  --aqua: #ff4b55;
  --deep: #7c101b;
  --glow-blue: #ff6470;
  --shadow: 0 10px 30px rgba(50, 0, 8, .5);
}

body {
  background:
    radial-gradient(120% 90% at 50% -10%, #ff858b 0%, transparent 55%),
    linear-gradient(180deg, #d83b47 0%, #a91e2b 48%, #65101a 100%);
}

#top-bar {
  background: linear-gradient(180deg, rgba(255, 220, 220, .3), rgba(90, 0, 8, .14));
}
#top-bar h1,
#layers-header span {
  text-shadow: 0 0 14px rgba(255, 100, 112, .8), 0 1px 2px rgba(40, 0, 5, .6);
}

button, label.toolbar-btn {
  background: linear-gradient(180deg, #fff7f7 0%, #ffd1d2 50%, #ff9298 100%);
  color: #8d1420;
  border-color: rgba(255, 238, 238, .95);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(65, 0, 8, .38);
}
button:hover:not(:disabled), label.toolbar-btn:not(.disabled):hover {
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(255, 85, 100, .65);
}
#cancelBtn {
  background: linear-gradient(180deg, #ffb066, #f9741f);
  color: #fff;
}

#canvas-panel {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 100, 112, .2), transparent 70%),
    linear-gradient(180deg, #3c0c14, #1b070b);
  box-shadow: inset 0 0 60px rgba(190, 20, 38, .22);
}
#glCanvas { filter: drop-shadow(0 6px 24px rgba(255, 50, 70, .3)); }

#layers-section, #chain-mgmt-section, #video-sources-section,
#audio-pitch-section, #audio-effects-section {
  background-color: rgba(80, 0, 12, .2);
}
.layer-header {
  background: linear-gradient(90deg, rgba(255, 90, 105, .28), rgba(255,255,255,.03));
}
.layer-title, .param-label, .toggle-label { color: #ffe9e9; }
.layer-move {
  background: linear-gradient(180deg, #ff9ba1, #c52e3b);
  border-color: #ffd1d4;
}
.effect-type-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,190,194,.72));
  color: #8b1721;
}
.trig-active {
  background: linear-gradient(180deg, #ff8e96, #df3442) !important;
  box-shadow: 0 0 12px rgba(255, 90, 105, .8) !important;
}
.param-input:focus, .pitch-semitones-input:focus, .vs-input:focus,
.vs-select:focus, #repeat-bar input[type=number]:focus {
  border-color: #ff8790;
  box-shadow: 0 0 10px rgba(255, 85, 100, .4);
}
#effect-dropdown {
  background: linear-gradient(180deg, rgba(145, 24, 38, .96), rgba(70, 8, 18, .96));
}
.dd-item:hover, .dd-item:active {
  background: rgba(255, 160, 166, .22);
}
.dd-item.active {
  background: linear-gradient(90deg, rgba(255, 95, 108, .52), rgba(255, 95, 108, .15));
}

#repeat-bar, #status-bar {
  background: linear-gradient(180deg, rgba(150, 25, 40, .5), rgba(65, 8, 18, .42));
}
#repeat-bar label, #status-bar { color: #ffe1e2; }
#repeat-bar .repeat-hint .rep-seq { color: #ff8790; }
#progress-fill {
  background: linear-gradient(90deg, #ffb5a0, #ff5363, #c41e34);
  box-shadow: 0 0 12px rgba(255, 70, 90, .8);
}
#output-strip { background: rgba(70, 6, 16, .68); }
#output-strip-label { color: #ffe1e2; }

#chain-mgmt-section, #video-sources-section, #audio-pitch-section {
  background: rgba(90, 5, 18, .2);
}
#chain-mgmt-header {
  background: linear-gradient(180deg, rgba(255, 155, 160, .16), rgba(255, 155, 160, .02));
}
#chain-mgmt-header span,
#video-sources-header span,
#audio-pitch-header span { color: #ffe5e6; text-shadow: 0 0 10px rgba(255, 95, 108, .65); }
#video-sources-header {
  background: linear-gradient(180deg, rgba(255, 115, 128, .16), rgba(255, 115, 128, .02));
}
.vs-item, .pitch-layer-item {
  border-color: rgba(255, 145, 152, .34);
  background: linear-gradient(180deg, rgba(255, 135, 144, .15), rgba(100, 12, 24, .14));
}
.vs-title, .vs-name, .vs-file, .vs-label, .pitch-layer-title,
.pitch-layer-hint, .pitch-engine-label, .pitch-mix-hint {
  color: #ffe1e2;
}
.vs-input, .vs-select, .pitch-semitones-input, .pitch-volume-input,
.pitch-engine-label select {
  border-color: rgba(255, 145, 152, .45);
  color: #fff0f0;
}
.pitch-engine-label select { background: rgba(90, 8, 18, .55); }
.pitch-semitones-input:focus, .pitch-volume-input:focus { border-color: #ff8790; }

.community-window {
  background: radial-gradient(80% 60% at 50% 0%, #641a25 0, transparent 70%), #17070a;
}
.community-card {
  border-color: rgba(255, 155, 160, .2);
  background: linear-gradient(150deg, #3a151b, #1c0a0e 68%);
}
.community-tabs button.active,
.community-actions button.is-selected {
  border-color: #ff828b;
  background: rgba(210, 45, 60, .3);
}
.community-comment-panel { border-top-color: rgba(255, 190, 195, .16); }
.comment-author { color: #ffadb2; }
.comment-form input:focus { border-color: #ff828b; }

@media (max-width: 768px) {
  #top-bar { flex-wrap: wrap; }
  #top-bar h1 { flex-basis: 100%; }
}
