/* dissolve web
   Layout and tokens follow libraries.dev (dark, sidebar list, stage + playground),
   brand accent is a silver blue. */

:root {
  /* surfaces */
  --bg: #121212;
  --surface: #181818;
  --surface-2: #1E1E1E;
  --raised: #262626;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  /* text */
  --text: #FBFBFB;
  --text-2: #CDCDCD;
  --muted: #979797;
  --faint: #5E5E5E;
  /* brand: warm sand over brown */
  --accent: #8AB4FF;
  --accent-deep: #3B6FE0;
  --accent-ink: #0B1220;
  --accent-soft: rgba(138, 180, 255, 0.12);
  /* code tokens */
  --tk-k: #8AB4FF;
  --tk-s: #B9C99A;
  --tk-t: #9DB8D9;
  --tk-n: #E3A07E;
  /* type */
  --sans: Geist, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* shape + rhythm */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --pill: 999px;
  --side-w: 208px;
  --content-w: 900px;
  --gap: 12px;
  --top-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme: cool paper, same brand blue, deeper so it holds contrast on white */
[data-theme='light'] {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-2: #F1F3F6;
  --raised: #E8EBEF;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.12);
  --text: #12151A;
  --text-2: #3F4650;
  --muted: #727A85;
  --faint: #A9B0B9;
  --accent: #2457D6;
  --accent-deep: #8DB0F7;
  --accent-soft: rgba(36, 87, 214, 0.09);
  --tk-k: #2457D6;
  --tk-s: #4F7A2E;
  --tk-t: #2F6295;
  --tk-n: #B2552B;
  --wash: rgba(0, 0, 0, 0.04);
  --wash-2: rgba(0, 0, 0, 0.07);
  --topbar: rgba(249, 250, 251, 0.85);
  --stage-glow: #FFFFFF;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(20, 30, 50, 0.08);
  color-scheme: light;
}
:root:not([data-theme='light']) {
  --wash: rgba(255, 255, 255, 0.06);
  --wash-2: rgba(255, 255, 255, 0.1);
  --topbar: rgba(18, 18, 18, 0.82);
  --stage-glow: #1D1D1D;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.6 var(--sans);
  transition: background-color .3s var(--ease), color .3s var(--ease);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.u { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Top bar ---------- */

.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--topbar);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.top-inner {
  height: var(--top-h);
  max-width: calc(var(--side-w) + var(--content-w) + 64px + 48px);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 6px 12px; border-radius: var(--pill); color: var(--muted); font-weight: 500; font-size: 13.5px; transition: color .2s, background .2s; }
.top-nav a:hover { color: var(--text); background: var(--wash); }
.top-right { margin-left: auto; display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--pill);
  background: var(--wash); color: var(--text-2); font-weight: 500; font-size: 13px;
  transition: background .2s;
}
.pill:hover { background: var(--wash-2); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-accent:hover { filter: brightness(1.15); }
.top-right { align-items: center; }
.theme-btn .i-sun { display: none; }
[data-theme='light'] .theme-btn .i-sun { display: block; }
[data-theme='light'] .theme-btn .i-moon { display: none; }
.top .menu-btn { display: none; }

/* ---------- Shell ---------- */

.shell {
  max-width: calc(var(--side-w) + var(--content-w) + 64px + 48px);
  margin: 0 auto; padding: 24px 24px 120px;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 64px;
}

/* ---------- Sidebar ---------- */

.side {
  position: sticky; top: calc(var(--top-h) + 8px);
  align-self: start;
  max-height: calc(100vh - var(--top-h) - 16px);
  overflow-y: auto; scrollbar-width: none;
  padding-bottom: 0;
}
.side::-webkit-scrollbar { display: none; }
.side-group { margin-bottom: 22px; }
.side-label { margin: 0 0 4px; padding: 0 10px; font-size: 12px; color: var(--faint); font-weight: 500; }
.side-link {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 400; color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.side-link:hover { color: var(--text); }
.side-link.on { color: var(--text); font-weight: 500; background: var(--wash); }
.badge {
  margin-left: auto; font-size: 10.5px; font-weight: 500;
  padding: 0 7px; border-radius: var(--pill); line-height: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.side-foot { position: sticky; bottom: 0; background: var(--bg); box-shadow: 0 -16px 16px -4px var(--bg); padding: 12px 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.side-foot p { margin: 0; }
.side-foot { display: flex; align-items: center; justify-content: space-between; }
.socials { display: flex; gap: 4px; margin-left: -6px; }
.social { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.social:hover { color: var(--text); background: var(--wash); }

/* ---------- Page head ---------- */

.view { min-width: 0; max-width: var(--content-w); }
.head { margin-bottom: 20px; }
.head-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.head-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
}
.glyph-lg { display: grid; place-items: center; }
.head-nav { display: flex; gap: 8px; }
.round {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2);
  transition: background .2s, transform .3s var(--spring);
}
.round:hover { background: var(--raised); transform: scale(1.06); }
.round[aria-disabled] { opacity: .3; pointer-events: none; }
h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.sub { margin: 0; color: var(--text-2); font-size: 14px; max-width: 640px; }

/* ---------- Toolbar ---------- */

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: flex; gap: 2px; }
.seg-btn { height: 30px; padding: 0 12px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.seg-btn.on { background: var(--raised); color: var(--text); }
.platforms { display: flex; gap: 18px; margin-right: 10px; }
.plat { font-size: 14px; font-weight: 500; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.plat.on { color: var(--text); }
.plat:hover { color: var(--text-2); }
.plat-tag { font-size: 10px; padding: 1px 6px; border-radius: var(--pill); background: var(--wash); color: var(--muted); }
.btn {
  height: 32px; padding: 0 12px; border-radius: var(--pill);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wash); font-size: 13px; font-weight: 500;
  transition: background .2s, transform .3s var(--spring);
}
.btn:hover { background: var(--wash-2); }
.btn:active { transform: scale(0.96); }
.btn-accent {
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
              linear-gradient(110deg, var(--accent-deep), var(--accent) 50%, var(--line-2)) border-box;
  border: 1px solid transparent;
}
.btn-accent:hover { background: linear-gradient(var(--raised), var(--raised)) padding-box, linear-gradient(110deg, var(--accent-deep), var(--accent) 50%, var(--line-2)) border-box; }
.btn-sm { height: 28px; font-size: 12px; }
.btn.done, .icon-btn.done { color: var(--accent); }

/* ---------- Stage + tiles ---------- */

.stage {
  position: relative;
  height: 360px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 50% 0%, var(--stage-glow), var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.stage-slot { display: grid; place-items: center; width: 100%; height: 100%; padding: 24px; }
.demo-card { cursor: pointer; border-radius: 20px; box-shadow: var(--shadow); transition: opacity .5s var(--ease), transform .45s var(--spring); touch-action: none; user-select: none; -webkit-user-select: none; }
.demo-pair { position: relative; display: grid; cursor: pointer; }
.demo-pair .demo-card-b { position: absolute; inset: 0; }
.heap { position: absolute; left: 0; bottom: 0; pointer-events: none; }
.g-thumb, .stage { overflow: hidden; }
.stage-slot { position: relative; }
.demo-bin {
  overflow: visible;
  position: absolute; right: 18px; bottom: 18px;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--wash); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), color .2s;
}
.demo-bin.bump { transform: scale(1.18); color: var(--accent); }
.stage-hint { position: absolute; left: 20px; bottom: 18px; margin: 0; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.stage-replay { position: absolute; right: 16px; bottom: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); margin-top: var(--gap); }

/* ---------- Sections ---------- */

.section-title { margin: 48px 0 14px; font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: 0; }

/* ---------- Playground ---------- */

.pg { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: var(--gap); }
.pg-stage { position: relative; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 400px; padding: 20px 20px 64px; display: grid; }
.pg-actions { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 6px; }
.panel { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.ctl-label { margin: 0 0 7px; font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  height: 30px; padding: 0 11px; border-radius: var(--pill);
  background: var(--wash); color: var(--muted); font-size: 12.5px; font-weight: 500;
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.chip:hover { color: var(--text-2); }
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.slider {
  position: relative; height: 36px; border-radius: var(--r-xs); overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; padding: 0 11px;
  background: var(--wash); font-size: 13px; font-weight: 500; cursor: ew-resize;
}
.slider::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--wash-2); border-right: 2px solid var(--accent); }
.slider > span, .slider > output { position: relative; pointer-events: none; }
.slider input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.slider:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.slider:hover::before { background: var(--raised); }
.slider-val { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.slider::before { transition: background .2s; }
.ctl-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.switch { width: 34px; height: 20px; border-radius: var(--pill); background: var(--raised); position: relative; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .3s var(--spring); }
.switch.on { background: var(--accent-deep); }
.switch.on::after { transform: translateX(14px); background: var(--text); }

/* ---------- Code ---------- */

.code { position: relative; margin-top: var(--gap); border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; padding: 12px 56px 0 22px; font-size: 12px; color: var(--muted); }
.code-lang { font-family: var(--mono); color: var(--faint); }
.code pre { margin: 0; padding: 18px 22px 22px; overflow-x: auto; font: 400 13px/1.65 var(--mono); color: var(--text); }
.code-copy { position: absolute; top: 8px; right: 10px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: var(--wash); }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-t { color: var(--tk-t); } .tk-n { color: var(--tk-n); }
.cmd { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 18px; margin-bottom: var(--gap); border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 13px var(--mono); }
.cmd code { flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd-dollar { color: var(--faint); }
.prompt { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: var(--gap); }
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.prompt-body { padding: 14px; }

/* ---------- Gallery ---------- */

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.g-tile { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.g-tile[hidden] { display: none; }
.g-thumb {
  position: relative; height: 210px;
  background: radial-gradient(120% 90% at 50% 0%, var(--stage-glow), var(--surface) 70%);
}
.g-thumb .stage-slot { padding: 16px; }
.g-thumb .demo-bin { right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 10px; }
.g-meta { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 13.5px; font-weight: 500; border-top: 1px solid var(--line); transition: background .2s; }
.g-meta:hover { background: var(--wash); }
.g-name { display: flex; align-items: baseline; gap: 8px; }
.g-group { color: var(--faint); font-weight: 400; font-size: 12px; }
.g-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; font-size: 12.5px; transition: color .2s; }
.g-meta:hover .g-hint { color: var(--text); }
.g-meta:hover .g-group { color: var(--text-2); }


/* ---------- Showcase (gallery home, mirrors app/gallery.tsx) ---------- */

.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 80px 0 18px; }
.view > .sc-head:first-child { margin-top: 12px; }
.sc-index { margin: 0 0 6px; font: 500 12px var(--mono); color: var(--faint); }
.sc-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.sc-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.sc-item { display: block; cursor: pointer; border-radius: 20px; transition: opacity .7s var(--ease); touch-action: none; user-select: none; -webkit-user-select: none; }
.sc-item.grab, .demo-card.grab { cursor: grab; }

.sc-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-slot { height: 270px; }
.sc-slot.wide { grid-column: span 2; }

.sc-mails-wrap { position: relative; }
.sc-mails-wrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 6px; width: 64px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--bg)); }
.sc-mails { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.sc-mails::-webkit-scrollbar { display: none; }
.sc-mails .sc-item { flex: none; scroll-snap-align: start; }
.sc-bin {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.sc-bin.bump { animation: bump .45s var(--spring); }
@keyframes bump { 30% { transform: scale(1.2); } 100% { transform: scale(1); } }
.sc-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #EF4444; color: #fff;
  font: 600 11px/20px var(--sans); text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.bin-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #EF4444; color: #fff;
  font: 600 10.5px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--surface);
}

.sc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sc-split > div { display: flex; flex-direction: column; }
.sc-split .sc-panel { flex: 1; display: flex; flex-direction: column; }
.sc-panel { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
.sc-thread { display: flex; flex-direction: column; justify-content: flex-end; height: 400px; flex: none !important; overflow: hidden; }
.sc-thread-inner { display: flex; flex-direction: column; gap: 6px; will-change: transform; }
.sc-row { display: flex; transition: height .3s cubic-bezier(0.22, 1, 0.36, 1), margin .3s, opacity .2s; }
.sc-row.gone { height: 0 !important; margin-top: -6px; opacity: 0; }
.sc-send.busy { opacity: .45; pointer-events: none; }
.sc-row.me { justify-content: flex-end; }
.sc-row .sc-item { border-radius: 18px; }
.sc-composer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px;
  height: 44px; padding: 0 5px 0 16px; border-radius: 22px; background: var(--surface-2); color: var(--faint); font-size: 14px;
}
.sc-send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-deep); color: #fff; transition: transform .3s var(--spring); }
[data-theme='light'] .sc-send { background: var(--accent); }
.sc-send:active { transform: scale(.9); }

