/* --- Hush Mixer · Studio theme (dark) --- */

:root {
  --bg:     #0a0a0a;
  --fg:     #f5f1e8;
  --fg-dim: rgba(245, 241, 232, 0.5);
  --line:   rgba(245, 241, 232, 0.2);
}

* { box-sizing: border-box; }

/* Page-level rules (also set in styles.css; identical so duplicate is OK). */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
}

/* Studio mode container fills the viewport and owns its own typography. */
.studio-mode {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.studio {
  max-width: 820px;
  margin: 0 auto;
  padding:
    max(30px, env(safe-area-inset-top, 30px)) 24px
    max(60px, env(safe-area-inset-bottom, 60px));
}

/* Mobile / narrow viewports — tighten chrome so the canvas can breathe */
@media (max-width: 640px) {
  .studio {
    padding:
      max(14px, env(safe-area-inset-top, 14px)) 8px
      max(24px, env(safe-area-inset-bottom, 24px));
  }
  .studio-header {
    margin-bottom: 12px;
    gap: 8px;
  }
  .studio-header h1 {
    font-size: 14px;
    letter-spacing: 0.14em;
  }
  .alt-links a { padding: 4px 8px; font-size: 10px; }
  .studio-footer { font-size: 10px; }
}

.studio-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.studio-header h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.alt-links { display: flex; gap: 8px; }
.alt-links a {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 2px;
}
.alt-links a:hover { background: var(--fg); color: var(--bg); }

.board-wrap { width: 100%; }

#board {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  touch-action: none;
}
#board:active { cursor: grabbing; }

.studio-footer {
  margin: 16px 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-align: center;
}
