/* Reading surfaces sit above the shared scene host. */

html[data-scene] {
  --scene-canvas: #e8f2f8;
  --scene-card: rgba(251, 253, 255, .9);
  --scene-paper: rgba(252, 253, 255, .97);
  --scene-border: rgba(57, 95, 121, .15);
  --scene-shadow: rgba(35, 67, 91, .09);
}
html[data-scene="sky-mirror"] { --scene-canvas: #dcecf7; }
html[data-scene="twilight-platform"] { --scene-canvas: #e6eff2; }
html[data-scene="forest-fireflies"] {
  --scene-canvas: #e4efe6;
  --scene-border: rgba(56, 101, 77, .16);
}
html[data-theme="dark"][data-scene] {
  --scene-canvas: #111a27;
  --scene-card: rgba(24, 33, 47, .91);
  --scene-paper: rgba(25, 33, 47, .97);
  --scene-border: rgba(209, 225, 238, .12);
  --scene-shadow: rgba(0, 0, 0, .28);
}
html[data-theme="dark"][data-scene="sky-mirror"] { --scene-canvas: #111a2b; }
html[data-theme="dark"][data-scene="twilight-platform"] { --scene-canvas: #121b29; }
html[data-theme="dark"][data-scene="forest-fireflies"] {
  --scene-canvas: #0b1a20;
  --scene-border: rgba(179, 217, 202, .12);
}
html[data-scene] body {
  background-color: var(--scene-canvas) !important;
}
html[data-scene] .confirmed-site {
  background: transparent !important;
}
html[data-scene] .notes-compact-featured,
html[data-scene] .notes-compact-paper,
html[data-scene] .confirmed-quote-masonry blockquote {
  background: var(--scene-card) !important;
  border-color: var(--scene-border) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px var(--scene-shadow);
}
html[data-scene] .confirmed-about-note {
  background: var(--scene-paper) !important;
  border-color: var(--scene-border) !important;
  box-shadow: 0 22px 48px var(--scene-shadow);
}
html[data-scene] .note-reading-paper {
  background: var(--scene-paper) !important;
  border-color: var(--scene-border) !important;
  box-shadow: 0 20px 48px var(--scene-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-scene] .notes-compact-featured,
  html[data-scene] .notes-compact-paper,
  html[data-scene] .confirmed-quote-masonry blockquote {
    background: var(--scene-paper) !important;
  }
}