.sc-chips { margin-bottom: 14px; }
.sc-add { margin-left: auto; background: var(--accent-soft); color: var(--accent); }
.sc-arrivals { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 280px; }
.sc-arrivals .sc-item { border-radius: 16px; cursor: default; }
.sc-empty { margin: auto; color: var(--faint); font-size: 13px; }

.sc-gest { gap: 12px; justify-content: center; }
.sc-gslot { height: 76px; }
.sc-gslot .sc-item { border-radius: 18px; }

.sc-cascade-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; font-size: 15px; font-weight: 600; }
.sc-clear { font-size: 13px; font-weight: 500; color: var(--accent); }
.sc-notes { display: flex; flex-direction: column; gap: 6px; }
.sc-notes .sc-item { border-radius: 16px; cursor: default; }
#sc-all { margin-bottom: 40px; }
.sc-collapse { overflow: hidden; transition: height .35s var(--ease), opacity .3s; }
.sc-collapse.gone { height: 0 !important; opacity: 0; }
.sc-muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.sc-grow { flex: 1; }
.sc-morph { flex-direction: row !important; align-items: center; gap: 14px; flex: 0 !important; min-height: 110px; }
.sc-morph .sc-static { border-radius: 26px; cursor: default; }
.sc-profile-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.sc-profile-info strong { font-size: 15px; font-weight: 600; color: var(--text); }
.sc-pill-slot { position: relative; display: grid; cursor: pointer; justify-items: end; }
.sc-pill-slot .sc-item { grid-area: 1 / 1; border-radius: 19px; }
.sc-pile { position: relative; min-height: 360px; }
.sc-todos { display: flex; flex-direction: column; gap: 6px; }
.sc-todos .sc-item { border-radius: 12px; }
.sc-floor { position: relative; flex: 1; min-height: 120px; margin: 10px -16px -16px; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.sc-platform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 -40px; font-size: 13.5px; color: var(--text-2); }
.sc-platform strong { color: var(--text); font-weight: 600; }
.sc-platform-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sc-platform-note { color: var(--faint); font-size: 12.5px; }
.sc-platform code { font: 500 12px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--wash); color: var(--text); }

