/* Native dialog owns focus/top layer; only its text sheet moves. */
html.reflection-open { overflow: hidden; scroll-behavior: auto !important; }
body.reflection-page-locked { position: fixed; inset: var(--reflection-page-y) 0 auto; width: 100%; }
.reflection-dialog {
  --reflection-shade: 1;
  width: min(620px, calc(100% - 32px));
  max-width: none; max-height: none; padding: 0; margin: auto;
  border: 0; overflow: visible; background: transparent; color: #3a0317;
}
.reflection-dialog::backdrop {
  background: rgb(26 3 12 / .48);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: var(--reflection-shade);
}
.reflection-sheet {
  position: relative; display: flex; flex-direction: column;
  max-height: min(740px, calc(var(--dari-screen-height, 800px) - 64px));
  padding: 38px 40px 32px; border-radius: 12px;
  border: 1px solid rgb(255 250 236 / .85);
  background: rgb(250 241 224 / .88);
  backdrop-filter: blur(26px) saturate(115%); -webkit-backdrop-filter: blur(26px) saturate(115%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), 0 24px 80px rgb(24 0 10 / .2), 0 2px 8px rgb(24 0 10 / .08);
}
.reflection-heading { flex: none; padding-right: 40px; margin-bottom: 24px; }
.reflection-heading p { margin: 0 0 10px; font: 400 11px/1.4 var(--font-ui); text-transform: uppercase; color: #805640; }
.reflection-heading h2 { margin: 0; font: 400 28px/1.2 var(--font-display); letter-spacing: 0; }
.reflection-close {
  position: absolute; right: 16px; top: 16px; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 250 240 / .4); color: #3a0317; cursor: pointer;
}
.reflection-close:hover { background: rgb(255 250 240 / .85); }
.reflection-close:active { transform: scale(.96); }
.reflection-close:focus-visible, #main #proof .voice-read:focus-visible { outline: 2px solid #976332; outline-offset: 4px; }
.reflection-body {
  min-height: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #ab8b75 transparent; padding-right: 12px;
}
.reflection-body p { margin: 0 0 24px; color: #3a0317; font: 400 30px/1.48 var(--font-display); letter-spacing: 0; }
.reflection-body p:last-child { margin-bottom: 4px; }
#main #proof .voice-read {
  display: inline-flex; align-items: center; min-height: 44px; margin: 16px 0 0;
  padding: 8px 0; border: 0; background: transparent; color: #713b43;
  font: 400 14px/1.5 var(--font-ui); text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}
.hc-entry-glint {
  position: absolute; z-index: 4; top: 44%; left: 53%; width: 1px; height: 130px;
  background: linear-gradient(transparent, #ffedbf, transparent); filter: blur(1px);
  transform: rotate(35deg); opacity: 0; pointer-events: none;
}
@media (max-width: 900px) {
  .hc-entry-glint { top: calc(var(--hc-photo-height, 400px) - 40px); left: 76%; height: 90px; transform: rotate(65deg); }
}
@media (max-width: 600px) {
  .reflection-dialog { width: calc(100% - 24px); }
  .reflection-sheet { padding: 30px 24px 26px; max-height: calc(var(--dari-screen-height, 720px) - 36px); }
  .reflection-heading { margin-bottom: 20px; }
  .reflection-heading h2 { font-size: 25px; }
  .reflection-body p { font-size: 25px; }
}
@supports not (backdrop-filter: blur(1px)) { .reflection-sheet { background: #f7edda; } }
@media (prefers-reduced-transparency: reduce) {
  .reflection-sheet { background: #f7edda; backdrop-filter: none; }
  .reflection-dialog::backdrop { background: rgb(26 3 12 / .8); backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .hc-entry-glint { display: none; } }
@media (forced-colors: active) { .reflection-sheet { background: Canvas; color: CanvasText; border: 1px solid CanvasText; } .reflection-body p { color: CanvasText; } }
