/* --- Hush Mixer · Advanced Mode (build-your-own soundscape) ---
   Scoped under .advanced-mode so these rules don't bleed into Studio
   or Simple. Same dark canvas aesthetic as Studio. */

.advanced-mode {
  background: #0a0a0a;
  color: #f5f1e8;
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue",
               "Segoe UI", sans-serif;
}

/* The shared rules in styles.css/studio.css set `overscroll-behavior:
   none` on body. In WebKit, that can silently break vertical scrolling
   when the body itself is the root scroller (which it is here). Restore
   default overscroll behavior + explicitly mark body as scrollable in
   Advanced mode so wheel/trackpad events actually scroll the page. */
body.mode-advanced {
  overscroll-behavior: auto;
  overflow-y: auto;
}


/* Note: .advanced is plain block layout — NOT flex column. With more
   cards the canvas grows tall, the wrapper grows with it, and the body
   scrolls. A flex-column with min-height:100vh would clip the canvas
   instead, blocking page scroll (two-finger trackpad / mouse wheel). */
.advanced {
  max-width: 1200px;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top, 28px)) 24px
    max(20px, env(safe-area-inset-bottom, 20px));
}

.advanced-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  gap: 12px;
}
.advanced-header h1 {
  font-size: 18px;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.advanced-header .alt-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.advanced-header .alt-links a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.25);
  padding-bottom: 1px;
  cursor: pointer;
}
.advanced-header .alt-links a:hover {
  color: #f5f1e8;
  border-bottom-color: rgba(245, 241, 232, 0.7);
}

.advanced-board-wrap {
  width: 100%;
}
/* `pan-y` lets the browser handle vertical scrolling (two-finger
   trackpad / wheel / one-finger touch) while we still receive pointer
   events for clicks and horizontal/diagonal drags. This is the
   compromise that keeps the page scrollable when the canvas grows
   tall with many cards. */
#advBoard {
  display: block;
  width: 100%;
  touch-action: pan-y;
}

.advanced-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.5);
}
.advanced-footer-note {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 600px) {
  .advanced { padding:
    max(16px, env(safe-area-inset-top, 16px)) 10px
    max(14px, env(safe-area-inset-bottom, 14px));
  }
  .advanced-header h1 { font-size: 14px; letter-spacing: 0.10em; }
  .advanced-header .alt-links { gap: 10px; font-size: 11px; }
  .advanced-footer { font-size: 10px; letter-spacing: 0.04em; }
}