/* ---------- Engine overlay (from site/dissolve.js) ---------- */

.dust-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 34; }

/* ---------- Responsive ---------- */

.scrim { display: none; }

@media (max-width: 1100px) {
  .shell { gap: 40px; }
  .platforms { margin-right: 0; }
}

@media (max-width: 860px) {
  :root { --top-h: 56px; }
  .top-inner { padding: 0 14px; gap: 10px; }
  .top .menu-btn { display: grid; }
  .top-nav, .top-right .pill:first-child span { display: none; }
  .shell { display: block; padding: 16px 16px 96px; }
  .side {
    position: fixed; z-index: 40; top: 0; left: 0; bottom: 0;
    width: 272px; max-height: none; padding: 20px 14px;
    background: var(--bg); box-shadow: 1px 0 0 var(--line);
    transform: translateX(-102%); transition: transform .4s var(--ease);
  }
  .side-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .side-open .scrim { opacity: 1; pointer-events: auto; }
  h1 { font-size: 30px; }
  .toolbar { align-items: flex-start; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .platforms { width: 100%; gap: 16px; padding: 4px 2px 6px; }
  .stage { height: 300px; border-radius: var(--r-md); }
  .tiles, .pg, .grid-3 { grid-template-columns: 1fr; }
  .pg-stage { min-height: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .sc-bento { grid-template-columns: 1fr 1fr; }
  .sc-slot { height: 230px; }
  .sc-split { grid-template-columns: 1fr; gap: 0; }
  .sc-head { margin-top: 48px; }
}
